:root {
  --bg: #ffffff;
  --ink: #0b1220;
  --muted: rgba(11,18,32,.62);
  --sky: rgba(140,197,255,.35);
  --blush: rgba(255,160,205,.28);
  --ice: rgba(220,245,255,.65);
  --line: rgba(11,18,32,.10);
  --r: 24px;
  --shadow: 0 18px 50px rgba(11,18,32,.10);
  --shadow2: 0 10px 24px rgba(11,18,32,.08);
}

* { box-sizing: border-box; }

header.wiz-hdr {
  display: block !important;
}

/* Global taşma ve kayma engelleyici */
html, body { 
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}

html { height: 100%; }

body {
  /* HEADER BOŞLUĞU: 64px header + 40px safe zone = 104px */
  padding-top: 104px !important;
  background: linear-gradient(135deg, #8EC5FF 0%, #FFC3E0 100%);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: var(--primary-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* MOBİL HEADER BOŞLUĞU: 56px header + 30px safe zone = 86px */
@media (max-width: 900px) {
  body { padding-top: 86px !important; }
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

.brand { 
  display: flex; 
  align-items: center;
  gap: 18px;
}

.brandText {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1, .siteTitle {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: bold; 
  color: var(--ink); 
}

.tagline {
  margin: 7px 0 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.45;
}

.stage {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 880px) {
  .stage { grid-template-columns: 1fr; }
}

.panel {
  border-radius: var(--r);
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel .topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(11,18,32,.08);
  background: linear-gradient(90deg, rgba(140,197,255,.12), rgba(255,160,205,.10));
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(11,18,32,.76);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.60);
}

.spark {
  width: 10px; height: 10px; border-radius: 99px;
  background: linear-gradient(135deg, rgba(140,197,255,1), rgba(255,160,205,1));
  box-shadow: 0 8px 18px rgba(140,197,255,.25);
}

.panel .body { padding: 16px; }

.hint {
  margin: 0 0 12px;
  color: rgba(11,18,32,.70);
  font-size: 15px;
  line-height: 1.45;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: rgba(11,18,32,.62);
}

input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.78);
  outline: none;
  font-size: 15px;
  transition: box-shadow .2s ease, border-color .2s ease;
}

input:focus {
  border-color: rgba(140,197,255,.72);
  box-shadow: 0 0 0 4px rgba(140,197,255,.18);
}

.actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 11px 14px;
  font-weight: 750;
  font-size: 14px;
  letter-spacing: .01em;
  transition: transform .08s ease, filter .2s ease;
  user-select: none;
}

button:active { transform: translateY(1px); }

.primary {
  background: linear-gradient(135deg, rgba(140,197,255,.95), rgba(255,160,205,.92));
  color: rgba(11,18,32,.92);
  box-shadow: var(--shadow2);
  padding: 13px 18px;
  font-size: 15px;
}

.ghost {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(11,18,32,.12);
  color: rgba(11,18,32,.84);
  padding: 13px 16px;
}

.hide { display: none !important; }

/* Result panel */
.result { padding: 18px 16px; }

.heroLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.bigSign { display: flex; align-items: center; gap: 12px; }

.emoji {
  width: 52px; height: 52px;
  border-radius: 20px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.72);
  display: grid; place-items: center;
  box-shadow: var(--shadow2);
  font-size: 24px;
}

.title {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.meta {
  margin: 4px 0 0;
  color: rgba(11,18,32,.60);
  font-size: 13.5px;
}

.softLines {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.soft {
  border-radius: 18px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.58);
  padding: 12px 12px;
  color: rgba(11,18,32,.82);
  font-size: 14px;
  line-height: 1.42;
}

.soft h3 {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(11,18,32,.86);
}
.soft p { margin: 0; color: rgba(11,18,32,.64); }

.note {
  margin-top: 12px;
  color: rgba(11,18,32,.52);
  font-size: 12.5px;
  line-height: 1.4;
}

/* Theme-fit history box in tool panel */
.momentWrap {
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(11,18,32,.10);
  background: linear-gradient(135deg, rgba(140,197,255,.10), rgba(255,160,205,.10));
}

.momentTitle {
  font-size: 12.5px;
  color: rgba(11,18,32,.72);
  margin-bottom: 6px;
  font-weight: 750;
}

.momentText {
  font-size: 14px;
  color: rgba(11,18,32,.74);
  line-height: 1.45;
}

/* Canvas preview */
.preview {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.52);
  padding: 10px;
  overflow: hidden;
}

canvas { width: 100%; height: auto; display: block; border-radius: 14px; }

/* ===== LAYOUT FIX ===== */
/* Selector Fix uygulandı: body.home ile class isimleri arasına boşluk bırakıldı */

body.home .stage {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

body.home .panel.result { margin-top: 18px; }

body.home .momentWrap {
  margin-top: 18px;
  padding: 16px;
}

body.home .heroLine {
  justify-content: center;
  text-align: center;
}

body.home .bigSign, 
body.home .actions { 
  justify-content: center; 
}

body.home .softLines { margin-top: 18px; }

body.home .preview {
  max-width: 500px;
  margin: 20px auto 0;
}

.pageTitle {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.sectionTitle {
  margin: 0px 0 10px;
  font-size: 18px;
  line-height: 1.2;
  opacity: .95;
}

.miniTitle {
  margin: 12px 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
}

.lead {
  margin: 0 0 14px;
  opacity: .9;
}

.suggestions-box {
  z-index: 9999 !important;
}