/* ==========================================================================
   ARXIS — Tasarım sistemi
   ========================================================================== */
:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f5f5f3;
  --surface-3: #eeeeeb;
  --ink: #0f0f0e;
  --ink-2: #393936;
  --muted: #6b6b66;
  --faint: #a1a19b;
  --line: #e9e9e5;
  --line-2: #dcdcd7;
  --accent: #5b47f5;
  --success: #17915a;
  --warning: #c27a0e;
  --danger: #d23f3f;
  --magic: linear-gradient(115deg, #7c5cff 0%, #e45eb7 45%, #ff8a3d 80%, #ffc24a 100%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 15, 14, 0.05);
  --shadow: 0 1px 2px rgba(15, 15, 14, 0.04), 0 8px 24px rgba(15, 15, 14, 0.06);
  --shadow-lg: 0 2px 6px rgba(15, 15, 14, 0.04), 0 24px 60px rgba(15, 15, 14, 0.12);
  --header: 60px;
  --font: "Geist", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.006em;
}
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
kbd { font-family: var(--mono); font-size: 0.72rem; padding: 0.05rem 0.35rem; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); color: var(--muted); }
::selection { background: rgba(91, 71, 245, 0.16); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.mono { font-family: var(--mono); font-size: 0.82rem; }
.row-gap { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

.ico { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
[data-icon] { display: inline-flex; }

/* --------------------------------------------------------------------------
   Butonlar
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  height: 38px; padding: 0 1rem; border-radius: 999px;
  font-weight: 500; font-size: 0.92rem; white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn.sm { height: 32px; padding: 0 0.8rem; font-size: 0.85rem; }
.btn.lg { height: 48px; padding: 0 1.4rem; font-size: 1rem; }
.btn.wide { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #2a2a28; }
.btn-primary:disabled { opacity: 0.5; }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-outline { border: 1px solid var(--line-2); background: var(--surface); }
.btn-outline:hover { border-color: var(--faint); }
.btn-danger-ghost { color: var(--danger); padding: 0 0.6rem; }
.btn-danger-ghost:hover { background: rgba(210, 63, 63, 0.08); }
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  color: var(--ink-2); transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.xs { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.xs .ico { width: 14px; height: 14px; }

.link-btn { color: var(--accent); font-weight: 500; font-size: 0.85rem; }
.link-btn:hover { text-decoration: underline; }

.ghost-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 32px; padding: 0 0.75rem; border-radius: 999px;
  font-size: 0.85rem; color: var(--muted); transition: background 0.15s, color 0.15s;
}
.ghost-chip:hover { background: var(--surface-2); color: var(--ink); }
.ghost-chip.sm { height: 28px; padding: 0 0.6rem; font-size: 0.8rem; }
.ghost-chip .ico { width: 14px; height: 14px; }

.count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font-size: 0.7rem; font-weight: 600;
}

/* Segmented control */
.segmented {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.segmented button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 30px; padding: 0 0.75rem; border-radius: 9px; font-size: 0.85rem; font-weight: 500;
  color: var(--muted); transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.segmented button:hover { color: var(--ink); }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.segmented button .ico { width: 15px; height: 15px; }
.segmented.wide { display: flex; width: 100%; }
.segmented.wide button { flex: 1; }

/* --------------------------------------------------------------------------
   Üst çubuk
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 0 1rem 0 1.25rem;
  background: rgba(251, 251, 250, 0.82);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
body:not([data-view="studio"]) .topbar { grid-template-columns: 1fr auto; }
.topbar.scrolled, body:not([data-view="landing"]) .topbar { border-bottom-color: var(--line); }
.recent-row { margin: 0.2rem 0 0.6rem; }
body[data-view="studio"] .topbar { background: var(--surface); padding-left: 0.6rem; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.tb-right { justify-content: flex-end; }
.tb-center { display: flex; justify-content: center; }
body:not([data-view="studio"]) .studio-only { display: none !important; }
body[data-view="studio"] .landing-only,
body[data-view="studio"] .not-studio { display: none !important; }
body:not([data-view="landing"]) .landing-only { display: none !important; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.4rem; border-radius: 10px; }
.brand:hover { background: var(--surface-2); }
.brand.static:hover { background: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--magic);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: rgba(255,255,255,0.92); }
.brand-mark.lg { width: 40px; height: 40px; border-radius: 12px; }
.brand-mark.lg::after { inset: 11px; border-radius: 5px; }
.brand-name { font-weight: 650; letter-spacing: 0.06em; font-size: 0.9rem; }
body[data-view="studio"] .brand-name { display: none; }

.tb-links { display: flex; gap: 0.15rem; margin-right: 0.4rem; }
.tb-links a { padding: 0.4rem 0.7rem; border-radius: 999px; color: var(--muted); font-size: 0.9rem; transition: color 0.15s, background 0.15s; }
.tb-links a:hover { color: var(--ink); background: var(--surface-2); }

.studio-title { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.tb-sep { color: var(--line-2); font-size: 1.2rem; }
.title-input {
  border: 1px solid transparent; background: transparent; border-radius: 8px;
  padding: 0.3rem 0.5rem; font-weight: 600; min-width: 60px; width: 22ch; max-width: 32vw;
  text-overflow: ellipsis; outline: none; transition: border-color 0.15s, background 0.15s;
}
.title-input:hover { background: var(--surface-2); }
.title-input:focus { border-color: var(--line-2); background: var(--surface); }
.status-chip {
  display: inline-flex; align-items: center; gap: 0.35rem; flex: none;
  height: 24px; padding: 0 0.55rem; border-radius: 99px;
  font-size: 0.75rem; font-weight: 500; color: var(--success); background: rgba(23, 145, 90, 0.08);
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-chip.draft { color: var(--muted); background: var(--surface-2); }
.status-chip.maintenance { color: var(--warning); background: rgba(194, 122, 14, 0.1); }
.status-chip.building { color: var(--accent); background: rgba(91, 71, 245, 0.08); }
.status-chip.building .status-dot { animation: pulse 1.2s ease-in-out infinite; }

.user-menu { position: relative; }
.avatar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 0.85rem; color: #fff;
  background: linear-gradient(135deg, #2b2b29, #55554f);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-2);
  margin-left: 0.3rem;
}
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  width: 248px; padding: 6px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: pop 0.14s var(--ease);
}
.menu-head { display: grid; gap: 0.1rem; padding: 0.6rem 0.65rem 0.7rem; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head span { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; }
.plan-badge { justify-self: start; margin-top: 0.35rem; padding: 0.1rem 0.5rem; border-radius: 99px; background: var(--surface-2); color: var(--ink-2) !important; font-size: 0.72rem !important; font-weight: 500; }
.menu-item {
  width: 100%; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.65rem; border-radius: 9px; text-align: left; font-size: 0.9rem; color: var(--ink-2);
}
.menu-item:hover { background: var(--surface-2); color: var(--ink); }
.menu-item .ico { color: var(--muted); }
.menu-item.danger, .menu-item.danger .ico { color: var(--danger); }
.menu-divider { height: 1px; background: var(--line); margin: 4px 0; }

/* --------------------------------------------------------------------------
   Composer (prompt kutusu)
   -------------------------------------------------------------------------- */
.composer {
  position: relative; text-align: left;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 0.65rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.composer:focus-within { border-color: #c9c9c3; box-shadow: var(--shadow-lg); }
.composer::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: var(--magic);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.composer:focus-within::before { opacity: 0.85; }
.composer.shake { animation: shake 0.35s; }
.composer textarea {
  width: 100%; border: 0; outline: none; resize: none; background: transparent;
  font-size: 1.08rem; line-height: 1.55; min-height: 3.2rem; max-height: 14rem; padding: 0.15rem 0.25rem;
}
.composer textarea::placeholder { color: var(--faint); }
.composer-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 0.4rem; }
.composer-left, .composer-right { display: flex; align-items: center; gap: 0.6rem; }
.kbd-hint { font-size: 0.78rem; color: var(--faint); display: inline-flex; gap: 0.35rem; align-items: center; }
.send-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--ink); color: #fff;
  transition: transform 0.12s var(--ease), opacity 0.15s, background 0.15s;
}
.send-btn:hover:not(:disabled) { transform: scale(1.06); }
.send-btn:disabled { background: var(--surface-3); color: var(--faint); }
.send-btn .ico { width: 18px; height: 18px; stroke-width: 2.2; }

.enhancers { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.2rem 0.1rem 0; }
.enhancers:empty { display: none; }
.enhancer {
  display: inline-flex; align-items: center; gap: 0.3rem;
  height: 28px; padding: 0 0.65rem; border-radius: 99px;
  border: 1px dashed var(--line-2); color: var(--muted); font-size: 0.8rem;
  transition: all 0.15s; animation: fadeUp 0.25s var(--ease) both;
}
.enhancer .ico { width: 13px; height: 13px; }
.enhancer:hover { border-style: solid; border-color: var(--faint); color: var(--ink); }
.enhancer.on { border-style: solid; border-color: var(--ink); background: var(--ink); color: #fff; }

.composer-nudge { min-height: 1.4rem; margin-top: 0.6rem; font-size: 0.86rem; color: var(--muted); text-align: center; }
.composer-nudge.warn { color: var(--danger); }

.idea-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.4rem; }
.idea-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  height: 36px; padding: 0 0.9rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.88rem; color: var(--ink-2);
  transition: border-color 0.15s, transform 0.15s var(--ease), box-shadow 0.15s;
}
.idea-chip .ico { color: var(--muted); }
.idea-chip:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.idea-row.compact { justify-content: flex-start; }
.idea-row.compact .idea-chip { height: 32px; font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   Giriş sayfası
   -------------------------------------------------------------------------- */
.landing { overflow-x: clip; }
.hero {
  position: relative; max-width: 920px; margin: 0 auto;
  padding: clamp(3rem, 9vh, 6.5rem) 1.25rem 2rem; text-align: center;
}
.hero-glow {
  position: absolute; z-index: -1; left: 50%; top: 32%; width: 900px; height: 520px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 30% 50%, rgba(124, 92, 255, 0.16), transparent),
    radial-gradient(closest-side at 70% 45%, rgba(255, 138, 61, 0.13), transparent),
    radial-gradient(closest-side at 50% 70%, rgba(228, 94, 183, 0.10), transparent);
  filter: blur(20px); pointer-events: none;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.8rem; border-radius: 99px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.7); font-size: 0.82rem; color: var(--ink-2);
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(23,145,90,0.15); }
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.04; letter-spacing: -0.04em;
  margin: 1.1rem 0 1rem; font-weight: 600;
}
.hero h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  background: var(--magic); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--muted); max-width: 36rem; margin: 0 auto 2rem; line-height: 1.6; }
.hero .composer, .hero .composer-nudge { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero .idea-row { max-width: 720px; margin-left: auto; margin-right: auto; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 1.6rem; font-size: 0.84rem; color: var(--muted); }
.trust-row > span { display: inline-flex; align-items: center; gap: 0.35rem; }
.trust-row .ico { width: 14px; height: 14px; color: var(--success); stroke-width: 2.4; }

.section { max-width: 1120px; margin: 0 auto; padding: clamp(4rem, 10vh, 7rem) 1.25rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.section-head p { text-wrap: pretty; }
.section-head p:not(.kicker) { color: var(--muted); margin-top: 0.7rem; font-size: 1.02rem; }
.kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.25rem 1.4rem; }
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.step-card p { color: var(--muted); font-size: 0.93rem; }
.step-num { position: absolute; top: 1rem; right: 1rem; font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }
.step-visual {
  height: 150px; margin: 0 -0.25rem 1.2rem; border-radius: 14px;
  background: radial-gradient(120% 120% at 50% 0%, var(--surface-2), var(--surface));
  border: 1px solid var(--line); display: grid; place-items: center; padding: 1rem; overflow: hidden;
}
.mock-input { width: 100%; max-width: 260px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 0.65rem 0.75rem; font-size: 0.85rem; color: var(--ink-2); box-shadow: var(--shadow); text-align: left; }
.mock-caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; margin-right: 2px; animation: blink 1s steps(1) infinite; }
.mock-chat { display: grid; gap: 0.45rem; width: 100%; max-width: 250px; }
.mock-bubble { font-size: 0.82rem; padding: 0.45rem 0.7rem; border-radius: 12px; display: inline-flex; gap: 0.35rem; align-items: center; }
.mock-bubble.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.mock-bubble.ai { justify-self: start; background: var(--surface); border: 1px solid var(--line); color: var(--success); }
.mock-bubble .ico { width: 13px; height: 13px; stroke-width: 2.5; }
.mock-link { display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 99px; padding: 0.4rem 0.4rem 0.4rem 0.8rem; font-family: var(--mono); font-size: 0.78rem; box-shadow: var(--shadow); }
.mock-copy { font-family: var(--font); font-size: 0.75rem; background: var(--ink); color: #fff; padding: 0.25rem 0.6rem; border-radius: 99px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(23,145,90,0.15); flex: none; }

.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.usecase {
  text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.25rem; display: grid; gap: 0.45rem; align-content: start;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.usecase:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.usecase-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 0.4rem; color: var(--ink); }
.usecase-icon .ico { width: 20px; height: 20px; }
.usecase h3 { font-size: 1.02rem; }
.usecase p { color: var(--muted); font-size: 0.9rem; }
.usecase-try { margin-top: 0.4rem; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; font-weight: 500; color: var(--accent); }
.usecase-try .ico { width: 14px; height: 14px; transition: transform 0.2s; }
.usecase:hover .usecase-try .ico { transform: translateX(3px); }

.free-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  padding: 1.1rem 1.2rem 1.1rem 1.3rem; margin-bottom: 1rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.free-band-main { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1; }
.free-band strong { font-size: 1rem; }
.free-band p { color: var(--muted); font-size: 0.9rem; }
.free-tag { flex: none; padding: 0.3rem 0.7rem; border-radius: 99px; font-size: 0.78rem; font-weight: 600; color: var(--success); background: rgba(23,145,90,0.1); }

.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.pkg-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.25rem 1.25rem;
}
.pkg-card.featured { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.pkg-tag { position: absolute; top: -11px; left: 1.25rem; padding: 0.2rem 0.6rem; border-radius: 99px; background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 600; }
.pkg-card h3 { font-size: 1.08rem; }
.pkg-desc { color: var(--muted); font-size: 0.88rem; margin-top: 0.3rem; min-height: 2.7em; }
.pkg-price { font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; margin-top: 1rem; display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
.pkg-price small { font-size: 0.8rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pkg-anchor { font-size: 0.8rem; color: var(--faint); margin: 0.1rem 0 1.1rem; }
.pkg-anchor s { text-decoration-thickness: 1.5px; }
.pkg-features, .pkg-includes { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.55rem; font-size: 0.87rem; color: var(--ink-2); }
.pkg-features li { display: flex; gap: 0.5rem; align-items: flex-start; }
.pkg-features .ico { width: 15px; height: 15px; color: var(--success); stroke-width: 2.4; margin-top: 0.15rem; }
.pkg-includes { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line-2); gap: 0.35rem; font-size: 0.82rem; color: var(--muted); }
.pkg-includes li::before { content: "·"; margin-right: 0.45rem; color: var(--faint); }
.pkg-renew { margin-top: auto; padding-top: 1rem; font-size: 0.78rem; color: var(--faint); line-height: 1.45; }

.pricing-switch { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; margin: 1.6rem 0 0.9rem; }
.pricing-switch.sub { margin: 0 0 1.8rem; }
.segmented.lg { padding: 4px; border-radius: 14px; }
.segmented.lg button { height: 40px; padding: 0 1.3rem; font-size: 0.95rem; border-radius: 10px; }
.save-tag { font-size: 0.7rem; color: var(--success); font-weight: 600; }
.pkg-grid.three { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 0 auto; }
.pricing-switch .segmented button { height: 36px; padding: 0 1rem; font-size: 0.9rem; }
.launch-note { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: var(--ink-2); }
.launch-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff6b3d; box-shadow: 0 0 0 3px rgba(255,107,61,0.18); animation: pulse 1.6s ease-in-out infinite; }
.pkg-price s, .publish-price s, .compare-table s { font-size: 0.85rem; font-weight: 400; letter-spacing: 0; color: var(--faint); text-decoration-thickness: 1.5px; }
.pkg-anchor { color: var(--muted); }

.enterprise-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-lg);
  background: var(--ink); color: #fff;
}
.enterprise-band p { color: rgba(255,255,255,0.68); font-size: 0.9rem; margin-top: 0.15rem; }
.enterprise-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.enterprise-band .btn-outline:hover { border-color: #fff; }

.compare { margin-top: 1.4rem; }
.compare summary { cursor: pointer; text-align: center; font-weight: 500; color: var(--accent); list-style: none; padding: 0.6rem; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: " ↓"; }
.compare[open] summary::after { content: " ↑"; }
.compare .table-wrap { margin-top: 0.6rem; background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 680px; }
.compare-table th, .compare-table td { padding: 0.7rem 0.9rem; text-align: center; border-top: 1px solid var(--line); }
.compare-table th { border-top: 0; font-weight: 600; background: var(--surface-2); }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; color: var(--muted); font-weight: 400; }
.compare-table td strong { display: block; font-size: 1rem; }
.compare-table .hl { background: rgba(91, 71, 245, 0.04); }
.compare-table .yes .ico { color: var(--success); stroke-width: 2.4; }
.compare-table .no { color: var(--faint); }

.pricing-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.pricing-notes > div { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.2rem 0.2rem; }
.pricing-notes .ico { width: 18px; height: 18px; color: var(--accent); margin-top: 0.1rem; }
.pricing-notes p { font-size: 0.88rem; color: var(--muted); }
.pricing-notes strong { color: var(--ink); font-weight: 600; }
.pricing-foot { text-align: center; margin-top: 1.6rem; }

.publish-card { width: min(480px, 100%); display: grid; gap: 0.9rem; }
.publish-card .modal-head { margin-bottom: 0; }
.publish-pkg { border: 1px solid var(--line-2); border-radius: 16px; padding: 1rem 1.1rem; }
.publish-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.publish-label { display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.2rem; }
.publish-top strong { font-size: 1.1rem; }
.publish-price { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; text-align: right; white-space: nowrap; display: grid; }
.publish-price small { font-size: 0.75rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.publish-list { list-style: none; padding: 0; margin: 0.9rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 0.8rem; font-size: 0.84rem; color: var(--ink-2); }
.publish-list li { display: flex; gap: 0.4rem; align-items: flex-start; }
.publish-list .ico { width: 14px; height: 14px; color: var(--success); stroke-width: 2.4; margin-top: 0.18rem; }
.publish-pkg .pkg-renew { padding-top: 0.8rem; }
.upsell {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left; padding: 0.75rem 0.85rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,92,255,0.07), rgba(255,138,61,0.07)); border: 1px solid rgba(124,92,255,0.2);
  transition: border-color 0.15s;
}
.upsell:hover { border-color: rgba(124,92,255,0.45); }
.upsell-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; flex: none; }
.upsell-text { flex: 1; display: grid; }
.upsell-text strong { font-size: 0.9rem; font-weight: 600; }
.upsell-text small { color: var(--muted); font-size: 0.8rem; }
.upsell-cta { font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 99px; background: var(--ink); color: #fff; }
.pkg-pick { display: grid; gap: 0.35rem; margin-top: 0.4rem; }
.pkg-pick-item { display: flex; justify-content: space-between; padding: 0.6rem 0.8rem; border-radius: 10px; border: 1px solid var(--line); font-size: 0.88rem; }
.pkg-pick-item:hover { background: var(--surface-2); }
.pkg-pick-item.active { border-color: var(--ink); }
.pkg-pick-item em { font-style: normal; font-size: 0.75rem; color: var(--muted); margin-left: 0.3rem; }
.pkg-pick { margin-top: 0.6rem; }
.publish-foot { text-align: center; margin-top: -0.3rem; }

.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0.25rem; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 0.6rem; max-width: 60ch; }

.final-cta {
  max-width: 1120px; margin: clamp(4rem, 10vh, 7rem) auto 0; padding: 4rem 1.25rem;
  text-align: center; border-radius: 32px; position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
}
.final-cta::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: var(--magic); opacity: 0.35; filter: blur(80px); }
.final-cta > * { position: relative; }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.04em; }
.final-cta p { color: rgba(255,255,255,0.7); margin: 0.6rem 0 1.6rem; }
.final-cta .btn-primary { background: #fff; color: var(--ink); }
.final-cta .btn-primary:hover { background: #f0f0ee; }

.site-foot { max-width: 1120px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Projelerim
   -------------------------------------------------------------------------- */
.portal { max-width: 1160px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.portal-head { max-width: 720px; margin: 0 auto 3rem; }
.portal-greet { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.035em; margin-bottom: 1.2rem; text-align: center; }
.muted-serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--muted); letter-spacing: -0.01em; }
.composer.compact textarea { font-size: 1rem; min-height: 2.6rem; }
.portal-head .idea-row { justify-content: center; margin-top: 0.9rem; }

.portal-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.portal-toolbar h2 { font-size: 1.25rem; }
.portal-tools { display: flex; gap: 0.5rem; align-items: center; }
.search-field {
  display: flex; align-items: center; gap: 0.4rem; height: 36px; padding: 0 0.75rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted);
}
.search-field:focus-within { border-color: var(--line-2); }
.search-field input { border: 0; outline: none; background: transparent; width: 180px; font-size: 0.88rem; color: var(--ink); }
.portal-tools select {
  height: 36px; padding: 0 2rem 0 0.75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font-size: 0.88rem; appearance: none; cursor: pointer;
  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='%236b6b66' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.project-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: visible; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
  animation: fadeUp 0.35s var(--ease) both;
}
.project-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.pc-thumb {
  display: block; width: 100%; aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.pc-thumb iframe {
  position: absolute; top: 0; left: 0; border: 0; pointer-events: none; background: #fff;
  width: 400%; height: 400%; transform: scale(0.25); transform-origin: 0 0;
}
.pc-thumb.mobile iframe { width: 390px; height: 844px; left: 50%; transform: translateX(-50%) scale(0.42); transform-origin: 50% 0; top: 10px; border-radius: 24px; box-shadow: 0 0 0 8px #111; }
.pc-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,0.04)); }
.pc-open-hint {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -40%); opacity: 0;
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border-radius: 99px;
  background: var(--ink); color: #fff; font-size: 0.82rem; font-weight: 500; transition: opacity 0.2s, transform 0.2s var(--ease);
}
.project-card:hover .pc-open-hint { opacity: 1; transform: translate(-50%, -50%); }
.pc-body { padding: 0.85rem 0.9rem 0.95rem 1rem; display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start; }
.pc-body h3 { font-size: 0.98rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.pc-meta .status-dot { color: var(--success); }
.pc-meta .status-dot.draft { color: var(--faint); }
.pc-meta .status-dot.maintenance { color: var(--warning); }
.pc-text { min-width: 0; }
.pc-menu-wrap { position: relative; flex: none; }
.pc-menu { right: 0; top: calc(100% + 4px); width: 210px; }

.empty-portal {
  grid-column: 1 / -1; text-align: center; padding: 3.5rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(0,0,0,0.012) 12px 24px);
}
.empty-portal h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.empty-portal p { color: var(--muted); max-width: 32rem; margin: 0 auto; }

.skeleton-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.skeleton-card .sk-thumb { aspect-ratio: 16/10; }
.skeleton-card .sk-text { height: 12px; margin: 0.9rem 1rem 0.5rem; width: 60%; border-radius: 6px; }
.skeleton-card .sk-text.short { width: 35%; margin-top: 0; margin-bottom: 1rem; }
.shimmer { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* --------------------------------------------------------------------------
   Stüdyo
   -------------------------------------------------------------------------- */
body[data-view="studio"] { overflow: hidden; }
.studio {
  display: grid; grid-template-columns: minmax(340px, 400px) 1fr;
  height: calc(100vh - var(--header)); height: calc(100dvh - var(--header));
  background: var(--surface-2);
}
.studio-chat {
  position: relative; display: flex; flex-direction: column; min-height: 0;
  background: var(--surface); border-right: 1px solid var(--line);
}
.guest-banner {
  margin: 0.75rem 0.75rem 0; padding: 0.75rem 0.8rem; border-radius: 14px;
  display: flex; gap: 0.75rem; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(124,92,255,0.08), rgba(255,138,61,0.08));
  border: 1px solid rgba(124,92,255,0.18);
}
.guest-banner strong { display: block; font-size: 0.86rem; }
.guest-banner span { font-size: 0.8rem; color: var(--muted); }

.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.9rem 0.3rem 1.1rem; }
.chat-head-title { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0.6rem 1rem 1rem; scroll-behavior: smooth; }
.chat-list { display: flex; flex-direction: column; gap: 1rem; }

.msg { display: flex; flex-direction: column; gap: 0.35rem; animation: fadeUp 0.3s var(--ease) both; }
.msg.user { align-items: flex-end; }
.msg.user .bubble { background: var(--surface-2); border-radius: 18px 18px 6px 18px; padding: 0.65rem 0.9rem; max-width: 88%; white-space: pre-wrap; word-wrap: break-word; }
.msg.ai { align-items: flex-start; }
.ai-head { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; }
.ai-head .brand-mark { width: 18px; height: 18px; border-radius: 6px; }
.ai-head .brand-mark::after { inset: 5px; border-radius: 2px; }
.ai-head time { color: var(--faint); font-weight: 400; }
.msg.ai .ai-body { color: var(--ink-2); line-height: 1.6; padding-left: 1.6rem; }
.msg-actions { display: flex; gap: 0.25rem; padding-left: 1.2rem; flex-wrap: wrap; }
.msg-actions .ghost-chip { height: 28px; font-size: 0.8rem; }

.launch-card {
  margin: 0.3rem 0 0 1.6rem; padding: 0.8rem; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm); display: grid; gap: 0.6rem; width: calc(100% - 1.6rem);
}
.launch-top { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--success); }
.launch-url { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.4rem 0.4rem 0.7rem; border-radius: 10px; background: var(--surface-2); font-family: var(--mono); font-size: 0.78rem; }
.launch-url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.launch-actions { display: flex; gap: 0.4rem; }
.launch-actions .btn { flex: 1; }

.build-steps { list-style: none; margin: 0.2rem 0 0; padding: 0 0 0 1.6rem; display: grid; gap: 0.45rem; }
.build-steps li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; color: var(--faint); transition: color 0.3s; }
.build-steps li .step-ic { width: 16px; height: 16px; flex: none; display: grid; place-items: center; }
.build-steps li .step-ic::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.build-steps li.active { color: var(--ink); }
.build-steps li.active .step-ic::before { width: 14px; height: 14px; background: none; border: 2px solid var(--accent); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.build-steps li.done { color: var(--muted); }
.build-steps li.done .step-ic::before { display: none; }
.build-steps li.done .step-ic { color: var(--success); }
.build-steps li.done .step-ic .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.build-meta { padding-left: 1.6rem; font-size: 0.78rem; color: var(--faint); margin-top: 0.2rem; }
.shine-text { background: linear-gradient(90deg, var(--ink) 0%, var(--faint) 50%, var(--ink) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2s linear infinite; }

.msg.error .ai-body { color: var(--danger); }

.history-drawer {
  position: absolute; inset: 0; z-index: 5; background: var(--surface); display: flex; flex-direction: column;
  animation: slideIn 0.22s var(--ease);
}
.history-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; padding: 1rem 0.9rem 0.8rem 1.1rem; border-bottom: 1px solid var(--line); }
.history-list { flex: 1; overflow-y: auto; padding: 0.6rem; display: grid; gap: 2px; align-content: start; }
.history-item {
  width: 100%; text-align: left; display: grid; grid-template-columns: 20px 1fr auto; gap: 0.65rem; align-items: start;
  padding: 0.7rem 0.6rem; border-radius: 12px; transition: background 0.15s;
}
.history-item:hover { background: var(--surface-2); }
.history-rail { position: relative; display: grid; justify-items: center; padding-top: 0.3rem; }
.history-rail::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.history-item.current .history-rail::before { border-color: var(--success); background: var(--success); }
.history-item strong { display: block; font-size: 0.88rem; font-weight: 500; line-height: 1.4; }
.history-item small { color: var(--faint); font-size: 0.78rem; }
.history-tag { font-size: 0.72rem; font-weight: 600; color: var(--success); padding-top: 0.15rem; }
.history-restore { font-size: 0.78rem; color: var(--accent); opacity: 0; padding-top: 0.15rem; }
.history-item:hover .history-restore { opacity: 1; }

.chat-bottom { padding: 0.5rem 0.9rem 0.8rem; border-top: 1px solid var(--line); background: var(--surface); }
.suggest-row { display: flex; gap: 0.35rem; overflow-x: auto; padding: 0.15rem 0 0.55rem; scrollbar-width: none; }
.suggest-row::-webkit-scrollbar { display: none; }
.suggest-row:empty { display: none; }
.suggest-chip {
  flex: none; height: 30px; padding: 0 0.75rem; border-radius: 99px; border: 1px solid var(--line);
  font-size: 0.8rem; color: var(--ink-2); background: var(--surface); transition: border-color 0.15s, background 0.15s;
}
.suggest-chip:hover { border-color: var(--line-2); background: var(--surface-2); }
.chat-composer {
  display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.45rem 0.45rem 0.45rem 0.85rem;
  border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.chat-composer:focus-within { border-color: var(--faint); box-shadow: 0 0 0 4px rgba(15,15,14,0.04); }
.chat-composer textarea { flex: 1; border: 0; outline: none; resize: none; background: transparent; padding: 0.45rem 0; max-height: 10rem; line-height: 1.5; font-size: 0.94rem; }
.chat-composer textarea::placeholder { color: var(--faint); }
.chat-composer .send-btn { width: 34px; height: 34px; }
.chat-composer.busy { opacity: 0.6; pointer-events: none; }
.chat-foot { font-size: 0.72rem; text-align: center; margin-top: 0.45rem; color: var(--faint); }
.chat-foot.warn { color: #c2410c; }
.chat-foot .link-btn { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }

.ghost-chip.loading { pointer-events: none; opacity: 0.7; }
.ghost-chip.loading .ico { animation: spin 0.9s linear infinite; }

.mobile-job {
  margin: 0.75rem 0.75rem 0; padding: 0.8rem 0.9rem; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; gap: 0.5rem;
}
.mobile-job-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.mobile-job-head strong { font-size: 0.86rem; }
.mobile-job-meta { font-size: 0.78rem; color: var(--muted); }
.mobile-job-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.mobile-job-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c5cff, #ff8a3d); transition: width 0.6s ease; }
.mobile-job-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mobile-job.done { border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.06); }
.mobile-job.failed { border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.05); }

.studio-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; }
.url-pill {
  display: flex; align-items: center; gap: 0.35rem; min-width: 0; max-width: 360px;
  height: 34px; padding: 0 0.2rem 0 0.75rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.76rem; color: var(--muted);
}
.url-pill #urlPillText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.stage-pane { display: none; flex: 1; min-height: 0; }
.stage-pane.active { display: flex; }

.preview-wrap { flex: 1; display: flex; justify-content: center; align-items: stretch; padding: 0 0.9rem 0.9rem; min-height: 0; }
.device {
  position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow); transition: width 0.35s var(--ease), border-radius 0.35s, box-shadow 0.35s;
}
.preview-wrap:not(.pf-on) .pf-stage,
.preview-wrap:not(.pf-on) .pf-body { width: 100%; height: 100%; display: flex; justify-content: center; }
.preview-wrap.tablet .device { width: min(820px, 100%); }
.preview-wrap.pf-on { flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; padding-top: 0.4rem; }

.phone-bar { display: flex; align-items: center; gap: 0.4rem; flex: none; }
.phone-select {
  position: relative; display: inline-flex; align-items: center; gap: 0.4rem; height: 32px; padding: 0 0.4rem 0 0.7rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.82rem;
}
.phone-select .ico { width: 14px; height: 14px; color: var(--muted); }
.phone-select select {
  appearance: none; border: 0; background: transparent; font: inherit; color: inherit; padding-right: 1.1rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 6px center, right 2px center; background-size: 4px 4px; background-repeat: no-repeat;
}
.phone-select select:focus { outline: none; }
.phone-select:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 3px rgba(91, 71, 245, 0.12); }
.device iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; transition: opacity 0.4s; }
.device.is-loading iframe { opacity: 0.35; }

.build-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,0.6); backdrop-filter: blur(3px); animation: fade 0.25s; }
.build-overlay.fresh { background: #fff; backdrop-filter: none; }
.skeleton-page { position: absolute; inset: 0; padding: 1.4rem; display: none; flex-direction: column; gap: 1rem; }
.build-overlay.fresh .skeleton-page { display: flex; }
.sk { border-radius: 10px; background: linear-gradient(90deg, #f3f3f1 0%, #e9e9e6 50%, #f3f3f1 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.sk-nav { height: 36px; width: 100%; }
.sk-hero { height: 38%; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; height: 22%; }
.sk-card { height: 100%; }
.sk-line { height: 14px; width: 70%; }
.sk-line.short { width: 40%; }
.preview-wrap.mobile .sk-row { grid-template-columns: 1fr; }
.build-pill {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1.1rem; border-radius: 99px; background: var(--ink); color: #fff; font-size: 0.88rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
}
.spinner { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 25%, #fff 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 0); animation: spin 0.8s linear infinite; }

.data-pane { flex: 1; display: flex; flex-direction: column; margin: 0 0.9rem 0.9rem; background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); min-height: 0; overflow: hidden; }
.data-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.data-head h3 { font-size: 1.02rem; }
.data-container { flex: 1; overflow: auto; padding: 1rem 1.1rem; }
.data-group { margin-bottom: 1.6rem; }
.data-group-head { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.6rem; text-transform: capitalize; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { text-align: left; font-weight: 500; color: var(--muted); background: var(--surface-2); padding: 0.55rem 0.8rem; white-space: nowrap; font-size: 0.78rem; }
.data-table td { padding: 0.6rem 0.8rem; border-top: 1px solid var(--line); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table tr:hover td { background: #fcfcfb; }
.empty-data { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-data .empty-icon { width: 48px; height: 48px; margin: 0 auto 0.8rem; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); }
.empty-data strong { display: block; color: var(--ink); margin-bottom: 0.3rem; }

.code-pane { flex: 1; display: grid; grid-template-columns: 210px 1fr; margin: 0 0.9rem 0.9rem; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--surface); min-height: 0; }
.file-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 0.6rem; gap: 0.4rem; min-height: 0; }
.file-list-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0 0.2rem 0 0.4rem; }
.file-items { flex: 1; overflow-y: auto; display: grid; gap: 1px; align-content: start; }
.file-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.42rem 0.5rem; border-radius: 8px; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); text-align: left; width: 100%; }
.file-item:hover { background: var(--surface-2); }
.file-item.active { background: var(--surface-3); color: var(--ink); }
.file-item .ico { width: 14px; height: 14px; color: var(--faint); }
.file-item .file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-del { opacity: 0; color: var(--faint); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; }
.file-item:hover .file-del { opacity: 1; }
.file-del:hover { color: var(--danger); background: rgba(210,63,63,0.08); }
.editor { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.editor-head { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.6rem 0.5rem 1rem; border-bottom: 1px solid var(--line); }
#codeEditor { flex: 1; border: 0; outline: none; resize: none; padding: 1rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.65; tab-size: 2; background: #fcfcfb; color: var(--ink); min-height: 0; }

.mobile-switch { display: none; }

/* --------------------------------------------------------------------------
   Modallar
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem;
  background: rgba(15, 15, 14, 0.36); backdrop-filter: blur(4px); animation: fade 0.18s;
}
.modal-card {
  position: relative; width: min(520px, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto;
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 1.6rem;
  animation: pop 0.22s var(--ease);
}
.modal-card.narrow { width: min(420px, 100%); }
.modal-x { position: absolute; top: 0.8rem; right: 0.8rem; }
.modal-head { margin-bottom: 1.2rem; padding-right: 2rem; }
.modal-head h3 { font-size: 1.2rem; }
.modal-head p { margin-top: 0.25rem; }
.modal-hero { text-align: center; display: grid; justify-items: center; gap: 0.4rem; margin-bottom: 1.3rem; }
.modal-hero h3 { font-size: 1.35rem; margin-top: 0.5rem; }
.modal-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.4rem; flex-wrap: wrap; }
.modal-actions.end { justify-content: flex-end; }

.form { display: grid; gap: 0.9rem; margin-top: 1.1rem; }
.modal-head + .form { margin-top: 0; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.84rem; font-weight: 500; color: var(--ink-2); }
.field input, #dialogInput {
  width: 100%; height: 44px; padding: 0 0.9rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-size: 0.95rem;
}
.field input:focus, #dialogInput:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15,15,14,0.06); }
.field input:disabled { background: var(--surface-2); color: var(--muted); }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.form-error { padding: 0.6rem 0.8rem; border-radius: 10px; background: rgba(210,63,63,0.07); color: var(--danger); font-size: 0.86rem; }
.inline-details summary { cursor: pointer; font-size: 0.88rem; font-weight: 500; color: var(--accent); padding: 0.2rem 0; }
.inline-details[open] { display: grid; gap: 0.8rem; }

.dns-box { background: var(--surface-2); border-radius: 14px; padding: 0.9rem 1rem; display: grid; gap: 0.5rem; animation: fadeUp 0.2s var(--ease); }
.dns-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.86rem; background: var(--surface); border-radius: 10px; padding: 0.6rem 0.8rem; border: 1px solid var(--line); }
.dns-grid span { color: var(--muted); }
.dns-grid code { font-family: var(--mono); }

.share-card { width: min(460px, 100%); }
.share-hero { text-align: center; display: grid; justify-items: center; gap: 0.35rem; margin: 0.4rem 0 1.3rem; }
.share-hero h3 { font-size: 1.3rem; margin-top: 0.4rem; }
.ok-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(23,145,90,0.1); color: var(--success); animation: popBig 0.4s var(--ease); }
.ok-badge .ico { width: 26px; height: 26px; stroke-width: 2.6; }
.link-field { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.35rem 0.35rem 0.8rem; border: 1px solid var(--line-2); border-radius: 14px; color: var(--muted); }
.link-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: var(--mono); font-size: 0.82rem; color: var(--ink); }
.share-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 0.5rem; margin-top: 0.8rem; }
.share-action {
  display: grid; justify-items: center; gap: 0.35rem; padding: 0.8rem 0.4rem; border-radius: 14px;
  border: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-2); transition: background 0.15s, border-color 0.15s;
}
.share-action:hover { background: var(--surface-2); border-color: var(--line-2); }
.share-action .ico { width: 20px; height: 20px; }
.share-action.active { border-color: var(--ink); }
.qr-box { display: flex; gap: 1rem; align-items: center; margin-top: 0.8rem; padding: 0.9rem; border-radius: 14px; background: var(--surface-2); animation: fadeUp 0.2s var(--ease); }
.qr-box img { width: 120px; height: 120px; border-radius: 10px; background: #fff; padding: 6px; flex: none; }
.qr-box > div { display: grid; gap: 0.35rem; justify-items: start; }
.qr-box strong { font-size: 0.9rem; }
.row-link {
  width: 100%; margin-top: 1rem; display: flex; align-items: center; gap: 0.75rem; text-align: left;
  padding: 0.85rem 0.9rem; border-radius: 14px; border: 1px solid var(--line); transition: background 0.15s;
}
.row-link:hover { background: var(--surface-2); }
.row-link > span:nth-child(2) { flex: 1; display: grid; }
.row-link strong { font-size: 0.9rem; font-weight: 500; }
.row-link small { color: var(--muted); font-size: 0.8rem; }
.row-link .ico { color: var(--muted); }

.dialog-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.dialog-card #dialogInput { margin-top: 1rem; }
.dialog-card .modal-actions { margin-top: 1.4rem; }
.btn-primary.danger { background: var(--danger); }
.btn-primary.danger:hover { background: #b83434; }

/* Toast */
.toast-stack { position: fixed; z-index: 100; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: grid; gap: 0.5rem; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 2rem); }
.toast {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.75rem 0.65rem 1rem; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 0.9rem; box-shadow: var(--shadow-lg); pointer-events: auto;
  animation: toastIn 0.28s var(--ease);
}
.toast.out { animation: toastOut 0.2s ease forwards; }
.toast .ico { width: 16px; height: 16px; }
.toast.ok .ico { color: #4ade80; }
.toast.err { background: var(--danger); }
.toast-action { color: #fff; font-weight: 600; padding: 0.25rem 0.55rem; border-radius: 8px; background: rgba(255,255,255,0.14); font-size: 0.84rem; }
.toast-action:hover { background: rgba(255,255,255,0.24); }

/* --------------------------------------------------------------------------
   Animasyonlar
   -------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.3; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.97) translateY(4px); } }
@keyframes popBig { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------------------
   Duyarlı
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .studio { grid-template-columns: 340px 1fr; }
  .url-pill { max-width: 240px; }
}

@media (max-width: 1100px) {
  .pkg-grid, .pkg-grid.three { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
}

@media (max-width: 900px) {
  .steps, .usecase-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .pricing-notes { grid-template-columns: 1fr; }
  .tb-links { display: none; }
  .kbd-hint { display: none; }

  .topbar { grid-template-columns: 1fr auto; }
  .tb-center { display: none; }
  .title-input { width: 14ch; }
  #openShareBtn span:last-child, #openPublishBtn span:last-child { display: none; }
  #openShareBtn, #openPublishBtn { width: 38px; padding: 0; }

  .studio { grid-template-columns: 1fr; height: calc(100dvh - var(--header) - 60px); }
  .studio[data-mpane="chat"] .studio-stage { display: none; }
  .studio[data-mpane="preview"] .studio-chat { display: none; }
  .studio-chat { border-right: 0; }
  .mobile-switch {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: 60px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  }
  .mobile-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; border-radius: 12px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
  .mobile-switch button.active { background: var(--surface-2); color: var(--ink); }
  .stage-bar { flex-wrap: wrap; }
  .url-pill { max-width: none; flex: 1; }
  .code-pane { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .file-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 170px; }
}

@media (max-width: 600px) {
  .hero { padding-top: 2.5rem; }
  .hero-sub { margin-bottom: 1.5rem; }
  .composer { padding: 0.85rem 0.85rem 0.6rem; border-radius: 20px; }
  .idea-row { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0.4rem -1.25rem 0; padding: 0.2rem 1.25rem 0.4rem; scrollbar-width: none; }
  .idea-row::-webkit-scrollbar { display: none; }
  .idea-chip { flex: none; }
  .trust-row { gap: 0.3rem 0.9rem; }
  .site-foot { flex-direction: column; text-align: center; }
  .final-cta { border-radius: 0; }
  .portal { padding-top: 1.5rem; }
  .portal-tools { width: 100%; }
  .search-field { flex: 1; }
  .search-field input { width: 100%; }
  .modal { align-items: end; padding: 0; }
  .modal-card { width: 100% !important; border-radius: 22px 22px 0 0; max-height: 92dvh; padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); }
  .studio-title .status-chip { display: none; }
  .pkg-grid, .pkg-grid.three { grid-template-columns: 1fr; }
  .publish-list { grid-template-columns: 1fr; }
  .free-band .btn { width: 100%; }
  .ghost-chip span:not([data-icon]) { display: inline; }
}
