.flow-bloco-insights {
    --flow-primary-color: #515147;
    --flow-card-color: #242424;
    --flow-text-color: #ffffff;
    --flow-text-secondary: rgba(255, 255, 255, 0.7);
    --flow-border-radius: 5px;
    --flow-transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    color: var(--flow-text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.flow-bloco-insights .cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.flow-bloco-insights .card {
    background-color: var(--flow-card-color);
    border-radius: var(--flow-border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--flow-transition);
    height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.flow-bloco-insights .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.flow-bloco-insights .card-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 300 !important;
    font-family: Work Sans, sans-serif;
    color: #fff !important;
    letter-spacing: 0.5px;
}

.flow-bloco-insights .card-icon {
    font-size: 22px !important;
    color: #ffffff !important;
}

.flow-bloco-insights .card-value {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.flow-bloco-insights .card-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.flow-bloco-insights .card-change span {
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 300 !important;
    font-family: Work Sans, sans-serif;
    letter-spacing: 0.5px;
    color: var(--flow-text-secondary);
}

.flow-bloco-insights .cards-grid-4.hero .card {
    height: 380px;
}

.flow-bloco-insights .card-video-cell {
    border-radius: var(--flow-border-radius);
    overflow: hidden;
    height: 380px;
}

.flow-bloco-insights .card-video-cell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.flow-bloco-insights .section-label {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 300 !important;
    font-family: Work Sans, sans-serif;
    color: var(--flow-text-secondary) !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    margin-top: 50px;
}

.flow-bloco-insights .funnel-section {
    max-width: 100%;
    margin: 10px 0 30px;
}

.flow-bloco-insights .funnel-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--flow-card-color);
    border-radius: var(--flow-border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.flow-bloco-insights .funnel-step {
    flex: 1;
    padding: 20px 14px;
    text-align: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.flow-bloco-insights .funnel-step:last-child {
    border-right: none;
}

.flow-bloco-insights .funnel-step-label {
    font-family: Work Sans, sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: var(--flow-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.flow-bloco-insights .funnel-step-value {
    font-family: Work Sans, sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #fff;
    margin-bottom: 6px;
}

.flow-bloco-insights .funnel-step-bar {
    height: 4px;
    border-radius: 2px;
    margin: 0 auto 8px;
    background: var(--flow-primary-color);
}

.flow-bloco-insights .funnel-step-pct {
    font-family: Work Sans, sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: var(--flow-text-secondary);
}

.flow-bloco-insights .funnel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 18px;
    padding: 0 2px;
    flex-shrink: 0;
}

.flow-bloco-insights .cards-grid-4 .ph-thin.ph-currency-dollar:before { content: "\e1ac"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-eye:before { content: "\e220"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-chart-line-up:before { content: "\e130"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-target:before { content: "\e466"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-cursor-click:before { content: "\e1b2"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-percent:before { content: "\e3b6"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-coins:before { content: "\e172"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-users:before { content: "\e4d4"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-megaphone:before { content: "\e310"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-arrows-clockwise:before { content: "\e08e"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-chart-bar:before { content: "\e12a"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-calendar-dots:before { content: "\e7b4"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-shopping-cart:before { content: "\e42b"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-shopping-bag:before { content: "\e429"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-receipt:before { content: "\e3da"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-credit-card:before { content: "\e19c"; font-size: 20px; color: #fff; }
.flow-bloco-insights .cards-grid-4 .ph-thin.ph-wallet:before { content: "\e4e2"; font-size: 20px; color: #fff; }

@media (max-width: 979px) {
    .flow-bloco-insights .cards-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .flow-bloco-insights .card {
        height: 150px;
        padding: 18px;
    }

    .flow-bloco-insights .card-value {
        font-size: 22px;
    }

    .flow-bloco-insights .card-video-cell {
        grid-column: 1 / -1;
        height: auto;
        max-height: 400px;
    }

    .flow-bloco-insights .cards-grid-4.hero .card {
        height: 150px;
    }

    .flow-bloco-insights .section-label {
        text-align: center;
    }

    .flow-bloco-insights .funnel-wrap {
        flex-direction: column;
    }

    .flow-bloco-insights .funnel-step {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        padding: 16px 14px;
    }

    .flow-bloco-insights .funnel-step:last-child {
        border-bottom: none;
    }

    .flow-bloco-insights .funnel-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }
}

@media (max-width: 979px) {
    .flow-bloco-insights .cards-grid-4 {
        display: block;
    }

    .flow-bloco-insights .card {
        margin: 20px 0;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) {
    .flow-bloco-insights .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

/* Imagem do hero grid (plugin usava video) */
.flow-bloco-insights .card-video-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== Slide-in Insights ===== */
.flow-insights-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 90% !important;
  max-width: none;
  min-width: 0;
  z-index: 460;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition:
    transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0.45s;
  will-change: transform;
  overflow: auto;
  touch-action: manipulation;
  overscroll-behavior: contain;
  pointer-events: none;
  visibility: hidden;
}

.flow-insights-drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
  transition:
    transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0s;
}

.flow-insights-drawer-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 20px;
  background: #000;
}

.flow-insights-drawer-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.flow-insights-drawer-close img {
  display: block;
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.flow-insights-drawer-body {
  padding: 8px clamp(20px, 3vw, 48px) 56px;
  box-sizing: border-box;
}

.flow-insights-drawer-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 24px;
}

.flow-insights-drawer-text {
  font-family: var(--font-body, sans-serif);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 14px;
  max-width: 72ch;
}

.flow-insights-drawer-text--label {
  margin-top: 28px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.75);
}

/* Mobile: abre de baixo para cima (bottom sheet) */
@media (max-width: 900px) {
  .flow-insights-drawer {
    inset: auto 0 0 0;
    width: 100% !important;
    height: 90%;
    max-height: 90%;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .flow-insights-drawer.is-open {
    transform: translateY(0);
  }

  .flow-insights-drawer-top {
    border-radius: 20px 20px 0 0;
    padding: 12px 16px 4px;
  }

  .flow-insights-drawer-body {
    padding: 4px 22px 40px;
    text-align: center;
  }

  .flow-insights-drawer-title {
    font-size: 28px;
    text-align: center;
  }

  .flow-insights-drawer-text {
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}
