/* Página /investimento — alinhada a web-static; neutraliza custom-colors / premium (como /transacoes) */
.dash-content.inv-dash-page {
  --inv-blue: #38bdf8;
  --gold: #d4af37;
  --gold-light: #f2d57a;
  --navy-dark: #1e1e1e;
  --green: #22c55e;
  --muted: #9fb0cc;
  --card-bg: rgba(43, 43, 43, 0.84);
  --card-border: rgba(212, 175, 55, 0.18);
  --radius: 16px;
  --trans: 0.25s ease;
  font-family: "Inter", sans-serif;
  color: #f5f7fb !important;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 215, 0, 0.08) 0%, transparent 20%),
    radial-gradient(circle at 84% 8%, rgba(253, 185, 49, 0.05) 0%, transparent 18%),
    linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 48%, #111111 100%) !important;
  background-attachment: local;
  min-height: 60vh;
  position: relative;
  z-index: 0;
}

.dash-content.inv-dash-page * {
  box-sizing: border-box;
}

.dash-content.inv-dash-page .gold-text {
  background: linear-gradient(135deg, #d4af37 0%, #f2d57a 50%, #c8922e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Resumo 4 colunas (static) + faixa de cor */
.inv-dash-page .overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .inv-dash-page .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px) {
  .inv-dash-page .overview-grid {
    grid-template-columns: 1fr;
  }
}

.inv-dash-page .ov-card {
  background: var(--card-bg) !important;
  background-image: none !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius, 16px) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  transition: all var(--trans, 0.25s);
}

.inv-dash-page .ov-card:hover {
  border-color: rgba(242, 213, 122, 0.32) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2) !important;
}

.inv-dash-page .ov-card::before {
  content: "" !important;
  position: absolute !important;
  inset: unset !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  height: 2px !important;
  opacity: 1 !important;
  pointer-events: none !important;
  background: var(--ov-accent, var(--gold, #d4af37)) !important;
  background-image: none !important;
  border-radius: var(--radius, 16px) var(--radius, 16px) 0 0 !important;
  box-shadow: none !important;
  border: none !important;
}
.inv-dash-page .ov-card::after {
  content: none !important;
  display: none !important;
}

/* Cartões e cabeçalhos — alinha com dashboard-shell e neutraliza premium-system em .g-card */
.inv-dash-page .g-card {
  background: var(--card-bg) !important;
  background-image: none !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius, 16px) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 22px !important;
  box-shadow: none !important;
  transition: border-color var(--trans, 0.25s ease), box-shadow var(--trans, 0.25s ease);
  position: relative;
  z-index: 0;
  overflow: visible;
}

.inv-dash-page .g-card:hover {
  border-color: rgba(242, 213, 122, 0.28) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22) !important;
  background: var(--card-bg) !important;
  background-image: none !important;
  color: #f5f7fb !important;
}

.inv-dash-page .card-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.inv-dash-page .card-title {
  font-family: 'Cinzel', serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  color: #f5f7fb !important;
  margin: 0 !important;
  line-height: 1.25;
}

.inv-dash-page .card-sub {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  margin-top: 3px !important;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .inv-dash-page .g-card {
    padding: 14px !important;
  }
}

.inv-dash-page .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-bottom: 20px;
}

.inv-dash-page .plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.inv-dash-page .plan-card {
  position: relative;
  background: linear-gradient(180deg, rgba(43, 43, 43, 0.94), rgba(22, 22, 22, 0.96));
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 18px;
  padding: 20px;
  overflow: hidden;
  transition: transform var(--trans, 0.2s), border-color var(--trans, 0.2s), box-shadow var(--trans, 0.2s);
}

.inv-dash-page .plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 213, 122, 0.3);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

.inv-dash-page .plan-card.featured {
  border-color: rgba(242, 213, 122, 0.4);
  box-shadow: 0 18px 34px rgba(212, 175, 55, 0.12);
}

.inv-dash-page .plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light, #e8c76a);
  border: 1px solid rgba(212, 175, 55, 0.18);
  margin-bottom: 14px;
}

.inv-dash-page .plan-name {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.inv-dash-page .plan-copy {
  color: var(--muted, #8b9bb4);
  font-size: 13px;
  line-height: 1.65;
  min-height: 60px;
  margin-bottom: 18px;
}

.inv-dash-page .plan-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.inv-dash-page .plan-price small {
  font-size: 12px;
  color: var(--muted, #8b9bb4);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.inv-dash-page .plan-return {
  font-size: 12px;
  color: var(--green, #22c55e);
  font-weight: 700;
  margin-bottom: 16px;
}

.inv-dash-page .feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px 0;
  padding: 0;
}

.inv-dash-page .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #e5e7eb;
  line-height: 1.55;
}

.inv-dash-page .feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--gold, #d4af37), var(--gold-light, #e8c76a));
  flex-shrink: 0;
}

.inv-dash-page a.btn-plan,
.inv-dash-page .btn-plan {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: all var(--trans, 0.2s);
  background: linear-gradient(135deg, var(--gold, #d4af37), var(--gold-light, #e8c76a), #c8922e) !important;
  color: var(--navy-dark, #0a1628) !important;
  box-shadow: none;
}

.inv-dash-page a.btn-plan:hover,
.inv-dash-page .btn-plan:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(212, 175, 55, 0.24) !important;
  color: var(--navy-dark, #0a1628) !important;
  background: linear-gradient(135deg, var(--gold, #d4af37), var(--gold-light, #e8c76a), #c8922e) !important;
}

.inv-dash-page a.btn-plan.secondary,
.inv-dash-page .btn-plan.secondary {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(212, 175, 55, 0.18) !important;
  color: #fff !important;
  box-shadow: none;
}

.inv-dash-page a.btn-plan.secondary:hover,
.inv-dash-page .btn-plan.secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.inv-dash-page .compare-table-wrap {
  overflow-x: auto;
  margin-top: 6px;
}

.inv-dash-page .compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  min-width: 760px;
}

.inv-dash-page .compare-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #8b9bb4);
  padding: 0 14px 8px;
  text-align: left;
  white-space: nowrap;
}

.inv-dash-page .compare-table tbody tr {
  background: rgba(26, 47, 77, 0.56);
  transition: background var(--trans, 0.2s);
}

.inv-dash-page .compare-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.06);
}

.inv-dash-page .compare-table tbody td {
  padding: 13px 14px;
  font-size: 13px;
  white-space: nowrap;
  vertical-align: middle;
}

.inv-dash-page .compare-table tbody td:first-child {
  border-radius: 12px 0 0 12px;
}
.inv-dash-page .compare-table tbody td:last-child {
  border-radius: 0 12px 12px 0;
}

.inv-dash-page .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inv-dash-page .pill.gold {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light, #e8c76a);
}
.inv-dash-page .pill.green {
  background: rgba(34, 197, 94, 0.14);
  color: var(--green, #22c55e);
}
.inv-dash-page .pill.blue {
  background: rgba(56, 189, 248, 0.14);
  color: var(--inv-blue);
}

.inv-dash-page .summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inv-dash-page .mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inv-dash-page .summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.inv-dash-page .summary-item:last-child,
.inv-dash-page .mini-item:last-child {
  border-bottom: none;
}

.inv-dash-page .summary-lbl {
  font-size: 12px;
  color: var(--muted, #8b9bb4);
}

.inv-dash-page .summary-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

.inv-dash-page .mini-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.inv-dash-page .mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.inv-dash-page .mini-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.inv-dash-page .mini-copy {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted, #8b9bb4);
  margin-top: 3px;
}

.inv-dash-page .cta-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(242, 213, 122, 0.06)) !important;
  border: 1px solid rgba(212, 175, 55, 0.24) !important;
  border-radius: 18px;
  padding: 22px;
  margin-top: 18px;
}

/* Título dentro do CTA (não herdar reset de título) */
.inv-dash-page .cta-card .card-title {
  font-size: 15px !important;
  color: #f5f7fb !important;
}

.inv-dash-page .cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.inv-dash-page .anim {
  animation: inv-fadeInUp 0.5s ease both;
}

@keyframes inv-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .inv-dash-page .plan-grid {
    grid-template-columns: 1fr;
  }
  .inv-dash-page .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .inv-dash-page .cta-actions .btn-plan {
    width: 100%;
  }
  .inv-dash-page .cta-actions .btn-plan[style] {
    min-width: 0 !important;
  }
}

/* -------------------------------------------------------------------------
   Anula efeito "vitrine" (custom-colors) em .g-card / .summary-item e
   reforça hover/gradiente (mesmo padrão que /transacoes). */
html body .dash-scope-isolated .dash-content.inv-dash-page .g-card::before,
html body .dash-scope-isolated .dash-content.inv-dash-page .g-card::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body .dash-scope-isolated .dash-content.inv-dash-page .summary-item {
  position: static !important;
  overflow: visible !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}
html body .dash-scope-isolated .dash-content.inv-dash-page .summary-item::before,
html body .dash-scope-isolated .dash-content.inv-dash-page .summary-item::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
}

html body .dash-scope-isolated .dash-main:has(.dash-content.inv-dash-page) {
  background: transparent !important;
}

html body .dash-scope-isolated .dash-content.inv-dash-page .g-card:hover {
  background: var(--card-bg) !important;
  background-image: none !important;
  border-color: rgba(242, 213, 122, 0.28) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22) !important;
  color: #f5f7fb !important;
}

/* Faixa superior .ov-card (2px) acima de overlays globais */
html body .dash-scope-isolated .dash-content.inv-dash-page .ov-card::before {
  content: "" !important;
  position: absolute !important;
  inset: unset !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  height: 2px !important;
  opacity: 1 !important;
  pointer-events: none !important;
  background: var(--ov-accent, #d4af37) !important;
  background-image: none !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: none !important;
  border: none !important;
}
html body .dash-scope-isolated .dash-content.inv-dash-page .ov-card::after {
  content: none !important;
  display: none !important;
}

/* CTA: evita que .theme-card / grupos do premium alterem o bloco */
html body .dash-scope-isolated .dash-content.inv-dash-page .cta-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(242, 213, 122, 0.06)) !important;
  border: 1px solid rgba(212, 175, 55, 0.24) !important;
}

/* Botões de plano: links, não .btn do Bootstrap */
html body .dash-scope-isolated .dash-content.inv-dash-page a.btn-plan:not(.secondary) {
  color: #1e1e1e !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #d4af37, #f2d57a, #c8922e) !important;
}
html body .dash-scope-isolated .dash-content.inv-dash-page a.btn-plan.secondary {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(212, 175, 55, 0.18) !important;
}
html body .dash-scope-isolated .dash-content.inv-dash-page a.btn-plan:hover {
  color: #1e1e1e !important;
}
html body .dash-scope-isolated .dash-content.inv-dash-page a.btn-plan.secondary:hover {
  color: #fff !important;
}

/* -------------------------------------------------------------------------
   /investimento (página distinta de /plano) */
.dash-content.invest-op-page {
  --inv-blue: #38bdf8;
  --gold: #d4af37;
  --gold-light: #f2d57a;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --muted: #9fb0cc;
  --card-bg: rgba(43, 43, 43, 0.84);
  --card-border: rgba(212, 175, 55, 0.18);
  --radius: 16px;
}

.invest-op-page .section-title {
  font-family: "Cinzel", serif;
  font-size: 18px;
  color: #fff;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.invest-op-page .section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--gold), #c8922e);
  border-radius: 2px;
}

.invest-op-page .investment-section {
  border-radius: var(--radius);
  margin-bottom: 22px;
}

.invest-op-page .opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.invest-op-page .opportunity-card {
  background: linear-gradient(135deg, rgba(43, 43, 43, 0.9), rgba(30, 30, 30, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius);
  padding: 18px;
  transition: all 0.3s ease;
}

.invest-op-page .opportunity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.invest-op-page .opp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.invest-op-page .opp-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #c8922e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.invest-op-page .opp-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.invest-op-page .opp-subtitle {
  font-size: 11px;
  color: var(--muted);
}

.invest-op-page .opp-return {
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}

.invest-op-page .opp-period {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}

.invest-op-page .opp-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.invest-op-page .opp-detail {
  display: flex;
  justify-content: space-between;
}

.invest-op-page .opp-detail span:last-child {
  color: #fff;
  font-weight: 500;
}

.invest-op-page .btn-invest {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--gold), #c8922e);
  border: none;
  border-radius: 10px;
  color: #111;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.invest-op-page .btn-invest:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.invest-op-page .table-container {
  overflow-x: auto;
}

.invest-op-page .investment-table {
  width: 100%;
  border-collapse: collapse;
}

.invest-op-page .investment-table th {
  text-align: left;
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.invest-op-page .investment-table td {
  padding: 14px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.invest-op-page .investment-table tr:last-child td {
  border-bottom: none;
}

.invest-op-page .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.invest-op-page .status-active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.invest-op-page .status-completed {
  background: rgba(56, 189, 248, 0.15);
  color: var(--inv-blue);
}

.invest-op-page .status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

@media (max-width: 1100px) {
  .invest-op-page .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .invest-op-page .opportunity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .invest-op-page .overview-grid {
    grid-template-columns: 1fr;
  }

  .invest-op-page .opportunity-grid {
    grid-template-columns: 1fr;
  }

  .invest-op-page .investment-table {
    font-size: 12px;
  }

  .invest-op-page .investment-table th,
  .invest-op-page .investment-table td {
    padding: 10px 8px;
  }
}
