/* ── Komponen yang tidak bisa ditangani Tailwind CDN ── */

/* Nav link sidebar */
.nav-link {
  display: flex; align-items: center; gap: .625rem;
  padding: .6rem .875rem; border-radius: .625rem;
  color: #94a3b8; font-weight: 500; font-size: .875rem;
  transition: all .18s; text-decoration: none;
}
.nav-link:hover { background: rgba(255,255,255,.05); color: #f1f5f9; }
.nav-active { background: rgba(37,99,235,.14) !important; color: #60a5fa !important; border: 1px solid rgba(37,99,235,.2); }

/* Primary button */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #2563eb; color: #fff; font-weight: 600; font-size: .875rem;
  padding: .625rem 1.125rem; border-radius: .75rem; border: none;
  cursor: pointer; transition: all .18s; text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { background: #3b82f6; box-shadow: 0 4px 20px rgba(37,99,235,.4); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Card */
.card {
  background: #1a2238; border: 1px solid rgba(99,120,180,.14);
  border-radius: 1rem; overflow: hidden;
}
.card.border-dashed { border-style: dashed; border-color: rgba(99,120,180,.18); }

/* Section tag */
.section-tag {
  display: inline-block; background: rgba(37,99,235,.1);
  color: #60a5fa; border: 1px solid rgba(37,99,235,.25);
  padding: .25rem .875rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}

/* Feature icon */
.feature-icon {
  width: 44px; height: 44px; background: rgba(37,99,235,.12);
  border-radius: .75rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #60a5fa; margin-bottom: 1rem;
}

/* Step card */
.step-card {
  background: #1a2238; border: 1px solid rgba(99,120,180,.14);
  border-radius: 1rem; padding: 2rem 1.5rem; text-align: center;
  position: relative; transition: all .25s;
}
.step-card:hover { border-color: rgba(37,99,235,.4); transform: translateY(-4px); }
.step-num {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #2563eb; color: #fff; font-size: .7rem; font-weight: 800;
  padding: .15rem .625rem; border-radius: 999px;
}

/* Pricing card */
.pricing-card {
  background: #1a2238; border: 1.5px solid rgba(99,120,180,.16);
  border-radius: 1.25rem; padding: 1.75rem; transition: all .25s;
}
.pricing-card:hover { border-color: rgba(99,120,180,.35); transform: translateY(-3px); }
.pricing-popular {
  background: linear-gradient(145deg, rgba(37,99,235,.1), rgba(124,58,237,.07));
  border-color: rgba(37,99,235,.45); transform: scale(1.02);
}
.pricing-popular:hover { transform: scale(1.02) translateY(-3px); }

/* Payment method option */
.pm-option {
  display: flex; align-items: center; gap: .625rem;
  padding: .625rem .875rem; border: 1.5px solid rgba(99,120,180,.14);
  border-radius: .75rem; cursor: pointer; transition: all .18s; font-size: .875rem;
}
.pm-option:has(input:checked) { border-color: #2563eb; background: rgba(37,99,235,.08); }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0; background: #253047;
  border-radius: 999px; cursor: pointer; transition: .25s;
}
.toggle-track::before {
  content: ''; position: absolute; width: 16px; height: 16px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%;
  transition: .25s; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.toggle-switch input:checked + .toggle-track { background: #2563eb; }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(18px); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.hidden { display: none !important; }
.modal-box {
  background: #1a2238; border: 1px solid rgba(99,120,180,.18);
  border-radius: 1.25rem; width: 100%; max-width: 480px;
  animation: modalIn .2s ease both; max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn { from{opacity:0;transform:scale(.96) translateY(8px)} to{opacity:1;transform:scale(1) translateY(0)} }

/* Toast */
.toast {
  background: #222c42; border: 1px solid rgba(99,120,180,.2);
  border-radius: .75rem; padding: .75rem 1rem;
  font-size: .875rem; font-weight: 500;
  display: flex; align-items: center; gap: .625rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  animation: toastIn .3s ease both; pointer-events: auto;
}
.toast-success { border-left: 3px solid #22c55e; }
.toast-error   { border-left: 3px solid #ef4444; }
.toast-info    { border-left: 3px solid #3b82f6; }
@keyframes toastIn { from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:translateX(0)} }
