@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-1: #081120;
  --bg-2: #0f172a;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-strong: rgba(17, 24, 39, 0.95);
  --border: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #2563eb;
  --primary-2: #3b82f6;
  --primary-soft: rgba(59, 130, 246, 0.12);
  --success: #22c55e;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --sidebar-width: 280px;
  --topbar-height: 78px;
  --font-main: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.18),
      transparent 25%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(59, 130, 246, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
}

.topbar {
  height: var(--topbar-height);
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(8, 17, 32, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
}

.menu-toggle:hover {
  background: var(--primary-soft);
  border-color: rgba(59, 130, 246, 0.28);
  color: #ffffff;
}

.menu-toggle i {
  font-size: 1.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.brand-icon i {
  font-size: 1.2rem;
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
}

.topbar-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: var(--primary-soft);
  color: #bfdbfe;
  font-size: 0.75rem;
  font-weight: 700;
}

.app-layout {
  display: flex;
  min-height: calc(100vh - var(--topbar-height));
}

.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  z-index: 1100;
  padding: 22px 16px;
  background: rgba(10, 18, 34, 0.96);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 18px 10px;
  margin-bottom: 14px;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
}

.sidebar-logo i {
  font-size: 1.1rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 800;
}

.sidebar-subtitle {
  font-size: 0.76rem;
  color: var(--muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-section {
  margin: 14px 10px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 15px;
  color: var(--text);
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.sidebar-link i {
  font-size: 1rem;
  color: #93c5fd;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border);
}

.sidebar-link.active {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.18),
    rgba(59, 130, 246, 0.08)
  );
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar-link.disabled {
  justify-content: space-between;
  opacity: 0.55;
  cursor: not-allowed;
}

.sidebar-link.disabled i,
.sidebar-link.disabled span,
.sidebar-link.disabled small {
  color: var(--muted);
}

.sidebar-overlay {
  position: fixed;
  inset: var(--topbar-height) 0 0 0;
  background: rgba(2, 6, 23, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 1090;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.main-content {
  width: 100%;
  margin-left: var(--sidebar-width);
  padding: 32px;
  transition: margin-left 0.3s ease;
}

body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}

body.sidebar-collapsed .main-content {
  margin-left: 0;
}

.hero {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 42px;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 620px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: #60a5fa;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
  transition: 0.25s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
}

.hero-stat {
  min-width: 220px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid var(--border);
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 2.2rem;
  color: #60a5fa;
  margin-bottom: 8px;
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.info-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.info-card i {
  font-size: 1.7rem;
  color: #60a5fa;
  margin-bottom: 14px;
  display: inline-block;
}

.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.info-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.cta-box {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-box h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.cta-box p {
  color: var(--muted);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: var(--primary-soft);
  color: #bfdbfe;
  font-weight: 700;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--muted);
}

.calc-wrapper {
  max-width: 820px;
}

.calc-wrapper-wide {
  width: 100%;
  max-width: 100%;
}

.calc-card {
  width: 100%;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.84rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
}

.input-wrap.prefix input {
  padding-left: 42px;
}

.input-wrap.suffix input {
  padding-right: 78px;
}

.input-prefix,
.input-suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}

.input-prefix {
  left: 14px;
  color: #93c5fd;
  font-weight: 600;
}

.input-suffix {
  right: 14px;
  color: var(--muted);
}

.form-control {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.5);
  color: #fff;
  padding: 0 16px;
  outline: none;
  transition: 0.25s ease;
}

.form-control:focus {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-control::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.calc-button {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  margin-top: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.calc-button:hover {
  transform: translateY(-2px);
}

.hidden {
  display: none;
}

.result-section {
  margin-top: 30px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.summary-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-card-highlight {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.24),
    rgba(59, 130, 246, 0.08)
  );
  border-color: rgba(59, 130, 246, 0.28);
}

.summary-label {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.summary-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1.2;
  word-break: break-word;
}

.summary-value.positive {
  color: var(--success);
}

.summary-text-card,
.chart-card,
.table-card {
  margin-top: 24px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-head {
  margin-bottom: 18px;
}

.section-head-inline {
  margin-bottom: 14px;
}

.section-head h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #e2e8f0;
}

.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.summary-text-output {
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.action-button {
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.18),
    rgba(59, 130, 246, 0.08)
  );
  color: #dbeafe;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.action-button:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.24),
    rgba(59, 130, 246, 0.12)
  );
}

.action-button i {
  font-size: 1rem;
}

.action-button-secondary {
  background: rgba(2, 6, 23, 0.45);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.action-button-secondary:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.28);
}

.action-button-success {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2),
    rgba(34, 197, 94, 0.08)
  );
  color: #dcfce7;
}

.action-button-success:hover {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.26),
    rgba(34, 197, 94, 0.12)
  );
}

.chart-container {
  position: relative;
  width: 100%;
  height: 440px;
  min-height: 440px;
  max-height: 440px;
  margin-top: 10px;
}

.chart-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.table-responsive-custom {
  overflow-x: auto;
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(2, 6, 23, 0.22);
}

.evolution-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.evolution-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 0.88rem;
  color: #cbd5e1;
  padding: 16px 18px;
  background: rgba(8, 17, 32, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  white-space: nowrap;
}

.evolution-table thead th:first-child {
  border-top-left-radius: 14px;
}

.evolution-table thead th:last-child {
  border-top-right-radius: 14px;
}

.evolution-table tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.evolution-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.evolution-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

.evolution-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
}

.evolution-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
}

.money-input {
  font-variant-numeric: tabular-nums;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.suffix-short input {
  padding-right: 50px;
}

@media (max-width: 1200px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 24px 16px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .topbar-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .brand-subtitle {
    display: none;
  }

  .hero,
  .info-card,
  .cta-box,
  .calc-card,
  .summary-text-card,
  .chart-card,
  .table-card {
    padding: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .chart-container {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .summary-card {
    min-height: auto;
  }

  .summary-value {
    font-size: 1.3rem;
  }

  .result-actions {
    justify-content: stretch;
  }

  .action-button {
    width: 100%;
    justify-content: center;
  }
}
.page-header-enhanced {
  margin-bottom: 28px;
}

.page-header-content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.page-header-main,
.page-header-preview {
  min-width: 0;
}

.page-header-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.82),
    rgba(15, 23, 42, 0.68)
  );
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 28px;
  padding: 38px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.page-header-main::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 68%);
  pointer-events: none;
}

.page-header-main > * {
  position: relative;
  z-index: 1;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0;
}

.page-header-enhanced h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.page-header-enhanced h1 span {
  color: #60a5fa;
}

.page-header-enhanced p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 760px;
}

.page-header-main > p {
  margin-top: -4px;
}

.page-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-benefit-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.34);
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.page-benefit-chip i {
  color: #60a5fa;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-inline-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-preview-card {
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.92),
    rgba(15, 23, 42, 0.78)
  );
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.page-preview-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
  font-size: 0.78rem;
  font-weight: 700;
}

.page-preview-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.2;
  color: #ffffff;
  margin-top: -8px;
}

.page-preview-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.page-preview-list {
  display: grid;
  gap: 14px;
}

.page-preview-list div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  color: #dbeafe;
  font-size: 0.92rem;
  line-height: 1.5;
}

.page-preview-list i {
  color: #60a5fa;
  margin-top: 2px;
}

.calc-card-featured {
  position: relative;
  overflow: hidden;
}

.calc-card-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(96, 165, 250, 0.65),
    transparent
  );
}

.calc-card-head {
  margin-bottom: 24px;
}

.calc-card-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-card-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.calc-card-head p {
  color: var(--muted);
  line-height: 1.65;
}

.quick-scenarios {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.4),
    rgba(15, 23, 42, 0.3)
  );
}

.quick-scenarios-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.quick-scenarios-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #93c5fd;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-scenarios-head h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
}

.quick-scenarios-head p {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.quick-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.quick-scenario-button {
  min-height: 92px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.5);
  color: #e2e8f0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: 0.25s ease;
}

.quick-scenario-button:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.8);
}

.quick-scenario-button.is-active {
  border-color: rgba(59, 130, 246, 0.42);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.22),
    rgba(59, 130, 246, 0.12)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.quick-scenario-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.quick-scenario-meta {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.impact-banner {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.18),
    rgba(15, 23, 42, 0.92)
  );
  box-shadow: var(--shadow);
}

.impact-banner-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #93c5fd;
  font-size: 1.25rem;
}

.impact-banner-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.impact-banner-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.impact-banner-content strong {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #eff6ff;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.insight-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insight-label {
  display: block;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.insight-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: #f8fafc;
  margin-bottom: 10px;
}

.insight-note {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

.trust-section {
  margin-top: 34px;
}

.trust-section-head {
  margin-bottom: 22px;
}

.trust-section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #93c5fd;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-section-head h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.trust-section-head p {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.7;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.trust-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.trust-card-full {
  grid-column: 1 / -1;
}

.trust-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.trust-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  font-size: 1.1rem;
}

.trust-card-head h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.trust-card-head p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.trust-list {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  margin-bottom: 22px;
}

.trust-list li {
  color: #dbeafe;
  line-height: 1.7;
}

.trust-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: #fde68a;
  line-height: 1.65;
}

.trust-note strong {
  white-space: nowrap;
}

.trust-text {
  color: #dbeafe;
  line-height: 1.8;
  margin-bottom: 16px;
}

.trust-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  line-height: 1.65;
}

.trust-highlight i {
  margin-top: 2px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.6;
  position: relative;
  padding-right: 54px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #93c5fd;
  font-size: 1.2rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-content {
  padding: 0 22px 18px;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 1200px) {
  .page-header-content {
    grid-template-columns: 1fr;
  }

  .quick-scenarios-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-card-full {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .page-header-main,
  .page-preview-card {
    padding: 24px;
    border-radius: 24px;
  }

  .page-header-main {
    gap: 18px;
  }

  .page-header-actions {
    align-items: stretch;
  }

  .page-header-actions .hero-button {
    width: 100%;
    justify-content: center;
  }

  .page-inline-note {
    display: block;
    width: 100%;
  }

  .page-benefits {
    grid-template-columns: 1fr;
  }

  .page-benefit-chip {
    width: 100%;
  }

  .page-preview-card strong {
    font-size: 1.45rem;
  }

  .quick-scenarios {
    padding: 18px;
  }

  .quick-scenarios-head {
    align-items: flex-start;
  }

  .quick-scenarios-grid {
    grid-template-columns: 1fr;
  }

  .quick-scenario-button {
    min-height: auto;
  }

  .impact-banner {
    padding: 20px;
    flex-direction: column;
  }

  .impact-banner-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .impact-banner-content strong {
    font-size: 1rem;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .insight-card {
    min-height: auto;
  }

  .trust-card {
    padding: 22px;
  }

  .trust-section-head h2 {
    font-size: 1.45rem;
  }

  .trust-card-head {
    gap: 12px;
  }

  .faq-item summary {
    padding: 16px 18px;
    padding-right: 48px;
  }

  .faq-content {
    padding: 0 18px 16px;
  }
}

/* ===== PREMIUM REFINOS DA CALCULADORA ===== */
.calc-card-premium {
  background:
    radial-gradient(
      circle at top right,
      rgba(59, 130, 246, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(37, 99, 235, 0.09),
      transparent 22%
    ),
    rgba(15, 23, 42, 0.78);
  border-color: rgba(59, 130, 246, 0.18);
  box-shadow:
    0 26px 70px rgba(2, 6, 23, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.calc-card-premium::after,
.chart-card-premium::before,
.table-card-premium::before,
.trust-card::before,
.summary-card::before,
.insight-card::before,
.page-preview-card::before,
.page-header-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.page-header-main::after {
  inset: auto -60px -90px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.16),
    transparent 72%
  );
}

.page-preview-card,
.summary-card,
.insight-card,
.chart-card-premium,
.table-card-premium,
.trust-card {
  position: relative;
  overflow: hidden;
}

.page-preview-card::before,
.summary-card::before,
.insight-card::before,
.chart-card-premium::before,
.table-card-premium::before,
.trust-card::before {
  inset: 1px 1px auto 1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.22),
    transparent
  );
}

.calc-card-head-premium {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.input-wrap-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
}

.form-control-icon {
  padding-left: 46px;
}

.input-wrap-icon.suffix .form-control-icon {
  padding-right: 84px;
}

.input-wrap-icon.suffix-short .form-control-icon {
  padding-right: 54px;
}

select.form-control.form-control-icon {
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
}

.form-control {
  height: 56px;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.62);
}

.form-control:hover {
  border-color: rgba(96, 165, 250, 0.26);
}

.calc-button {
  height: 58px;
  margin-top: 24px;
  box-shadow:
    0 16px 30px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.calc-button:hover {
  transform: translateY(-2px) scale(1.003);
}

.result-section {
  display: grid;
  gap: 24px;
  margin-top: 34px;
  animation: resultReveal 0.55s ease both;
}

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

.impact-banner {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.94)),
    rgba(15, 23, 42, 0.92);
  border-color: rgba(96, 165, 250, 0.26);
  box-shadow:
    0 22px 48px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.impact-banner-icon {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(255, 255, 255, 0.06)
  );
}

.insight-grid {
  gap: 16px;
}

.insight-card {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.88),
    rgba(10, 18, 34, 0.84)
  );
  border-color: rgba(148, 163, 184, 0.12);
  min-height: 156px;
}

.insight-value {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.summary-card {
  min-height: 158px;
  padding: 24px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.9),
    rgba(10, 18, 34, 0.85)
  );
  border-color: rgba(148, 163, 184, 0.12);
  justify-content: space-between;
}

.summary-card-primary {
  grid-column: span 2;
  min-height: 168px;
}

.summary-card-highlight {
  background:
    radial-gradient(
      circle at top right,
      rgba(96, 165, 250, 0.16),
      transparent 40%
    ),
    linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(59, 130, 246, 0.08)),
    rgba(15, 23, 42, 0.9);
  border-color: rgba(96, 165, 250, 0.3);
}

.summary-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.summary-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  flex-shrink: 0;
}

.summary-card-highlight .summary-card-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}

.summary-label {
  margin-bottom: 0;
}

.summary-value {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.summary-card-primary .summary-value {
  font-size: clamp(1.9rem, 3vw, 2.35rem);
}

.summary-text-card-premium {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.9),
    rgba(10, 18, 34, 0.86)
  );
}

.summary-text-output {
  color: #dbeafe;
}

.chart-card-premium {
  padding: 32px;
  background:
    radial-gradient(
      circle at top right,
      rgba(59, 130, 246, 0.1),
      transparent 28%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(10, 18, 34, 0.86));
  border-color: rgba(96, 165, 250, 0.16);
}

.chart-card-premium .chart-container {
  height: 520px;
  min-height: 520px;
  max-height: none;
  margin-top: 18px;
}

.table-card-premium {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.88),
    rgba(10, 18, 34, 0.84)
  );
}

.table-responsive-custom {
  border-color: rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.28);
}

.evolution-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.1);
}

.trust-section-premium {
  margin-top: 40px;
}

.trust-card {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.82),
    rgba(10, 18, 34, 0.82)
  );
  border-color: rgba(148, 163, 184, 0.12);
}

.faq-item {
  background: rgba(2, 6, 23, 0.42);
}

@media (max-width: 1200px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card-primary {
    grid-column: span 2;
  }

  .chart-card-premium .chart-container {
    height: 460px;
    min-height: 460px;
  }
}

@media (max-width: 768px) {
  .calc-card-premium,
  .chart-card-premium,
  .table-card-premium,
  .trust-card,
  .summary-card,
  .insight-card,
  .impact-banner {
    border-radius: 22px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-card-primary {
    grid-column: span 1;
  }

  .summary-card,
  .insight-card {
    min-height: auto;
  }

  .summary-value {
    font-size: 1.45rem;
  }

  .summary-card-primary .summary-value {
    font-size: 1.8rem;
  }

  .chart-card-premium .chart-container {
    height: 340px;
    min-height: 340px;
  }

  .form-control {
    height: 54px;
  }
}
