/* TeknoMektep Studio — sade, aydınlık çalışma alanı. Slayt önizlemesi PowerPoint ölçüleriyle birebir çizilir. */
:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --line: #e4e7ef;
  --line-strong: #cfd5e3;
  --text: #1b2559;
  --muted: #6b7493;
  --faint: #9aa2bd;
  --blue: #3366ff;
  --blue-soft: #eaf0ff;
  --orange: #ff7a2f;
  --green: #14a877;
  --purple: #7b5cfa;
  --red: #e5484d;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(27, 37, 89, .06), 0 8px 24px -12px rgba(27, 37, 89, .18);
  --shadow-lg: 0 24px 64px -24px rgba(27, 37, 89, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 Inter, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
[hidden] { display: none !important; }

/* Üst çubuk */
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 28px; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.brand img { height: 26px; }
.brand span { padding: 3px 9px; border-radius: 999px; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--bg); color: var(--text); }
.nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.spacer { flex: 1; }
.user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3366ff, #7b5cfa); color: #fff; font-weight: 700; font-size: 13px; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .15s, box-shadow .2s; }
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(51,102,255,.6); }
.btn.primary:hover { background: #2556eb; }
.btn.dark { background: var(--text); border-color: var(--text); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--bg); color: var(--text); }
.btn.danger { color: var(--red); }
.btn.small { height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.btn.icon { width: 36px; padding: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Sayfa */
.page { max-width: 1280px; margin: 0 auto; padding: 36px 28px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 30px; letter-spacing: -.025em; }
.page-head p { margin: 6px 0 0; color: var(--muted); }

/* Kartlar */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.deck { overflow: hidden; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); text-decoration: none; color: inherit; display: block; }
.deck:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.deck .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg); border-bottom: 1px solid var(--line); }
.deck .meta { padding: 14px 16px 16px; }
.deck h3 { margin: 0; font-size: 15px; line-height: 1.35; }
.deck .sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.deck .row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--faint); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--muted); }
.badge.ok { background: #e6f7f0; color: #0e8a62; }
.badge.busy { background: #fff4e5; color: #b26200; }
.badge.fail { background: #fdecec; color: var(--red); }
.badge.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.busy.dot::before { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.empty { padding: 56px 24px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.5); }
.empty h3 { margin: 12px 0 6px; color: var(--text); font-size: 18px; }
.empty p { margin: 0 0 18px; }
.empty .ico { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.empty .ico svg { width: 28px; height: 28px; }

/* Kitaplar */
.book { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.book-head { display: flex; gap: 14px; align-items: flex-start; }
.book-ico { width: 46px; height: 58px; border-radius: 6px 10px 10px 6px; flex-shrink: 0; background: linear-gradient(135deg, #3366ff, #7b5cfa); box-shadow: inset 4px 0 0 rgba(0,0,0,.15); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.book h3 { margin: 0; font-size: 16px; }
.book .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.book .err { color: var(--red); font-size: 13px; }
.themes { display: grid; gap: 14px; }
.theme { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.theme > header { padding: 12px 16px; font-weight: 700; font-size: 14px; background: #fafbfe; border-bottom: 1px solid var(--line); }
.topic { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.topic:first-of-type { border-top: 0; }
.topic .t { flex: 1; min-width: 0; }
.topic .t b { display: block; font-weight: 600; }
.topic .t small { color: var(--faint); }
.topic.sel { background: var(--blue-soft); }
.topics-scroll { max-height: 52vh; overflow: auto; }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); padding: 10px 12px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,102,255,.15); }
.textarea { resize: vertical; min-height: 72px; line-height: 1.45; }
.hint { font-size: 12px; color: var(--faint); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: grid; gap: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg); gap: 4px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 38px; }

/* Pencere */
.modal-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(20, 26, 56, .38); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.modal-wrap.open { opacity: 1; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); transform: translateY(10px) scale(.98); transition: transform .25s var(--ease); }
.modal-wrap.open .modal { transform: none; }
.modal.wide { width: min(960px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 0; }
.modal-head h2 { margin: 0; font-size: 20px; letter-spacing: -.015em; }
.modal-body { padding: 18px 26px; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 26px 22px; }
.steps { display: flex; gap: 8px; padding: 14px 26px 0; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--blue); }

/* Editör */
.editor { display: grid; grid-template-columns: 236px minmax(0, 1fr) 380px; height: calc(100vh - 64px); }
.rail { border-right: 1px solid var(--line); background: #fafbfe; overflow: auto; padding: 16px 14px 24px; }
.rail-item { position: relative; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.rail-item .n { width: 18px; padding-top: 4px; font-size: 12px; font-weight: 600; color: var(--faint); text-align: right; flex-shrink: 0; }
.rail-item .mini { position: relative; flex: 1; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.rail-item[aria-current="true"] .mini { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,102,255,.18); }
.rail-item.drag-over .mini { box-shadow: 0 -3px 0 var(--blue); }
.rail-add { width: 100%; margin-top: 4px; }
.stage { overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 28px 32px 40px; gap: 16px; }
.stage-bar { width: 100%; max-width: 1100px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.stage .canvas { width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.notes-box { width: 100%; max-width: 1100px; }
.notes-box .textarea { min-height: 90px; }
.panel { border-left: 1px solid var(--line); background: var(--surface); overflow: auto; padding: 22px 22px 40px; }
.panel h3 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.list-edit { display: grid; gap: 8px; }
.list-row { display: flex; gap: 6px; align-items: flex-start; }
.list-row .textarea, .list-row .input { flex: 1; }
.qa { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: #fafbfe; }
.qa-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--faint); }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.save-state.dirty { color: #b26200; }
.title-input { border: 1px solid transparent; background: transparent; font-weight: 700; font-size: 16px; padding: 6px 10px; border-radius: 9px; min-width: 0; width: min(520px, 40vw); }
.title-input:hover { border-color: var(--line); }
.title-input:focus { outline: none; border-color: var(--blue); background: #fff; }
.warn { padding: 10px 12px; border-radius: 11px; background: #fff4e5; color: #8a4b00; font-size: 13px; }

/* Üretim ekranı */
.working { max-width: 640px; margin: 10vh auto; text-align: center; }
.working h2 { margin: 18px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.working p { color: var(--muted); margin: 0; }
.orb { width: 84px; height: 84px; margin: 0 auto; border-radius: 26px; background: linear-gradient(135deg, #3366ff, #7b5cfa, #ff7a2f); background-size: 200% 200%; animation: shimmer 3s ease infinite; display: grid; place-items: center; color: #fff; box-shadow: 0 18px 40px -12px rgba(51,102,255,.6); }
.orb svg { width: 38px; height: 38px; }
@keyframes shimmer { 50% { background-position: 100% 100%; } }
.phases { margin: 28px auto 0; display: grid; gap: 10px; text-align: left; max-width: 420px; }
.phase { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.phase.on { color: var(--text); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,102,255,.12); }
.phase.done { color: var(--text); }
.phase i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex-shrink: 0; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.phase.on i { border-color: var(--blue); border-top-color: transparent; animation: spin 1s linear infinite; }
.phase.done i { background: var(--green); border-color: var(--green); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Giriş yok */

#toast { position: fixed; left: 50%; bottom: 26px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; transition: all .3s var(--ease); background: var(--text); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 500; box-shadow: var(--shadow-lg); pointer-events: none; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast.err { background: var(--red); }

/* ---------- Slayt (PowerPoint ölçüleri: 13,333 × 7,5 inç; 1pt = slayt yüksekliğinin 1/540'ı) ---------- */
.slide { position: relative; width: 100%; height: 100%; overflow: hidden; container-type: size; font-family: Montserrat, Inter, sans-serif; background: #f5f7fc; color: #1b2559; user-select: none; }
.slide .el { position: absolute; }
.slide .tx { display: flex; flex-direction: column; white-space: pre-wrap; overflow-wrap: break-word; }
.slide .tx p { margin: 0; }
.slide .ell { border-radius: 50%; }
.slide .reveal { transition: opacity .3s; }
.slide.hide-answers .reveal:not(.shown) { visibility: hidden; }

@media (max-width: 1100px) {
  .editor { grid-template-columns: 180px minmax(0, 1fr); }
  .panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .nav { margin-left: 0; }
  .user span { display: none; }
  .page { padding: 24px 16px 60px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; height: auto; }
  .rail { display: flex; gap: 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-item { width: 150px; flex-shrink: 0; margin: 0; }
}

/* Şablonlar */
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tpl-opt { border: 2px solid var(--line); border-radius: 12px; padding: 6px; background: var(--surface); cursor: pointer; display: grid; gap: 6px; font-weight: 600; font-size: 13px; text-align: left; }
.tpl-opt .mini { aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; }
.tpl-opt[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,102,255,.15); }
.tpl-editor { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; align-items: start; }
.tpl-form { padding: 22px; max-height: calc(100vh - 220px); overflow: auto; }
.tpl-form h3 { margin: 6px 0 -4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.tpl-preview { position: sticky; top: 88px; display: grid; gap: 14px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatch { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; cursor: pointer; }
.swatch input { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.logo-box { width: 150px; height: 56px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; padding: 8px; background: #fff; }
.logo-box img { max-width: 100%; max-height: 100%; }
.deck .thumb + .thumb { border-top: 1px solid var(--line); }
.icon-select { font-size: 13px; padding: 7px 10px; }
@media (max-width: 1100px) { .tpl-editor { grid-template-columns: 1fr; } .tpl-preview { position: static; } }

/* Sunum kartında silme */
.deck { position: relative; }
.deck-del { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--red); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transition: opacity .2s; }
.deck-del svg { width: 17px; height: 17px; }
.deck:hover .deck-del, .deck-del:focus-visible { opacity: 1; }
@media (hover: none) { .deck-del { opacity: 1; } }

/* ---------- Üst çubuk (yenilenmiş) ---------- */
.topbar { height: 68px; gap: 18px; background: rgba(255,255,255,.85); border-bottom: 1px solid var(--line); box-shadow: none; }
.brand { gap: 12px; }
.brand img { height: 28px; }
.brand-sep { width: 1px; height: 26px; background: var(--line-strong); }
.brand-studio { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; background: linear-gradient(135deg, #3366ff, #7b5cfa 60%, #ff5c8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-studio svg { width: 18px; height: 18px; color: #7b5cfa; }
.nav { gap: 4px; margin-left: 10px; padding: 4px; border-radius: 14px; background: #f1f3f9; box-shadow: inset 0 0 0 1px var(--line); }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 14px; }
.nav a svg { width: 17px; height: 17px; }
.nav a:hover { background: rgba(255,255,255,.7); }
.nav a[aria-current="page"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(27,37,89,.08), 0 4px 12px -6px rgba(27,37,89,.25); }
.nav a[aria-current="page"] svg { color: var(--blue); }
.menu-wrap { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; }
.user-btn:hover { border-color: var(--line-strong); }
.user-btn svg { width: 16px; height: 16px; color: var(--faint); }
.avatar { width: 32px; height: 32px; font-size: 12px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-head span { font-size: 13px; color: var(--muted); }
.menu-stat { display: flex; gap: 10px; align-items: center; margin: 4px 0 6px; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, #eef2ff, #f5efff); font-size: 12px; color: var(--muted); }
.menu-stat svg { width: 18px; height: 18px; color: #7b5cfa; }
.menu-stat b { font-size: 16px; color: var(--text); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; cursor: pointer; text-align: left; }
.menu-item:hover { background: var(--bg); }
.menu-item svg { width: 17px; height: 17px; color: var(--muted); }
.menu-item.danger, .menu-item.danger svg { color: var(--red); }
.doc-title { display: flex; flex-direction: column; min-width: 0; }
.doc-title .title-input { padding: 2px 8px; }
.doc-meta { padding: 0 8px; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta .save-state { font-size: 12px; }
.tpl-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); cursor: pointer; position: relative; }
.tpl-chip svg { width: 16px; height: 16px; }
.tpl-chip select { appearance: none; border: 0; background: transparent; font-weight: 600; color: var(--text); padding-right: 2px; cursor: pointer; outline: none; }
.cost-chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 999px; background: #f3f0ff; color: #6a4be0; font-weight: 700; font-size: 13px; }
.cost-chip svg { width: 14px; height: 14px; }
.btn.grad { background: linear-gradient(135deg, #3366ff, #7b5cfa); border: 0; }
.btn.grad:hover { filter: brightness(1.06); }
.btn.danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.modal.narrow { width: min(460px, 100%); }
.ask { display: flex; gap: 16px; align-items: flex-start; }
.ask p { margin: 4px 0 0; color: var(--muted); line-height: 1.55; }
.ask-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.ask-ico.danger { background: #fdecec; color: var(--red); }
.ask-ico svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .user-name, .nav a span, .cost-chip { display: none; } .brand-sep, .brand-studio { display: none; } }
.brand .brand-sep, .brand .brand-studio { padding: 0; border-radius: 0; background-color: transparent; letter-spacing: -.02em; font-size: 17px; }
.brand .brand-studio { background-image: linear-gradient(135deg, #3366ff, #7b5cfa 60%, #ff5c8a); color: transparent; }
.brand .brand-sep { background: var(--line-strong); font-size: 0; }
.brand .brand-studio { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand .brand-studio svg { -webkit-text-fill-color: initial; }

/* ---------- Karşılama (oturumsuz) ---------- */
body.gate-body { background: #0a0f2c; overflow: hidden; }
.gate { position: relative; min-height: 100vh; display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); isolation: isolate; color: #eef1ff; overflow: hidden; }
.gate-bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse 80% 60% at 15% 20%, rgba(51,102,255,.32), transparent 55%),
  radial-gradient(ellipse 70% 50% at 85% 75%, rgba(255,122,47,.16), transparent 50%),
  radial-gradient(ellipse 50% 40% at 50% 100%, rgba(123,92,250,.42), transparent 60%),
  linear-gradient(165deg, #070a1f 0%, #0d1338 45%, #1c1550 100%); }
.gate-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(238,241,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(238,241,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%); animation: gate-drift 28s linear infinite; }
.gate-orb { position: absolute; z-index: -1; width: min(42vw, 420px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(123,92,250,.22), transparent 70%); filter: blur(8px); animation: gate-float 12s ease-in-out infinite; }
.gate-orb.a { top: 8%; right: 12%; animation-delay: -2s; }
.gate-orb.b { bottom: 10%; left: 8%; width: min(30vw, 280px); animation-delay: -6s; animation-direction: reverse; background: radial-gradient(circle, rgba(51,102,255,.22), transparent 70%); }
.gate-panel { width: min(720px, 100%); text-align: center; animation: gate-rise 1.1s cubic-bezier(.22,1,.36,1) both; }
.gate-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); font-size: clamp(21px, 2.8vw, 28px); font-weight: 700; letter-spacing: -.03em; }
.gate-brand small { font-size: .72em; font-weight: 600; color: #b9a8ff; margin-left: 4px; }
.gate-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #3366ff, #7b5cfa); box-shadow: 0 12px 40px rgba(123,92,250,.4); }
.gate-mark svg { width: 22px; height: 22px; color: #fff; }
.gate h1 { margin: 0 0 18px; font-weight: 400; font-size: clamp(42px, 8vw, 74px); line-height: .98; letter-spacing: -.02em; color: #eef1ff; }
.gate h1 em { font-style: italic; background: linear-gradient(90deg, #8fa8ff, #c4a8ff 60%, #ffb38a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gate-lede { max-width: 34rem; margin: 0 auto 32px; font-size: clamp(16px, 2.2vw, 18px); line-height: 1.55; color: rgba(238,241,255,.68); }
.gate-status { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border: 1px solid rgba(238,241,255,.12); border-radius: 999px; background: rgba(10,15,44,.45); backdrop-filter: blur(10px); font-size: 14px; font-weight: 500; }
.gate-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: gate-pulse 2.2s ease-out infinite; }
.gate-note { margin: 22px auto 0; max-width: 30rem; font-size: 13px; color: rgba(238,241,255,.55); }
@keyframes gate-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes gate-float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-18px) scale(1.04); } }
@keyframes gate-drift { from { transform: translateY(0); } to { transform: translateY(64px); } }
@keyframes gate-pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 70% { box-shadow: 0 0 0 12px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
@media (prefers-reduced-motion: reduce) { .gate *, .gate-grid, .gate-orb { animation: none !important; } }
