:root {
            --ai-highlight: #0d6efd;
            --ai-highlight-rgb: 13, 110, 253;
            --featured-bg: #fff3cd;
            --featured-border: #ffc107;
            --popular-color: #dc3545;
            --sponsored-bg: #e8f5e9;
            --sponsored-border: #4caf50;
        }

        [data-bs-theme="dark"] {
            --ai-highlight: #0dcaf0;
            --ai-highlight-rgb: 13, 202, 240;
            --featured-bg: #332701;
            --featured-border: #665600;
            --popular-color: #fd7e14;
            --sponsored-bg: #1b5e20;
            --sponsored-border: #81c784;
        }
        
        .ai-highlight {
            border-left: 4px solid var(--ai-highlight);
            background-color: rgba(var(--ai-highlight-rgb), 0.05);
        }
        
        .featured-company {
            background-color: var(--featured-bg);
            border: 1px solid var(--featured-border);
            position: relative;
        }
        
        .sponsored-company {
            background-color: var(--sponsored-bg);
            border: 1px solid var(--sponsored-border);
            position: relative;
        }
        
        .featured-badge {
            position: absolute;
            top: -10px;
            right: 15px;
            z-index: 2;
        }
        
        .ai-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--ai-highlight), #6f42c1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }
        
        .result-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .result-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .action-btn {
            transition: all 0.2s ease;
        }
        
        .action-btn:hover {
            transform: scale(1.05);
        }
        
        .popular-badge {
            background-color: rgba(var(--bs-danger-rgb), 0.1);
            color: var(--popular-color);
            font-weight: 500;
        }
        
      
        
        .filter-section {
            background-color: var(--bs-tertiary-bg);
            border-radius: 0.5rem;
            padding: 1rem;
        }
        
        .filter-btn {
            width: 100%;
        }
        
        .ai-chat-container {
            max-height: 400px;
            overflow-y: auto;
            padding: 15px;
            border-radius: 8px;
            background-color: var(--bs-tertiary-bg);
            transition: max-height 0.5s ease;
        }
        
        .ai-message {
            margin-bottom: 20px;
            display: flex;
        }
        
        .ai-response {
            flex-direction: row;
        }
        
        .user-message {
            flex-direction: row-reverse;
        }
        
        .message-content {
            max-width: 80%;
            padding: 10px 15px;
            border-radius: 18px;
            margin: 0 10px;
        }
        
        .ai-response .message-content {
            background-color: var(--bs-primary-bg-subtle);
            border-bottom-left-radius: 5px;
        }
        
        .user-message .message-content {
            background-color: var(--bs-info-bg-subtle);
            border-bottom-right-radius: 5px;
        }
        
        .company-post {
            border-left: 3px solid var(--bs-primary);
            padding-left: 15px;
            margin-bottom: 15px;
        }
        
        .post-meta {
            font-size: 0.8rem;
            color: var(--bs-secondary);
        }
        
        .company-profile-link {
            text-decoration: none;
            position: relative;
            display: inline-block;
        }
        
        .company-profile-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -2px;
            left: 0;
            background-color: var(--ai-highlight);
            transition: width 0.3s ease;
        }
        
        .company-profile-link:hover::after {
            width: 100%;
        }
        
        .popularity-indicator {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
        }
        
        .popularity-indicator i {
            color: var(--bs-danger);
        }
        
        .character-selector {
            position: relative;
            display: inline-block;
        }
        
        .character-dropdown {
            display: none;
            position: absolute;
            background-color: var(--bs-body-bg);
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            z-index: 1;
            border-radius: 8px;
            padding: 10px;
            min-width: 200px;
        }
        
        .character-selector:hover .character-dropdown {
            display: block;
        }
        
        .character-option {
            padding: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            border-radius: 4px;
        }
        
        .character-option:hover {
            background-color: var(--bs-tertiary-bg);
        }
        
        .character-option img {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-right: 10px;
        }
        
        .ai-plan-badge {
            background: linear-gradient(45deg, #6f42c1, #0d6efd);
            color: white;
        }
        
        .location-permission {
            background-color: rgba(var(--bs-info-rgb), 0.1);
            border-left: 4px solid var(--bs-info);
        }

        /* ===== Search Results ===== */
        .search-results-container {
            padding: 1.25rem 1.5rem;
            background: rgba(255,255,255,0.98);
            border-radius: 12px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.08);
            text-align: left;
            max-width: none !important;
            width: 100%;
        }

        /* Resposta IA */
        .ai-response-card {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            border: 1px solid #c2d4f0;
            border-radius: 12px;
            padding: 1rem 1.25rem;
            max-width: none !important;
            width: 100%;
        }
        .ai-response-card p { font-size: 0.95rem; line-height: 1.65; max-width: none !important; margin-bottom: 0; }
        .ai-avatar {
            width: 36px; height: 36px;
            background: #4361ee; color: white;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; font-size: 1rem;
        }

        /* Filtros — scroll horizontal mobile, wrap desktop */
        .search-filters { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
        .search-filters::-webkit-scrollbar { display: none; }
        @media (min-width: 576px) { .search-filters { flex-wrap: wrap; } }
        .search-filter {
            border: 1px solid var(--bs-border-color); background: var(--bs-body-bg);
            color: var(--bs-body-color);
            padding: 5px 16px; border-radius: 20px; font-size: 0.8rem;
            cursor: pointer; white-space: nowrap; transition: all 0.2s;
        }
        .search-filter:hover { border-color: #4361ee; color: #4361ee; }
        .search-filter.active { background: #4361ee; color: white; border-color: #4361ee; }

        /* === Empresas — cards verticais === */
        .search-companies-section { margin-bottom: 1.25rem; }
        .search-pubs-section { margin-bottom: 1.25rem; }
        .search-products-section { margin-bottom: 1.25rem; }
        .search-companies-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 0.75rem;
        }
        .search-company-card {
            display: flex; flex-direction: column; align-items: center;
            padding: 1rem 0.75rem;
            background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: 12px;
            text-decoration: none; color: var(--bs-body-color);
            transition: box-shadow 0.2s, transform 0.2s;
            text-align: center;
        }
        .search-company-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            transform: translateY(-2px);
            text-decoration: none; color: inherit;
        }
        .search-company-logo {
            width: 56px; height: 56px; border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            color: white; font-weight: 700; font-size: 1.1rem;
            margin-bottom: 0.5rem; overflow: hidden;
        }
        img.search-company-logo {
            object-fit: contain; border: 1px solid var(--bs-border-color);
        }
        .search-company-name { font-weight: 600; font-size: 0.85rem; line-height: 1.2; margin-bottom: 0.25rem; }
        .search-company-cat { font-size: 0.72rem; color: var(--bs-secondary-color); margin-bottom: 0.25rem; }
        .search-company-info { font-size: 0.7rem; color: var(--bs-secondary-color); display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
        .search-company-dist { color: #2ec4b6; }
        .search-company-cta { font-size: 0.75rem; color: #4361ee; margin-top: 0.5rem; font-weight: 500; }
        .search-company-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 0.4rem; }
        .search-company-contact { font-size: 1.1rem; opacity: 0.7; transition: opacity 0.15s, transform 0.15s; text-decoration: none; }
        .search-company-contact:hover { opacity: 1; transform: scale(1.15); }

        /* === Publicações — grid compacto (mesmo estilo que empresas) === */
        .search-pubs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 0.75rem;
        }
        .search-pub-card {
            display: flex; flex-direction: column;
            color: inherit; cursor: pointer;
            border: 1px solid var(--bs-border-color); border-radius: 12px;
            overflow: hidden;
            transition: box-shadow 0.2s, transform 0.2s;
        }
        .search-pub-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            transform: translateY(-2px);
        }
        .search-pub-logo-fallback {
            width: 100%; height: 100px;
            display: flex; align-items: center; justify-content: center;
        }
        .search-pub-logo-fallback span {
            font-size: 2rem; font-weight: 700; color: rgba(255,255,255,0.85);
        }
        .search-pub-image { width: 100%; height: 100px; object-fit: cover; }
        .search-pub-subtitle { font-size: 0.72rem; color: var(--bs-secondary-color); }
        .search-pub-dist { color: #2ec4b6; }
        .search-pub-content {
            padding: 0.6rem 0.75rem 0.75rem;
        }
        .search-pub-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.15rem; color: #1a0dab; line-height: 1.25;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .search-type-badge { display: inline-block; font-size: 0.6rem; padding: 2px 7px; border-radius: 4px; color: #fff; font-weight: 600; }

        /* === Produtos Grid === */
        .search-products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 0.75rem;
        }
        .search-product-card {
            display: flex; flex-direction: column;
            border: 1px solid var(--bs-border-color); border-radius: 12px;
            overflow: hidden;
            transition: box-shadow 0.2s, transform 0.2s;
        }
        .search-product-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            transform: translateY(-2px);
        }
        .search-product-img { width: 100%; height: 100px; object-fit: cover; }
        .search-product-img-placeholder {
            width: 100%; height: 100px;
            display: flex; align-items: center; justify-content: center;
        }
        .search-product-body { padding: 0.6rem 0.75rem 0.75rem; }
        .search-product-name {
            font-size: 0.85rem; font-weight: 600; margin-bottom: 0.1rem;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
            line-height: 1.25;
        }
        .search-product-company { font-size: 0.72rem; color: var(--bs-secondary-color); }
        .search-product-price { font-size: 0.82rem; }

        /* === DARK MODE === */
        [data-bs-theme='dark'] .search-results-container {
            background: rgba(30, 30, 30, 0.98);
            box-shadow: 0 4px 24px rgba(0,0,0,0.3);
        }
        [data-bs-theme='dark'] .ai-response-card {
            background: linear-gradient(135deg, #1a2332 0%, #1e293b 100%);
            border-color: #334155;
        }
        [data-bs-theme='dark'] .search-filter:hover { border-color: #6d8df8; color: #8ab4f8; }
        [data-bs-theme='dark'] .search-filter.active { background: #4361ee; color: white; border-color: #4361ee; }
        [data-bs-theme='dark'] .search-company-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
        [data-bs-theme='dark'] .search-company-cta { color: #8ab4f8; }
        [data-bs-theme='dark'] .search-pub-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
        [data-bs-theme='dark'] .search-pub-title { color: #8ab4f8; }
        [data-bs-theme='dark'] .search-pub-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
        [data-bs-theme='dark'] .search-company-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
        [data-bs-theme='dark'] .search-product-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
        [data-bs-theme='dark'] .search-product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
        [data-bs-theme='dark'] .search-company-dist { color: #4dd0c8; }
        [data-bs-theme='dark'] .search-pub-dist { color: #4dd0c8; }
        [data-bs-theme='dark'] .ai-avatar { background: var(--ai-highlight); }

        @media (max-width: 767.98px) {
            .search-results-container { padding: 0.75rem; }
            .search-companies-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
            .search-company-logo { width: 40px; height: 40px; font-size: 0.9rem; }
            .search-company-name { font-size: 0.78rem; }
            .search-pubs-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
            .search-products-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
            .search-product-img, .search-product-img-placeholder { height: 80px; }
            .search-pub-logo-fallback { height: 80px; }
            .search-pub-logo-fallback span { font-size: 1.5rem; }
            .search-pub-image { height: 80px; }
            .search-pub-title { font-size: 0.78rem; }
        }
        @media (max-width: 400px) {
            .search-companies-grid,
            .search-pubs-grid,
            .search-products-grid { grid-template-columns: repeat(2, 1fr); }
        }

        /* ===== Home Feed Sections ===== */

        /* Agora! Banner — cor muda conforme status */
        /* Agora! Tag Indicators */
        .agora-indicators {
            display: flex;
            gap: 5px;
            margin-bottom: 6px;
            overflow: visible;
            padding: 4px 0;
        }
        .agora-indicators::-webkit-scrollbar { display: none; }
        .agora-ind {
            width: 28px; height: 28px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 13px; cursor: pointer;
            border: 2px solid rgba(255,255,255,0.3);
            background: rgba(255,255,255,0.1);
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .agora-ind:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.2); }
        .agora-ind.active { border-color: #fff; background: rgba(255,255,255,0.25); box-shadow: 0 0 6px rgba(255,255,255,0.3); }
        .agora-ind.intent { border-style: dashed; }
        .agora-ind.intent.pulse { border-style: solid; border-color: rgba(46,196,182,0.8); }
        .agora-ind.pulse { animation: indPulse 2s infinite; }
        @keyframes indPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.1); }
        }

        @media (max-width: 767.98px) {
            .agora-indicators { gap: 4px; }
            .agora-ind { width: 26px; height: 26px; font-size: 12px; }
        }

        /* Intent badge textual no ticker */
        .agora-intent-badge {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            font-size: 0.7rem;
            padding: 2px 8px;
            border-radius: 8px;
            background: rgba(255,255,255,0.25);
            color: #fff;
            font-weight: 600;
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* Promo price no ticker */
        .agora-promo-price {
            font-size: 0.78rem;
            font-weight: 700;
            color: #fff;
            background: rgba(25,135,84,0.5);
            padding: 1px 8px;
            border-radius: 4px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* Distance label no ticker */
        .agora-dist-label {
            font-size: 0.55rem;
            opacity: 0.75;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .agora-banner {
            backdrop-filter: blur(8px);
            border-radius: 14px;
            padding: 0.85rem 1.25rem;
            border: 1px solid rgba(255,255,255,0.12);
            transition: background 0.5s ease;
            min-height: 80px;
            overflow: visible;
            box-shadow: 0 4px 20px rgba(0,0,0,0.12);
        }
        /* Verde/teal quando tem algo acontecendo AGORA */
        .agora-banner.agora-live {
            background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
        }
        /* Azul/roxo suave quando só tem coisas futuras / promoções */
        .agora-banner.agora-upcoming {
            background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
        }
        .agora-clock {
            font-size: 0.85rem; color: rgba(255,255,255,0.9);
            font-weight: 600; font-variant-numeric: tabular-nums;
        }
        .agora-live-dot {
            width: 10px; height: 10px;
            background: #fff; border-radius: 50%;
            animation: agora-blink 1.5s infinite;
            flex-shrink: 0;
        }
        @keyframes agora-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
        @keyframes agoraFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
        .agora-ticker {
            display: flex; gap: 1rem; overflow-x: auto;
            scrollbar-width: none; -webkit-overflow-scrolling: touch;
            padding-bottom: 0.25rem;
        }
        .agora-ticker::-webkit-scrollbar { display: none; }

        /* Slides do ticker — um por vez, rotação com fade */
        .agora-slide {
            display: flex; align-items: center; gap: 0.5rem;
            color: white; text-decoration: none; font-size: 0.92rem;
            transition: opacity 0.3s ease;
            text-shadow: 0 1px 2px rgba(0,0,0,0.15);
            white-space: nowrap; overflow: hidden;
            width: 100%; min-height: 30px;
        }
        .agora-slide:hover { color: white; text-decoration: none; }
        .agora-timeline {
            display: inline-flex; align-items: center; gap: 0.3rem;
            flex-shrink: 0;
        }
        .agora-title-text {
            font-weight: 600; font-size: 0.92rem;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
            flex: 1 1 auto; min-width: 0;
        }
        .agora-company {
            opacity: 0.75; font-size: 0.78rem;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
            flex-shrink: 0; max-width: 35%;
            background: rgba(255,255,255,0.12); padding: 1px 8px; border-radius: 10px;
        }
        .agora-time {
            font-weight: 700; background: rgba(255,255,255,0.25);
            padding: 2px 7px; border-radius: 4px; font-size: 0.85rem;
            font-variant-numeric: tabular-nums;
        }
        .agora-freq {
            font-size: 0.72rem; opacity: 0.9;
            background: rgba(255,255,255,0.15);
            padding: 1px 6px; border-radius: 3px;
        }

        /* "Ver todos" link */
        .agora-view-all {
            color: rgba(255,255,255,0.8); font-size: 0.72rem;
            text-decoration: none; white-space: nowrap;
            background: rgba(255,255,255,0.15); padding: 2px 8px;
            border-radius: 10px; flex-shrink: 0;
        }
        .agora-view-all:hover { color: white; background: rgba(255,255,255,0.25); }

        /* Status temporal */
        .agora-slide.agora-now { font-weight: 500; }
        .agora-slide.agora-soon { opacity: 0.9; }
        .agora-slide.agora-important { }
        .agora-live-indicator {
            width: 8px; height: 8px; background: #fff;
            border-radius: 50%; flex-shrink: 0;
            animation: agora-blink 1.5s infinite;
        }

        /* Mobile — banner empilhado */
        @media (max-width: 767.98px) {
            .agora-banner { min-height: auto; padding: 0.6rem 0.75rem; }
            .agora-slide {
                flex-wrap: wrap;
                gap: 0.2rem 0.4rem;
                font-size: 0.82rem;
                white-space: normal;
                padding: 0.25rem 0;
            }
            .agora-title-text {
                max-width: 100%;
                font-size: 0.85rem;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                flex: 1 1 60%;
            }
            .agora-company {
                max-width: 100%;
                font-size: 0.75rem;
                opacity: 0.8;
                flex: 0 0 auto;
            }
            .agora-promo-price { font-size: 0.72rem; padding: 1px 6px; }
            .agora-intent-badge { display: none; }
        }
        .agora-countdown {
            background: rgba(255,255,255,0.2); padding: 2px 8px;
            border-radius: 10px; font-size: 0.7rem; font-weight: 700;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.3px;
        }
        .agora-emoji { font-size: 0.85rem; flex-shrink: 0; line-height: 1; }
        .agora-next-day {
            background: rgba(255,255,255,0.25); padding: 2px 8px;
            border-radius: 4px; font-size: 0.72rem; font-weight: 600;
        }
        /* Agenda dentro do banner */
        .agora-agenda { margin-top: 0.75rem; }
        .agora-dates {
            display: flex; gap: 0.4rem; overflow-x: auto;
            scrollbar-width: none; padding-bottom: 0.5rem;
        }
        .agora-dates::-webkit-scrollbar { display: none; }
        .agora-date-btn {
            display: flex; flex-direction: column; align-items: center;
            background: rgba(255,255,255,0.15); border: none; border-radius: 10px;
            padding: 0.35rem 0.5rem; color: white; cursor: pointer;
            min-width: 44px; flex-shrink: 0; transition: background 0.2s;
        }
        .agora-date-btn:hover { background: rgba(255,255,255,0.25); }
        .agora-date-btn.active { background: rgba(255,255,255,0.35); }
        .agora-date-day { font-size: 0.6rem; opacity: 0.8; text-transform: uppercase; }
        .agora-date-num { font-size: 1rem; font-weight: 700; line-height: 1.2; }
        .agora-date-dot {
            width: 5px; height: 5px; background: #fff;
            border-radius: 50%; margin-top: 2px;
        }
        .agora-agenda-items { margin-top: 0.5rem; }
        .agora-agenda-item {
            display: flex; align-items: center; gap: 0.6rem;
            padding: 0.4rem 0.6rem; border-radius: 8px;
            text-decoration: none; color: white;
            transition: background 0.2s; margin-bottom: 0.25rem;
        }
        .agora-agenda-item:hover { background: rgba(0,0,0,0.15); color: white; text-decoration: none; }
        .agora-agenda-time {
            font-size: 0.85rem; font-weight: 700; min-width: 40px;
            text-align: center; opacity: 0.9;
        }
        .agora-agenda-info { flex-grow: 1; }
        .agora-agenda-info strong { font-size: 0.82rem; display: block; }
        .agora-agenda-meta { font-size: 0.7rem; opacity: 0.75; }
        .agora-agenda-price {
            background: rgba(255,255,255,0.25); padding: 1px 6px;
            border-radius: 4px; font-weight: 600; font-size: 0.7rem;
        }
        .agora-agenda-empty {
            text-align: center; opacity: 0.6; font-size: 0.8rem;
            padding: 0.5rem;
        }

        [data-bs-theme='dark'] .agora-banner.agora-live {
            background: linear-gradient(135deg, #115e59 0%, #164e63 100%);
            border-color: rgba(255,255,255,0.08);
        }
        [data-bs-theme='dark'] .agora-banner.agora-upcoming {
            background: linear-gradient(135deg, #312e81 0%, #3730a3 100%);
            border-color: rgba(255,255,255,0.08);
        }

        /* Home Cards genéricos */
        .home-card {
            display: block; text-decoration: none; color: inherit;
            background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 12px;
            overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
            height: 100%;
        }
        .home-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px);
            text-decoration: none; color: inherit;
        }
        [data-bs-theme='dark'] .home-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.4); }

        /* Company card (destaques) */
        .home-company-card {
            padding: 1rem; text-align: center;
            display: flex; flex-direction: column; align-items: center;
        }
        .home-company-logo {
            width: 48px; height: 48px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: white; font-weight: 700; font-size: 1rem;
            margin-bottom: 0.5rem;
        }
        .home-company-name { font-weight: 600; font-size: 0.82rem; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
        .home-company-cat { font-size: 0.72rem; color: var(--bs-secondary-color); }
        .home-company-loc { font-size: 0.7rem; color: var(--bs-secondary-color); }

        /* Publication items (novidades, vagas) */
        .home-pub-item {
            display: flex; gap: 0.75rem; padding: 0.75rem 0;
            border-bottom: 1px solid #f0f0f0;
            text-decoration: none; color: inherit;
        }
        .home-pub-item:last-child { border-bottom: none; }
        .home-pub-item:hover { text-decoration: none; color: inherit; background: rgba(0,0,0,0.02); }
        .home-pub-img { width: 90px; height: 68px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
        .home-pub-body { flex-grow: 1; }
        .home-pub-company { font-size: 0.72rem; color: var(--bs-secondary-color); }
        .home-pub-title { font-size: 0.92rem; font-weight: 600; color: #1a0dab; line-height: 1.3; }
        .home-pub-snippet { font-size: 0.8rem; color: var(--bs-body-color); margin-top: 0.15rem; }
        [data-bs-theme='dark'] .home-pub-item:hover { background: rgba(255,255,255,0.03); }
        [data-bs-theme='dark'] .home-pub-title { color: #8ab4f8; }

        /* Promo card */
        .home-promo-card { overflow: hidden; }
        .home-promo-img { width: 100%; height: 100px; object-fit: cover; }
        .home-promo-body { padding: 0.5rem 0.75rem; }

        /* Produto Promo card (agrupado por empresa) */
        .prod-promo-card {
            display: block; text-decoration: none; color: inherit;
            border: 1px solid var(--bs-border-color); border-radius: 12px; padding: 0.75rem;
            transition: box-shadow 0.2s;
        }
        .prod-promo-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); color: inherit; }
        .prod-promo-items { display: flex; gap: 0.75rem; overflow-x: auto; }
        .prod-promo-item { min-width: 110px; max-width: 140px; flex-shrink: 0; }
        .prod-promo-img { width: 100%; height: 70px; object-fit: cover; border-radius: 6px; margin-bottom: 0.25rem; }
        .prod-promo-name { font-size: 0.78rem; font-weight: 600; line-height: 1.2;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .prod-promo-price { font-size: 0.75rem; }
        [data-bs-theme='dark'] .prod-promo-card { border-color: #444; background: #2d2d2d; }

        @media (max-width: 767.98px) {
            .agora-ticker { flex-direction: column; gap: 0.5rem; overflow: hidden; }
            .agora-slide { max-width: 100%; overflow: hidden; }
            .agora-item {
                font-size: 0.82rem; padding: 0.5rem 0.75rem;
                overflow: hidden; text-overflow: ellipsis;
                flex-shrink: 1; min-width: 0;
                max-width: 100%;
            }
            .agora-timeline { width: auto; }
            .agora-title-text { width: 100%; display: block; font-size: 0.9rem; }
            .agora-company { width: 100%; display: block; font-size: 0.72rem; opacity: 0.7; }
            .home-company-logo { width: 40px; height: 40px; font-size: 0.85rem; }
            .home-pub-img { width: 70px; height: 52px; }
            .home-promo-img { height: 80px; }
        }

/* ═══════════════════════════════════════════
   AGORA! WIDGET — Sidebar (B), Mini Ticker (C), Contextual (D)
   ═══════════════════════════════════════════ */

/* ── Sidebar Widget (Variant B) ── */
.agora-sw {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.agora-sw.agora-sw-live { background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%); }
.agora-sw.agora-sw-upcoming { background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%); }
[data-bs-theme='dark'] .agora-sw.agora-sw-live { background: linear-gradient(135deg, #115e59 0%, #164e63 100%); }
[data-bs-theme='dark'] .agora-sw.agora-sw-upcoming { background: linear-gradient(135deg, #312e81 0%, #3730a3 100%); }

.agora-sw-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 6px;
    color: #fff;
}
.agora-sw-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}
.agora-sw-dot-pulse { animation: agora-blink 1.5s infinite; }
.agora-sw-title { font-weight: 700; font-size: 0.85rem; flex: 1; }
.agora-sw-clock { font-size: 0.78rem; opacity: 0.8; font-variant-numeric: tabular-nums; }
.agora-sw-badge {
    background: rgba(255,255,255,0.25);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

.agora-sw-list {
    padding: 4px 10px;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.agora-sw-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 4px;
    text-decoration: none;
    color: #fff;
    border-radius: 8px;
    transition: background 0.15s;
}
.agora-sw-item:hover { background: rgba(0,0,0,0.12); color: #fff; text-decoration: none; }
.agora-sw-item-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}
.agora-sw-item-body { flex: 1; min-width: 0; }
.agora-sw-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.agora-sw-item-meta {
    font-size: 0.72rem;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agora-sw-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px 10px;
    gap: 8px;
}
.agora-sw-expand, .agora-sw-link {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.agora-sw-expand:hover, .agora-sw-link:hover { color: #fff; }
.agora-sw-collapse {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
    margin-left: auto;
}
.agora-sw-collapse:hover { color: #fff; }

/* Inline expanded (from mini ticker) */
.agora-sw-inline { margin-bottom: 1rem; }
.agora-sw-inline .agora-sw-list { max-height: 500px; }

/* Company contextual variant */
.agora-sw-company .agora-sw-header { padding-bottom: 8px; }

/* ── Mini Ticker (Variant C) ── */
.agora-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 12px;
    margin-bottom: 1rem;
    min-height: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.agora-mini.agora-mini-live { background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%); }
.agora-mini.agora-mini-upcoming { background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%); }
[data-bs-theme='dark'] .agora-mini.agora-mini-live { background: linear-gradient(135deg, #115e59 0%, #164e63 100%); }
[data-bs-theme='dark'] .agora-mini.agora-mini-upcoming { background: linear-gradient(135deg, #312e81 0%, #3730a3 100%); }

.agora-mini-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: agora-blink 1.5s infinite;
}
.agora-mini-label {
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    flex-shrink: 0;
}
.agora-mini-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
}
.agora-mini-slide {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.25s;
    white-space: nowrap;
    overflow: hidden;
}
.agora-mini-slide:hover { color: #fff; text-decoration: none; }
.agora-mini-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}
.agora-mini-item-company {
    font-size: 0.72rem;
    opacity: 0.7;
    flex-shrink: 0;
}
.agora-mini-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}
.agora-mini-count:hover { background: rgba(255,255,255,0.35); color: #fff; }
.agora-mini-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.agora-mini-close:hover { color: #fff; }

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .agora-mini { padding: 6px 12px; gap: 8px; }
    .agora-mini-label { font-size: 0.78rem; }
    .agora-mini-item-title { font-size: 0.78rem; }
    .agora-mini-item-company { display: none; }
}