/* ── RESETS UNIVERSAIS ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Imagem de fundo com o Blur aplicado */
body::before {
    content: '';
    position: fixed;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: url('/assets/img/back.png') no-repeat center center;
    background-size: cover;
    filter: blur(5px);
    -webkit-filter: blur(8px);
    z-index: -1;
}

/* ── LAYOUT DE BACKGROUND / LOADING ── */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 40px 48px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.spinner-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
}

.spinner-bg {
    position: absolute;
    inset: 0;
    border: 4px solid #fed7aa;
    border-radius: 50%;
}

.spinner {
    position: absolute;
    inset: 0;
    border: 4px solid #ff7a00;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.text-center { text-align: center; }

.title {
    font-size: 30px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 18px;
    color: #4b5563;
}

/* ── VARIÁVEIS DO MODAL ── */
:root {
  --orange-50:  #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --neutral-50:  #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-400: #a3a3a3;
  --neutral-600: #525252;
  --neutral-800: #262626;
  --neutral-900: #171717;
}

/* ── OVERLAY DO MODAL ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── MODAL ── */
.modal {
  display: flex;
  width: 100%;
  max-width: 940px;
  max-height: calc(100vh - 32px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
  opacity: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--neutral-800);
}
.overlay.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── PAINEL ESQUERDO (CONTEÚDO) ── */
.modal-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

/* ── MODAL HEADER ── */
.modal-header {
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  padding: 22px 24px 20px;
  position: relative;
  color: #fff;
  flex-shrink: 0;
}
.modal-header .badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  padding: 2px 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.modal-header h1 {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.modal-header p {
  font-size: 0.83rem;
  opacity: 0.88;
  line-height: 1.5;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.close-btn:hover { background: rgba(255,255,255,0.35); }
.close-btn svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* ── MODAL BODY ── */
.modal-body {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ── CARD GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

/* ── CARDS ── */
.card {
  border: 1px solid var(--neutral-200);
  border-radius: 11px;
  padding: 12px 14px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(249,115,22,0.1);
  border-color: var(--orange-200);
}
.card-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--orange-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 17px; height: 17px; stroke: var(--orange-600); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-body h2 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.card-body p {
  font-size: 0.75rem;
  color: var(--neutral-600);
  line-height: 1.5;
}
.highlight { color: var(--orange-600); font-weight: 700; }

/* ── LISTA DE BENEFÍCIOS ── */
.benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: 7px;
  padding-left: 0;
}
.benefits-list li {
  font-size: 0.73rem;
  color: var(--neutral-600);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}
.check-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: var(--orange-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-icon svg { width: 7px; height: 7px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

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

/* ── CALL TO ACTION (CTA) ── */
.modal-cta {
  background: linear-gradient(135deg, var(--orange-50), var(--orange-100));
  border: 1px solid var(--orange-200);
  border-radius: 11px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.modal-cta p {
  font-size: 0.78rem;
  color: var(--neutral-600);
  line-height: 1.5;
}
.btn-primary {
  flex-shrink: 0;
  display: inline-block;
  background: var(--orange-500);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 11px 22px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249,115,22,0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { cursor: default; }

/* ── PAINEL DIREITO (IMAGEM LATERAL) ── */
.modal-right {
  width: 300px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.modal-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(255,255,255,0.12) 0%,
    transparent 40%
  );
  pointer-events: none;
}
.modal-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── RESPONSIVIDADE DO MODAL ── */
@media (max-width: 700px) {
  .modal-right { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .benefits-list { grid-template-columns: 1fr; }
  .card-full { grid-column: 1; }
  .modal-cta { flex-direction: column; text-align: center; }
  .modal-header { padding: 18px 16px 16px; }
  .modal-body { padding: 12px 14px 14px; }
}