/* ═══════════════════════════════════════════════
   PRO — Badges, Upgrade, FAB, DAS, Goals, Limits
   ═══════════════════════════════════════════════ */

/* ─── Ícone Premium (badge/medalha SVG) ─────── */
.ico-premium {
  display: inline-block;
  width: 1.40em;
  height: 1.40em;
  vertical-align: -.40em;
  flex-shrink: 0;
}
.ico-premium-lg {
  width: 2.8rem;
  height: 2.8rem;
  vertical-align: middle;
}

/* ─── Pro Badge ─────────────────────────────── */
.pro-badge-sm {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #E8993E, #D4781F);
  color: #fff;
  padding: .1rem .4rem;
  border-radius: 4px;
  margin-left: .4rem;
  vertical-align: middle;
  line-height: 1.4;
  box-shadow: 0 0 0 0 rgba(232,153,62,.5);
  animation: badgeGlow 2.8s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,153,62,.45); }
  60%       { box-shadow: 0 0 0 4px rgba(232,153,62,0); }
}
/* shimmer rápido passando pelo badge */
.pro-badge-sm::after {
  content: '';
  position: absolute;
  top: 0; left: -60%; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-15deg);
  animation: shimmerSlide 2.8s ease-in-out infinite;
  animation-delay: .4s;
}
.pro-badge-sm.hidden { display: none; }

/* ─── Trial Banner ──────────────────────────── */
@keyframes trialGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27,140,90,0), 0 2px 12px rgba(0,0,0,.18); }
  50%       { box-shadow: 0 0 18px 2px rgba(27,140,90,.18), 0 2px 12px rgba(0,0,0,.18); }
}
@keyframes shimmerSlide {
  0%   { transform: translateX(-100%) skewX(-12deg); }
  100% { transform: translateX(250%) skewX(-12deg); }
}
@keyframes starFloat {
  0%, 100% { opacity: .55; transform: translateY(0) scale(1); }
  50%       { opacity: 1;   transform: translateY(-3px) scale(1.15); }
}
@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27,140,90,.45); }
  60%       { box-shadow: 0 0 0 5px rgba(27,140,90,0); }
}

.trial-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1.1rem;
  border-radius: 13px;
  margin-bottom: 1rem;
  animation: fadeUp .4s ease-out both;
  border: 1px solid transparent;
  overflow: hidden;
}

/* faixa de brilho diagonal percorre o banner a cada 4s */
.trial-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.045) 50%, transparent 100%);
  transform: translateX(-100%) skewX(-12deg);
  pointer-events: none;
}
.trial-banner.trial::before {
  animation: shimmerSlide 3.5s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* estrelinhas decorativas (desktop) */
.trial-banner::after {
  content: '✦ ✦ ✦';
  position: absolute;
  right: 6.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .55rem;
  letter-spacing: 4px;
  color: rgba(110,232,162,.28);
  pointer-events: none;
  animation: starFloat 2.8s ease-in-out infinite;
}

.trial-banner.trial {
  background: linear-gradient(125deg, #0c1f14 0%, #12281b 45%, #0f1e16 100%);
  border-color: rgba(27,140,90,.38);
  animation: fadeUp .4s ease-out both, trialGlow 3.5s ease-in-out infinite;
  animation-delay: 0s, 1.5s;
}
.trial-banner.expired {
  background: linear-gradient(135deg, #1e1a12 0%, #2a2010 100%);
  border-color: rgba(232,153,62,.3);
}
.trial-banner.upsell {
  background: linear-gradient(135deg, #1e1212 0%, #2a1510 100%);
  border-color: rgba(217,75,61,.3);
}
/* Último dia — urgência máxima */
@keyframes urgencyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,75,61,0), 0 2px 12px rgba(0,0,0,.18); }
  50%       { box-shadow: 0 0 22px 4px rgba(217,75,61,.22), 0 2px 12px rgba(0,0,0,.18); }
}
.trial-banner.urgency {
  background: linear-gradient(125deg, #1f0c0c 0%, #2d1010 45%, #1f0d0d 100%);
  border-color: rgba(217,75,61,.55);
  animation: fadeUp .4s ease-out both, urgencyPulse 2.2s ease-in-out infinite;
  animation-delay: 0s, 1s;
}
/* sem estrelinhas nos estados negativos */
.trial-banner.expired::after,
.trial-banner.upsell::after,
.trial-banner.urgency::after { display: none; }
.trial-banner.expired::before,
.trial-banner.upsell::before,
.trial-banner.urgency::before { display: none; }

.trial-banner-left {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.trial-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .22rem .6rem;
  border-radius: 20px;
  white-space: nowrap;
  background: rgba(27,140,90,.2);
  color: #7ef0aa;
  border: 1px solid rgba(27,140,90,.45);
  animation: pillPulse 2.8s ease-in-out infinite;
}
/* dot vivo dentro da pill */
.trial-banner-pill::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px rgba(74,222,128,.7);
  flex-shrink: 0;
  animation: dotPulseBanner 1.8s ease-in-out infinite;
}
@keyframes dotPulseBanner {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.75); }
}
.trial-banner-pill.expired {
  background: rgba(232,153,62,.2);
  color: #f0b96a;
  border-color: rgba(232,153,62,.35);
  animation: none;
}
.trial-banner-pill.expired::before { display: none; }
.trial-banner-pill.danger {
  background: rgba(217,75,61,.2);
  color: #f07a72;
  border-color: rgba(217,75,61,.35);
  animation: none;
}
.trial-banner-pill.danger::before { display: none; }

.trial-banner-text {
  font-size: .8rem;
  font-weight: 400;
  color: rgba(255,255,255,.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trial-banner-text strong { font-weight: 600; color: rgba(255,255,255,.9); }
.trial-banner-pill-sub { display: none; font-weight: 400; font-size: .68rem; }
.trial-banner-pill-sub strong { font-weight: 700; }

.trial-banner-btn {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 700;
  padding: .38rem .95rem;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #c4720a 0%, #e8993e 60%, #f5b668 100%);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  box-shadow: 0 2px 10px rgba(232,153,62,.35);
  z-index: 1;
}
/* shimmer no botão */
.trial-banner-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -60%; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: skewX(-15deg);
  animation: shimmerSlide 2.4s ease-in-out infinite;
  animation-delay: .6s;
}
.trial-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(232,153,62,.5);
  filter: brightness(1.08);
}
.trial-banner-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(232,153,62,.3);
}

/* Mobile/desktop label switching */
.pill-label-mob { display: none; }
.pill-label-desk { display: inline; }
.pill-sub-mob { display: none; }
.pill-sub-desk { display: inline; }
.trial-banner-mob-title { display: none; }
.trial-banner-mob-sub   { display: none; }

/* ─── Trial Banner Mobile ────────────────────── */
@media (max-width: 480px) {
  .trial-banner {
    border-radius: 14px;
    padding: .8rem 1rem;
    gap: .65rem;
  }
  .trial-banner.trial {
    background: linear-gradient(125deg, #0c1f14 0%, #10251a 100%);
    border: 1.5px solid rgba(27,140,90,.5);
  }
  .trial-banner.expired  { background: #201506; border: 1.5px solid #6b3f00; }
  .trial-banner.upsell   { background: #1f0808; border: 1.5px solid #6b1111; }
  .trial-banner.urgency  { background: #200808; border: 1.5px solid rgba(217,75,61,.7); }

  /* esconde elementos desktop */
  .trial-banner-text { display: none; }
  .trial-banner-pill { display: none; }
  .trial-banner-pill-sub { display: none; }
  .trial-banner::after { display: none; } /* sem estrelinhas no mobile */
  .pill-label-mob { display: inline; }
  .pill-label-desk { display: none; }

  /* dot animado lateral */
  .trial-banner-left {
    gap: .65rem;
    align-items: center;
  }
  .trial-banner-left::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .trial-banner.trial   .trial-banner-left::before {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,.7);
    animation: dotPulse 1.8s infinite;
  }
  .trial-banner.expired  .trial-banner-left::before { background: #f59e0b; box-shadow: none; animation: none; }
  .trial-banner.urgency  .trial-banner-left::before {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239,68,68,.8);
    animation: dotPulse 1.2s infinite;
  }
  .trial-banner.upsell  .trial-banner-left::before {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239,68,68,.7);
    animation: dotPulse 1.8s infinite;
  }

  @keyframes dotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
    70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
  }

  /* textos mobile */
  .trial-banner-mob-title {
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  .trial-banner-mob-sub {
    font-size: .68rem;
    color: rgba(255,255,255,.4);
    margin-top: .05rem;
    white-space: normal;
    line-height: 1.35;
    display: block;
  }

  /* quando o sub quebra linha, alinha dot ao topo */
  .trial-banner.urgency .trial-banner-left,
  .trial-banner.expired .trial-banner-left {
    align-items: flex-start;
  }
  .trial-banner.urgency .trial-banner-left::before,
  .trial-banner.expired .trial-banner-left::before {
    margin-top: .22rem;
  }

  /* botão mobile — herda o laranja premium do desktop, apenas tamanho ajustado */
  .trial-banner-btn { font-size: .72rem; padding: .38rem 1rem; flex-shrink: 0; }
  .trial-banner.upsell .trial-banner-btn {
    background: linear-gradient(135deg, #b02020, #d94b3d);
    box-shadow: 0 2px 10px rgba(217,75,61,.35);
  }
}

/* ─── TX Limit Bar ──────────────────────────── */
.tx-limit-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .55rem 1rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.tx-limit-info {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-sec);
  white-space: nowrap;
}
.tx-limit-icon { font-size: .9rem; }
.tx-limit-track {
  flex: 1;
  height: 6px;
  background: var(--border-light);
  border-radius: 6px;
  overflow: hidden;
}
.tx-limit-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--primary);
  transition: width .4s ease-out, background .3s;
}
.tx-limit-fill.warn { background: var(--accent); }
.tx-limit-fill.danger { background: var(--danger); }

/* ─── DAS Card ──────────────────────────────── */
.dash-extras {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: .9rem;
  margin-bottom: 1.1rem;
}
.daily-card, .goal-card {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem;
}
.daily-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; background: var(--primary-light); }
.daily-info { flex: 1; min-width: 0; }
.daily-title { font-size: .78rem; font-weight: 700; margin-bottom: .1rem; }
.daily-text  { font-size: .72rem; color: var(--text-muted); }

/* ─── DAS card ──────────────────────────────── */
.das-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem 1.1rem;
}
.das-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.das-title-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.das-icon-box {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.das-title-info {
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.das-title    { font-size: .82rem; font-weight: 700; line-height: 1.2; }
.das-subtitle { font-size: .68rem; color: var(--text-muted); }
.das-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.das-metric {
  background: var(--bg);
  border-radius: 10px;
  padding: .55rem .7rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  transition: background .3s, color .3s;
}
.das-metric-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  transition: color .3s;
}
.das-metric-lbl {
  font-size: .62rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}
/* estados dos chips */
.das-metric.accent { background: var(--accent-light); }
.das-metric.accent .das-metric-val { color: var(--accent); }
.das-metric.danger { background: var(--danger-light); }
.das-metric.danger .das-metric-val { color: var(--danger); }
.das-metric.success { background: var(--primary-light); }
.das-metric.success .das-metric-val { color: var(--primary); }

/* ─── Score de Saúde Financeira ─────────────── */
.score-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1rem 1.1rem;
}
.score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.score-title-row {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.score-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}
.score-updated {
  font-size: .65rem;
  color: var(--text-muted);
}
/* Donut */
.score-body {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.score-donut-wrap {
  position: relative;
  width: 64px; height: 64px;
  flex-shrink: 0;
}
.score-donut-svg {
  width: 64px; height: 64px;
  transform: rotate(-90deg);
}
.score-donut-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 7;
}
.score-donut-fill {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 0 169.6;
  transition: stroke-dasharray .6s ease, stroke .4s;
}
.score-donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}
.score-number {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  transition: color .4s;
}
.score-number.warn { color: var(--accent); }
.score-number.crit { color: var(--danger); }
.score-max {
  font-size: .5rem;
  color: var(--text-muted);
  font-weight: 500;
}
.score-right {
  flex: 1;
  min-width: 0;
}
.score-level {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .2rem;
  transition: color .4s;
}
.score-level.crit { color: var(--danger); }
.score-level.warn { color: var(--accent); }
.score-level.bom  { color: #5bc27a; }
.score-level.exc  { color: var(--primary); }
.score-desc {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.score-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.score-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 600;
  padding: .22rem .6rem;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
}
.score-tag svg { width: 11px; height: 11px; flex-shrink: 0; }
.score-tag.warn { background: var(--accent-light); color: #9a6220; }
.score-tag.crit { background: var(--danger-light); color: var(--danger); }
.score-tip {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  background: #EFF6FF;
  border-radius: 9px;
  padding: .55rem .7rem;
  font-size: .72rem;
  color: #1d4ed8;
  line-height: 1.45;
}
.score-tip svg { flex-shrink: 0; margin-top: .1rem; stroke: #1d4ed8; }
.score-delta {
  font-size: .7rem;
  font-weight: 600;
  color: var(--primary);
}
.das-status {
  font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 50px;
  white-space: nowrap;
}
.das-status.pending { background: var(--accent-light); color: #B07520; }
.das-status.soon { background: var(--danger-light); color: var(--danger); }
.das-status.paid { background: var(--primary-light); color: var(--primary); }

/* ─── Goal Card (Dashboard) — barra horizontal ── */
.goal-card { padding: 1rem 1.1rem; position: relative; display: flex; flex-direction: column; align-items: stretch; gap: .75rem; }
.goal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.goal-title-row {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.goal-icon-box {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.goal-badge-abs { }
.goal-progress-area { display: flex; flex-direction: column; gap: .45rem; }
.goal-values-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.goal-target { font-size: .72rem; color: var(--text-muted); }
.goal-track {
  height: 7px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.goal-track-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #2db87a);
  border-radius: 10px;
  transition: width .6s ease;
}
.goal-track-fill.done { background: linear-gradient(90deg, var(--primary), #2db87a); }
.goal-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* estilos antigos mantidos para compatibilidade mas ocultos */
.goal-ring-layout { display: none; }
.goal-ring-wrap {
  position: relative;
  width: 72px; height: 72px;
  flex-shrink: 0;
}
.goal-ring-svg {
  width: 72px; height: 72px;
  transform: rotate(-90deg);
}
.goal-ring-bg {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 7;
}
.goal-ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  transition: stroke-dashoffset .6s cubic-bezier(.4,0,.2,1), stroke .4s ease;
}
.goal-ring-fill.warn { stroke: var(--primary); }
.goal-ring-fill.done { stroke: var(--primary); }
.goal-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.goal-ring-pct {
  font-size: .95rem; font-weight: 900;
  color: var(--primary); line-height: 1;
}
.goal-ring-pct.warn { color: var(--primary); }
.goal-ring-pct.done { color: var(--primary); }
.goal-ring-lbl { font-size: .52rem; color: var(--text-muted); font-weight: 600; }

.goal-ring-info {
  display: flex; flex-direction: column; gap: .28rem; min-width: 0;
}
.goal-head {
  font-size: .82rem; font-weight: 700;
}
.goal-card > .goal-badge-abs {
  position: absolute;
  top: .85rem; right: .9rem;
}
.goal-month { font-size: .7rem; color: var(--text-muted); }
.goal-val   { font-size: 1.45rem; font-weight: 900; color: var(--primary); line-height: 1; }
.goal-val span { font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.goal-ring-pct { font-size: .72rem; font-weight: 700; color: var(--accent); }
.goal-ring-pct.ok { color: var(--primary); }
.goal-hint  { font-size: .72rem; color: var(--text-muted); }
.goal-hint.ok { color: var(--primary); font-weight: 600; }

/* ─── Goal Card lock overlay (free plan) ─────── */
/* Overlay semitransparente — conteúdo legível sobre o card embaçado */
.goal-card-lock {
  background: rgba(255, 255, 253, 0.72);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.goal-card-lock .pro-lock-content {
  padding: .75rem 1rem;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.goal-card-lock .pro-lock-content .pro-lock-icon { font-size: 1.6rem; margin-bottom: .35rem; }
.goal-card-lock .pro-lock-content h3 { font-size: .88rem; margin-bottom: .2rem; }
.goal-card-lock .pro-lock-content p  { font-size: .75rem; margin-bottom: .65rem; line-height: 1.4; }
.goal-card-lock .pro-lock-content .btn { font-size: .78rem; padding: .45rem .9rem; width: 100%; display: flex; align-items: center; justify-content: center; gap: .35rem; }

/* Embaça o conteúdo do card quando bloqueado */
.goal-card.goal-blurred .goal-header,
.goal-card.goal-blurred .goal-progress-area {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

/* ═══════════════════════════════════════════════
   GOALS PAGE — PREMIUM REDESIGN
   ═══════════════════════════════════════════════ */

/* ─── Page Root ─────────────────────────────── */
#pgGoals { position: relative; }

/* ─── Page Header ───────────────────────────── */
.gp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
  margin-bottom: 1.25rem;
}
.gp-header-left {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.gp-pro-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  background: linear-gradient(135deg, var(--accent), #c97b2a);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  border-radius: 6px;
}
.gp-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
.gp-header-month {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--border-light);
  padding: .3rem .75rem;
  border-radius: 50px;
}

/* ─── Grid Layout ───────────────────────────── */
.goals-content { position: relative; padding: 0 1.5rem 1.5rem; }
.gp-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
  align-items: start;
}

/* ─── Hero Card ─────────────────────────────── */
.gp-hero-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--tr);
}
.gp-hero-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.gp-hero-value {
  font-family: 'Outfit', 'Sora', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .45rem;
}
.gp-hero-sub {
  font-size: .85rem;
  color: var(--text-sec);
  margin-bottom: 1.75rem;
  min-height: 1.2em;
}

/* ─── Progress Bar ──────────────────────────── */
.gp-progress-wrap { margin-bottom: 1.5rem; }
.gp-progress-track {
  position: relative;
  height: 10px;
  background: var(--border-light);
  border-radius: 99px;
  overflow: hidden;
}
.gp-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  transition: width .6s cubic-bezier(.4,0,.2,1);
  max-width: 100%;
}
.gp-progress-fill.gp-fill-done {
  background: linear-gradient(90deg, #1B8C5A, #2ecc71);
}
.gp-progress-fill.gp-fill-danger {
  background: linear-gradient(90deg, #b83226, var(--danger));
}
/* marker hidden — labels below the bar are enough */
.gp-progress-marker { display: none !important; }
.gp-marker-line { display: none; }
.gp-marker-label { display: none; }

.gp-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
}
.gp-progress-zero {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.gp-progress-pct {
  font-size: .75rem;
  font-weight: 800;
  color: var(--primary);
}
.gp-progress-target {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-sec);
}

/* ─── KPI Row ───────────────────────────────── */
.gp-kpi-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.gp-kpi {
  flex: 1;
  padding: .9rem 1.1rem;
}
.gp-kpi-divider {
  width: 1px;
  background: var(--border-light);
  flex-shrink: 0;
}
.gp-kpi-label {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .3rem;
}
.gp-kpi-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}

/* ─── Alert ─────────────────────────────────── */
.gp-alert {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  padding: .75rem 1rem;
  background: var(--accent-light);
  border: 1px solid rgba(232,153,62,.25);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  color: var(--text-sec);
  line-height: 1.5;
}

/* ─── Input Card ────────────────────────────── */
.gp-input-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  margin-top: .75rem;
}
.gp-input-header { margin-bottom: .9rem; }
.gp-input-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}
.gp-input-desc {
  font-size: .75rem;
  color: var(--text-muted);
}
.gp-input-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}
.gp-input-row:focus-within { border-color: var(--primary); }
.gp-input-prefix {
  display: flex;
  align-items: center;
  padding: 0 .85rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border-right: 1.5px solid var(--border);
  flex-shrink: 0;
  transition: border-color .2s;
}
.gp-input-row:focus-within .gp-input-prefix { border-color: var(--primary); }
.gp-input-field {
  flex: 1;
  min-width: 0;
  padding: .7rem .85rem;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
}
.gp-save-btn {
  flex-shrink: 0;
  padding: 0 1.3rem;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--tr), transform .15s;
  white-space: nowrap;
}
.gp-save-btn:hover { background: var(--primary-dark); }
.gp-save-btn:active { transform: scale(.97); }

/* ─── Category Card ─────────────────────────── */
.gp-cat-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  margin-top: .75rem;
}
.gp-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .9rem;
}
.gp-cat-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
}
.gp-cat-add-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .3rem .75rem;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-sec);
  cursor: pointer;
  transition: border-color var(--tr), color var(--tr);
}
.gp-cat-add-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ─── History Card ──────────────────────────── */
.gp-hist-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  height: 100%;
}
.gp-hist-header { margin-bottom: 1.25rem; }
.gp-hist-title {
  font-size: .92rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .75rem;
}
.gp-hist-chips {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}
.gp-hist-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gp-hist-item {
  padding: .7rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--tr);
}
.gp-hist-item:last-child { border-bottom: none; }
.gp-hist-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .4rem;
}
.gp-hist-month-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}
.gp-hist-pct {
  font-size: .82rem;
  font-weight: 800;
  min-width: 42px;
  text-align: right;
}
.gp-hist-pct--ok { color: var(--primary); }
.gp-hist-pct--partial { color: var(--accent); }
.gp-hist-pct--miss { color: var(--danger); }
.gp-hist-bar {
  height: 5px;
  background: var(--border-light);
  border-radius: 99px;
  overflow: hidden;
}
.gp-hist-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.gp-hist-fill--ok { background: var(--primary); }
.gp-hist-fill--partial { background: var(--accent); }
.gp-hist-fill--miss { background: var(--danger); }

/* Empty state */
.gp-hist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
  gap: .6rem;
}
.gp-hist-empty-icon { font-size: 1.75rem; opacity: .35; }
.gp-hist-empty-text { font-size: .8rem; color: var(--text-muted); font-weight: 600; }

/* ─── Chips (history chips) ─────────────────── */
.goal-hist-chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.goal-chip { display: inline-flex; align-items: center; padding: .25rem .65rem; border-radius: 50px; font-size: .7rem; font-weight: 700; }
.goal-chip--ok { background: var(--primary-light); color: var(--primary-dark); }
.goal-chip--partial { background: var(--accent-light); color: #9a6220; }
.goal-chip--miss { background: var(--danger-light); color: var(--danger); }

/* ─── Category budget rows (shared) ─────────── */
.goal-cat-list { display: flex; flex-direction: column; gap: .5rem; }
.goal-cat-row { display: flex; align-items: center; gap: .6rem; }
.goal-cat-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.goal-cat-name { font-size: .82rem; font-weight: 600; width: 90px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-cat-bar { flex: 1; height: 7px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.goal-cat-fill { height: 100%; border-radius: 4px; transition: width .4s; }
.goal-cat-fill--over { animation: overPulse 1.2s ease-in-out infinite; }
@keyframes overPulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.goal-cat-pct { font-size: .78rem; font-weight: 700; width: 38px; text-align: right; }
.goal-cat-del { background: none; border: none; color: var(--text-muted); font-size: .7rem; cursor: pointer; padding: .15rem .3rem; border-radius: 4px; transition: color var(--tr); flex-shrink: 0; }
.goal-cat-del:hover { color: var(--danger); }

/* ─── Legacy goal-history (backward compat) ─── */
.goal-history { display: flex; flex-direction: column; gap: .5rem; }
.goal-hist-row { display: flex; align-items: center; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--border-light); }
.goal-hist-row:last-child { border-bottom: none; }
.goal-hist-month { font-size: .82rem; font-weight: 600; width: 80px; }
.goal-hist-bar-legacy { flex: 1; height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.goal-hist-fill-legacy { height: 100%; border-radius: 4px; background: var(--primary); transition: width .4s; }
.goal-hist-val { font-size: .78rem; font-weight: 700; width: 42px; text-align: right; }
.goal-hist-status { width: 20px; text-align: center; font-size: .78rem; font-weight: 800; }
.goal-hist-ok { color: var(--primary); }
.goal-hist-partial { color: var(--accent); }
.goal-hist-miss { color: var(--danger); }

/* ─── Responsive: Tablet (900px) ────────────── */
@media (max-width: 900px) {
  .gp-header { padding: 1rem 1rem 0; margin-bottom: 1rem; }
  .goals-content { padding: 0 1rem 1.5rem; }
  .gp-grid {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .gp-col-hist { order: 4; }
  .gp-hero-value { font-size: 2.8rem; }
  .gp-hero-card { padding: 1.5rem 1.25rem 1.25rem; }
  .gp-hist-card { height: auto; }
}

/* ─── Responsive: Mobile (480px) ────────────── */
@media (max-width: 480px) {
  .gp-header { padding: .85rem .85rem 0; margin-bottom: .85rem; }
  .goals-content { padding: 0 .85rem 1.25rem; }
  .gp-grid { gap: .7rem; }
  .gp-hero-card { padding: 1.25rem 1rem 1rem; }
  .gp-hero-label { font-size: .6rem; }
  .gp-hero-value { font-size: 2.25rem; }
  .gp-hero-sub { font-size: .8rem; margin-bottom: 1.25rem; }
  .gp-progress-wrap { margin-bottom: 1.1rem; }
  /* Input empilhado em telas bem pequenas */
  .gp-input-row {
    flex-direction: column;
    border-radius: var(--radius-sm);
  }
  .gp-input-prefix {
    padding: .5rem .85rem;
    border-right: none;
    border-bottom: 1.5px solid var(--border);
    border-radius: 0;
    font-size: .8rem;
  }
  .gp-input-row:focus-within .gp-input-prefix { border-color: var(--primary); }
  .gp-input-field { padding: .65rem .85rem; font-size: .9rem; }
  .gp-save-btn {
    padding: .7rem 1rem;
    font-size: .85rem;
    text-align: center;
    border-radius: 0;
  }
  .gp-input-card,
  .gp-cat-card { padding: 1rem; margin-top: .6rem; }
  .gp-hist-card { padding: 1rem; }
  .gp-kpi-val { font-size: .95rem; }
  .gp-title { font-size: .95rem; }
  .gp-header-month { font-size: .72rem; padding: .25rem .6rem; }
}

/* ─── Pro Lock Overlay ──────────────────────── */
.pro-lock-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 240, .92);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  z-index: 10;
  align-items: center;
  justify-content: center;
}
.pro-lock-overlay.show { display: flex; }
.pro-lock-content {
  text-align: center;
  max-width: 300px;
  padding: 2rem;
}
.pro-lock-content .pro-lock-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.pro-lock-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.pro-lock-content p { font-size: .85rem; color: var(--text-sec); margin-bottom: 1.2rem; line-height: 1.5; }

/* ─── Pro Lock Inline ───────────────────────── */
.pro-lock-inline {
  display: none;
  margin-top: .8rem;
  padding: .5rem .7rem;
  background: var(--accent-light);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 600;
  color: #B07520;
  text-align: center;
}
.pro-lock-inline.show { display: block; }
.pro-lock-inline a { color: var(--primary); text-decoration: none; font-weight: 700; }

/* ─── Upgrade Modal ─────────────────────────── */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 6px rgba(232,153,62,.5)); }
  50%       { transform: translateY(-5px) scale(1.08); filter: drop-shadow(0 0 14px rgba(232,153,62,.85)); }
}
@keyframes headerGlow {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(232,153,62,0), 0 4px 24px rgba(0,0,0,.08); }
  50%       { box-shadow: inset 0 0 30px 0 rgba(232,153,62,.08), 0 4px 24px rgba(0,0,0,.08); }
}
@keyframes featureIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.upgrade-modal { max-width: 400px; text-align: center; padding: 0; overflow: hidden; }

.upgrade-header {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 2rem 1.5rem 1.6rem;
  background: linear-gradient(145deg, #0f1e13 0%, #1a2e1e 50%, #0c1a10 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  animation: headerGlow 4s ease-in-out infinite;
}
/* shimmer no header */
.upgrade-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  transform: translateX(-100%) skewX(-12deg);
  animation: shimmerSlide 3.8s ease-in-out infinite;
  animation-delay: 1s;
  pointer-events: none;
}
/* estrelinhas decorativas */
.upgrade-header::after {
  content: '✦  ✦  ✦';
  position: absolute;
  bottom: .75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .5rem;
  letter-spacing: 6px;
  color: rgba(232,153,62,.3);
  pointer-events: none;
  animation: starFloat 3s ease-in-out infinite;
}

.upgrade-icon {
  font-size: 2.5rem;
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: iconFloat 2.6s ease-in-out infinite;
}
.upgrade-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  margin-bottom: .3rem;
  color: #fff;
}
.upgrade-header p { font-size: .85rem; color: rgba(255,255,255,.5); }

/* corpo do modal — padding lateral uniforme */
.upgrade-modal > ul,
.upgrade-modal > div,
.upgrade-modal > button { padding-left: 1.5rem; padding-right: 1.5rem; }
/* reset do padding base herdado do .modal */
.upgrade-modal { padding: 0 !important; }

.upgrade-features {
  list-style: none;
  text-align: left;
  margin: 1.2rem 0;
  padding: 0 1.5rem;
}
.upgrade-features li {
  padding: .42rem 0;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid var(--border-light);
  opacity: 0;
  animation: featureIn .35s ease-out forwards;
}
.upgrade-features li:nth-child(1) { animation-delay: .05s; }
.upgrade-features li:nth-child(2) { animation-delay: .10s; }
.upgrade-features li:nth-child(3) { animation-delay: .15s; }
.upgrade-features li:nth-child(4) { animation-delay: .20s; }
.upgrade-features li:nth-child(5) { animation-delay: .25s; }
.upgrade-features li:nth-child(6) { animation-delay: .30s; }
.upgrade-features li:nth-child(7) { animation-delay: .35s; }
.upgrade-features li:last-child { border-bottom: none; }

.upgrade-pricing { margin: 0 1.5rem 1rem; }
.upgrade-price {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}
.upgrade-price span { font-size: .85rem; font-weight: 400; color: var(--text-muted); }
.upgrade-annual { font-size: .78rem; color: var(--text-muted); }
.upgrade-divider { display:flex;align-items:center;gap:.6rem;font-size:.75rem;color:var(--text-muted);margin:.6rem 1.5rem; }
.upgrade-divider::before,.upgrade-divider::after { content:'';flex:1;height:1px;background:var(--border-light); }

/* botão Assinar Pro — premium laranja com shimmer */
.upgrade-modal .btn-p[onclick*="openCheckout"] {
  position: relative;
  overflow: hidden;
  margin: 0 1.5rem;
  width: calc(100% - 3rem);
  background: linear-gradient(135deg, #c4720a 0%, #e8993e 60%, #f5b668 100%);
  box-shadow: 0 3px 14px rgba(232,153,62,.4);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.upgrade-modal .btn-p[onclick*="openCheckout"]::before {
  content: '';
  position: absolute;
  top: 0; left: -60%; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-15deg);
  animation: shimmerSlide 2.4s ease-in-out infinite;
  animation-delay: .5s;
}
.upgrade-modal .btn-p[onclick*="openCheckout"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(232,153,62,.55);
  filter: brightness(1.08);
}
.upgrade-modal .m-cancel { display: block; margin: .5rem 1.5rem 1.5rem; width: calc(100% - 3rem); }

/* ─── FAB ───────────────────────────────────── */
.fab {
  display: none;
  position: fixed;
  bottom: 1.3rem;
  right: 1.3rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 300;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(27, 140, 90, .35);
  z-index: 110;
  transition: all .2s;
  line-height: 1;
}
.fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(27, 140, 90, .45); }
.fab:active { transform: scale(.95); }
.fab.qa-open { transform: rotate(45deg); background: var(--primary-dark); }

/* ─── Quick Add Card ─────────────────────────── */
.qa-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}
.qa-backdrop.open { display: block; }

.qa-card {
  display: none;
  position: fixed;
  bottom: 5.2rem;
  right: 1.3rem;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  padding: 1rem;
  z-index: 105;
  animation: qaIn .2s ease-out;
  border: 1px solid var(--border-light);
}
.qa-card.open { display: block; }

@keyframes qaIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.qa-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
}
.qa-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .85rem;
  cursor: pointer;
  padding: .1rem .3rem;
  border-radius: 6px;
  line-height: 1;
}
.qa-close:hover { background: var(--bg); color: var(--text); }

.qa-type-row {
  display: flex;
  gap: .4rem;
  margin-bottom: .75rem;
}
.qa-type-btn {
  flex: 1;
  padding: .45rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.qa-type-btn.active.qa-inc { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.qa-type-btn.active.qa-exp { border-color: var(--danger); background: var(--danger-light); color: var(--danger); }
.qa-type-btn:not(.active) { color: var(--text-muted); }

.qa-fields {
  display: flex;
  gap: .5rem;
  margin-bottom: .7rem;
}
.qa-input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem .7rem;
  font-family: inherit;
  font-size: .85rem;
  outline: none;
  transition: border-color .15s;
  background: var(--bg);
}
.qa-input:focus { border-color: var(--primary); background: #fff; }
.qa-desc { flex: 1.6; min-width: 0; }
.qa-val  { flex: 1; min-width: 0; }

.qa-cats-wrap { margin-bottom: .75rem; }
.qa-cats-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: .4rem;
}
.qa-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.qa-cat-btn {
  padding: .3rem .7rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-sec);
  cursor: pointer;
  transition: all .15s;
}
.qa-cat-btn:hover,
.qa-cat-btn.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.qa-cat-btn.selected-exp { border-color: var(--danger); background: var(--danger-light); color: var(--danger); }

.qa-save-btn {
  width: 100%;
  padding: .65rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.qa-save-btn:hover { background: var(--primary-dark); }

/* Mobile — card ocupa mais largura */
@media (max-width: 480px) {
  .qa-card {
    right: .8rem;
    left: .8rem;
    width: auto;
    bottom: 4.8rem;
  }
}

/* ─── Attach area ───────────────────────────── */
.attach-area { position: relative; }
.attach-placeholder {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.attach-placeholder:hover { border-color: var(--primary); color: var(--primary); }
.attach-placeholder.locked {
  opacity: .5; cursor: not-allowed;
  background: var(--bg);
}
.attach-preview {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.attach-preview img {
  width: 100%; max-height: 120px; object-fit: cover; border-radius: var(--radius-sm);
}
.attach-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  border: none; cursor: pointer; font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Sidebar trial ─────────────────────────── */
.sidebar-trial {
  font-size: .68rem;
  color: rgba(255,255,255,.55);
  margin-top: .2rem;
}

/* ─── Year selector ─────────────────────────── */
.year-sel {
  border: none; background: none;
  font-family: inherit; font-size: .8rem;
  font-weight: 600; color: var(--text);
  cursor: pointer; outline: none;
  padding: 0 .2rem;
}

/* ─── Responsive extras ─────────────────────── */
.fab { align-items: center; justify-content: center; }

@media(max-width:900px) {
  .dash-extras { grid-template-columns: 1fr; }
  .goal-kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:480px) {
  .dash-extras { gap: .6rem; }
  .goals-input-row { flex-direction: column; gap: .5rem; }
  .goals-input-field { border-right: 1.5px solid var(--border); border-radius: var(--radius-sm); }
  .goals-input-field:focus { border-color: var(--primary); }
  .goals-save-btn { border-radius: var(--radius-sm); padding: .65rem 1rem; width: 100%; justify-content: center; }
  .goal-kpi-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .goal-kpi-val { font-size: .92rem; }
  .goal-cat-name { width: 72px; font-size: .78rem; }
  .goal-hist-month { width: 64px; font-size: .78rem; }
  .goal-ring-wrap { width: 64px; height: 64px; }
  .goal-ring-svg  { width: 64px; height: 64px; }
  .goal-ring-pct  { font-size: .85rem; }
  .goal-val       { font-size: .9rem; }
}

/* ─── DAS emit button ────────────────────────── */
.das-emit-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .6rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  line-height: 1;
  transition: background var(--tr), transform var(--tr);
}
.das-emit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.das-emit-btn.danger { background: var(--danger); }
.das-emit-btn.danger:hover { background: #b83228; }

/* ─── DAS tutorial modal ─────────────────────── */
.das-modal {
  max-width: 420px;
}
.das-modal-header {
  text-align: center;
  margin-bottom: 1.3rem;
}
.das-modal-icon {
  font-size: 2.6rem;
  margin-bottom: .5rem;
}
.das-modal-header h2 {
  font-size: 1.2rem;
  margin-bottom: .3rem;
  color: var(--text);
}
.das-modal-header p {
  font-size: .88rem;
  color: var(--text-sec);
}
.das-modal-options {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: .8rem;
}
.das-option-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--tr), background var(--tr), transform var(--tr);
}
.das-option-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}
.das-opt-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
}
.das-opt-info {
  flex: 1;
}
.das-opt-title {
  font-weight: 700;
  font-size: .93rem;
  margin-bottom: 2px;
  color: var(--text);
}
.das-opt-desc {
  font-size: .8rem;
  color: var(--text-sec);
  line-height: 1.4;
}
.das-opt-arrow {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.das-paid-hint {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin: .75rem 0 0;
}
.das-paid-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--tr);
}
.das-paid-btn:hover {
  background: #15803d;
}

/* ─── Limit projection ───────────────────────── */
.limit-projection {
  margin-top: .7rem;
  font-size: .83rem;
  padding: .55rem .85rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  line-height: 1.5;
}
.limit-projection.warn {
  border-left-color: var(--accent);
  background: var(--accent-light);
  color: #7a4e10;
}
.limit-projection.danger {
  border-left-color: var(--danger);
  background: var(--danger-light);
  color: #8c1a10;
}
.limit-projection.neutral {
  border-left-color: var(--accent);
  background: var(--accent-light);
  color: #7a4e10;
}

/* ─── Trial Expired Wall ────────────────────── */
@keyframes wallIn {
  from { opacity:0; transform:scale(.96) translateY(12px); }
  to   { opacity:1; transform:scale(1)   translateY(0); }
}
.trial-wall {
  position: fixed;
  inset: 0;
  background: rgba(10,26,15,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.trial-wall-box {
  background: #fff;
  border-radius: 20px;
  padding: 2.2rem 2rem 1.8rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  animation: wallIn .4s cubic-bezier(.22,.68,0,1.2) both;
}
.trial-wall-icon {
  font-size: 2.8rem;
  margin-bottom: .8rem;
  line-height: 1;
}
.trial-wall-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .45rem;
}
.trial-wall-sub {
  font-size: .82rem;
  color: var(--text-sec);
  margin-bottom: 1.2rem;
}
.trial-wall-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin-bottom: 1.2rem;
}
.trial-wall-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .7rem .4rem;
}
.trial-wall-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .2rem;
}
.trial-wall-stat-lbl {
  font-size: .66rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trial-wall-warning {
  font-size: .78rem;
  color: var(--text-sec);
  background: var(--accent-light);
  border: 1px solid rgba(232,153,62,.2);
  border-radius: 10px;
  padding: .65rem .9rem;
  margin-bottom: 1.2rem;
  text-align: left;
  line-height: 1.5;
}
.trial-wall-warning strong { color: var(--accent); }
.trial-wall-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  padding: .85rem 1.2rem;
  background: linear-gradient(135deg, #126942, #1B8C5A);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(27,140,90,.3);
  transition: transform .15s, box-shadow .15s;
  margin-bottom: .75rem;
}
.trial-wall-cta:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(27,140,90,.4); }
.trial-wall-cta:active { transform:translateY(0); }
.trial-wall-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .78rem;
  cursor: pointer;
  padding: .3rem;
  transition: color .15s;
}
.trial-wall-skip:hover { color: var(--text-sec); }
