/* ===== PLANS HERO ===== */
.plans-hero {
  padding: 120px 0 60px;
  position: relative; overflow: hidden;
  background: var(--bg);
}
.plans-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.plans-hero-bg .orb-1 {
  width: 500px; height: 500px; top: -200px; right: -100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
  filter: blur(80px);
}
.plans-hero-bg .orb-2 {
  width: 400px; height: 400px; bottom: -100px; left: -50px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.2) 0%, transparent 70%);
  filter: blur(80px);
}
.plans-hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 640px; margin: 0 auto;
}
.plans-hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900;
  margin: 16px 0 12px; line-height: 1.15;
}
.plans-hero-content p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 32px; }

/* BILLING TOGGLE */
.billing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.toggle-label { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.toggle-label.active { color: var(--text); }
.save-badge {
  display: inline-block;
  background: rgba(16,185,129,0.15);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.3);
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 100px; margin-left: 6px;
}
.toggle-switch {
  width: 44px; height: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative; transition: background 0.3s;
  cursor: pointer;
}
.toggle-switch.on { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.toggle-knob {
  position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform 0.3s;
}
.toggle-switch.on .toggle-knob { transform: translateX(20px); }

/* ===== PLANS SECTION ===== */
.plans-section { padding: 60px 0 80px; background: var(--bg); }
.plans-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; align-items: start;
}
.plan-card {
  background: rgba(20, 18, 30, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-lg); padding: 32px 24px;
  position: relative; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
}
.plan-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 100%, rgba(236,72,153,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.plan-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(99,102,241,0.12), 0 16px 48px rgba(0,0,0,0.2);
  background: rgba(20, 18, 30, 0.5);
}
.plan-card:hover::before { opacity: 1; }
.plan-card.plan-featured {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-8px);
  box-shadow: 0 0 50px rgba(99,102,241,0.15), 0 24px 64px rgba(99,102,241,0.12);
}
.plan-card.plan-featured::before { opacity: 1; }
.plan-card.plan-featured:hover { transform: translateY(-14px); }
.plan-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 4px 16px; border-radius: 100px; white-space: nowrap;
}
.plan-header { margin-bottom: 24px; }
.plan-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 14px;
}
.plan-icon-free { background: rgba(100,116,139,0.15); color: #94a3b8; }
.plan-icon-starter { background: rgba(245,158,11,0.15); color: var(--accent); }
.plan-icon-pro { background: rgba(99,102,241,0.15); color: var(--primary); }
.plan-icon-agency { background: rgba(16,185,129,0.15); color: var(--success); }
.plan-header h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.plan-desc { font-size: 0.8rem; color: var(--text-muted); }

.plan-price {
  display: flex; align-items: flex-end; gap: 3px;
  margin-bottom: 16px;
}
.price-currency { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.price-amount { font-size: 2.6rem; font-weight: 900; color: var(--text); line-height: 1; }
.price-period { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.plan-featured .price-amount { color: var(--primary-light); }

.plan-credits {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  margin-bottom: 24px; color: var(--primary-light);
  white-space: nowrap;
  justify-content: center;
}
.plan-credits i { color: var(--accent); }

.plan-features { margin-bottom: 28px; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.plan-features li:last-child { border-bottom: none; }
.feat-yes { color: var(--text); }
.feat-yes i { color: var(--success); }
.feat-no { color: var(--text-dim); }
.feat-no i { color: var(--danger); }

.plan-btn {
  display: block; width: 100%; text-align: center;
  padding: 13px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 700;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-outline-plan {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text);
}
.btn-outline-plan:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(99,102,241,0.06);
}
.btn-primary-plan {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.55);
}

/* PLANS NOTE */
.plans-note {
  margin-top: 36px; text-align: center;
  font-size: 0.85rem; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.plans-note i { color: var(--success); }
.plans-note a { color: var(--primary); }

/* ===== COMPARISON TABLE ===== */
.comparison-section { padding: 80px 0 100px; background: var(--bg-2); }
.table-wrapper { overflow-x: auto; }
.comparison-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.comparison-table th {
  padding: 18px 20px; font-size: 0.85rem; font-weight: 700;
  color: var(--text-muted); text-align: center;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.comparison-table th:first-child { text-align: left; }
.comparison-table th.th-featured {
  background: rgba(99,102,241,0.12);
  color: var(--primary-light);
}
.comparison-table td {
  padding: 16px 20px; font-size: 0.875rem;
  color: var(--text-muted); text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.comparison-table td:first-child { text-align: left; color: var(--text); font-weight: 500; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }
.td-featured {
  background: rgba(99,102,241,0.05);
  color: var(--text) !important; font-weight: 600;
}
.text-green { color: var(--success); }
.text-red { color: var(--danger); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card.plan-featured { transform: none; }
}
@media (max-width: 560px) {
  .plans-grid { grid-template-columns: 1fr; }
}

/* ===== PLANS GRID 5 COLS ===== */
.plans-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px; align-items: start;
}
@media (max-width: 1200px) { .plans-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .plans-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .plans-grid-5 { grid-template-columns: 1fr; } }

/* ===== COMPETITOR BANNER ===== */
.competitor-banner {
  background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.cb-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.cb-label { font-size: 0.82rem; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.cb-items { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cb-item { text-align: center; padding: 8px 16px; border-radius: 10px; }
.cb-item span { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }
.cb-item strong { display: block; font-size: 1rem; font-weight: 800; }
.cb-item small { display: block; font-size: 0.68rem; color: var(--text-dim); }
.cb-item.them { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2); }
.cb-item.them strong { color: var(--danger); text-decoration: line-through; opacity: 0.7; }
.cb-item.us { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3); }
.cb-item.us strong { color: var(--primary-light); font-size: 1.2rem; }
.cb-item.us i { color: var(--primary); margin-right: 4px; }
.cb-vs { font-size: 0.8rem; font-weight: 900; color: var(--text-dim); padding: 4px 8px; background: rgba(255,255,255,0.06); border-radius: 6px; }

/* ===== PLAN VS BADGE ===== */
.plan-vs-badge {
  display: block; font-size: 0.7rem; font-weight: 600;
  background: rgba(239,68,68,0.08); color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
  padding: 4px 10px; border-radius: 8px; margin-bottom: 16px; text-align: center;
}

/* ===== ANNUAL SAVING ===== */
.plan-price-annual { margin-top: -8px; margin-bottom: 14px; }
.plan-price-annual.hidden { display: none; }
.annual-total { display: block; font-size: 0.8rem; color: var(--text-muted); }
.annual-saving { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--success); background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); padding: 2px 8px; border-radius: 100px; margin-top: 2px; }

/* ===== PLAN NOTE ===== */
.plan-note { text-align: center; font-size: 0.72rem; color: var(--text-dim); margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.plan-note i { color: var(--success); }

/* ===== VS SECTION ===== */
.vs-section { padding: 80px 0; background: var(--bg); }
.vs-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.vs-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.us-card { border-color: rgba(99,102,241,0.45); background: linear-gradient(160deg, rgba(99,102,241,0.08), rgba(236,72,153,0.04)); }
.vs-badge-top { display: inline-block; font-size: 0.75rem; font-weight: 800; padding: 4px 14px; border-radius: 100px; margin-bottom: 16px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.vs-badge-top.them { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.vs-price { font-size: 1.8rem; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: 6px; }
.vs-price span { font-size: 0.85rem; color: var(--text-muted); }
.vs-price.dull { color: var(--text-dim); }
.vs-dl { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 16px; }
.vs-list { text-align: left; }
.vs-list li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.vs-list li:last-child { border: none; }
.vs-list i.fa-check { color: var(--success); }
.dull-list li { color: var(--text-dim); }

@media (max-width: 700px) { .vs-grid { grid-template-columns: 1fr; } }
