/* Analytics dashboard — painel admin (neutro, denso) */

.ga-dashboard {
    margin-top: 24px;
    --ga-border: #e5e7eb;
    --ga-bg: #fafafa;
    --ga-bg-card: #fff;
    --ga-text: #111827;
    --ga-muted: #6b7280;
    --ga-subtle: #9ca3af;
    --ga-accent: #374151;
    --ga-bar: #64748b;
}

.ga-dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ga-border);
}

.ga-dashboard-header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    flex: 1;
    min-width: 0;
}

.ga-header-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ga-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ga-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--ga-border);
    background: var(--ga-bg-card);
    color: var(--ga-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.ga-header-link:hover {
    background: var(--ga-bg);
    border-color: #cbd5e1;
}

.ga-dashboard-header h3 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ga-text);
}

.ga-dashboard-header h3 i {
    color: var(--primary-color, #c99a45);
    font-size: 1.05rem;
}

.ga-dashboard-intro {
    color: var(--ga-muted);
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0 0 12px;
    max-width: 780px;
}

.ga-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
}

.ga-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--ga-bg);
    border: 1px solid var(--ga-border);
    color: var(--ga-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.ga-meta-chip strong {
    color: var(--ga-text);
    font-weight: 600;
}

.ga-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.ga-status-badge.is-loading {
    background: var(--ga-bg);
    color: var(--ga-muted);
    border-color: var(--ga-border);
}

.ga-status-badge.is-ok {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.ga-status-badge.is-warn {
    background: #f9fafb;
    color: #6b7280;
    border-color: #e5e7eb;
}

.ga-status-badge.is-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.ga-summary-period-wrap {
    display: inline-flex;
    align-items: center;
}

.ga-summary-period-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 5px 28px 5px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 14px 14px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ga-summary-period-select:hover {
    border-color: #94a3b8;
    background-color: #ffffff;
}

.ga-summary-period-select:focus {
    border-color: var(--primary-color, #c99a45);
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(201, 154, 69, 0.18);
}

.ga-metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.ga-metric-card {
    background: var(--ga-bg-card);
    border: 1px solid var(--ga-border);
    border-radius: 8px;
    padding: 14px 16px;
    min-height: 78px;
}

.ga-metric-label {
    color: var(--ga-subtle);
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ga-metric-value {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ga-text);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.ga-metric-hint {
    margin: 4px 0 0;
    font-size: 0.72rem;
    color: var(--ga-subtle);
}

.ga-chart-panel {
    background: var(--ga-bg-card);
    border: 1px solid var(--ga-border);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.ga-chart-panel h4 {
    margin: 0 0 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ga-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ga-chart-panel h4 i {
    color: var(--ga-subtle);
    font-size: 0.8rem;
}

.ga-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 120px;
    padding-top: 8px;
    border-bottom: 1px solid var(--ga-border);
}

.ga-bar-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 4px;
}

.ga-bar-fill {
    width: 100%;
    max-width: 28px;
    min-height: 2px;
    background: #94a3b8;
    border-radius: 3px 3px 0 0;
    transition: height 0.2s ease;
}

.ga-bar-col:hover .ga-bar-fill {
    background: #475569;
}

.ga-bar-label {
    font-size: 0.6rem;
    color: var(--ga-subtle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.ga-panels {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 14px;
    margin-bottom: 16px;
}

.ga-panel {
    background: var(--ga-bg-card);
    border: 1px solid var(--ga-border);
    border-radius: 8px;
    padding: 16px 18px;
    min-height: 200px;
}

.ga-panel h4 {
    margin: 0 0 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ga-text);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ga-border);
}

.ga-panel h4 i {
    color: var(--ga-subtle);
    font-size: 0.8rem;
}

.ga-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ga-list-item {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ga-list-item:last-child {
    border-bottom: none;
}

.ga-list-rank {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ga-subtle);
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.ga-list-item-main {
    min-width: 0;
}

.ga-list-item-title {
    color: var(--ga-text);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ga-list-item-sub {
    color: var(--ga-subtle);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.ga-list-item-value {
    color: var(--ga-accent);
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ga-channel-row {
    display: grid;
    grid-template-columns: 1fr auto 56px auto;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ga-channel-row:last-child {
    border-bottom: none;
}

.ga-channel-name {
    color: var(--ga-text);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ga-channel-meta {
    color: var(--ga-subtle);
    font-size: 0.72rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ga-channel-bar {
    height: 5px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
}

.ga-channel-bar > span {
    display: block;
    height: 100%;
    background: var(--ga-bar);
    border-radius: 2px;
}

.ga-channel-pct {
    color: var(--ga-muted);
    font-weight: 600;
    font-size: 0.75rem;
    min-width: 32px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ga-device-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.82rem;
}

.ga-device-row:last-child {
    border-bottom: none;
}

.ga-device-name {
    color: var(--ga-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ga-device-name i {
    color: var(--ga-subtle);
    width: 16px;
    text-align: center;
}

.ga-device-val {
    color: var(--ga-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ga-empty-state {
    text-align: center;
    padding: 24px 16px;
    color: var(--ga-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.ga-empty-state i {
    font-size: 1.5rem;
    color: #d1d5db;
    margin-bottom: 8px;
    display: block;
}

.ga-empty-state .ga-btn-config {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #374151;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
}

.ga-empty-state .ga-btn-config:hover {
    background: #1f2937;
}

.ga-footnote {
    background: var(--ga-bg);
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--ga-border);
    color: var(--ga-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.ga-footnote a {
    color: var(--ga-accent);
    font-weight: 500;
}

.ga-placeholder {
    color: var(--ga-subtle);
    text-align: center;
    padding: 20px 12px;
    font-size: 0.82rem;
}

.ga-metrics-grid-extended {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ga-metric-highlight {
    background: #f8fafc;
}

.ga-metric-highlight .ga-metric-label i {
    margin-right: 4px;
}

.ga-chart-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.ga-chart-panel-head h4 {
    margin: 0;
}

.ga-chart-hint {
    margin: -6px 0 12px;
    font-size: 0.75rem;
    color: var(--ga-subtle);
    line-height: 1.45;
}

.ga-trend-chart {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}

.ga-trend-yaxis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    padding: 8px 0 28px;
    font-size: 0.68rem;
    color: var(--ga-subtle);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ga-trend-main {
    min-width: 0;
}

.ga-trend-plot {
    position: relative;
    height: 200px;
    border-left: 1px solid var(--ga-border);
    border-bottom: 1px solid var(--ga-border);
    background: linear-gradient(to bottom, #fafafa 0%, #fff 100%);
    border-radius: 0 0 4px 0;
    overflow: hidden;
}

.ga-trend-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ga-trend-grid {
    stroke: #e5e7eb;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.ga-trend-line {
    vector-effect: non-scaling-stroke;
}

.ga-trend-dot {
    vector-effect: non-scaling-stroke;
}

.ga-trend-xlabels {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 8px;
    min-height: 18px;
}

.ga-trend-xlabel {
    flex: 1;
    min-width: 0;
    font-size: 0.68rem;
    color: var(--ga-muted);
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ga-trend-xlabel.is-empty {
    visibility: hidden;
}

.ga-trend-tooltip {
    position: absolute;
    top: 8px;
    transform: translateX(-50%);
    max-width: 240px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.ga-trend-tooltip[hidden] {
    display: none;
}

.ga-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.72rem;
    color: var(--ga-muted);
}

.ga-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ga-legend-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.ga-legend-swatch.views {
    background: #64748b;
}

.ga-legend-swatch.users {
    background: #6366f1;
}

.ga-bar-stack {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 100%;
    max-height: 100px;
}

.ga-bar-chart.is-dual .ga-bar-fill {
    max-width: 12px;
}

.ga-bar-fill.views {
    background: #64748b;
}

.ga-bar-fill.users {
    background: #cbd5e1;
}

.ga-bar-col:hover .ga-bar-fill.views {
    background: #475569;
}

.ga-bar-col:hover .ga-bar-fill.users {
    background: #94a3b8;
}

.ga-dashboard-summary {
    margin-top: 20px;
}

.ga-summary-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
    align-items: stretch;
}

.ga-summary-metrics .ga-metric-card {
    display: grid;
    grid-template-rows: minmax(2.35rem, auto) minmax(1.75rem, auto) minmax(1.05rem, auto);
    align-content: start;
    row-gap: 8px;
    min-height: 96px;
}

.ga-summary-metrics .ga-metric-label {
    margin: 0;
    align-self: end;
    line-height: 1.25;
}

.ga-summary-metrics .ga-metric-value {
    margin: 0;
    align-self: end;
}

.ga-summary-metrics .ga-metric-hint {
    margin: 0;
    align-self: start;
    line-height: 1.2;
}

.ga-summary-metrics .ga-metric-card:not(:has(.ga-metric-hint))::after {
    content: '';
    display: block;
    min-height: 1.05rem;
}

.ga-summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.ga-summary-period {
    font-size: 0.78rem;
    color: var(--ga-muted);
    font-weight: 500;
}

.ga-summary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--primary-color, #0f172a);
    color: #fff !important;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: filter 0.15s ease, background 0.15s ease;
}

.ga-summary-link:hover {
    filter: brightness(0.92);
}

@media (max-width: 900px) {
    .ga-summary-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ga-panels-secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ga-whatsapp-panel {
    margin-top: 8px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid var(--ga-border);
    border-radius: 8px;
    background: #f8fafc;
}

.ga-whatsapp-head h4 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ga-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ga-whatsapp-head h4 i {
    color: #16a34a;
}

.ga-whatsapp-note {
    margin: 0 0 14px;
    font-size: 0.78rem;
    color: var(--ga-muted);
    line-height: 1.45;
    max-width: 820px;
}

.ga-whatsapp-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.ga-panels-wa {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 0;
}

.ga-panel-wide {
    grid-column: 1 / -1;
}

.ga-wa-recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ga-wa-recent-item {
    padding: 10px 12px;
    border: 1px solid var(--ga-border);
    border-radius: 8px;
    background: #fff;
}

.ga-wa-recent-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ga-wa-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ga-wa-badge.ok {
    background: #dcfce7;
    color: #166534;
}

.ga-wa-badge.muted {
    background: #f1f5f9;
    color: #64748b;
}

.ga-wa-recent-meta {
    font-size: 0.72rem;
    color: var(--ga-subtle);
}

.ga-wa-recent-label {
    font-size: 0.8rem;
    color: var(--ga-text);
}

.ga-wa-preview {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--ga-muted);
    font-style: italic;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .ga-metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ga-metrics-grid-extended {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ga-panels {
        grid-template-columns: 1fr 1fr;
    }

    .ga-panels .ga-panel:last-child {
        grid-column: auto;
    }

    .ga-panels-secondary {
        grid-template-columns: 1fr 1fr;
    }

    .ga-whatsapp-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ga-panels-wa {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ga-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ga-metrics-grid-extended {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ga-metric-card {
        padding: 10px 12px;
        min-height: auto;
    }

    .ga-metric-value {
        font-size: 1.15rem;
    }

    .ga-panels,
    .ga-panels-secondary,
    .ga-panels-wa {
        grid-template-columns: 1fr;
    }

    .ga-whatsapp-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .ga-bar-chart {
        height: 90px;
    }

    .ga-bar-label {
        font-size: 0.55rem;
    }
}

/* Comparação período vs anterior */
.ga-compare-panel {
    margin-bottom: 16px;
}

.ga-compare-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.ga-compare-kpi {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--ga-border);
    background: var(--ga-bg-card);
}

.ga-compare-kpi-label {
    margin: 0 0 4px;
    font-size: 0.72rem;
    color: var(--ga-muted);
    font-weight: 600;
}

.ga-compare-kpi-value {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ga-text);
}

.ga-compare-kpi-delta {
    margin: 4px 0 0;
    font-size: 0.72rem;
    font-weight: 700;
}

.ga-compare-kpi-delta.is-up { color: #059669; }
.ga-compare-kpi-delta.is-down { color: #dc2626; }
.ga-compare-kpi-delta.is-flat { color: var(--ga-muted); }

.ga-compare-kpi-prev {
    margin: 2px 0 0;
    font-size: 0.68rem;
    color: var(--ga-subtle);
}

.ga-metric-delta {
    display: block;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
}

.ga-metric-delta.is-up { color: #059669; }
.ga-metric-delta.is-down { color: #dc2626; }
.ga-metric-delta.is-flat { color: var(--ga-muted); }

.ga-legend-swatch.current {
    background: #6366f1;
}

.ga-legend-swatch.previous {
    background: #cbd5e1;
}

.ga-bar-chart.is-compare .ga-bar-fill.current {
    background: #6366f1;
    max-width: 10px;
}

.ga-bar-chart.is-compare .ga-bar-fill.previous {
    background: #cbd5e1;
    max-width: 10px;
}

@media (max-width: 768px) {
    .ga-compare-kpis {
        grid-template-columns: 1fr;
    }

    .ga-trend-chart {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .ga-trend-yaxis {
        min-height: 160px;
        padding-bottom: 24px;
        font-size: 0.62rem;
    }

    .ga-trend-plot {
        height: 160px;
    }

    .ga-trend-xlabel {
        font-size: 0.6rem;
    }
}

/* Interrogação e Modal de Ajuda de Métricas */
.ga-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    margin-left: 6px;
    vertical-align: middle;
    padding: 0;
}

.ga-help-btn:hover {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #38bdf8;
    transform: scale(1.1);
}

.ga-metric-interactive {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative;
}

.ga-metric-interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #38bdf8;
}

.ga-metric-info-icon {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 4px;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.ga-metric-interactive:hover .ga-metric-info-icon {
    opacity: 1;
    color: #0ea5e9;
}

/* Modal Backdrop & Dialog */
.hs-analytics-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.22s ease;
    box-sizing: border-box;
}

.hs-analytics-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.hs-analytics-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.hs-analytics-modal-backdrop.active .hs-analytics-modal-dialog {
    transform: translateY(0) scale(1);
}

.hs-analytics-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.hs-analytics-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(57, 170, 180, 0.12);
    color: var(--primary-color, #39aab4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hs-analytics-modal-header h3 {
    margin: 0;
    font-size: 1.12rem;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.25;
}

.hs-analytics-modal-header p {
    margin: 3px 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.hs-analytics-modal-close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.hs-analytics-modal-close:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.hs-analytics-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}

.hs-analytics-help-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.25s ease;
}

.hs-analytics-help-card.highlight-pulse {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.hs-analytics-help-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.hs-analytics-help-info {
    flex: 1;
    min-width: 0;
}

.hs-analytics-help-info h4 {
    margin: 0 0 4px;
    font-size: 0.94rem;
    font-weight: 800;
    color: #0f172a;
}

.hs-analytics-help-info p {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.45;
}

.hs-analytics-help-example {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 10px;
    border-left: 3px solid #cbd5e1;
}

.hs-analytics-help-didactic {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 14px 16px;
}

.hs-analytics-help-didactic-title {
    font-weight: 800;
    color: #065f46;
    font-size: 0.92rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hs-analytics-help-didactic p {
    margin: 0;
    font-size: 0.82rem;
    color: #1e293b;
    line-height: 1.55;
}

.hs-analytics-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
}

.hs-analytics-modal-btn {
    background: var(--primary-color, #39aab4);
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.hs-analytics-modal-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .hs-analytics-modal-dialog {
        max-height: 94vh;
        border-radius: 14px;
    }
    .hs-analytics-modal-header {
        padding: 14px 16px;
    }
    .hs-analytics-modal-body {
        padding: 14px 16px;
        gap: 10px;
    }
    .hs-analytics-help-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .hs-analytics-help-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .hs-analytics-modal-footer {
        padding: 10px 16px;
    }
    .hs-analytics-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   BARRA DE CARREGAMENTO DE MÉTRICAS (Feedback Visual com Progresso)
   ========================================================================== */
.ga-loading-bar-wrap {
    margin: 8px 0 16px;
    padding: 12px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.06);
    animation: gaFadeIn 0.2s ease;
}

.ga-loading-bar-track {
    width: 100%;
    height: 6px;
    background: #e0f2fe;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.ga-loading-bar-fill {
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, #38bdf8, #0284c7, #38bdf8);
    background-size: 200% 100%;
    border-radius: 999px;
    animation: gaBarSlide 1.4s infinite ease-in-out;
}

.ga-loading-bar-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0369a1;
}

.ga-loading-bar-text i {
    color: #0284c7;
}

@keyframes gaBarSlide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(120%); }
    100% { transform: translateX(250%); }
}

@keyframes gaFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   VISITAS DO SITE NO CELULAR / MOBILE
   Remove o botão Google Analytics 4 e alinha o botão "?" à direita
   ========================================================================== */
@media (max-width: 768px) {
    .ga-dashboard-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
    }

    .ga-dashboard-header-main {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .ga-header-title-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }

    .ga-dashboard-header h3 {
        font-size: 1rem !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* Remove o botão/badge "Google Analytics 4" no celular */
    .ga-status-badge {
        display: none !important;
    }

    /* Posiciona o botão de ajuda (?) no canto direito do cabeçalho */
    .ga-help-btn {
        margin-left: auto !important;
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 13px !important;
        flex-shrink: 0 !important;
    }
}

/* ==========================================================================
   BOTÃO "VER TODAS AS PÁGINAS" & MODAL DE DETALHES COMPLETOS
   ========================================================================== */
.ga-card-footer-action {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.ga-btn-view-all {
    width: 100%;
    padding: 7px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0284c7;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.18s ease;
    box-sizing: border-box;
}

.ga-btn-view-all:hover {
    background: #f0f9ff;
    border-color: #38bdf8;
    color: #0369a1;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
    transform: translateY(-1px);
}

.ga-btn-view-all:active {
    transform: translateY(0);
}

.ga-btn-view-all i {
    font-size: 0.74rem;
}

/* Dialog ampliado para detalhes */
.hs-analytics-details-dialog {
    max-width: 780px !important;
    max-height: 88vh !important;
}

/* Barra de Busca no Modal */
.hs-analytics-modal-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.hs-analytics-modal-search-wrap i.fa-search {
    color: #94a3b8;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hs-analytics-modal-search-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hs-analytics-modal-search-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.hs-analytics-modal-search-clear {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1;
}

.hs-analytics-modal-search-clear:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* Lista de Itens Detalhados no Modal */
.ga-modal-body-details {
    padding: 16px 20px !important;
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ga-modal-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.ga-modal-row:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ga-modal-rank {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 6px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.ga-modal-row:nth-child(1) .ga-modal-rank {
    background: #fef3c7;
    color: #b45309;
}
.ga-modal-row:nth-child(2) .ga-modal-rank {
    background: #e2e8f0;
    color: #475569;
}
.ga-modal-row:nth-child(3) .ga-modal-rank {
    background: #ffedd5;
    color: #c2410c;
}

.ga-modal-main {
    min-width: 0;
}

.ga-modal-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.ga-modal-sub {
    margin-top: 3px;
    font-size: 0.76rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    word-break: break-all;
}

.ga-modal-link {
    color: #0284c7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: monospace;
    font-size: 0.74rem;
    background: #f0f9ff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #bae6fd;
    transition: all 0.15s ease;
}

.ga-modal-link:hover {
    background: #e0f2fe;
    color: #0369a1;
    text-decoration: underline;
}

.ga-modal-copy-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.ga-modal-copy-btn:hover {
    color: #0284c7;
    background: #e0f2fe;
}

.ga-modal-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.ga-modal-metric {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.ga-modal-bar-wrap {
    width: 90px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.ga-modal-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #0284c7);
    border-radius: 999px;
}

.ga-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 0.88rem;
}

.ga-modal-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #cbd5e1;
}

/* Item no card com clique */
.ga-list-item.ga-item-clickable,
.ga-channel-row.ga-item-clickable {
    cursor: pointer;
    transition: background-color 0.15s ease, padding 0.15s ease;
    border-radius: 6px;
    padding-left: 6px;
    padding-right: 6px;
}

.ga-list-item.ga-item-clickable:hover,
.ga-channel-row.ga-item-clickable:hover {
    background: #f8fafc;
}

/* ==========================================================================
   ABAS DE NAVEGAÇÃO ANALYTICS (GA4 vs SEARCH CONSOLE)
   ========================================================================== */

.analytics-tabs-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.analytics-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.analytics-tab-btn:hover {
    color: #0f172a;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
}

.analytics-tab-btn.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
}

.analytics-tab-btn.active i {
    transform: scale(1.1);
}

.analytics-tab-badge {
    background: #fef3c7;
    color: #d97706;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.analytics-tab-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
    flex-shrink: 0;
}

.analytics-tab-help:hover,
.analytics-tab-btn.active .analytics-tab-help {
    background: #e0f2fe;
    color: #00809D;
    border-color: #7dd3fc;
}

/* Widget Compacto de Conquistas para a Home */
.hs-achieve-compact-widget {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    padding: 18px 20px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
}

.hs-achieve-compact-widget .hs-achieve-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.hs-achieve-compact-widget .hs-achieve-group {
    margin-bottom: 16px;
}

.hs-achieve-compact-widget .hs-achieve-group:last-child {
    margin-bottom: 0;
}

.hs-achieve-report-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.hs-achieve-report-link:hover {
    background: #0f172a;
    color: #ffffff;
}

/* Linha Dupla do Dashboard: Analytics à esquerda + Conquistas à direita */
.hs-dash-metrics-row {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 16px;
    margin-bottom: 22px;
}

.hs-dash-metrics-col-analytics,
.hs-dash-metrics-col-achieve {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hs-dash-metrics-col-analytics .ga-dashboard-summary,
.hs-dash-metrics-col-achieve .hs-achieve-compact-widget {
    margin: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 24px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.hs-dash-metrics-col-analytics .ga-summary-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.hs-dash-metrics-col-achieve .hs-achieve-compact-widget .hs-achievements-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hs-dash-metrics-col-achieve .hs-achieve-compact-widget .hs-achieve-stacked-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 1440px) {
    .hs-dash-metrics-col-analytics .ga-summary-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .hs-dash-metrics-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hs-dash-metrics-col-analytics .ga-summary-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hs-achieve-compact-widget {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.hs-dash-metrics-col-achieve .hs-achieve-compact-widget .hs-achievements-header,
.hs-achieve-compact-widget .hs-achievements-header {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--ga-border, #e5e7eb) !important;
}

.hs-achieve-compact-widget .hs-achievements-title,
.hs-dash-metrics-col-achieve .hs-achievements-title {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--ga-text, #111827) !important;
    font-family: inherit !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
}

.hs-achieve-compact-widget .hs-achievements-title i,
.hs-dash-metrics-col-achieve .hs-achievements-title i {
    color: var(--primary-color, #c99a45) !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
    margin-right: 0 !important;
}

.hs-achieve-compact-widget .hs-achievements-subtitle,
.hs-dash-metrics-col-achieve .hs-achievements-subtitle {
    color: var(--ga-muted, #6b7280) !important;
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
    margin: 0 0 12px !important;
    font-weight: 400 !important;
}

.hs-achieve-compact-widget .hs-achieve-stacked-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    justify-content: space-between;
}

.hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-item {
    display: flex !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    gap: 12px;
    margin: 0;
    flex: 1;
    align-items: center;
    transition: all 0.15s ease;
}

.hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hs-achieve-compact-widget .hs-achieve-stacked-list .hs-badge-hex-wrap {
    width: 48px;
    height: 52px;
}

.hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-item-title {
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-item-desc {
    font-size: 0.74rem;
    margin-bottom: 5px;
    line-height: 1.35;
}

.hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-progress-wrap {
    margin-top: 3px;
}

.hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-progress-track {
    height: 7px;
}

@keyframes hsAchieveFadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hs-achievements-card {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hs-achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.hs-achievements-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hs-achievements-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.hs-achievements-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.hs-achievements-subtitle {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: #64748b;
}

.hs-achievements-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hs-achievements-status-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
}

.hs-achievements-status-pill.is-live {
    background: #ecfdf5;
    color: #059669;
}

.hs-achievements-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hs-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hs-filter-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.hs-filter-pill.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.hs-filter-pill.active i {
    color: inherit !important;
}

.hs-achievements-gsc-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: #92400e;
}

.hs-achievements-gsc-notice i {
    font-size: 1.1rem;
    color: #ea4335;
    flex-shrink: 0;
}

.hs-notice-action {
    margin-left: auto;
    font-weight: 700;
    color: #b45309;
    text-decoration: underline;
    font-size: 0.78rem;
}

.hs-achieve-group {
    margin-bottom: 28px;
}

.hs-achieve-group-title {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hs-achieved-counter {
    font-size: 0.72rem;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 4px;
}

.hs-achieve-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

.hs-achieve-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hs-achieve-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.hs-badge-hex-wrap {
    position: relative;
    width: 64px;
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hs-badge-hex-wrap svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.hs-badge-check-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #10b981;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.hs-achieve-info {
    flex: 1;
    min-width: 0;
}

.hs-achieve-item-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.hs-achieve-item-desc {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}

.hs-achieve-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.hs-achieve-progress-wrap {
    margin-top: 8px;
}

.hs-achieve-progress-track {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.hs-achieve-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hs-achieve-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.hs-achieve-empty-msg {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.88rem;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
}

.hs-achieve-skeleton {
    height: 90px;
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: hsSkeletonShimmer 1.5s infinite;
    border-radius: 10px;
}

@keyframes hsSkeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
    .hs-achieve-list {
        grid-template-columns: 1fr;
    }
    .hs-achievements-card {
        padding: 14px 12px;
    }
    .hs-achieve-item {
        padding: 10px 12px;
        gap: 10px;
    }
    .hs-badge-hex-wrap {
        width: 38px;
        height: 42px;
    }
    .hs-achieve-item-title {
        font-size: 0.80rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .hs-achieve-item-desc {
        font-size: 0.70rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .hs-dash-metrics-col-analytics .ga-dashboard-summary,
    .hs-achieve-compact-widget {
        padding: 14px 14px !important;
    }
    .hs-achieve-compact-widget .hs-achievements-header {
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
    }
    .hs-achieve-compact-widget .hs-achievements-title {
        font-size: 1rem !important;
    }
    .hs-achieve-compact-widget .hs-achievements-subtitle {
        font-size: 0.76rem !important;
        white-space: normal !important;
    }
    .hs-achieve-compact-widget .hs-achieve-stacked-list {
        gap: 6px !important;
    }
    .hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-item {
        padding: 6px 8px !important;
        gap: 8px !important;
    }
    .hs-achieve-compact-widget .hs-achieve-stacked-list .hs-badge-hex-wrap {
        width: 32px !important;
        height: 36px !important;
        min-width: 32px !important;
    }
    .hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-item-title {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-item-desc {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-progress-track {
        height: 4px !important;
    }
    .hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-progress-meta {
        font-size: 0.64rem !important;
        margin-top: 2px !important;
    }
    .hs-achieve-compact-widget .ga-summary-footer {
        padding-top: 8px !important;
        margin-top: 8px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }
    .hs-achieve-compact-widget .ga-summary-period {
        text-align: center !important;
        font-size: 0.72rem !important;
    }
    .hs-achieve-compact-widget .ga-summary-link {
        justify-content: center !important;
        padding: 7px 10px !important;
        font-size: 0.76rem !important;
    }
    .hs-dash-metrics-col-analytics .ga-summary-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }
    .hs-dash-metrics-col-analytics .ga-summary-period {
        text-align: center !important;
        font-size: 0.72rem !important;
    }
    .hs-dash-metrics-col-analytics .ga-summary-link {
        justify-content: center !important;
        padding: 7px 10px !important;
        font-size: 0.76rem !important;
    }
}

@media (max-width: 480px) {
    .hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-item-title {
        font-size: 0.72rem !important;
    }
    .hs-achieve-compact-widget .hs-achieve-stacked-list .hs-achieve-item-desc {
        font-size: 0.62rem !important;
    }
    .hs-achieve-compact-widget .hs-achieve-stacked-list .hs-badge-hex-wrap {
        width: 28px !important;
        height: 32px !important;
        min-width: 28px !important;
    }
}

/* ==========================================================================
   GERADOR DE LINKS DE ACOMPANHAMENTO & DESTAQUE DE AFILIADOS / UTM
   ========================================================================== */

/* Badges e Destaques nas listas de Páginas de Entrada */
.ga-badge-affiliate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    vertical-align: middle;
    margin-right: 5px;
    white-space: nowrap;
}

.ga-badge-affiliate i {
    color: #10b981;
    font-size: 0.72rem;
}

.ga-badge-utm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    vertical-align: middle;
    margin-right: 5px;
    white-space: nowrap;
}

.ga-badge-warn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    vertical-align: middle;
    margin-right: 5px;
    white-space: nowrap;
}

.ga-badge-clickid {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    vertical-align: middle;
    margin-right: 5px;
    white-space: nowrap;
}

.ga-landing-path-text {
    font-family: monospace;
    font-size: 0.78rem;
    color: #334155;
}

.ga-list-item.is-affiliate-item {
    background: rgba(16, 185, 129, 0.03);
    border-radius: 6px;
    padding-left: 6px;
    padding-right: 6px;
}

.ga-modal-row.is-affiliate-entry {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* Cabeçalho do Painel com Botão de Ação */
.ga-panel-head-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ga-border);
}

.ga-panel-head-with-action h4 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.ga-mini-btn-gen {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ga-mini-btn-gen:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.ga-header-btn-gen {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    padding: 5px 10px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    gap: 5px !important;
    min-height: 0 !important;
}

.ga-header-btn-gen:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
    box-shadow: none !important;
    transform: none;
}

.ga-header-btn-gen i {
    font-size: 0.72rem;
}

/* Modal do Gerador de Links */
.hs-analytics-gen-dialog {
    max-width: 680px !important;
    border-radius: 14px;
    overflow: hidden;
}

.ga-gen-modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ga-gen-modal-icon {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #a5b4fc !important;
    border: 1px solid rgba(165, 180, 252, 0.3) !important;
}

.ga-gen-modal-title {
    margin: 0 0 3px !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.ga-gen-modal-subtitle {
    margin: 0 !important;
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
}

.ga-gen-modal-body {
    padding: 22px 24px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ga-gen-field {
    display: flex;
    flex-direction: column;
}

.ga-gen-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ga-gen-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
}

@media (max-width: 580px) {
    .ga-gen-page-grid {
        grid-template-columns: 1fr;
    }
}

.ga-gen-select,
.ga-gen-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.ga-gen-select:focus,
.ga-gen-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ga-gen-code-badge {
    background: #e0e7ff;
    color: #4338ca;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: monospace;
}

.ga-gen-badge-discount {
    font-size: 0.75rem;
    color: #059669;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ga-gen-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ga-gen-input-icon-wrap i {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

.ga-gen-input.with-icon {
    padding-left: 34px !important;
}

.ga-gen-hint {
    margin: 6px 0 0;
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.35;
}

/* Accordion UTM */
.ga-gen-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
}

.ga-gen-accordion-btn {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    transition: background 0.15s ease;
}

.ga-gen-accordion-btn:hover {
    background: #f1f5f9;
}

.ga-gen-accordion-content {
    padding: 0 14px 14px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.ga-gen-utm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 580px) {
    .ga-gen-utm-grid {
        grid-template-columns: 1fr;
    }
}

.ga-gen-sublabel {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

/* Card de Resultado do Link */
.ga-gen-result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}

.ga-gen-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ga-gen-result-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ga-gen-ver-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #e2e8f0;
    border-radius: 999px;
    padding: 1px 7px;
}

.ga-gen-toast-badge {
    background: #334155;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: none;
    animation: gaToastIn 0.2s ease-out;
}

@keyframes gaToastIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.ga-gen-result-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ga-gen-result-row-full {
    margin-top: 8px;
}

.ga-gen-output-input {
    flex: 1;
    min-width: 0;
    padding: 8px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: #0f172a;
    font-weight: 600;
    cursor: text;
}

.ga-gen-output-short {
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.ga-gen-output-full {
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
}

.ga-gen-output-input:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.ga-gen-btn-copy {
    padding: 6px 10px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ga-gen-btn-copy:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.ga-gen-btn-copy-muted {
    padding: 6px 8px;
}

.ga-gen-short-hint {
    margin: 8px 0 0;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
}

.ga-gen-full-details {
    margin-top: 10px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
}

.ga-gen-full-details summary {
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    user-select: none;
}

.ga-gen-full-details summary:hover {
    color: #334155;
}

.ga-gen-btn-primary {
    padding: 6px 10px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
    box-shadow: none;
}

.ga-gen-btn-primary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    box-shadow: none;
}

/* Botões de Ações */
.ga-gen-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ga-gen-btn-action {
    flex: 1;
    min-width: 130px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.ga-gen-btn-action.secondary {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.ga-gen-btn-action.secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ga-gen-btn-action.whatsapp {
    background: #25d366;
    border: 1px solid #22c55e;
    color: #ffffff;
}

.ga-gen-btn-action.whatsapp:hover {
    background: #1ebc59;
}

.ga-gen-btn-action.qrcode {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.ga-gen-btn-action.qrcode:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* QR Code Container */
.ga-gen-qrcode-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    animation: gaFadeIn 0.2s ease;
}

@keyframes gaFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.ga-gen-qrcode-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#ga-gen-qrcode-render {
    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.ga-gen-qrcode-desc {
    margin: 10px 0 12px;
    font-size: 0.78rem;
    color: #64748b;
    max-width: 360px;
}

.ga-gen-btn-download-qr {
    padding: 8px 16px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.ga-gen-btn-download-qr:hover {
    background: #334155;
}

/* ==========================================================================
   Resumão do Google Ads com IA (Painel Admin)
   ========================================================================== */
.hs-gads-dash-card {
    transition: all 0.2s ease;
    border-radius: 12px;
}
.hs-gads-dash-card:hover {
    box-shadow: 0 6px 18px rgba(66, 133, 244, 0.08) !important;
}

.hs-gads-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.hs-gads-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.hs-gads-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0f7ff;
    border: 1px solid #c7ddff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.hs-gads-brand-icon i {
    background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hs-gads-brand-text {
    min-width: 0;
    flex: 1;
}
.hs-gads-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hs-gads-title {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hs-gads-ai-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.hs-gads-status-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.hs-gads-intro {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}
.hs-gads-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.hs-gads-controls-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hs-gads-period-select {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
}
.hs-gads-refresh-btn {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s ease;
}
.hs-gads-refresh-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.hs-gads-header-cta {
    background: linear-gradient(135deg, #4285F4, #0d5bd1) !important;
    color: #fff !important;
    border: none !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3) !important;
    white-space: nowrap !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.hs-gads-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.4) !important;
}

/* Grid de 5 KPIs */
.hs-gads-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}
.hs-gads-metric-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hs-gads-metric-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.hs-gads-card-balance {
    border-left: 3px solid #2563eb !important;
}
.hs-gads-card-conversions {
    border-left: 3px solid #10b981 !important;
}

/* Faixa Secundária */
.hs-gads-secondary-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.hs-gads-sec-items {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.hs-gads-sec-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.hs-gads-sec-lbl {
    color: #64748b;
    font-size: 12px;
}
.hs-gads-sec-val {
    color: #0f172a;
    font-weight: 700;
}
.hs-gads-sec-divider {
    width: 1px;
    height: 14px;
    background: #cbd5e1;
}
.hs-gads-sec-live {
    font-size: 11.5px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
.hs-gads-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
    gap: 10px;
}
.hs-gads-footer-link {
    color: #2563eb;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 1100px) {
    .hs-gads-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .hs-gads-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }
    .hs-gads-header-main {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .hs-gads-brand-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        font-size: 1.15rem !important;
        border-radius: 8px !important;
    }
    .hs-gads-brand-text {
        width: 100% !important;
    }
    .hs-gads-title-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 6px !important;
    }
    .hs-gads-title {
        font-size: 0.98rem !important;
        white-space: nowrap !important;
        gap: 4px !important;
    }
    .hs-gads-ai-tag {
        font-size: 0.68rem !important;
        padding: 1px 5px !important;
    }
    .hs-gads-status-badge {
        font-size: 10px !important;
        padding: 2px 7px !important;
        margin-left: auto !important;
    }
    .hs-gads-intro {
        font-size: 11.5px !important;
        color: #64748b !important;
        line-height: 1.35 !important;
        margin-top: 2px !important;
    }
    .hs-gads-header-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 7px !important;
        margin-top: 2px !important;
    }
    .hs-gads-controls-row {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .hs-gads-period-select {
        flex: 1 !important;
        height: 34px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }
    .hs-gads-refresh-btn {
        height: 34px !important;
        width: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .hs-gads-header-cta {
        width: 100% !important;
        height: 36px !important;
        justify-content: center !important;
        font-size: 12.5px !important;
        border-radius: 8px !important;
        padding: 0 12px !important;
    }
    .hs-gads-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }
    .hs-gads-metric-card {
        padding: 8px 10px !important;
        border-radius: 8px !important;
    }
    .hs-gads-metric-card .ga-metric-label {
        font-size: 10px !important;
        margin-bottom: 2px !important;
        gap: 4px !important;
    }
    .hs-gads-metric-card .ga-metric-value {
        font-size: 1.22rem !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }
    .hs-gads-metric-card .ga-metric-hint {
        font-size: 10px !important;
        margin-top: 2px !important;
        line-height: 1.2 !important;
    }
    .hs-gads-card-conversions {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
        border-color: #bbf7d0 !important;
        border-left: 3px solid #10b981 !important;
    }
    .hs-gads-card-conv-main {
        display: flex !important;
        align-items: baseline !important;
        gap: 8px !important;
    }
    .hs-gads-card-conversions .ga-metric-label {
        margin: 0 !important;
    }
    .hs-gads-card-conversions .ga-metric-value {
        margin: 0 !important;
        font-size: 1.25rem !important;
        color: #059669 !important;
    }
    .hs-gads-card-conversions .ga-metric-hint {
        margin: 0 !important;
        font-size: 10px !important;
        color: #047857 !important;
        font-weight: 600 !important;
    }
    .hs-gads-secondary-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 6px 8px !important;
        gap: 5px !important;
        margin-bottom: 8px !important;
    }
    .hs-gads-sec-items {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 0 !important;
    }
    .hs-gads-sec-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        flex: 1 !important;
        padding: 1px 4px !important;
    }
    .hs-gads-sec-lbl {
        font-size: 9.5px !important;
        color: #64748b !important;
        text-transform: uppercase !important;
        font-weight: 600 !important;
        letter-spacing: 0.2px !important;
    }
    .hs-gads-sec-val {
        font-size: 11.5px !important;
        color: #0f172a !important;
        font-weight: 700 !important;
        margin-top: 1px !important;
    }
    .hs-gads-sec-divider {
        width: 1px !important;
        height: 18px !important;
        background: #e2e8f0 !important;
    }
    .hs-gads-sec-live {
        font-size: 9.5px !important;
        color: #64748b !important;
        text-align: center !important;
        justify-content: center !important;
        border-top: 1px dashed #e2e8f0 !important;
        padding-top: 3px !important;
        margin-top: 1px !important;
    }
    .hs-gads-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        padding-top: 8px !important;
        text-align: center !important;
    }
    .hs-gads-footer .ga-summary-period {
        justify-content: center !important;
        font-size: 11px !important;
    }
    .hs-gads-footer-link {
        width: 100% !important;
        justify-content: center !important;
        font-size: 12px !important;
        padding: 4px 0 !important;
    }
}



