/* ========================================================
   Componentes Específicos (UI & Glassmorphism)
   ======================================================== */

/* Panels & Cards */
.glass-panel,
.glass-card {
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

/* Ticker (Top Bar) */
.financial-ticker {
    background: #000;
    color: var(--neon-green);
    font-family: monospace;
    font-size: 0.8rem;
    padding: 0.4rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 55s linear infinite;
    letter-spacing: 1px;
}

.ticker-content span {
    margin-right: 2rem;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Inputs & Form Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group>label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Radio Pills (Invest Type) */
.radio-pills {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem;
    border-radius: var(--radius-md);
}

.radio-pill {
    flex: 1;
    text-align: center;
}

.radio-pill input {
    display: none;
}

.radio-pill span {
    display: block;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-pill input:checked+span {
    background: var(--bg-panel);
    color: var(--text-main);
    border: var(--glass-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* FGC Badge */
.fgc-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    color: var(--neon-green);
    font-size: 0.75rem;
}

.fgc-badge i {
    font-size: 1rem;
}

.fgc-badge strong {
    font-weight: 600;
}

/* Custom Neon Sliders */
.slider-group .slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slider-group label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.value-display {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--neon-green);
    font-size: 1.1rem;
}

.neon-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
}

.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-main);
    border: 4px solid var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
    cursor: grab;
    transition: transform 0.1s;
}

.neon-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
    cursor: grabbing;
}

.helper-text {
    display: block;
    margin-top: 0.5rem;
}

/* ==========================================================================
   TREASURY PANEL (TESOURO DIRETO) - SENIOR DESIGN
   ========================================================================== */
.treasury-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.treasury-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.treasury-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-blue);
    opacity: 0.7;
}

.treasury-card.selic::before { background: #10b981; }
.treasury-card.ipca::before { background: #3b82f6; }
.treasury-card.pre::before { background: #f59e0b; }

.bond-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.bond-yield-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bond-yield-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bond-yield-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--neon-green);
    font-family: 'Outfit', sans-serif;
}

.bond-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.btn-select-bond {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--neon-green);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-select-bond:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 15px var(--neon-green-glow);
}

/* Estado de Seleção */
.treasury-card.selected {
    border: 1px solid var(--neon-green);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.treasury-card.selected .btn-select-bond {
    background: var(--neon-green);
    color: #000;
}

/* Market Explorer Table */
.premium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: var(--text-main);
}

.premium-table th {
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
}

.premium-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Filter Chips */
.filter-chips .chip {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chips .chip:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-main);
}

.filter-chips .chip.active {
    background: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.btn-table-action {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--neon-green);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-table-action:hover {
    background: var(--neon-green);
    color: #000;
}

/* KPI Cards */
.results-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tooltip Informativo Premium */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.info-tooltip .tooltip-text {
    visibility: hidden;
    width: 260px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    text-align: left;
    border-radius: var(--radius-md);
    padding: 1rem;
    position: absolute;
    z-index: 1001;
    /* Fica acima do z-index 100 dos cards vizinhos */
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
    font-size: 0.75rem;
    line-height: 1.5;
    pointer-events: none;
}

.info-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(59, 130, 246, 0.3) transparent;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.info-tooltip i {
    color: var(--brand-blue);
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: help;
}

.info-tooltip:hover i {
    opacity: 1;
}

.kpi-card.highlight {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 20px var(--neon-green-glow);
}

.kpi-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.kpi-card.highlight .kpi-value {
    font-size: 2.5rem;
}

/* Charts */
.chart-container {
    position: relative;
    height: 450px;
    width: 100%;
    padding: 1rem;
}

/* ========================================================
   View: Gamificação (Desafio 102)
   ======================================================== */
.hero-video-container {
    width: 100%;
    max-width: 450px;
    margin: -1rem auto 1.5rem;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    line-height: 0;
    background: #000;
    /* Premium Blending */
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.2));
}

.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.4) 0%, 
        rgba(0,0,0,0.1) 50%, 
        rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.85;
    transform: scale(1.02);
}

.gamification-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.gamification-header h2 {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.gamification-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* Progress Bar */
.progress-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: var(--glass-border);
}

.progress-label {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-blue), var(--neon-green));
    border-radius: var(--radius-full);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.progress-status {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Gamification Metrics */
.gamification-metrics {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat>strong {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* The 102 Grid */
.envelope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 576px) {
    .envelope-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 0.5rem;
    }
}

.envelope {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    user-select: none;
}

.envelope:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.envelope.completed {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green-glow);
    text-decoration: line-through;
    text-decoration-color: rgba(16, 185, 129, 0.5);
    text-decoration-thickness: 2px;
}

.envelope.completed:hover {
    transform: none;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.gamification-actions {
    display: flex;
    justify-content: center;
}

/* ========================================================
   Modal SGA Invest
   ======================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--hazard-red);
}

.modal-header h2 {
    font-size: clamp(1.3rem, 4vw, 1.75rem);
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.contact-email-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.contact-email-box span {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--neon-green);
    letter-spacing: 0.5px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-main);
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    color: var(--neon-green);
    border-color: var(--neon-green);
}

.copy-feedback {
    margin-top: 1rem;
    color: var(--neon-green);
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeInOut 2s forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    15% {
        opacity: 1;
        transform: translateY(0);
    }

    85% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ========================================================
   MODULO DE NOTICIAS (FEED)
   ======================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
}

.news-card-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding: 0.2rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-blue);
    border-radius: 4px;
    width: fit-content;
}

.news-card-tag.macro {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.news-card-tag.rf {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neon-green);
}

.news-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.news-card-footer .source {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

/* ========================================================
   MODULO DE COMMODITIES (SIDEBAR)
   ======================================================== */
.commodities-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.commodities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    min-height: 120px;
    /* Evita que o painel colapse enquanto sincroniza */
}

.commodity-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: all 0.2s;
}

.commodity-mini-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.commodity-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.commodity-header i {
    font-size: 0.85rem;
}

.commodity-price {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.commodity-change {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.commodity-change.up {
    color: var(--neon-green);
    background: rgba(16, 185, 129, 0.1);
}

.commodity-change.down {
    color: var(--hazard-red);
    background: rgba(239, 68, 68, 0.1);
}

.commodity-change.neutral {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
}

.radar-card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.05), rgba(0, 0, 0, 0.2));
    border-color: rgba(16, 185, 129, 0.2);
}

.radar-card-featured .commodity-price {
    font-size: 1.15rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

.radar-card-featured .commodity-header i {
    color: var(--neon-green);
}

.commodities-disclaimer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: flex;
    gap: 0.5rem;
    opacity: 0.8;
}

.commodities-disclaimer i {
    font-size: 0.9rem;
    color: var(--brand-blue);
    flex-shrink: 0;
}

/* ========================================================
   Accordion / FAQ Section (Educação Financeira)
   ======================================================== */
.faq-accordion {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--brand-blue);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    border-top: 1px solid transparent;
}

/* Estado Ativo: */
.faq-item.active {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-question {
    color: var(--neon-green);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--neon-green);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Suficientemente grande para o texto caber */
}

.faq-item.active .faq-answer p {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

/* Monitor de Poder de Compra Real (Vistoso / Premium) */
.buying-power-area {
    margin-top: 2rem;
    padding: 0.8rem 2.5rem 2.5rem;
    background: linear-gradient(165deg, rgba(16, 185, 129, 0.05), rgba(9, 9, 11, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.buying-power-area::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.buying-power-video {
    position: absolute;
    top: 60.6%;
    left: 54%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0.69;
    /* Sutil para não atrapalhar o gráfico */
    pointer-events: none;
    z-index: 0;
    /* Sombreamento Neon correspondendo à identidade visual */
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4)) saturate(1.9);
}


.buying-power-header {
    display: flex;
    flex-direction: column;
    /* Coloca os elementos em coluna para centralizar tudo */
    align-items: center;
    text-align: center;
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 1;
}

.buying-power-title h3 {
    font-size: clamp(1.3rem, 4vw, 1.75rem);
    margin-top: 0.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centraliza o conteúdo do flex (ícone + texto) */
    gap: 0.75rem;
}

.buying-power-title h3 i {
    color: var(--neon-green);
}

.buying-power-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 650px;
    /* Aumentado para preencher melhor o centro */
    line-height: 1.5;
    margin: 1 auto 1.5rem;
    /* Centraliza o bloco e dá espaço para os stats abaixo */
}

.buying-power-stats {
    display: flex;
    gap: 2rem;
    text-align: center;
    /* Centraliza os textos internos dos stats */
    margin-top: 1rem;
}

.bp-stat {
    display: flex;
    flex-direction: column;
}

.bp-stat span {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.bp-stat strong {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.bp-loss {
    color: var(--hazard-red);
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.bp-current {
    color: var(--neon-green);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.chart-wrapper {
    height: 350px;
    width: 100%;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    /* Escurecido para destacar o brilho */
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    /* Animação de respiração atmosférica */
    animation: chart-breathing 6s ease-in-out infinite;
}

/* Efeito de brilho flutuante tipo 'shimmer' no fundo do gráfico */
.chart-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(16, 185, 129, 0.05),
            transparent);
    animation: chart-shimmer 8s infinite linear;
    z-index: 0;
    pointer-events: none;
}

@keyframes chart-breathing {

    0%,
    100% {
        border-color: rgba(16, 185, 129, 0.1);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }

    50% {
        border-color: rgba(16, 185, 129, 0.3);
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
    }
}

@keyframes chart-shimmer {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

@media (max-width: 768px) {
    .buying-power-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .buying-power-stats {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }

    .buying-power-area {
        padding: 1.5rem;
    }
}

/* ========================================================
   RADAR DE EVENTOS (AGENDA ECONÔMICA)
   ======================================================== */
/* ========================================================
   RADAR DE EVENTOS (AGENDA ECONÔMICA - ESTILO INVESTING)
   ======================================================== */
.economic-calendar-panel {
    padding: 1.25rem !important;
}

.calendar-events-list {
    display: flex;
    flex-direction: column;
    max-height: 350px; /* Mostra ~5 eventos antes de aparecer o scroll */
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 0.5rem;
}

/* Custom Scrollbar Premium */
.calendar-events-list::-webkit-scrollbar {
    width: 4px;
}
.calendar-events-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.calendar-events-list::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 10px;
}

.calendar-header-table {
    display: grid;
    grid-template-columns: 75px 1fr 45px 45px 45px;
    gap: 6px;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.event-row {
    display: grid;
    grid-template-columns: 75px 1fr 45px 45px 45px;
    gap: 6px;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    align-items: center;
    transition: background 0.2s;
}

.event-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.col-time {
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 10px; /* Espaço para o ponto de impacto */
}

.country-tag {
    font-size: 0.55rem;
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.05);
}

.col-time small {
    font-size: 0.5rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.col-event {
    font-size: 0.7rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.2;
}

.col-val {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: right;
    font-family: monospace;
}

.val-atual {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green-glow);
}

.val-muted {
    color: var(--text-muted);
    opacity: 0.8;
}

.val-muted-more {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Radar Impact Pulse */
.event-row.impact-high .col-event {
    color: #ff4d4d;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.2);
}

.event-row.impact-high .col-time::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #ff4d4d;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 6px;
    box-shadow: 0 0 10px #ff4d4d;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 77, 77, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* STICKY SIDEBAR BEHAVIOR */
.sticky-column {
    position: sticky;
    top: 80px; /* Ajuste para o header se houver */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .sticky-column {
        position: static;
    }
}