/* ===================================================================
   Demo Wizard — onboarding modal styles
   =================================================================== */

/* copy button under each card */
/* Kart alt kısmındaki KALICI "Satın Al" butonu (eski "Demo Linkini Kopyala" yerine) —
   hover overlay'deki .tpl-action.buy ile aynı görünüm (mint pill), her zaman görünür, detay sayfasına gider. */
.tpl-buy {
  margin-top: 14px;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--c-mint);
  color: #fff;
  font-size: 12.5px; font-weight: 700;
  text-decoration: none;
  transition: background .18s ease;
}
.tpl-buy:hover { background: var(--c-mint-deep); color: #fff; }
.tpl-buy svg { width: 14px; height: 14px; }

/* Kart başlığı → detay sayfası linki */
.tpl-info h3 a { color: inherit; text-decoration: none; }
.tpl-info h3 a:hover { color: var(--c-mint-deep); }

/* slider button row — hero actions */
.hero-actions { flex-wrap: wrap; }

/* ===================================================================
   WIZARD MODAL
   =================================================================== */
.wizard-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 19, 28, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 250;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.wizard-backdrop.is-open {
  display: flex;
  animation: wzFade .25s ease;
}
@keyframes wzFade { from { opacity: 0; } to { opacity: 1; } }

.wizard {
  width: 100%;
  max-width: 720px;
  background: var(--c-surface);
  border-radius: 24px;
  box-shadow: 0 50px 120px rgba(0,0,0,.4);
  overflow: hidden;
  position: relative;
  animation: wzPop .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 48px);
}
@keyframes wzPop {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wizard-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.06);
  display: grid; place-items: center;
  color: var(--c-ink-soft);
  transition: all .15s;
}
.wizard-close:hover { background: var(--c-coral); color: #fff; transform: rotate(90deg); }
.wizard-close svg { width: 14px; height: 14px; }

/* ----- Intro screen ----- */
.wizard-intro {
  padding: 48px 40px 40px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at top, var(--c-mint-soft) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, var(--c-coral-soft) 0%, transparent 60%),
    #fff;
}
.wizard-intro::before {
  content: ''; position: absolute; top: 20px; left: 20px;
  width: 80px; height: 60px;
  background-image: radial-gradient(var(--c-line-2) 1.4px, transparent 1.4px);
  background-size: 12px 12px;
  opacity: .9;
}
.wizard-intro::after {
  content: ''; position: absolute; bottom: 20px; right: 30px;
  width: 80px; height: 60px;
  background-image: radial-gradient(var(--c-mint) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: .35;
}

.wz-hero-ic {
  width: 96px; height: 96px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--c-mint) 0%, var(--c-mint-deep) 100%);
  border-radius: 28px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 20px 50px rgba(var(--c-accent-rgb), .24), 0 0 0 8px rgba(var(--c-accent-rgb), .1);
  position: relative;
  animation: wzFloat 4s ease-in-out infinite;
}
@keyframes wzFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
.wz-hero-ic svg { width: 44px; height: 44px; }
.wz-hero-ic .spark {
  position: absolute;
  font-size: 22px;
  animation: wzSpark 2.5s ease-in-out infinite;
}
.wz-hero-ic .spark.a { top: -8px; right: -8px; }
.wz-hero-ic .spark.b { bottom: -4px; left: -10px; animation-delay: 1.2s; }
@keyframes wzSpark {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(1.3) rotate(20deg); opacity: .6; }
}

.wizard-intro .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--c-mint-deep);
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.wizard-intro .eyebrow .pulse {
  width: 7px; height: 7px; background: var(--c-mint); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), .25);
}

.wizard-intro h2 {
  font-size: 30px; line-height: 1.15; letter-spacing: -.02em;
  margin: 0 0 14px;
  font-weight: 800;
  text-wrap: balance;
  position: relative;
}
.wizard-intro h2 .mint { color: var(--c-mint-deep); }
.wizard-intro h2 .coral { color: var(--c-coral); }
.wizard-intro p.sub {
  font-size: 15px; color: var(--c-ink-soft);
  margin: 0 auto 28px; max-width: 460px;
  text-wrap: pretty;
  position: relative;
}

.wizard-intro .feats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
  position: relative;
}
.wizard-intro .feats > div {
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 14px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  text-wrap: balance;
}
.wizard-intro .feats > div svg { width: 22px; height: 22px; color: var(--c-mint-deep); }

.wizard-intro .start-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  background: var(--c-ink);
  color: #fff;
  border-radius: 999px;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(26, 31, 46, .3);
  position: relative;
  transition: transform .18s, box-shadow .18s;
}
.wizard-intro .start-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(26, 31, 46, .4); }
.wizard-intro .start-btn .ico {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-mint);
  display: grid; place-items: center;
}
.wizard-intro .start-btn .ico svg { width: 12px; height: 12px; }

.wizard-intro .secondary {
  margin-top: 14px;
  font-size: 13px; color: var(--c-muted);
}
.wizard-intro .secondary a { color: var(--c-mint-deep); font-weight: 700; }
.wizard-intro .secondary a:hover { text-decoration: underline; }

/* ----- Stepper screen ----- */
.wizard-step-screen {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.wizard.in-steps .wizard-intro { display: none; }
.wizard.in-steps .wizard-step-screen { display: flex; }
.wizard.in-success .wizard-intro,
.wizard.in-success .wizard-step-screen { display: none; }

.wz-progress {
  padding: 22px 32px 18px;
  border-bottom: 1px solid var(--c-line);
  flex-shrink: 0;
}
.wz-progress-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.wz-progress-top .step-name { color: var(--c-ink); letter-spacing: -.005em; text-transform: none; font-size: 13.5px; font-weight: 700; }
.wz-bar {
  height: 6px;
  background: var(--c-bg-2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.wz-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-mint), var(--c-mint-deep));
  border-radius: 3px;
  width: 0%;
  transition: width .4s cubic-bezier(.2, .8, .2, 1);
}
.wz-dots {
  display: flex; justify-content: space-between;
  margin-top: 14px;
}
.wz-dot {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--c-muted);
  flex: 1;
  text-align: center;
}
.wz-dot .b {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-surface); border: 2px solid var(--c-line-2);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  transition: all .25s;
}
.wz-dot.is-done .b { background: var(--c-mint); border-color: var(--c-mint); color: #fff; }
.wz-dot.is-active .b {
  background: var(--c-surface); border-color: var(--c-ink); color: var(--c-ink);
  box-shadow: 0 0 0 4px rgba(26, 31, 46, .08);
}
.wz-dot.is-active { color: var(--c-ink); }
.wz-dot .b svg { width: 12px; height: 12px; }

.wz-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px 32px 24px;
  min-height: 0;
}

.wz-step { display: none; animation: wzSlide .35s cubic-bezier(.2,.8,.2,1); }
.wz-step.is-active { display: block; }
@keyframes wzSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.wz-step h3 {
  font-size: 22px; line-height: 1.2; letter-spacing: -.015em;
  margin: 0 0 6px;
  font-weight: 800;
}
.wz-step p.hint {
  font-size: 14px; color: var(--c-ink-soft);
  margin: 0 0 22px;
}

/* tile choice (for type, sector) */
.wz-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.wz-tile {
  background: var(--c-surface);
  border: 2px solid var(--c-line);
  border-radius: 16px;
  padding: 22px 20px;
  cursor: pointer;
  text-align: left;
  transition: all .2s;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.wz-tile:hover { border-color: var(--c-ink); transform: translateY(-2px); }
.wz-tile.is-selected {
  border-color: var(--c-mint);
  background: var(--c-mint-soft);
  box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), .12);
}
.wz-tile.is-selected::after {
  content: '';
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.wz-tile .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-bg-2);
  display: grid; place-items: center;
  color: var(--c-ink);
}
.wz-tile.is-selected .ico { background: var(--c-surface); color: var(--c-mint-deep); }
.wz-tile .ico svg { width: 22px; height: 22px; }
.wz-tile b { font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.wz-tile span { font-size: 12.5px; color: var(--c-ink-soft); line-height: 1.4; }

.wz-tiles.sectors {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wz-tiles.sectors .wz-tile {
  padding: 16px 12px;
  text-align: center;
  align-items: center;
  gap: 8px;
}
.wz-tiles.sectors .wz-tile b { font-size: 13px; }

/* form fields */
.wz-form {
  display: flex; flex-direction: column; gap: 16px;
}
.wz-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.wz-field {
  display: flex; flex-direction: column; gap: 6px;
}
.wz-field label {
  font-size: 12.5px; font-weight: 600;
  color: var(--c-ink-soft);
}
.wz-field label .req { color: var(--c-coral); }
.wz-field input,
.wz-field textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  color: var(--c-ink);
  resize: vertical;
}
.wz-field input:focus,
.wz-field textarea:focus {
  outline: none;
  border-color: var(--c-mint);
  box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), .12);
}
.wz-field textarea { min-height: 96px; }
.wz-field.is-error input,
.wz-field.is-error textarea { border-color: var(--c-coral); }
.wz-field .err-text {
  display: none;
  font-size: 11.5px; color: var(--c-coral);
  margin-top: 2px;
}
.wz-field.is-error .err-text { display: block; }

/* logo upload */
.wz-logo {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border: 1.5px dashed var(--c-line-2);
  border-radius: 12px;
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.wz-logo:hover { border-color: var(--c-mint); background: var(--c-mint-soft); }
.wz-logo .prev {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--c-bg-2);
  display: grid; place-items: center;
  color: var(--c-muted);
  overflow: hidden;
  flex-shrink: 0;
}
.wz-logo .prev img { width: 100%; height: 100%; object-fit: cover; }
.wz-logo .prev svg { width: 20px; height: 20px; }
.wz-logo .txt b { display: block; font-size: 13.5px; }
.wz-logo .txt span { font-size: 12px; color: var(--c-muted); }
.wz-logo input[type="file"] { display: none; }

/* footer */
.wz-foot {
  padding: 18px 32px;
  border-top: 1px solid var(--c-line);
  display: flex; justify-content: space-between; align-items: center;
  background: #FAFAFA;
  flex-shrink: 0;
}
.wz-foot .btn {
  padding: 12px 22px;
  font-size: 13.5px;
}
.wz-foot .btn-back {
  background: transparent;
  color: var(--c-ink-soft);
  padding: 12px 16px;
}
.wz-foot .btn-back:hover { color: var(--c-ink); }
.wz-foot .btn-back.hidden { visibility: hidden; }

/* ===================================================================
   SUCCESS SCREEN
   =================================================================== */
.wizard.in-success { max-width: 560px; }

.wizard-success {
  display: none;
  flex-direction: column;
  text-align: center;
  padding: 50px 40px;
  position: relative;
}
.wizard.in-success .wizard-success { display: flex; }

.wz-success-ic {
  width: 96px; height: 96px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--c-mint) 0%, var(--c-mint-deep) 100%);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 20px 60px rgba(var(--c-accent-rgb), .26);
  animation: wzPop .5s cubic-bezier(.2, 1.4, .3, 1);
}
.wz-success-ic svg { width: 48px; height: 48px; }

.wizard-success h2 {
  font-size: 28px; letter-spacing: -.02em; line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 800;
  text-wrap: balance;
}
.wizard-success p.sub {
  font-size: 14.5px;
  color: var(--c-ink-soft);
  margin: 0 0 28px;
}

.wz-demo-card {
  background: linear-gradient(135deg, #fff 0%, #F8FBF6 100%);
  border: 1.5px solid var(--c-line);
  border-radius: 18px;
  padding: 22px;
  text-align: left;
  margin-bottom: 24px;
}
.wz-demo-card .l {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.wz-demo-card .l::after {
  content: ''; flex: 1; height: 1px; background: var(--c-line);
}
.wz-link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  margin-bottom: 14px;
}
.wz-link .url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--c-mint-deep);
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wz-link .copy {
  background: var(--c-mint);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s;
}
.wz-link .copy:hover { background: var(--c-mint-deep); }
.wz-link .copy.is-copied { background: var(--c-ink); }
.wz-link .copy svg { width: 12px; height: 12px; }

.wz-demo-meta {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 12.5px;
}
.wz-demo-meta > div {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 10px 12px;
}
.wz-demo-meta b { display: block; font-size: 11px; color: var(--c-muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.wz-demo-meta span { color: var(--c-ink); font-weight: 600; }

.wizard-success .actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.wizard-success .actions .btn { padding: 12px 22px; font-size: 13.5px; }

/* ===================================================================
   "Demolarım" lookup modal
   =================================================================== */
.lookup-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 19, 28, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 250;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lookup-backdrop.is-open { display: flex; animation: wzFade .25s ease; }

.lookup {
  width: 100%; max-width: 460px;
  background: var(--c-surface);
  border-radius: 24px;
  padding: 40px 32px 32px;
  position: relative;
  animation: wzPop .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 50px 120px rgba(0,0,0,.4);
}
.lookup-ic {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--c-indigo) 0%, var(--c-violet) 100%);
  border-radius: 22px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 14px 40px rgba(110, 124, 242, .4);
}
.lookup-ic svg { width: 32px; height: 32px; }
.lookup h2 {
  text-align: center;
  font-size: 22px; letter-spacing: -.015em;
  margin: 0 0 8px;
  font-weight: 800;
}
.lookup p.sub {
  text-align: center;
  font-size: 13.5px;
  color: var(--c-ink-soft);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.lookup form {
  display: flex; flex-direction: column; gap: 12px;
}
.lookup input {
  font-family: inherit;
  font-size: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-bg-2);
  transition: all .15s;
}
.lookup input:focus {
  outline: none;
  border-color: var(--c-indigo);
  box-shadow: 0 0 0 4px rgba(110, 124, 242, .15);
  background: var(--c-surface);
}
.lookup-result {
  margin-top: 14px;
  padding: 16px;
  background: var(--c-mint-soft);
  border-radius: 12px;
  font-size: 13px;
  color: var(--c-ink);
  display: none;
}
.lookup-result.is-empty {
  background: var(--c-amber-soft);
}
.lookup-result.show { display: block; animation: wzSlide .3s ease; }
.lookup-result .url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--c-mint-deep);
  display: block;
  margin-top: 6px;
  word-break: break-all;
}

/* ===================================================================
   CONFETTI
   =================================================================== */
.confetti-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* ===================================================================
   "Özel Demolarım" hero button
   =================================================================== */
.btn-outline-ink {
  background: color-mix(in srgb, var(--c-mint) 10%, transparent);
  color: var(--c-mint-deep);
  border: 1.5px solid color-mix(in srgb, var(--c-mint) 40%, var(--c-line-2));
}
.btn-outline-ink:hover { border-color: var(--c-mint-deep); background: color-mix(in srgb, var(--c-mint) 18%, transparent); }

/* responsive */
@media (max-width: 640px) {
  .wizard { border-radius: 18px; max-height: calc(100vh - 24px); }
  .wizard-backdrop { padding: 12px; }
  .wizard-intro { padding: 36px 24px 28px; }
  .wizard-intro h2 { font-size: 22px; }
  .wizard-intro .feats { grid-template-columns: 1fr; }
  .wz-progress { padding: 18px 22px 14px; }
  .wz-body { padding: 24px 22px 20px; }
  .wz-foot { padding: 14px 22px; }
  .wz-tiles { grid-template-columns: 1fr; }
  .wz-tiles.sectors { grid-template-columns: repeat(2, 1fr); }
  .wz-row { grid-template-columns: 1fr; }
  .wz-dots { display: none; }
  .wizard-success { padding: 36px 24px 28px; }
  .wz-demo-meta { grid-template-columns: 1fr; }
}
