/*
 * Naz Mekanik — ana sayfa ekleri: "Ücretsiz Dene" formu, fiyatlandırma, sağ alt WhatsApp butonu.
 * Renkler sitenin mevcut paletinden alınmıştır (slate-950 zemin, brand-600 #1d4ed8, WhatsApp yeşili #25D366).
 * Sınıflar "nzx-" önekiyle ayrılmıştır; mevcut Tailwind sınıflarıyla çakışmaz.
 */
:root {
  --nzx-bg: #020617;          /* slate-950 */
  --nzx-panel: #0f172a;       /* slate-900 */
  --nzx-line: rgba(255, 255, 255, 0.1);
  --nzx-line-strong: rgba(255, 255, 255, 0.18);
  --nzx-text: #f1f5f9;        /* slate-100 */
  --nzx-muted: #94a3b8;       /* slate-400 */
  --nzx-soft: #64748b;        /* slate-500 */
  --nzx-brand: #1d4ed8;       /* brand-600 */
  --nzx-brand-hover: #1e40af; /* brand-700 */
  --nzx-brand-glow: rgba(30, 64, 175, 0.35);
  --nzx-wa: #25d366;
  --nzx-danger: #fca5a5;
  --nzx-danger-bg: rgba(239, 68, 68, 0.12);
  --nzx-ok: #6ee7b7;
}

/* "WhatsApp ile Teklif Al" butonları kaldırıldı: hidrasyondan önce de görünmesin */
a[href*="wa.me/905064412267?text="][href*="teklif"] { display: none !important; }

/* ---------- Ücretsiz Dene butonu (eski WhatsApp butonunun yerinde) ---------- */
.nzx-cta {
  background: var(--nzx-brand);
  color: #fff;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  box-shadow: 0 10px 30px -10px var(--nzx-brand-glow);
}
.nzx-cta:hover { background: var(--nzx-brand-hover); }
.nzx-cta:focus-visible,
.nzx-btn:focus-visible,
.nzx-toggle button:focus-visible,
.nzx-fab:focus-visible,
.nzx-x:focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; }
.nzx-cta svg { width: 1.25rem; height: 1.25rem; }

.nzx-head-cta {
  display: none;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) { .nzx-head-cta { display: inline-flex; } }

/* ---------- Fiyatlandırma ---------- */
.nzx-pricing {
  position: relative;
  border-top: 1px solid var(--nzx-line);
  padding: 6rem 1rem;
  overflow: hidden;
  scroll-margin-top: 5rem;
}
.nzx-pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 45% at 50% 30%, rgba(30, 64, 175, 0.22), transparent);
  pointer-events: none;
}
.nzx-pricing-inner { position: relative; max-width: 72rem; margin: 0 auto; }
.nzx-eyebrow {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nzx-soft);
}
.nzx-title {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}
@media (min-width: 640px) { .nzx-title { font-size: 2.25rem; } }
.nzx-sub {
  margin: 1rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--nzx-muted);
}

.nzx-toggle {
  margin: 2.5rem auto 0;
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--nzx-line);
}
.nzx-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nzx-muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nzx-toggle button:hover { color: #fff; }
.nzx-toggle button[aria-selected="true"] { background: #fff; color: var(--nzx-bg); }
.nzx-save {
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(37, 211, 102, 0.16);
  color: var(--nzx-ok);
}
.nzx-toggle button[aria-selected="true"] .nzx-save { background: #dcfce7; color: #166534; }

.nzx-card {
  position: relative;
  margin: 2rem auto 0;
  max-width: 30rem;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.28), 0 30px 80px -30px var(--nzx-brand-glow);
}
@media (min-width: 640px) { .nzx-card { padding: 2.5rem; } }
.nzx-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nzx-plan { margin: 0; font-size: 1.125rem; font-weight: 700; color: #fff; }
.nzx-badge {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(29, 78, 216, 0.22);
  color: #bfdbfe;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}
.nzx-price { margin: 1.5rem 0 0; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.nzx-amount {
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.nzx-per { font-size: 1.0625rem; font-weight: 600; color: var(--nzx-muted); }
.nzx-note { margin: 0.75rem 0 0; min-height: 1.5rem; font-size: 0.9375rem; color: var(--nzx-muted); }
.nzx-note b { color: var(--nzx-ok); font-weight: 700; }
.nzx-list { margin: 1.75rem 0 0; padding: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--nzx-line); display: grid; gap: 0.8rem; }
.nzx-list li { display: flex; gap: 0.75rem; font-size: 0.9875rem; line-height: 1.5; color: #cbd5e1; }
.nzx-list svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; color: #60a5fa; }
.nzx-card .nzx-cta { margin-top: 2rem; width: 100%; }
.nzx-fine { margin: 0.9rem 0 0; text-align: center; font-size: 0.875rem; color: var(--nzx-soft); }

/* ---------- Ortak buton ---------- */
.nzx-btn {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0 1.5rem;
  font-size: 1rem;
  transition: transform 0.1s, background 0.15s;
}
.nzx-btn:active { transform: scale(0.98); }
.nzx-btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- Kayıt penceresi ---------- */
.nzx-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.nzx-overlay[hidden] { display: none; }
.nzx-overlay.nzx-open { opacity: 1; }
@media (min-width: 640px) { .nzx-overlay { align-items: center; padding: 2rem 1rem; } }
.nzx-modal {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: auto 0;
  border-radius: 1.5rem;
  padding: 1.75rem 1.25rem 1.5rem;
  background: var(--nzx-panel);
  color: var(--nzx-text);
  box-shadow: 0 0 0 1px var(--nzx-line), 0 40px 100px -20px rgba(0, 0, 0, 0.7);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}
.nzx-open .nzx-modal { transform: none; }
@media (min-width: 640px) { .nzx-modal { padding: 2.25rem 2rem 2rem; } }
.nzx-x {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--nzx-muted);
  cursor: pointer;
}
.nzx-x:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nzx-x svg { width: 1.25rem; height: 1.25rem; }
.nzx-mhead { padding-right: 2.5rem; }
.nzx-mtag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  background: rgba(29, 78, 216, 0.22);
  color: #bfdbfe;
}
.nzx-mtitle { margin: 0.875rem 0 0; font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.nzx-mdesc { margin: 0.5rem 0 0; font-size: 0.9875rem; line-height: 1.55; color: var(--nzx-muted); }

.nzx-form { margin-top: 1.5rem; display: grid; gap: 1rem; }
.nzx-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .nzx-row { grid-template-columns: 1fr 1fr; } }
.nzx-field { display: block; }
.nzx-label { display: block; margin-bottom: 0.4rem; font-size: 0.9375rem; font-weight: 600; color: #e2e8f0; }
.nzx-label i { font-style: normal; color: #f87171; }
.nzx-input {
  display: block;
  width: 100%;
  height: 3.25rem;
  box-sizing: border-box;
  border: 0;
  border-radius: 0.75rem;
  padding: 0 1rem;
  background: rgba(2, 6, 23, 0.6);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px var(--nzx-line-strong);
  transition: box-shadow 0.15s;
}
.nzx-input::placeholder { color: var(--nzx-soft); }
.nzx-input:focus { outline: none; box-shadow: inset 0 0 0 2px #3b82f6; }
.nzx-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ef4444; }
.nzx-hint { display: block; margin-top: 0.35rem; font-size: 0.8125rem; color: var(--nzx-soft); }
.nzx-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nzx-err {
  margin: 0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--nzx-danger-bg);
  color: var(--nzx-danger);
}
.nzx-err[hidden] { display: none; }
.nzx-form .nzx-cta { width: 100%; margin-top: 0.25rem; }
.nzx-spin { animation: nzx-spin 0.8s linear infinite; }
@keyframes nzx-spin { to { transform: rotate(360deg); } }
.nzx-alt { margin: 0.25rem 0 0; text-align: center; font-size: 0.9375rem; color: var(--nzx-muted); }
.nzx-alt a { color: #93c5fd; font-weight: 600; text-decoration: none; }
.nzx-alt a:hover { text-decoration: underline; }
.nzx-done { padding: 1rem 0 0.5rem; text-align: center; }
.nzx-done-ico {
  margin: 0 auto;
  display: flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  background: rgba(37, 211, 102, 0.15);
  color: var(--nzx-ok);
}
.nzx-done-ico svg { width: 2rem; height: 2rem; }
html.nzx-lock, html.nzx-lock body { overflow: hidden; }

/* ---------- Sağ alt sabit WhatsApp butonu ---------- */
.nzx-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 150;
  display: flex;
  width: 3.75rem;
  height: 3.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--nzx-wa);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nzx-fab:hover { transform: translateY(-2px) scale(1.04); }
.nzx-fab svg { width: 2rem; height: 2rem; }
.nzx-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: nzx-ring 2.6s ease-out infinite;
}
.nzx-fab-tip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  border-radius: 0.6rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: #fff;
  color: var(--nzx-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.nzx-fab:hover .nzx-fab-tip,
.nzx-fab:focus-visible .nzx-fab-tip { opacity: 1; }
.nzx-fab[hidden] { display: none; }
@keyframes nzx-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .nzx-fab::after, .nzx-spin { animation: none; }
  .nzx-overlay, .nzx-modal, .nzx-fab { transition: none; }
}
@media print { .nzx-fab, .nzx-overlay { display: none !important; } }
