/**
 * Modal boas-vindas / guia plataforma — RPG MEK
 */

.wp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 162, 39, 0.14), transparent 55%),
    rgba(4, 4, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wp-overlay--block {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wp-box {
  position: relative;
  width: min(680px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--mek-rpg-frame-radius, 18px);
  border: 1px solid var(--mek-rpg-frame-border, rgba(201, 162, 39, 0.55));
  background:
    linear-gradient(165deg, rgba(28, 24, 18, 0.99) 0%, rgba(18, 16, 24, 0.99) 45%, rgba(14, 12, 18, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5) inset,
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(201, 162, 39, 0.08);
  color: #f2ead8;
  font-family: var(--mek-font, 'Outfit', 'Segoe UI', sans-serif);
}

.wp-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.12), rgba(36, 30, 18, 0.15));
}

.wp-header--hero {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 18px 18px;
  gap: 8px;
}

.wp-header-text {
  min-width: 0;
  flex: 1;
}

.wp-header--hero .wp-header-text {
  flex: 0 1 auto;
  width: 100%;
}

.wp-header img {
  border-radius: 10px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.wp-header h2 {
  margin: 0;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f7efd8;
}

.wp-title-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  line-height: 1.15;
}

.wp-title-line {
  display: block;
  font-family: var(--mek-font, 'Outfit', 'Segoe UI', sans-serif);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #d8d0c0;
}

.wp-title-brand {
  display: block;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--mek-gold, #e8c547);
  text-shadow: 0 2px 14px rgba(201, 162, 39, 0.25);
}

.wp-header-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--mek-muted, #9a8f7a);
}

.wp-kicker {
  margin: 0 0 2px;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mek-gold, #e8c547);
}

.wp-close {
  margin-left: auto;
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #e8dfcc;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.wp-close:hover {
  border-color: rgba(232, 197, 71, 0.7);
  color: #f7efd8;
}

.wp-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.55) rgba(0, 0, 0, 0.28);
}

.wp-scroll::-webkit-scrollbar { width: 8px; }
.wp-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
}
.wp-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(232, 197, 71, 0.7), rgba(154, 116, 24, 0.55));
  border-radius: 999px;
  border: 2px solid rgba(10, 10, 18, 0.65);
  background-clip: padding-box;
}

/* Info mode: CTAs no fim do scroll — evita faixa preta entre conteúdo e rodapé fixo */
.wp-footer--in-scroll .wp-cta--info {
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.wp-footer--in-scroll .wp-cta--info .wp-btn--primary {
  width: auto;
  max-width: none;
}

@media (max-width: 640px) {
  .wp-footer--in-scroll .wp-cta--info {
    flex-direction: column;
    align-items: stretch;
  }
  .wp-footer--in-scroll .wp-cta--info .wp-btn--primary {
    width: 100%;
  }
}

.wp-content {
  padding: 20px 18px 8px;
}

.wp-welcome {
  text-align: center;
  margin-bottom: 18px;
}

.wp-hello {
  margin: 4px 0 10px;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 700;
  color: #f7efd8;
}

.wp-lead {
  margin: 0;
  color: var(--mek-muted, #9a8f7a);
  font-size: 0.95rem;
  line-height: 1.55;
}

.wp-lead strong {
  color: var(--mek-gold, #e8c547);
}

/* VIP destaque */
.wp-vip-hero {
  margin: 0 0 22px;
  padding: 16px 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(232, 197, 71, 0.55);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 197, 71, 0.18), transparent 60%),
    rgba(201, 162, 39, 0.08);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.08);
}

.wp-vip-hero-top {
  text-align: center;
  margin-bottom: 12px;
}

.wp-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 150, 0.45);
  background: linear-gradient(165deg, #e8c547 0%, #c9a227 48%, #8a6914 100%);
  color: #1a1408;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.wp-vip-hero-top h3 {
  margin: 10px 0 4px;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: 1.25rem;
  color: #f7efd8;
}

.wp-vip-price {
  margin: 0;
  color: var(--mek-gold, #e8c547);
  font-size: 0.95rem;
}

.wp-vip-intro {
  margin: 0 0 14px;
  text-align: center;
  color: #e8dfcc;
  font-size: 0.88rem;
  line-height: 1.5;
}

.wp-vip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.wp-vip-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(0, 0, 0, 0.28);
}

.wp-vip-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--mek-gold, #e8c547);
  font-size: 0.9rem;
}

.wp-vip-item h4 {
  margin: 0 0 2px;
  font-size: 0.88rem;
  color: #f7efd8;
}

.wp-vip-item p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--mek-muted, #9a8f7a);
}

.wp-gold-callout {
  position: relative;
  margin: 18px 0 8px;
  padding: 18px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(232, 197, 71, 0.65);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(232, 197, 71, 0.28), transparent 55%),
    linear-gradient(165deg, rgba(48, 36, 12, 0.95), rgba(22, 18, 10, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 0 28px rgba(201, 162, 39, 0.18);
  text-align: center;
}

.wp-gold-callout-icon {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--mek-gold, #e8c547);
  font-size: 1.45rem;
}

.wp-gold-callout-kicker {
  margin: 0 0 4px;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mek-gold, #e8c547);
}

.wp-gold-callout h4 {
  margin: 0 0 10px;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f7efd8;
  line-height: 1.3;
}

.wp-gold-callout p {
  margin: 0;
  color: #e8dfcc;
  font-size: 0.9rem;
  line-height: 1.55;
}

.wp-gold-callout-alt {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 162, 39, 0.28);
}

.wp-gold-callout-warn {
  margin-top: 12px !important;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(232, 197, 71, 0.45);
  background: rgba(201, 162, 39, 0.12);
  color: #f7efd8 !important;
  font-size: 0.84rem !important;
}

.wp-gold-callout-warn i {
  color: var(--mek-gold, #e8c547);
  margin-right: 4px;
}

.wp-gold-callout strong {
  color: var(--mek-gold, #e8c547);
}

.wp-gold-callout em {
  font-style: normal;
  font-weight: 700;
  color: #f7efd8;
}

.wp-section-title {
  text-align: center;
  margin: 22px 0 12px;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f7efd8;
}

.wp-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.wp-pillar {
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(0, 0, 0, 0.28);
}

.wp-pillar i {
  display: block;
  margin-bottom: 6px;
  color: var(--mek-gold, #e8c547);
  font-size: 1.15rem;
}

.wp-pillar strong {
  display: block;
  font-size: 0.78rem;
  color: #f7efd8;
  margin-bottom: 2px;
}

.wp-pillar span {
  display: block;
  font-size: 0.7rem;
  color: var(--mek-muted, #9a8f7a);
  line-height: 1.35;
}

.wp-card {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(0, 0, 0, 0.28);
}

.wp-card h5 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--mek-gold, #e8c547);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--mek-muted, #9a8f7a);
}

.wp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.wp-grid-2 .wp-card {
  margin-bottom: 0;
}

.wp-footer {
  flex-shrink: 0;
  padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}

/* Onboarding: CTAs no fim do scroll (não ficam grudados no rodapé) */
.wp-footer--in-scroll {
  flex-shrink: 0;
  position: static;
  margin-top: 8px;
  padding: 18px 16px 22px;
  border-top: 1px solid rgba(201, 162, 39, 0.28);
  background:
    linear-gradient(180deg, rgba(36, 30, 18, 0.35) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.wp-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.wp-cta-label {
  margin: 0;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mek-gold, #e8c547);
  text-align: center;
}

.wp-cta--info {
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.wp-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 16px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background:
    linear-gradient(165deg, rgba(58, 46, 22, 0.55) 0%, rgba(18, 14, 12, 0.72) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 8px 20px rgba(0, 0, 0, 0.25);
  color: #f2ead8;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.wp-check:hover {
  border-color: rgba(232, 197, 71, 0.7);
  background:
    linear-gradient(165deg, rgba(74, 56, 22, 0.65) 0%, rgba(24, 18, 12, 0.8) 100%);
}

.wp-check:has(input:checked) {
  border-color: rgba(232, 197, 71, 0.85);
  box-shadow:
    0 0 0 1px rgba(232, 197, 71, 0.2) inset,
    0 0 18px rgba(201, 162, 39, 0.2);
}

.wp-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1.5px solid rgba(201, 162, 39, 0.65);
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.wp-check input:checked {
  border-color: rgba(232, 197, 71, 0.95);
  background: linear-gradient(165deg, #e8c547 0%, #c9a227 55%, #8a6914 100%);
  box-shadow: 0 0 10px rgba(232, 197, 71, 0.35);
}

.wp-check input:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #1a1408;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.wp-check span {
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
}

.wp-check strong {
  color: var(--mek-gold, #e8c547);
}

.wp-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, border-color 0.15s, background 0.15s, opacity 0.15s;
}

.wp-btn--ghost {
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #e8dfcc;
}

.wp-btn--ghost:hover {
  border-color: rgba(232, 197, 71, 0.7);
  color: #f7efd8;
  background: rgba(201, 162, 39, 0.1);
}

.wp-btn--primary {
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(255, 230, 150, 0.55);
  background: linear-gradient(165deg, #e8c547 0%, #c9a227 48%, #8a6914 100%);
  color: #1a1408;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.wp-cta--info .wp-btn--primary {
  width: auto;
  max-width: none;
}

.wp-btn--primary:hover:not(:disabled):not(.is-disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.wp-btn--primary:disabled,
.wp-btn--primary.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.35);
}

.wp-cta-hint {
  margin: 4px 0 0;
  max-width: 440px;
  text-align: center;
  color: var(--mek-muted, #9a8f7a);
  font-size: 0.8rem;
  line-height: 1.45;
}

.wp-cta-hint strong {
  color: var(--mek-gold, #e8c547);
}

@media (max-width: 640px) {
  .wp-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .wp-vip-grid,
  .wp-grid-2 {
    grid-template-columns: 1fr;
  }

  .wp-cta--info {
    flex-direction: column;
    align-items: stretch;
  }

  .wp-cta--info .wp-btn--primary {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .wp-pillars {
    grid-template-columns: 1fr;
  }
}

/* ===== Toasts RPG (canto superior direito) ===== */
.mek-toast-stack {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 2147483645;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.mek-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background:
    linear-gradient(165deg, rgba(28, 24, 18, 0.98) 0%, rgba(16, 14, 20, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 14px 36px rgba(0, 0, 0, 0.45);
  color: #f2ead8;
  font-family: var(--mek-font, 'Outfit', 'Segoe UI', sans-serif);
  animation: mek-toast-in 0.35s ease-out;
}

.mek-toast.is-leaving {
  animation: mek-toast-out 0.28s ease-in forwards;
}

.mek-toast__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(201, 162, 39, 0.14);
  color: var(--mek-gold, #e8c547);
}

.mek-toast__body {
  flex: 1;
  min-width: 0;
}

.mek-toast__title {
  margin: 0 0 2px;
  font-family: var(--mek-display, Cinzel, Georgia, serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mek-gold, #e8c547);
}

.mek-toast__msg {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #e8dfcc;
  font-weight: 500;
}

.mek-toast__close {
  appearance: none;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--mek-muted, #9a8f7a);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.mek-toast__close:hover {
  color: #f7efd8;
  background: rgba(201, 162, 39, 0.12);
}

.mek-toast--success {
  border-color: rgba(61, 214, 140, 0.45);
}
.mek-toast--success .mek-toast__icon {
  background: rgba(61, 214, 140, 0.15);
  color: #3dd68c;
}
.mek-toast--success .mek-toast__title {
  color: #3dd68c;
}

.mek-toast--error {
  border-color: rgba(244, 117, 106, 0.5);
}
.mek-toast--error .mek-toast__icon {
  background: rgba(244, 117, 106, 0.15);
  color: #f4756a;
}
.mek-toast--error .mek-toast__title {
  color: #f4756a;
}

.mek-toast--warning {
  border-color: rgba(232, 197, 71, 0.55);
}
.mek-toast--warning .mek-toast__icon {
  color: #e8c547;
}
.mek-toast--warning .mek-toast__title {
  color: #e8c547;
}

.mek-toast--info {
  border-color: rgba(201, 162, 39, 0.5);
}

@keyframes mek-toast-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mek-toast-out {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* Compat: classes antigas .notification apontam para o visual RPG */
.notification.mek-toast {
  position: static;
  max-width: none;
  animation: none;
}
