/* ═══════════════════════════════════════════════════════════════════════
   HOBİLYA YAPAY ZEKÂSI — /tasarla tasarım ekranı (shadcn tarzı · profesyonel mavi)
   ───────────────────────────────────────────────────────────────────────
   Her öğe bir komponent gibi davranır: nötr yüzey, ince çizgi, yumuşak
   gölge, mavi vurgu, oklüzyon değil "hover/active/focus" hâlleri.
   Koyu/açık tema html[data-theme] ile; yüzeyler sayfanın --t-* jetonlarından,
   mavi vurgular --ab-* ölçeğinden gelir. Harici çatı yok.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── MAVİ JETONLAR ────────────────────────────────────────────────────
   Profesyonel mavi ölçeği (shadcn blue ailesi). Vurgu BİR yerde tanımlanır;
   tüm komponentler buradan beslenir. */
:root{
  --ab-500:var(--accent, #3B82F6); --ab-600:var(--accent-ink, #2563EB); --ab-700:var(--accent-ink, #1D4ED8); --ab-800:#1E40AF; --ab-900:var(--accent-ink, #1E3A8A);
  --ab-soft:rgba(37,99,235,.10); --ab-soft-2:rgba(37,99,235,.16);
  --ab-line:rgba(37,99,235,.28); --ab-ink:var(--accent-ink, #1D4ED8);
  --ab-grad:linear-gradient(135deg,var(--accent, #3B82F6),var(--accent-ink, #1D4ED8));
  --ab-glow:0 10px 30px -10px rgba(37,99,235,.55);
  --ab-ring:0 0 0 3px rgba(37,99,235,.22);
  --ab-check:#F8FAFC;
}
html[data-theme="dark"]{
  --ab-500:var(--accent, #60A5FA); --ab-600:var(--accent, #3B82F6); --ab-700:var(--accent-ink, #2563EB); --ab-800:var(--accent-ink, #1D4ED8); --ab-900:var(--accent-ink, #1E3A8A);
  --ab-soft:rgba(59,130,246,.16); --ab-soft-2:rgba(59,130,246,.26);
  --ab-line:rgba(59,130,246,.40); --ab-ink:var(--accent-soft, #93C5FD);
  --ab-grad:linear-gradient(135deg,var(--accent, #60A5FA),var(--accent-ink, #2563EB));
  --ab-glow:0 10px 34px -8px rgba(37,99,235,.65);
  --ab-ring:0 0 0 3px rgba(59,130,246,.30);
  --ab-check:#0B1220;
}

/* Yüzey / çizgi / metin — sayfanın mevcut tasarım sistemi (body.tsr) */
:root{
  --ab-surface:var(--t-surface,#FFFFFF); --ab-surface-2:var(--t-surface-2,#F1F5F9);
  --ab-line-1:var(--t-line,#E4EAF2); --ab-ink-1:var(--t-ink,#0F1B2D);
  --ab-muted:var(--t-muted,#6B7C93); --ab-r-sm:var(--t-r-sm,8px);
  --ab-r-md:var(--t-r-md,12px); --ab-r-lg:var(--t-r-lg,16px);
  --ab-sh-1:var(--t-sh-1,0 1px 2px rgba(15,27,45,.05));
  --ab-sh-2:var(--t-sh-2,0 2px 8px -2px rgba(15,27,45,.08));
  --ab-sh-3:var(--t-sh-3,0 12px 32px -12px rgba(15,27,45,.22));
}

/* ── SOL PANELDEKİ "HOBİLYA AI" DÜĞMESİ (ilk sıra, profesyonel mavi) ── */
.cfg-type-ai{
  background:var(--ab-soft) !important;
  border:1px solid var(--ab-line) !important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.cfg-type-ai:hover{ background:var(--ab-soft-2) !important; transform:translateY(-1px); }
.cfg-type-ai span{ color:var(--ab-ink); font-weight:600; }
.cfg-type-ai small{ color:var(--ab-muted) !important; }
.cfg-type-ai.on{
  background:var(--ab-grad) !important;
  border-color:transparent !important;
  box-shadow:var(--ab-glow);
}
.cfg-type-ai.on span,
.cfg-type-ai.on small{ color:#fff !important; opacity:1 !important; }
.cfg-type-ai.on:hover{ transform:translateY(-1px); }

/* ── MOD GEÇİŞİ ───────────────────────────────────────────────────────
   3D tuvali hiç gizlenmez (gizli tuval 0×0 ölçülür, geri açıldığında
   en-boy oranı bozulur). AI ekranı onun ÜSTÜNE konumlanır. */
.cfg-stage{ position:relative; }

.cfg-app.ai-mode .cfg-side-r,
.cfg-app.ai-mode .cfg-foot,
.cfg-app.ai-mode .cfg-dock,
.cfg-app.ai-mode .cfg-hint,
.cfg-app.ai-mode .cfg-bar-r{ display:none !important; }
.cfg-app.ai-mode{ min-height:0; }
.cfg-app.ai-mode .cfg-body{
  flex:0 0 auto;
  grid-template-columns:200px minmax(0,1fr);
  height:min(60vh,520px);
}
.cfg-app.ai-mode .cfg-stage{ overflow:hidden; padding:0; }

/* ── SAHNE (kabuk) ──────────────────────────────────────────────────── */
.aid-stage{
  position:absolute; inset:0; z-index:6;
  display:none; align-items:stretch; justify-content:center;
  padding:14px; background:var(--ab-surface);
  font-family:var(--f-body,inherit); color:var(--ab-ink-1);
}
.cfg-app.ai-mode .aid-stage{ display:flex; }

.aid-fx{
  position:absolute; inset:0; width:100%; height:100%;
  pointer-events:none; z-index:0;
}
.aid-stage::before{
  content:''; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:radial-gradient(ellipse 62% 72% at 50% 44%, var(--ab-soft), transparent 70%);
}

/* ── SAYFA (SHEET) ──────────────────────────────────────────────────── */
.aid-sheet{
  position:relative; z-index:1;
  width:min(1400px,100%); height:100%; max-height:100%;
  display:flex; flex-direction:column; min-height:0;
  border:1px solid var(--ab-line-1); border-radius:var(--ab-r-lg);
  background:var(--ab-surface); overflow:hidden;
  box-shadow:var(--ab-sh-3);
}

/* ── BAŞLIK — fotoğraf generator üst çubuğu ──────────────────────────── */
.aid-head{
  display:flex; align-items:center; gap:10px; flex:0 0 auto;
  padding:11px 16px; border-bottom:1px solid var(--ab-line-1);
  background:color-mix(in srgb, var(--ab-surface) 88%, transparent);
}
.aid-ico{
  display:flex; align-items:center; gap:3px; flex:0 0 auto;
  width:30px; height:30px; border-radius:10px; justify-content:center;
  background:var(--ab-grad); box-shadow:var(--ab-glow);
}
.aid-ico i{ width:3.5px; height:3.5px; border-radius:50%; background:#fff; animation:aidBreathe 1.9s ease-in-out infinite; }
.aid-ico i:nth-child(2){ animation-delay:.2s }
.aid-ico i:nth-child(3){ animation-delay:.4s }
@keyframes aidBreathe{ 0%,100%{ opacity:.35; transform:scale(.85) } 50%{ opacity:1; transform:scale(1.35) } }

.aid-brand{ min-width:0; line-height:1.25; }
.aid-brand b{ display:block; font-size:13px; font-weight:600; letter-spacing:-.01em; }
.aid-brand em{
  display:block; font-style:normal; font-size:10px; color:var(--ab-muted); letter-spacing:.04em;
}
.aid-credit-host{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.aid-stepno{
  margin-left:6px; font-size:10.5px; color:var(--ab-muted);
  font-variant-numeric:tabular-nums; letter-spacing:.04em;
  padding:3px 8px; border:1px solid var(--ab-line-1); border-radius:999px;
  background:var(--ab-surface-2);
}
.aid-reset{
  flex:0 0 auto; width:30px; height:30px; padding:0; cursor:pointer;
  border:1px solid var(--ab-line-1); border-radius:9px; background:var(--ab-surface);
  color:var(--ab-muted); font-size:14px; line-height:1;
  transition:color .15s,background .15s,border-color .15s,transform .15s;
}
.aid-reset:hover{ background:var(--ab-soft); color:var(--ab-ink); border-color:var(--ab-line); }
.aid-reset:active{ transform:scale(.94); }

.aid-dots{ display:none; flex:0 0 auto; gap:3px; padding:9px 14px 0; }
.aid-dots i{ flex:1; height:3px; border-radius:2px; background:var(--ab-surface-2); border:1px solid var(--ab-line-1); transition:background .3s; }
.aid-dots i.on{ background:var(--ab-grad); border-color:transparent; }

/* ── GÖVDE: adım listesi + aktif soru ─────────────────────────────────── */
.aid-main{ flex:1 1 auto; min-height:0; display:grid; grid-template-columns:186px minmax(0,1fr); }

.aid-rail{
  border-right:1px solid var(--ab-line-1); background:var(--ab-surface-2);
  padding:14px 12px; overflow-y:auto; min-height:0;
}
.aid-rail-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.aid-rail-list li{
  display:flex; align-items:center; gap:8px; padding:7px 8px; border-radius:9px;
  font-size:11.5px; color:var(--ab-muted); cursor:default; line-height:1.3;
  transition:background .15s,color .15s;
}
.aid-rail-list li .n{
  flex:0 0 auto; width:18px; height:18px; border-radius:6px;
  display:grid; place-items:center; font-size:9.5px; font-weight:700;
  border:1px solid var(--ab-line-1); background:var(--ab-surface);
  font-variant-numeric:tabular-nums; transition:all .2s;
}
.aid-rail-list li .v{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.aid-rail-list li.done{ color:var(--ab-ink-1); cursor:pointer; }
.aid-rail-list li.done:hover{ background:var(--ab-soft); }
.aid-rail-list li.done .n{ background:var(--ab-grad); border-color:transparent; color:#fff; }
.aid-rail-list li.done .v{ color:var(--ab-muted); }
.aid-rail-list li.now{ color:var(--ab-ink); font-weight:600; background:var(--ab-soft); }
.aid-rail-list li.now .n{ background:var(--ab-grad); border-color:transparent; color:#fff; box-shadow:var(--ab-glow); }

/* ── AKTİF SORU ───────────────────────────────────────────────────────── */
.aid-body{
  min-height:0; overflow-y:auto; overscroll-behavior:contain;
  padding:20px 22px; scrollbar-width:thin;
}
.aid-body::-webkit-scrollbar{ width:6px; }
.aid-body::-webkit-scrollbar-thumb{ background:var(--ab-line-1); border-radius:3px; }
.aid-body::-webkit-scrollbar-thumb:hover{ background:var(--ab-line); }

.aid-q{ margin:0 0 16px; font-size:16.5px; font-weight:600; line-height:1.35; letter-spacing:-.015em; }
.aid-q small{
  display:block; margin-top:4px; font-size:11.5px; font-weight:400;
  color:var(--ab-muted); letter-spacing:0;
}

.aid-opts{ display:flex; flex-wrap:wrap; gap:7px; }
.aid-gt{
  width:100%; margin:14px 0 4px; font-size:9.5px; font-weight:700;
  letter-spacing:.11em; text-transform:uppercase; color:var(--ab-muted);
}
.aid-gt:first-child{ margin-top:0; }
.aid-chip{
  padding:7px 13px; border:1px solid var(--ab-line-1); background:var(--ab-surface);
  color:var(--ab-ink-1); border-radius:var(--ab-r-sm); font-family:inherit; font-size:11.5px;
  line-height:1.35; cursor:pointer; transition:.14s; white-space:nowrap;
  box-shadow:var(--ab-sh-1);
}
.aid-chip:hover{ border-color:var(--ab-500); background:var(--ab-soft); color:var(--ab-ink); transform:translateY(-1px); }
.aid-chip:active{ transform:scale(.97); }
.aid-chip.on{ background:var(--ab-grad); border-color:transparent; color:#fff; box-shadow:var(--ab-glow); }
.aid-chip.on:hover{ color:#fff; }

.aid-row{ display:flex; gap:8px; margin-top:18px; }
.aid-go{
  flex:1; padding:11px 16px; border:0; border-radius:var(--ab-r-md); cursor:pointer;
  font-family:inherit; font-size:12.5px; font-weight:600; color:#fff;
  background:var(--ab-grad); box-shadow:var(--ab-glow);
  transition:filter .15s,transform .15s;
}
.aid-go:hover{ filter:brightness(1.08); }
.aid-go:active{ transform:scale(.98); }
.aid-go[disabled]{ opacity:.5; cursor:not-allowed; box-shadow:none; }
.aid-alt{
  padding:11px 16px; border:1px solid var(--ab-line-1); border-radius:var(--ab-r-md); cursor:pointer;
  background:var(--ab-surface); color:var(--ab-muted); font-family:inherit; font-size:12.5px; font-weight:600;
  transition:color .15s,background .15s,border-color .15s;
}
.aid-alt:hover{ color:var(--ab-ink); background:var(--ab-soft); border-color:var(--ab-line); }

/* ── HAZIR FİKİRLER ───────────────────────────────────────────────────── */
.aid-sug{ margin:0 0 18px; }
.aid-sug-t{
  font-size:9.5px; font-weight:700; letter-spacing:.11em;
  text-transform:uppercase; color:var(--ab-muted); margin-bottom:8px;
}
.aid-sug-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(215px,1fr)); gap:6px; }
.aid-sug-b{
  display:flex; align-items:center; gap:8px; width:100%; text-align:left;
  padding:10px 12px; border:1px solid var(--ab-line-1); border-radius:var(--ab-r-md);
  background:var(--ab-surface); color:var(--ab-ink-1); font-family:inherit; font-size:11.5px;
  cursor:pointer; transition:.14s; box-shadow:var(--ab-sh-1);
}
/* Eskiden yıldız karakteri vardı; artık önerinin ürününe ait siluet
   basılıyor (bkz. productIcon). Her öneri aynı sembolle başladığında
   liste taranamıyordu. */
.aid-sug-b .aid-ico-p{ width:20px; height:20px; }
.aid-sug-b span{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.aid-sug-b:hover{ border-color:var(--ab-500); background:var(--ab-soft); transform:translateY(-1px); }
.aid-sug-b:active{ transform:scale(.98); }
.aid-or{
  display:flex; align-items:center; gap:9px; margin:0 0 15px;
  font-size:9.5px; font-weight:700; letter-spacing:.11em;
  text-transform:uppercase; color:var(--ab-muted);
}
.aid-or::before,.aid-or::after{ content:''; flex:1; height:1px; background:var(--ab-line-1); }

.aid-note{ margin-top:14px; }
.aid-note input{
  width:100%; padding:10px 13px; border:1px solid var(--ab-line-1); border-radius:var(--ab-r-sm);
  font-family:inherit; font-size:12.5px; color:var(--ab-ink-1); background:var(--ab-surface-2);
  transition:border-color .15s,box-shadow .15s;
}
.aid-note input::placeholder{ color:var(--ab-muted); }
.aid-note input:focus{ outline:none; border-color:var(--ab-500); box-shadow:var(--ab-ring); }

/* ── BEKLEYEN KADRAJ (onay adımı) ────────────────────────────────────── */
.aid-frame{
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; margin-bottom:16px; padding:34px 20px; text-align:center;
  border:1px dashed var(--ab-line); border-radius:var(--ab-r-lg);
  background:var(--ab-surface-2); overflow:hidden;
}
.aid-frame-ic{
  width:44px; height:44px; border-radius:14px; display:grid; place-items:center;
  font-size:19px; color:#fff; background:var(--ab-grad); box-shadow:var(--ab-glow);
  animation:aidFramePulse 2.4s ease-in-out infinite;
}
.aid-frame b{ font-size:13px; font-weight:600; }
.aid-frame em{ font-style:normal; font-size:11px; color:var(--ab-muted); }
@keyframes aidFramePulse{ 0%,100%{ transform:scale(1); box-shadow:var(--ab-glow) } 50%{ transform:scale(1.06); box-shadow:0 0 0 10px var(--ab-soft) } }

/* ── KÖŞE KÖŞEBENTLERİ ───────────────────────────────────────────────
   Kamera vizörü hissi: kadrajın dört köşesinde L köşebent. */
.aid-scan-corners{ position:absolute; inset:0; pointer-events:none; z-index:2; }
.aid-scan-corners i{
  position:absolute; width:20px; height:20px; border:0 solid var(--ab-500);
  transition:all .3s;
}
.aid-scan-corners i:nth-child(1){ left:10px; top:10px; border-left-width:2px; border-top-width:2px; border-top-left-radius:6px; }
.aid-scan-corners i:nth-child(2){ right:10px; top:10px; border-right-width:2px; border-top-width:2px; border-top-right-radius:6px; }
.aid-scan-corners i:nth-child(3){ left:10px; bottom:10px; border-left-width:2px; border-bottom-width:2px; border-bottom-left-radius:6px; }
.aid-scan-corners i:nth-child(4){ right:10px; bottom:10px; border-right-width:2px; border-bottom-width:2px; border-bottom-right-radius:6px; }

/* ── ÖZET (onay adımı) ────────────────────────────────────────────────── */
.aid-sum{
  border:1px solid var(--ab-line-1); border-radius:var(--ab-r-md); padding:12px 14px; margin-bottom:16px;
  background:var(--ab-surface-2); font-size:12px; line-height:1.8;
}
.aid-sum div{ display:flex; gap:10px; }
.aid-sum span{ flex:0 0 72px; color:var(--ab-muted); }
.aid-sum b{ font-weight:600; }

/* ── PROMPT ÇUBUĞU (Fotoğraf generator alt çubuğu) ────────────────────
   Midjourney/Leonardo tarzı: seçimler "prompt" gibi girilmiş görünür,
   sağda birincil eylem. */
.aid-genbar{
  display:flex; align-items:center; gap:9px;
  padding:7px 7px 7px 14px; border:1px solid var(--ab-line-1); border-radius:999px;
  background:var(--ab-surface); box-shadow:var(--ab-sh-2);
  transition:border-color .15s,box-shadow .15s;
}
.aid-genbar:focus-within{ border-color:var(--ab-500); box-shadow:var(--ab-ring); }
.aid-genbar-ico{
  flex:0 0 auto; width:26px; height:26px; border-radius:8px; display:grid; place-items:center;
  font-size:13px; color:#fff; background:var(--ab-grad);
}
.aid-genbar-text{
  flex:1 1 auto; min-width:0; font-size:12px; color:var(--ab-ink-1);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.aid-genbar-go{
  flex:0 0 auto; padding:10px 18px; border:0; border-radius:999px; cursor:pointer;
  font-family:inherit; font-size:12.5px; font-weight:600; color:#fff;
  background:var(--ab-grad); box-shadow:var(--ab-glow);
  transition:filter .15s,transform .15s;
}
.aid-genbar-go:hover{ filter:brightness(1.08); }
.aid-genbar-go:active{ transform:scale(.96); }
.aid-genbar-edit{
  flex:0 0 auto; width:36px; height:36px; padding:0; border:1px solid var(--ab-line-1); border-radius:50%;
  background:var(--ab-surface); color:var(--ab-muted); font-size:14px; cursor:pointer;
  transition:color .15s,background .15s,border-color .15s;
}
.aid-genbar-edit:hover{ color:var(--ab-ink); background:var(--ab-soft); border-color:var(--ab-line); }

/* ── DÜŞÜNÜYOR / HAZIRLANIYOR ─────────────────────────────────────────── */
.aid-think{ padding:48px 8px; text-align:center; }
.aid-think-ico{ display:flex; gap:5px; justify-content:center; margin-bottom:12px; }
.aid-think-ico i{
  width:8px; height:8px; border-radius:50%;
  background:var(--ab-grad);
  animation:aidBounce 1.05s ease-in-out infinite;
}
.aid-think-ico i:nth-child(2){ animation-delay:.16s }
.aid-think-ico i:nth-child(3){ animation-delay:.32s }
@keyframes aidBounce{
  0%,72%,100%{ transform:translateY(0); opacity:.42 }
  36%{ transform:translateY(-6px); opacity:1 }
}
.aid-think b{ display:block; font-size:12.5px; font-weight:600; color:var(--ab-muted); }

.aid-load{ padding:38px 8px; text-align:center; }
.aid-orb{
  width:64px; height:64px; margin:0 auto 14px; border-radius:50%; position:relative;
  background:conic-gradient(from 0deg,var(--accent, #3B82F6),var(--accent-ink, #1E3A8A),var(--accent-ink, #1D4ED8),var(--accent, #3B82F6));
  animation:aidSpin 2.2s linear infinite;
  filter:drop-shadow(0 8px 22px rgba(37,99,235,.45));
}
.aid-orb::before{ content:''; position:absolute; inset:6px; border-radius:50%; background:var(--ab-surface); }
.aid-orb::after{ content:'✨'; position:absolute; inset:0; display:grid; place-items:center;
  font-size:19px; animation:aidPulse 1.7s ease-in-out infinite; }
@keyframes aidSpin{ to{ transform:rotate(360deg) } }
@keyframes aidPulse{ 0%,100%{ transform:scale(1);opacity:.85 } 50%{ transform:scale(1.13);opacity:1 } }
.aid-load b{ display:block; font-size:13.5px; font-weight:600; }
.aid-load span{ display:block; margin-top:5px; font-size:12px; color:var(--ab-muted); min-height:1.2em; }
.aid-wait{ display:block; margin-top:8px; font-size:10.5px; font-style:normal; color:var(--ab-muted); }

/* ── ÜRETİM EKRANI — TARAMA ANİMASYONU ────────────────────────────────
   ChatGPT'nin üretim ekranı gibi: alan taranır, hücreler titrer, kiriş
   aşağı süpürür; fotoğraf "orada bir yerde belirecekmiş" hissi verir. */
.aid-gen{ display:flex; flex-direction:column; align-items:center; padding:14px 0 6px; }

.aid-scan{ width:100%; display:flex; justify-content:center; }
.aid-scan-frame{
  position:relative; width:min(320px,86%); aspect-ratio:1/1;
  border:1px solid var(--ab-line-1); border-radius:var(--ab-r-lg);
  background:var(--ab-surface-2); overflow:hidden;
  box-shadow:var(--ab-sh-2);
}

 50%{ opacity:1; transform:scale(1.05) } }

.aid-gen-meta{ margin-top:16px; text-align:center; }
.aid-gen-meta b{ display:block; font-size:14px; font-weight:600; }
.aid-gen-meta span{ display:block; margin-top:5px; font-size:12px; color:var(--ab-muted); min-height:1.3em; }
.aid-gen-meta .aid-wait{ margin-top:8px; font-size:10.5px; color:var(--ab-muted); }

/* ── SONUÇ ────────────────────────────────────────────────────────────
   Masaüstünde iki sütun: solda görsel, sağda başlık + eylemler + fiyat.
   Görsel, kadrajda "taranarak" açığa çıkar. */
.aid-res{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start; }
.aid-res.reveal{ animation:aidReveal .55s cubic-bezier(.2,.7,.3,1) both; }
@keyframes aidReveal{
  from{ opacity:0; transform:translateY(14px) scale(.985) }
  to{ opacity:1; transform:none }
}
.aid-shot{
  position:relative; border:1px solid var(--ab-line-1); border-radius:var(--ab-r-lg);
  overflow:hidden; background:var(--ab-surface-2);
}
.aid-shot img{
  display:block; width:100%; height:auto;
  opacity:0; transform:scale(1.015); filter:blur(12px);
  transition:opacity .65s ease,transform .65s ease,filter .65s ease;
}
.aid-shot.loaded img{ opacity:1; transform:none; filter:none; }
.aid-shot-scan{
  position:absolute; left:0; right:0; top:-55%; height:55%; z-index:2; pointer-events:none;
  background:linear-gradient(180deg, transparent, var(--ab-soft-2) 55%, var(--ab-soft-2));
  opacity:0;
}
.aid-shot-scan i{
  position:absolute; left:6%; right:6%; top:calc(100% - 2px); height:2px;
  background:linear-gradient(90deg, transparent, var(--ab-500), transparent);
  box-shadow:0 0 12px 1px var(--ab-500);
}
.aid-shot.loaded .aid-shot-scan{ animation:aidShotSweep .8s ease .1s forwards; }
@keyframes aidShotSweep{
  0%{ top:-55%; opacity:0 }
  12%{ opacity:1 }
  80%{ opacity:1 }
  100%{ top:105%; opacity:0 }
}

.aid-title{ margin:0 0 12px; font-size:14.5px; font-weight:600; line-height:1.35; }
.aid-acts{ display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.aid-b{
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  padding:10px; border-radius:var(--ab-r-md); border:1px solid var(--ab-line-1);
  background:var(--ab-surface); color:var(--ab-ink-1); text-decoration:none;
  font-family:inherit; font-size:11.5px; font-weight:600; cursor:pointer; transition:.14s;
}
.aid-b:hover{ border-color:var(--ab-500); background:var(--ab-soft); color:var(--ab-ink); }
.aid-b.pri{ grid-column:1/-1; border-color:transparent; color:#fff;
  background:var(--ab-grad); box-shadow:var(--ab-glow); }
.aid-b.pri:hover{ filter:brightness(1.07); background:var(--ab-grad); color:#fff; }
.aid-b.wa{ background:#25D366; border-color:#25D366; color:#fff; }
.aid-b.wa:hover{ background:#1FB958; border-color:#1FB958; color:#fff; }
.aid-b[disabled]{ opacity:.5; cursor:not-allowed; }
.aid-hint{ margin:11px 0 0; font-size:10.5px; color:var(--ab-muted); line-height:1.6; }
.aid-hint a{ color:var(--ab-ink); }

.aid-err{
  padding:12px 14px; border-radius:var(--ab-r-md); font-size:12px; line-height:1.6;
  background:rgba(220,38,38,.08); border:1px solid rgba(220,38,38,.28); color:var(--danger, #dc2626);
}
html[data-theme="dark"] .aid-err{ color:var(--danger, #fca5a5); }
.aid-err a{ color:inherit; font-weight:600; }

/* ── TAHMİNİ FİYAT ────────────────────────────────────────────────────── */
.aid-price{
  margin-top:10px; border:1px solid var(--ab-line-1); border-radius:var(--ab-r-md);
  background:var(--ab-surface-2); overflow:hidden; transition:box-shadow .2s;
}
.aid-price[open]{ box-shadow:var(--ab-sh-1); }
.aid-price > summary{
  display:flex; align-items:center; gap:8px; cursor:pointer; list-style:none;
  padding:10px 13px; font-size:11.5px; transition:background .15s;
}
.aid-price > summary:hover{ background:var(--ab-soft); }
.aid-price > summary::-webkit-details-marker{ display:none }
.aid-price > summary::after{
  content:'▾'; margin-left:2px; font-size:9px; color:var(--ab-muted); transition:transform .18s ease;
}
.aid-price[open] > summary::after{ transform:rotate(180deg) }
.aid-price > summary > span{ color:var(--ab-muted); }
.aid-price > summary > b{ margin-left:auto; font-size:13.5px; font-weight:700; letter-spacing:-.01em; color:var(--ab-ink-1); }
.aid-pr-body{ padding:0 13px 11px; border-top:1px dashed var(--ab-line-1); }
.aid-pr-l{ display:flex; gap:8px; align-items:baseline; padding:6px 0; font-size:11px; }
.aid-pr-l + .aid-pr-l{ border-top:1px solid var(--ab-line-1); }
.aid-pr-l > span{ flex:1; min-width:0; }
.aid-pr-l i{ font-style:normal; color:var(--ab-muted); font-size:10px; }
.aid-pr-l > b{ flex:0 0 auto; font-weight:600; font-variant-numeric:tabular-nums; }
.aid-pr-n{ margin:9px 0 0; font-size:10px; line-height:1.6; color:var(--ab-muted); }

/* ── GİRİŞ / HAK BİTTİ ────────────────────────────────────────────────── */
.aid-gate{ max-width:380px; margin:0 auto; padding:20px 0 4px; text-align:center; }
.aid-gate-ico{
  width:48px; height:48px; margin:0 auto 12px; border-radius:14px;
  display:grid; place-items:center; font-size:19px; color:#fff;
  background:var(--ab-grad); box-shadow:var(--ab-glow);
  animation:aidFramePulse 2.4s ease-in-out infinite;
}
.aid-gate b{ display:block; font-size:14px; font-weight:600; margin-bottom:6px; }
.aid-gate p{ margin:0 0 14px; font-size:12px; line-height:1.65; color:var(--ab-muted); }
.aid-gate .aid-go{ text-decoration:none; }
.aid-pk-list{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; text-align:left; }
.aid-pk{
  padding:9px 13px; border:1px solid var(--ab-line-1); border-radius:var(--ab-r-md);
  font-size:11.5px; background:var(--ab-surface-2);
}

/* ── ÜRETİM HAKKI SAYACI ──────────────────────────────────────────────── */
.aid-credit{
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:999px; font-size:10.5px; font-weight:700;
  background:var(--ab-soft); border:1px solid var(--ab-line);
  color:var(--ab-ink); text-decoration:none; font-variant-numeric:tabular-nums;
  transition:background .15s,border-color .15s,transform .15s;
}
.aid-credit i{ font-style:normal; font-size:9px; opacity:.85; }
.aid-credit.low{ background:rgba(180,83,9,.10); border-color:rgba(180,83,9,.32); color:#b45309; }
.aid-credit.zero{ background:rgba(220,38,38,.08); border-color:rgba(220,38,38,.30); color:var(--danger, #dc2626); }
.aid-credit.need{ background:var(--ab-grad); border-color:transparent; color:#fff; box-shadow:var(--ab-glow); }
.aid-credit:hover{ transform:translateY(-1px); filter:brightness(1.06); }
html[data-theme="dark"] .aid-credit.low{ color:#fbbf24; }
html[data-theme="dark"] .aid-credit.zero{ color:var(--danger, #fca5a5); }
html[data-theme="dark"] .aid-credit.need{ color:#fff; }

/* ── ALT ŞERİT ────────────────────────────────────────────────────────── */
.aid-foot{
  flex:0 0 auto; display:flex; align-items:center; gap:7px;
  padding:9px 14px; border-top:1px solid var(--ab-line-1); min-height:42px;
  background:var(--ab-surface);
}
.aid-back{
  flex:0 0 auto; padding:6px 11px; border:1px solid var(--ab-line-1); border-radius:var(--ab-r-sm);
  background:var(--ab-surface); color:var(--ab-muted); font-family:inherit; font-size:11px;
  font-weight:600; cursor:pointer; transition:color .15s,background .15s,border-color .15s;
}
.aid-back:hover{ color:var(--ab-ink); background:var(--ab-soft); border-color:var(--ab-line); }
.aid-picked{ display:flex; flex-wrap:nowrap; gap:4px; overflow-x:auto; scrollbar-width:none; min-width:0; flex:1; }
.aid-picked::-webkit-scrollbar{ display:none; }
.aid-tag{
  display:inline-flex; align-items:center; gap:4px; flex:0 0 auto;
  padding:3px 5px 3px 9px; border-radius:999px; font-size:10.5px;
  background:var(--ab-soft); border:1px solid var(--ab-line); color:var(--ab-ink);
  animation:aidTagIn .22s ease both;
}
@keyframes aidTagIn{ from{ opacity:0; transform:scale(.9) } to{ opacity:1; transform:none } }
.aid-tag button{
  width:14px; height:14px; padding:0; border:0; border-radius:50%; cursor:pointer;
  background:rgba(127,127,140,.28); color:var(--ab-ink-1); font-size:9px; line-height:1;
  transition:background .15s,color .15s;
}
.aid-tag button:hover{ background:var(--ab-600); color:#fff; }

.aid-hist{ display:grid; grid-template-columns:repeat(auto-fill,minmax(78px,1fr)); gap:7px; margin-top:12px; }
.aid-hist button{
  padding:0; border:1px solid var(--ab-line-1); border-radius:var(--ab-r-md); overflow:hidden;
  background:transparent; cursor:pointer; aspect-ratio:1;
  transition:border-color .15s,transform .15s;
}
.aid-hist img{ width:100%; height:100%; object-fit:cover; display:block; }
.aid-hist button:hover{ border-color:var(--ab-500); transform:translateY(-2px); }

/* ── KARŞILAMA SLIDER'I (üye olmayan ziyaretçi) ────────────────────────
   "Hobilya AI · 10 Ücretsiz Hak kazan üye ol :)" — ilk gelişte bir kez.
   Üstte karartmalı zemin, ortada kart; slayt geçişleri kayarak. */
.aid-bo{
  position:absolute; inset:0; z-index:40;
  display:flex; align-items:center; justify-content:center; padding:18px;
  opacity:0; visibility:hidden; transition:opacity .28s ease,visibility .28s;
}
.aid-bo[hidden]{ display:none; }
.aid-bo::before{
  content:''; position:absolute; inset:0;
  background:rgba(9,17,32,.55);
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
}
.aid-bo.aid-bo-open{ opacity:1; visibility:visible; }
.aid-bo-card{
  position:relative; z-index:1; width:min(410px,100%);
  background:var(--ab-surface); border:1px solid var(--ab-line-1);
  border-radius:var(--ab-r-lg); box-shadow:var(--ab-sh-3);
  padding:30px 26px 22px; text-align:center;
  transform:translateY(18px) scale(.97); opacity:0;
  transition:transform .34s cubic-bezier(.2,.8,.3,1.1),opacity .3s;
}
.aid-bo.aid-bo-open .aid-bo-card{ transform:none; opacity:1; }
.aid-bo-x{
  position:absolute; top:12px; right:12px; width:32px; height:32px; padding:0;
  border:1px solid var(--ab-line-1); border-radius:9px; cursor:pointer;
  background:var(--ab-surface); color:var(--ab-muted);
  display:grid; place-items:center; transition:color .15s,background .15s,border-color .15s,transform .15s;
}
.aid-bo-x svg{ width:15px; height:15px; }
.aid-bo-x:hover{ color:var(--ab-ink); background:var(--ab-soft); border-color:var(--ab-line); }
.aid-bo-x:active{ transform:scale(.92); }

.aid-bo-view{ min-height:216px; display:flex; align-items:center; justify-content:center; }
.aid-bo-slide{ width:100%; animation:aidBoSlide .4s cubic-bezier(.2,.8,.3,1) both; }
@keyframes aidBoSlide{
  from{ opacity:0; transform:translateX(26px) }
  to{ opacity:1; transform:none }
}
.aid-bo-icon{
  width:62px; height:62px; margin:6px auto 16px; border-radius:18px; display:grid; place-items:center;
  font-size:26px; color:#fff; background:var(--ab-grad); box-shadow:var(--ab-glow);
  animation:aidBoIcon 2.6s ease-in-out infinite;
}
.aid-bo-icon.cta{ background:conic-gradient(from 210deg,var(--accent, #3B82F6),var(--accent-ink, #1E3A8A),var(--accent-ink, #2563EB),var(--accent-ink, #1D4ED8),var(--accent, #3B82F6)); }
@keyframes aidBoIcon{ 0%,100%{ transform:scale(1) rotate(0deg) } 50%{ transform:scale(1.07) rotate(3deg) } }
.aid-bo-title{ display:block; font-size:17px; font-weight:700; letter-spacing:-.02em; line-height:1.3; }
.aid-bo-text{ margin:8px auto 0; max-width:300px; font-size:12px; line-height:1.6; color:var(--ab-muted); }
.aid-bo .aid-bo-title .grad{
  background:var(--ab-grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}

.aid-bo-dots{ display:flex; justify-content:center; gap:6px; margin:4px 0 16px; }
.aid-bo-dots i{
  width:7px; height:7px; border-radius:999px; background:var(--ab-line-1);
  border:1px solid var(--ab-line);
  transition:all .25s ease; cursor:pointer;
}
.aid-bo-dots i.on{ width:24px; background:var(--ab-grad); border-color:transparent; }

.aid-bo-acts{ display:flex; align-items:stretch; gap:8px; }
.aid-bo-nav{
  flex:0 0 44px; border:1px solid var(--ab-line-1); border-radius:var(--ab-r-md);
  background:var(--ab-surface); color:var(--ab-muted); cursor:pointer;
  display:grid; place-items:center; transition:color .15s,background .15s,border-color .15s,transform .15s;
}
.aid-bo-nav svg{ width:17px; height:17px; }
.aid-bo-nav:hover{ color:var(--ab-ink); background:var(--ab-soft); border-color:var(--ab-line); }
.aid-bo-nav:active{ transform:scale(.94); }
.aid-bo-main{ flex:1 1 auto; display:flex; flex-direction:column; gap:7px; min-width:0; }
.aid-bo-b{
  display:block; width:100%; padding:11px 14px; border-radius:var(--ab-r-md);
  font-family:inherit; font-size:12.5px; font-weight:600; cursor:pointer; text-decoration:none;
  border:1px solid var(--ab-line-1); background:var(--ab-surface); color:var(--ab-ink-1);
  transition:filter .15s,background .15s,border-color .15s,transform .15s;
  animation:aidBoSlide .4s cubic-bezier(.2,.8,.3,1) both;
}
.aid-bo-b:nth-child(2){ animation-delay:.05s }
.aid-bo-b:nth-child(3){ animation-delay:.1s }
.aid-bo-b.pri{ background:var(--ab-grad); border-color:transparent; color:#fff; box-shadow:var(--ab-glow); }
.aid-bo-b.pri:hover{ filter:brightness(1.08); }
.aid-bo-b.ghost:hover{ color:var(--ab-ink); background:var(--ab-soft); border-color:var(--ab-line); }
.aid-bo-b.link{ border-color:transparent; background:transparent; color:var(--ab-muted); font-size:11.5px; padding:7px; box-shadow:none; }
.aid-bo-b.link:hover{ color:var(--ab-ink); background:transparent; }
.aid-bo-b:active{ transform:scale(.98); }

/* ── TABLET ──────────────────────────────────────────────────────────── */
@media (max-width:1180px) and (min-width:901px){
  .cfg-app.ai-mode .cfg-side-l{ display:block !important; }
  .cfg-app.ai-mode .cfg-body{ grid-template-columns:180px minmax(0,1fr); }
  .aid-main{ grid-template-columns:160px minmax(0,1fr); }
}

/* ── MOBİL ──────────────────────────────────────────────────────────── */
@media (max-width:900px){
  .cfg-app.ai-mode .cfg-body{ height:auto; }
  .aid-stage{ padding:0; }
  .aid-fx{ display:none; }
  .aid-sheet{ width:100%; border:0; border-radius:0; box-shadow:none; }
  .aid-dots{ display:flex; }
  .aid-rail{ display:none; }
  .aid-main{ grid-template-columns:minmax(0,1fr); }
  .aid-body{ padding:16px 14px 10px; }
  .aid-q{ font-size:15px; }
  .aid-res{ grid-template-columns:minmax(0,1fr); gap:12px; }
  .aid-shot img{ max-height:42vh; object-fit:contain; }
  .aid-sug-list{ grid-template-columns:minmax(0,1fr); }
  .aid-chip{ padding:8px 13px; font-size:12px; }
  .aid-head{ padding:10px 12px; gap:8px; }
  .aid-brand{ flex:1 1 auto; min-width:84px; }
  .aid-brand b{
    font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .aid-brand em{ display:none; }
  .aid-credit-host{ margin-left:0; flex:0 0 auto; }
  .aid-credit{ padding:4px 8px; font-size:10px; }
  .aid-stepno{ margin-left:4px; font-size:10px; }
  .aid-genbar{ border-radius:var(--ab-r-lg); flex-wrap:nowrap; }
  .aid-genbar-text{ font-size:11px; }
  .aid-genbar-go{ padding:9px 14px; }
}

@media (max-width:400px){
  .aid-brand b{ font-size:12px; }
  .aid-stepno{ display:none; }
  .aid-mobnav{ grid-template-columns:1fr 1.5fr; gap:6px; }
  .aid-mobnav-b{ font-size:11.5px; padding:10px 8px; }
}

/* ── MOBİL GEZİNME ──────────────────────────────────────────────────── */
.aid-mobnav{ display:none; }

@media (max-width:900px){
  .aid-mobnav{
    display:grid; grid-template-columns:1fr 1.4fr; gap:7px; flex:0 0 auto;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top:1px solid var(--ab-line-1); background:var(--ab-surface);
  }
  .aid-mobnav-b{
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
    min-height:46px; padding:10px 12px; border-radius:var(--ab-r-md);
    border:1px solid var(--ab-line-1); background:var(--ab-surface); color:var(--ab-ink-1);
    font-family:inherit; font-size:12.5px; font-weight:600; cursor:pointer;
    text-decoration:none; white-space:nowrap;
    transition:background .15s,transform .15s;
  }
  .aid-mobnav-b svg{ width:16px; height:16px; flex:0 0 auto; }
  .aid-mobnav-b.pri{
    background:var(--ab-grad);
    border-color:transparent; color:#fff; box-shadow:var(--ab-glow);
  }
  .aid-mobnav-b:active{ transform:scale(.98); }

  body.aid-full .aid-sheet{ height:100dvh; }
  .aid-chip{ min-height:38px; display:inline-flex; align-items:center; }
  .aid-sug-b{ min-height:44px; }
  .aid-go,.aid-alt{ min-height:46px; }
  .aid-b{ min-height:44px; }
}
/* ═══════════════════════════════════════════════════════════════════════
   GENİŞ EKRAN — masaüstü
   ───────────────────────────────────────────────────────────────────────
   Kart 900px'te sabitken 1440px'lik bir ekranın üçte biri boş duruyordu;
   seçenek çipleri dar bir sütuna sıkışıp beş satıra iniyor, üretilen
   fotoğraf ise gereğinden küçük kalıyordu. Kart artık 1400px'e kadar
   nefes alır: ray genişler, çipler tek bakışta görünür, fotoğraf büyür.
   Kenardan kenara YAPILMADI — 2000px'lik bir ekranda tam genişlik, soru
   metnini okunamayacak kadar uzun satırlara yayardı.
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width:901px){
  .aid-stage{ padding:20px; }
  .aid-main{ grid-template-columns:212px minmax(0,1fr); }
  .aid-rail{ padding:16px 12px; }
  .aid-body{ padding:26px 30px 30px; }
  .aid-head{ padding:13px 20px; }
  .aid-foot{ padding:10px 20px; }

  .aid-q{ font-size:18px; margin-bottom:18px; }
  .aid-q small{ font-size:12.5px; }
  .aid-chip{ padding:8px 15px; font-size:12.5px; }
  .aid-opts{ gap:8px; }
  .aid-sug-list{ grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:8px; }
  .aid-sug-b{ font-size:12.5px; padding:12px 14px; }
}

/* ── ONAY ADIMI: kadraj solda, özet sağda ─────────────────────────────
   Boş kadraj tüm genişliğe yayıldığında ince bir şerit gibi duruyordu.
   Yan yana konunca kadraj kare kalır — üretilecek fotoğrafın oranını
   dürüstçe gösterir. */
.aid-cfm{ display:grid; gap:16px; }
.aid-cfm > .aid-frame{ margin-bottom:0; }
.aid-cfm-side > .aid-sum{ margin-bottom:0; }

@media (min-width:1100px){
  .aid-cfm{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:stretch; }
  .aid-cfm > .aid-frame{ min-height:280px; }
  .aid-cfm-side{ display:flex; flex-direction:column; justify-content:center; gap:14px; }
  .aid-cfm-side > .aid-note{ margin-top:0; }
  .aid-sum{ font-size:12.5px; padding:16px 18px; }
  .aid-sum span{ flex-basis:84px; }
}

/* ── SONUÇ: fotoğraf ağır bassın ──────────────────────────────────── */
@media (min-width:1100px){
  .aid-res{ grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:24px; }
  /* Kadrajı ekranda tutar: fotoğraf uzun gelirse sayfa değil, görsel
     küçülür — indirme düğmesi kaydırma gerektirmeden görünür kalır. */
  .aid-shot img{ max-height:calc(100dvh - 300px); object-fit:contain; }
  .aid-title{ font-size:16px; }
  .aid-acts{ gap:9px; }
  .aid-b{ padding:12px; font-size:12.5px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SOHBET DÜZENİ — yalnızca mobil (≤900px)
   ───────────────────────────────────────────────────────────────────────
   Sorular solda, verilen cevaplar sağda birikir. Cevap balonu bir düğmedir:
   dokununca o soruya dönülür — telefonda "geri" düğmesi aramak yerine
   doğrudan hedefe basmak daha kısa yoldur.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width:900px){
  .aid-body{
    display:flex; flex-direction:column; gap:10px;
    padding:14px 12px 20px;
    /* scroll-behavior:smooth BİLEREK YOK: yeni balon eklenirken scrollTop'a
       yazmak yumuşak kaydırmayı başlatır, hemen ardından gelen düzen
       değişikliği de onu iptal eder — sonuç, hiç kaydırmayan bir ekran. */
  }

  /* Alt şerit sohbette gereksiz: seçimler zaten balon olarak duruyor ve
     aynı bilgiyi iki yerde göstermek dar ekranda yer yiyordu. */
  .aid-foot{ display:none; }

  .aid-turn{ display:flex; flex:0 0 auto; }
  .aid-turn[data-turn="me"]{ justify-content:flex-end; }
  .aid-turn:last-child{ animation:aidBubIn .28s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes aidBubIn{
    from{ opacity:0; transform:translateY(9px) scale(.985) }
    to{ opacity:1; transform:none }
  }

  .aid-bub.bot{
    width:100%; min-width:0;
    padding:14px 14px 13px;
    border:1px solid var(--ab-line-1); border-radius:5px 16px 16px 16px;
    background:var(--ab-surface); box-shadow:var(--ab-sh-1);
  }
  .aid-bub.me{
    max-width:84%; padding:10px 14px; border:0; cursor:pointer;
    border-radius:16px 16px 5px 16px; text-align:left;
    background:var(--ab-grad); color:#fff; box-shadow:var(--ab-glow);
    font-family:inherit; font-size:12.5px; font-weight:600; line-height:1.4;
  }
  .aid-bub.me:active{ transform:scale(.97); }

  /* Geçmiş: okunur, soluk, tıklanamaz. Kullanıcı balonları hariç —
     onlar geri dönüş yoludur. */
  .aid-turn.locked .aid-bub.bot{ opacity:.62; box-shadow:none; }
  .aid-turn.locked .aid-bub.bot button,
  .aid-turn.locked .aid-bub.bot a[data-act]{ pointer-events:none; }
  .aid-turn.locked .aid-bub.bot .aid-chip.on{ opacity:1; }

  /* "Yazıyor" balonu — üç nokta, metin yok. */
  .aid-bub.bot.typing{ width:auto; padding:13px 16px; }
  .aid-bub.bot.typing .aid-think-ico{ display:flex; gap:5px; margin:0; }

  /* Balon içinde başlık ve boşluklar daralır: kart zaten bir çerçeve. */
  .aid-bub .aid-q{ margin-bottom:12px; font-size:14.5px; }
  .aid-bub .aid-row{ margin-top:14px; }
  .aid-bub .aid-sug{ margin-bottom:14px; }
  .aid-bub .aid-frame{ padding:26px 16px; }
  .aid-bub .aid-gen{ padding:6px 0 2px; }
  .aid-bub .aid-think{ padding:0; }

  .aid-cfm{ gap:14px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ÜRETİM ANİMASYONU — "görüntü nokta nokta çözülüyor"
   ───────────────────────────────────────────────────────────────────────
   FİKİR: fotoğraf bir anda belirmez; bir tarayıcı kafası yukarıdan aşağı
   süzülür ve geçtiği yerdeki noktalar sönükten parlağa döner. Kullanıcı
   "bir şey işleniyor" hissini ilerleme çubuğu olmadan alır.

   NASIL: iki özdeş nokta dokusu üst üste durur.
     .aid-dots.base  sönük noktalar — henüz işlenmemiş pikseller
     .aid-dots.lit   parlak noktalar — MASKELİDİR; maskesi aşağı kaydıkça
                     alttaki sönük noktaların üstünü açar
   Nokta dokusunun kendisi hiç hareket etmez; hareket eden yalnızca maske
   ve süzülen ışık bandıdır. Bu, düzen (layout) hesabı gerektirmeyen
   yalnızca compositor işidir — telefonda da akıcı kalır.

   RENK: yeşil→turkuaz→mavi. Yeşil "işleniyor/canlı", mavi ise sayfanın
   mevcut vurgu rengi; ikisi arası geçiş, arayüzün geri kalanından
   kopmadan üretime özel bir kimlik verir.
   ═══════════════════════════════════════════════════════════════════════ */
.aid-scan-frame{
  --aid-em1:var(--good, #34D399);   /* zümrüt  */
  --aid-em2:var(--good, #22D3EE);   /* turkuaz */
  --aid-em3:var(--accent, #3B82F6);   /* mavi    */
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(52,211,153,.10), transparent 60%),
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(59,130,246,.12), transparent 60%),
    var(--ab-surface-2);
}
html[data-theme="dark"] .aid-scan-frame{
  --aid-em1:#6EE7B7; --aid-em2:#67E8F9; --aid-em3:var(--accent, #60A5FA);
}

/* ── NOKTA DOKUSU ─────────────────────────────────────────────────────
   İki ayrı ızgara (biri yarım adım kaydırılmış) düz bir kareli desen
   yerine "sensör pikseli" hissi verir. */
.aid-dots{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image:
    radial-gradient(circle, currentColor 1.15px, transparent 1.7px),
    radial-gradient(circle, currentColor .8px,  transparent 1.3px);
  background-size:14px 14px, 14px 14px;
  background-position:0 0, 7px 7px;
}
.aid-dots.base{ color:var(--ab-line-1); opacity:.9; }

/* Parlak katman: maskesi aşağı kayar, geçtiği yer "çözülmüş" olur.
   mask-position animasyonu düzen hesabı yapmaz. */
.aid-dots.lit{
  color:var(--aid-em2);
  filter:drop-shadow(0 0 4px var(--aid-em1));
  -webkit-mask-image:linear-gradient(180deg, transparent 0 8%, #000 20% 46%, transparent 62% 100%);
          mask-image:linear-gradient(180deg, transparent 0 8%, #000 20% 46%, transparent 62% 100%);
  -webkit-mask-size:100% 260%;  mask-size:100% 260%;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  animation:aidDotReveal 2.9s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes aidDotReveal{
  0%   { -webkit-mask-position:0 -160%; mask-position:0 -160%; }
  100% { -webkit-mask-position:0 100%;  mask-position:0 100%;  }
}

/* ── SÜZÜLEN IŞIK BANDI ───────────────────────────────────────────── */
.aid-sweep{
  position:absolute; left:-8%; right:-8%; top:-40%; height:40%; z-index:2;
  pointer-events:none;
  background:linear-gradient(180deg,
    transparent,
    color-mix(in srgb, var(--aid-em1) 16%, transparent) 45%,
    color-mix(in srgb, var(--aid-em2) 26%, transparent) 78%,
    color-mix(in srgb, var(--aid-em2) 34%, transparent));
  filter:blur(5px);
  animation:aidSweepDown 2.9s cubic-bezier(.45,.05,.55,.95) infinite;
}
/* Bandın keskin ön kenarı — asıl "ışık saçan" çizgi budur. */
.aid-sweep i{
  position:absolute; left:8%; right:8%; top:calc(100% - 2px); height:2px;
  border-radius:2px; filter:none;
  background:linear-gradient(90deg,
    transparent, var(--aid-em1), var(--aid-em2), var(--aid-em3), var(--aid-em2), var(--aid-em1), transparent);
  box-shadow:0 0 10px 1px var(--aid-em2), 0 0 22px 4px color-mix(in srgb, var(--aid-em1) 55%, transparent);
}
@keyframes aidSweepDown{ 0%{ top:-40% } 100%{ top:118% } }

/* ── SAÇILAN ZERRELER ─────────────────────────────────────────────────
   Tarayıcı kafası geçerken kopan ışık kırıntıları. Altı tane yeter;
   daha fazlası telefonda kare düşürür ve göz zaten saymaz. */
.aid-motes{ position:absolute; inset:0; z-index:3; pointer-events:none; }
.aid-motes i{
  position:absolute; width:3px; height:3px; border-radius:50%;
  background:var(--aid-em1); opacity:0;
  box-shadow:0 0 8px 2px color-mix(in srgb, var(--aid-em1) 70%, transparent);
  animation:aidMote 2.9s ease-in-out infinite;
}
.aid-motes i:nth-child(1){ left:18%; animation-delay:.10s }
.aid-motes i:nth-child(2){ left:34%; animation-delay:.85s; background:var(--aid-em2) }
.aid-motes i:nth-child(3){ left:50%; animation-delay:.40s }
.aid-motes i:nth-child(4){ left:66%; animation-delay:1.25s; background:var(--aid-em3) }
.aid-motes i:nth-child(5){ left:78%; animation-delay:.62s; background:var(--aid-em2) }
.aid-motes i:nth-child(6){ left:26%; animation-delay:1.55s }
@keyframes aidMote{
  0%   { top:12%; opacity:0;  transform:scale(.6) }
  12%  { opacity:1; transform:scale(1) }
  70%  { opacity:.9 }
  100% { top:92%; opacity:0;  transform:scale(.5) }
}

/* ── ORTADAKİ AMBLEM ──────────────────────────────────────────────── */
.aid-scan-emblem{
  position:absolute; inset:0; display:grid; place-items:center; z-index:4;
  font-size:30px; pointer-events:none;
  background:linear-gradient(135deg, var(--aid-em1), var(--aid-em2) 55%, var(--aid-em3));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  filter:drop-shadow(0 0 16px color-mix(in srgb, var(--aid-em2) 60%, transparent));
  animation:aidEmblemPulse 2.9s ease-in-out infinite;
}
@keyframes aidEmblemPulse{
  0%,100%{ opacity:.5; transform:scale(.94) }
  50%    { opacity:1;  transform:scale(1.06) }
}

/* Köşebentler üretim sırasında yeşile döner — kadraj "aktif" görünür. */
.aid-scan-frame .aid-scan-corners i{
  border-color:var(--aid-em1);
  animation:aidCornerGlow 2.9s ease-in-out infinite;
}
@keyframes aidCornerGlow{
  0%,100%{ opacity:.45 } 50%{ opacity:1 }
}

/* ── SONUÇ AÇILIŞI — aynı dille ───────────────────────────────────── */
.aid-shot-scan{
  background:linear-gradient(180deg,
    transparent,
    color-mix(in srgb, var(--good, #34D399) 18%, transparent) 55%,
    color-mix(in srgb, var(--good, #22D3EE) 26%, transparent));
}
.aid-shot-scan i{
  background:linear-gradient(90deg, transparent, var(--good, #34D399), var(--good, #22D3EE), var(--accent, #3B82F6), transparent);
  box-shadow:0 0 12px 1px var(--good, #22D3EE);
}

/* ── HAREKETİ AZALT ───────────────────────────────────────────────────
   Vestibüler rahatsızlığı olan kullanıcı için sürekli süzülen bant ve
   zerreler durur; kadraj yine "çalışıyor" görünsün diye yumuşak bir
   nefes alma bırakılır. */
@media (prefers-reduced-motion: reduce){
  .aid-dots.lit, .aid-sweep, .aid-motes i, .aid-scan-frame .aid-scan-corners i{
    animation:none;
  }
  .aid-dots.lit{
    -webkit-mask-image:none; mask-image:none; opacity:.55;
  }
  .aid-sweep, .aid-motes{ display:none; }
  .aid-scan-emblem{ animation:aidEmblemPulse 4s ease-in-out infinite; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ÜRÜN KARTLARI — ikonlu seçim ızgarası
   ───────────────────────────────────────────────────────────────────────
   Ürün adımında 37 kategori düz metin çip olarak basılıyordu: okunabilir
   ama taranamaz: kullanıcı "sehpa" ile "konsol"u ayırmak için her etiketi
   tek tek okumak zorundaydı. Küçük siluet aynı işi göz hareketiyle yapar.

   Izgara SABİT sütun sayısı değil, en az genişlik kullanır: dar telefonda
   iki, geniş kartta altı sütun. Sütun sayısını sabitlemek ya telefonda
   kartları eziyor ya masaüstünde ortada devasa boşluk bırakıyordu.
   ═══════════════════════════════════════════════════════════════════════ */
.aid-opts.cards{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(104px, 1fr));
  gap:8px;
}
/* Grup başlığı ızgarada tam satır kaplar */
.aid-opts.cards .aid-gt{ grid-column:1 / -1; }

.aid-card{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:7px; padding:13px 7px 11px; min-height:88px;
  border:1px solid var(--ab-line-1); border-radius:var(--ab-r-md);
  background:var(--ab-surface); color:var(--ab-ink-1);
  font-family:inherit; font-size:11px; line-height:1.3; text-align:center;
  cursor:pointer; box-shadow:var(--ab-sh-1);
  transition:border-color .14s, background .14s, transform .14s, box-shadow .14s;
}
.aid-card span{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; word-break:break-word;
}
.aid-ico-p{
  width:30px; height:30px; flex:0 0 auto;
  color:var(--ab-500);
  transition:color .14s, transform .14s;
}
.aid-card:hover{
  border-color:var(--ab-500); background:var(--ab-soft);
  transform:translateY(-2px); box-shadow:var(--ab-sh-2);
}
.aid-card:hover .aid-ico-p{ transform:scale(1.08); }
.aid-card:active{ transform:scale(.97); }

/* Seçili kart: ikon da beyaza döner — currentColor sayesinde tek kural yeter. */
.aid-card.on{
  background:var(--ab-grad); border-color:transparent; color:#fff;
  box-shadow:var(--ab-glow);
}
.aid-card.on .aid-ico-p{ color:#fff; }

@media (max-width:900px){
  .aid-opts.cards{ grid-template-columns:repeat(auto-fill, minmax(92px, 1fr)); gap:7px; }
  .aid-card{ min-height:80px; padding:11px 6px 9px; font-size:10.5px; }
  .aid-ico-p{ width:26px; height:26px; }
}
@media (min-width:901px){
  .aid-opts.cards{ grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:9px; }
  .aid-card{ min-height:96px; font-size:11.5px; }
  .aid-ico-p{ width:34px; height:34px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   GENERATOR KİMLİĞİ — üst çubuk ve sonuç alanı
   ───────────────────────────────────────────────────────────────────────
   Ekran bir "form" gibi duruyordu. Görsel üretim araçlarının ortak dili
   birkaç şeye dayanır: koyu/nötr geniş bir sahne, üstte ince bir kimlik
   şeridi, altta belirgin bir üretim çubuğu ve sonucun kadrajda açılması.
   Aşağıdakiler o dili mevcut bileşenlere giydiriyor; yeni HTML gerekmez.
   ═══════════════════════════════════════════════════════════════════════ */

/* Üst şerit: marka adı degrade, altında ince ayraç */
.aid-brand b{
  background:linear-gradient(135deg, var(--ab-500), var(--ab-700));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  letter-spacing:-.015em;
}
html[data-theme="dark"] .aid-brand b{
  background:linear-gradient(135deg, var(--accent-soft, #93C5FD), var(--accent, #60A5FA));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
}
.aid-head{
  backdrop-filter:saturate(1.4) blur(6px);
  border-bottom:1px solid var(--ab-line-1);
}

/* Soru başlığı — araç ekranlarındaki gibi büyük ve nefesli */
@media (min-width:901px){
  .aid-q{ letter-spacing:-.02em; }
  .aid-q small{ margin-top:6px; }
}

/* Üretim çubuğu: aracın "birincil eylemi". Daha belirgin ve dokunulası. */
.aid-genbar{ padding:8px 8px 8px 16px; }
.aid-genbar-go{ letter-spacing:.01em; }
@media (min-width:901px){
  .aid-genbar{ padding:9px 9px 9px 18px; }
  .aid-genbar-go{ padding:12px 24px; font-size:13px; }
  .aid-genbar-text{ font-size:12.5px; }
}

/* Sonuç kadrajı — görsel araçlarda fotoğraf çerçeveden taşmaz ve
   arkasında nötr bir zemin olur; böylece açık renkli üretimler de
   kenarı belli olur. */
.aid-shot{
  background:
    linear-gradient(45deg, var(--ab-surface-2) 25%, transparent 25%) -8px 0/16px 16px,
    linear-gradient(-45deg, var(--ab-surface-2) 25%, transparent 25%) -8px 0/16px 16px,
    linear-gradient(45deg, transparent 75%, var(--ab-surface-2) 75%) 0 0/16px 16px,
    linear-gradient(-45deg, transparent 75%, var(--ab-surface-2) 75%) 0 0/16px 16px,
    var(--ab-surface);
  box-shadow:var(--ab-sh-2);
}

/* Hazır fikirler bölümü — araç ekranlarındaki "örnek istemler" rafı */
.aid-sug-t{ display:flex; align-items:center; gap:7px; }
.aid-sug-t::after{ content:''; flex:1; height:1px; background:var(--ab-line-1); }
