:root {
  --bg: #0B0D10;
  --card: #12141A;
  --primary: #5865F2;
  --secondary: #22c55e;
  --text: #EDEDED;
  --muted: #9AA0A6;
}

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

body {
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at left, #0f1320, var(--bg));
  color: var(--text);
  overflow-x: hidden;
  padding-top: 80px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
}

header h1 { font-size: 1.1rem; }
header a { color: var(--text); opacity: .8; text-decoration: none; }

main {
  padding: 80px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

p.subtitle {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.toggle-container {
  background: #1a1f2b;
  display: inline-flex;
  padding: 5px;
  border-radius: 99px;
  margin-bottom: 60px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 10;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 12px 32px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 99px;
  font-weight: 600;
  transition: .3s;
}

.toggle-btn.active {
  background: #252a36;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.plans-grid {
  display: none; /* Escondido por padrão */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  animation: fadeUp .5s ease forwards;
}

.plans-grid.active-view {
  display: grid; 
}

.plan {
  background: var(--card);
  padding: 32px;
  border-radius: 20px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.03);
  position: relative; /* Necessário para o badge */
  transition: transform .3s ease;
}

.plan:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.1);
}

.plan.featured {
  border: 1px solid var(--primary);
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.05) 0%, var(--card) 100%);
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.1);
  transform: scale(1.05);
  z-index: 2;
}

.plan.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mc-style .plan.featured {
  border-color: var(--secondary);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.05) 0%, var(--card) 100%);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
}

.mc-style .badge {
  background: var(--secondary);
  color: #000;
}

.mc-style button {
    background: var(--secondary);
    color: #000;
}

.plan h4 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.price {
  font-size: 2.2rem;
  margin: 16px 0;
  font-weight: 700;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.plan ul {
  list-style: none;
  margin: 24px 0;
}

.plan li {
  margin-bottom: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan li::before {
    content: "✓";
    color: rgba(255,255,255,0.2);
    font-weight: bold;
}
.plan.featured li::before {
    color: var(--primary);
}
.mc-style .plan.featured li::before {
    color: var(--secondary);
}

.plan button {
  width: 100%;
  margin-top: auto;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

.plan button:hover {
    background: rgba(255,255,255,0.1);
}

.plan.featured button {
  background: var(--primary);
  color: white;
}
.plan.featured button:hover {
    filter: brightness(1.1);
}

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

.pix-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.pix-modal {
  background: var(--card);
  border-radius: 18px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: scaleIn .35s ease;
  position: relative;
}

.pix-modal h3 { margin-bottom: 10px; }
.pix-modal img { width: 180px; margin: 20px 0; border-radius: 8px; }

.pix-code {
  background: #0B0D10;
  border: 1px solid #1f2230;
  padding: 12px;
  border-radius: 10px;
  font-size: .8rem;
  word-break: break-all;
  color: var(--muted);
}

.pix-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.pix-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: .95rem;
}

.copy-btn { background: #1f2230; color: white; }
.close-btn { background: var(--primary); color: white; }

.pix-wait {
  margin-top: 16px;
  font-size: .85rem;
  color: var(--muted);
  animation: pulse 1.6s infinite;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { opacity: .4; }
  50% { opacity: 1; }
  100% { opacity: .4; }
}

.notification {
  position: fixed; top: 20px; right: 20px;
  background: #0f172a; color: #fff;
  border-left: 4px solid #22c55e;
  padding: 16px 20px; border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  width: 320px; z-index: 9999;
  animation: slideIn .4s ease;
}