/* =================================================
 * Wizard + Landing Styles
 * ================================================= */

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #0f172a; }

/* Layout: 2 kolon (form + onizleme) */
.wizard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 992px) {
  .wizard-layout { grid-template-columns: 1fr 380px; }
}

.wizard-form {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
  min-height: 500px;
}

.wiz-step { display: none; animation: fadeSlide 0.35s ease-out; }
.wiz-step.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wiz-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.wiz-sub { color: #64748b; font-size: 0.95rem; margin-bottom: 22px; }

.lbl { display: block; font-size: 0.82rem; font-weight: 600; color: #334155; margin-bottom: 6px; }
.lbl.m-0 { margin: 0; }

.inp {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border 0.2s, box-shadow 0.2s;
  background: #fff;
}
.inp:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }

.divider-soft { height: 1px; background: #e2e8f0; margin: 22px 0; }

/* Tur secim kartlari */
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) { .type-grid { grid-template-columns: repeat(3, 1fr); } }
.type-card input { display: none; }
.type-card .type-inner {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
}
.type-card .type-inner i { font-size: 1.8rem; color: #6366f1; display: block; margin-bottom: 8px; }
.type-card .type-inner span { font-weight: 600; color: #334155; }
.type-card input:checked + .type-inner {
  border-color: #6366f1;
  background: linear-gradient(135deg, #eef2ff, #fdf4ff);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.18);
}

/* Sub block (dinamik gizlenen) */
.sub-block.hidden { display: none; }

/* Toggle switch satiri */
.toggle-row { margin-bottom: 12px; }
.tgl { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: #334155; }
.tgl input { display: none; }
.tgl-sw {
  width: 44px; height: 24px; background: #cbd5e1; border-radius: 50px;
  position: relative; flex-shrink: 0; transition: background 0.2s;
}
.tgl-sw::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  transition: transform 0.2s; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.tgl input:checked + .tgl-sw { background: #6366f1; }
.tgl input:checked + .tgl-sw::after { transform: translateX(20px); }
.tgl.lg { align-items: flex-start; }

.tgl-box {
  display: none;
  padding: 14px 14px 0 54px;
  margin-top: 4px;
}
.tgl-box.open { display: block; }

/* Sablon secimi */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 520px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
.tpl-opt input { display: none; }
.tpl-mini {
  border: 2px solid transparent;
  border-radius: 14px;
  aspect-ratio: 9/14;
  padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  overflow: hidden;
}
.tpl-opt input:checked + .tpl-mini {
  border-color: #6366f1;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}
.tpl-name { display: block; text-align: center; font-size: 0.82rem; font-weight: 600; margin-top: 6px; color: #334155; }

/* Navigasyon butonlar */
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.btn-ghost { padding: 12px 22px; border: 1px solid #cbd5e1; background: #fff; border-radius: 50px; font-weight: 600; color: #475569; cursor: pointer; transition: all 0.2s; }
.btn-ghost:hover { background: #f1f5f9; }
.btn-main {
  padding: 12px 30px; border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
  border-radius: 50px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.3);
  transition: all 0.2s;
}
.btn-main:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4); }
.btn-main:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-main.hidden, .btn-ghost.hidden { display: none; }

.btn-sm { padding: 6px 12px; border-radius: 50px; border: 1px solid #cbd5e1; background: #fff; font-size: 0.8rem; color: #475569; cursor: pointer; font-weight: 600; }
.btn-sm:hover { background: #f1f5f9; }
.btn-mini { padding: 5px 10px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; font-size: 0.8rem; color: #64748b; cursor: pointer; }

/* Onizleme paneli */
.wizard-preview {
  position: sticky; top: 110px;
  align-self: start;
  background: linear-gradient(135deg, #eef2ff, #fdf4ff);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}
.preview-title {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: #4338ca; margin-bottom: 12px; font-size: 0.95rem;
}
.phone-frame {
  background: #1e293b;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  aspect-ratio: 9 / 16;
  max-width: 340px;
  margin: 0 auto;
}
.phone-frame iframe {
  width: 100%; height: 100%;
  border: none; border-radius: 20px;
  background: #fff;
}

/* Mobilde preview kuculur */
@media (max-width: 991px) {
  .wizard-preview { position: static; }
  .phone-frame { max-width: 260px; aspect-ratio: 9 / 14; }
}

/* Modaller */
.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 22px;
  width: 100%; max-width: 500px; max-height: 80vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: mIn 0.25s ease-out;
}
@keyframes mIn { from { opacity: 0; transform: scale(0.95); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.modal-head h3 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.modal-x { background: none; border: none; font-size: 1.8rem; line-height: 1; color: #64748b; cursor: pointer; }
.modal-body { padding: 16px 20px; overflow-y: auto; }
.msg-item { padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
.msg-item:hover { border-color: #6366f1; background: #eef2ff; }

/* Success page */
.success-card { background: #fff; border-radius: 24px; box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08); padding: 36px 28px; max-width: 560px; margin: 40px auto; }

/* Manage page */
.manage-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e2e8f0; margin-bottom: 24px; overflow-x: auto; }
.manage-tab { padding: 12px 20px; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.manage-tab.active { color: #6366f1; border-bottom-color: #6366f1; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Premium badge & crown */
.badge-prem {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 50px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}
.tpl-crown {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
  z-index: 2;
}
.tpl-mini { position: relative; }

/* Plan secim kartlari */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) { .plan-grid { grid-template-columns: 1fr 1fr; } }

.plan-card input { display: none; }
.plan-card .plan-inner {
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
  height: 100%;
  position: relative;
}
.plan-card input:checked + .plan-inner {
  border-color: #6366f1;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.18);
}
.plan-card.premium .plan-inner {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 30%);
}
.plan-card.premium input:checked + .plan-inner {
  border-color: #f59e0b;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}
.plan-card .plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.plan-name { font-weight: 700; font-size: 1.05rem; color: #111827; }
.plan-price { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.8rem; color: #111827; line-height: 1; }
.plan-price span { font-size: 0.9rem; color: #64748b; font-weight: 400; margin-left: 2px; }
.plan-card ul { list-style: none; margin: 0; padding: 0; }
.plan-card ul li { padding: 5px 0; font-size: 0.9rem; color: #334155; display: flex; align-items: center; gap: 8px; }
.plan-card ul li.off { color: #94a3b8; }
.plan-card ul li.off i { color: #cbd5e1; }
.plan-foot { margin-top: 14px; font-size: 0.78rem; color: #92400e; padding-top: 12px; border-top: 1px dashed #fde68a; }

/* =================================================
 * KULLANICI REHBER ELEMENTLERI (info, tooltip, step-hero)
 * ================================================= */

/* Adim giris kutusu - her wizard adiminda "Ne yapacaksiniz?" */
.step-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #fdf4ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 0 0 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-hero-ic {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.step-hero-body { flex: 1; }
.step-hero-title { font-weight: 700; color: #312e81; font-size: 0.95rem; margin: 0 0 4px; }
.step-hero-text { font-size: 0.82rem; color: #4338ca; line-height: 1.5; margin: 0; }

/* Info icon - form alaninin yaninda "i" */
.info-ic {
  display: inline-flex;
  width: 18px; height: 18px;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 4px;
  cursor: help;
  position: relative;
  transition: all 0.2s;
  vertical-align: middle;
  user-select: none;
  flex-shrink: 0;
}
.info-ic:hover, .info-ic.show { background: #6366f1; color: #fff; }
.info-ic::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  text-align: center;
}
.info-ic::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
}
.info-ic:hover::after, .info-ic:hover::before,
.info-ic.show::after, .info-ic.show::before {
  opacity: 1;
}

/* Yardim kutusu - kucuk ipucu */
.help-tip {
  display: flex;
  gap: 10px;
  background: #f0f9ff;
  border-left: 3px solid #0284c7;
  padding: 10px 14px;
  border-radius: 10px;
  margin: 8px 0 14px;
  font-size: 0.82rem;
  color: #075985;
  line-height: 1.5;
}
.help-tip i { color: #0284c7; margin-top: 2px; }
.help-tip.warn { background: #fffbeb; border-left-color: #f59e0b; color: #92400e; }
.help-tip.warn i { color: #f59e0b; }
.help-tip.success { background: #f0fdf4; border-left-color: #16a34a; color: #14532d; }
.help-tip.success i { color: #16a34a; }

/* Hosgeldin kapatilabilir banner */
.welcome-banner {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}
.welcome-banner h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.welcome-banner p { margin: 0 0 10px; opacity: 0.95; font-size: 0.9rem; line-height: 1.6; }
.welcome-banner ul { margin: 10px 0 0 18px; padding: 0; font-size: 0.88rem; opacity: 0.95; line-height: 1.8; }
.welcome-banner .close-x {
  position: absolute; top: 10px; right: 12px;
  background: rgba(255,255,255,0.2); border: none;
  width: 28px; height: 28px; border-radius: 50%;
  color: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.welcome-banner .close-x:hover { background: rgba(255,255,255,0.35); }

/* Buyuk adim adim gorsel rehber (success sayfasi) */
.flow-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
}
@media (min-width: 640px) { .flow-guide { grid-template-columns: 1fr 1fr 1fr; } }
.flow-step {
  background: #fff;
  border: 2px solid #e0e7ff;
  border-radius: 16px;
  padding: 20px 16px 16px;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}
.flow-step:hover { border-color: #6366f1; transform: translateY(-2px); }
.flow-num {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.flow-ic { font-size: 2rem; color: #6366f1; margin: 10px 0; }
.flow-title { font-weight: 700; font-size: 0.95rem; color: #1e1b4b; margin-bottom: 4px; }
.flow-desc { font-size: 0.78rem; color: #64748b; line-height: 1.5; }

/* Util */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.w-full { width: 100%; }
