/* KHA SERVICES: Discord tonlarında bot servisi */
:root {
  --bg: #121416;
  --bg-2: #15181B;
  --surface: #1B1F23;
  --surface-2: #22272C;
  --surface-3: #2B3137;
  --line: #2E343A;
  --glass: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  --glass-border: rgba(255,255,255,.08);
  --text: #E8ECEF;
  --soft: #A4ADB5;
  --mute: #6F7881;
  --accent: #2DD4BF;
  --accent-hi: #5EEAD4;
  --accent-ink: #042F2B;
  --lila: #A78BFA;
  --ok: #34D399;
  --bad: #F87171;
  --warn: #FBBF24;

  --font: 'Figtree', system-ui, sans-serif;
  --display: 'Sora', 'Figtree', system-ui, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(45,212,191,.10), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(167,139,250,.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0; }
code {
  font: 600 .82em/1 var(--font); color: #99F6E4; background: rgba(45,212,191,.10);
  padding: .32em .5em; border-radius: 4px; white-space: nowrap;
}
.soft { color: var(--soft); }
.small { font-size: .875rem; }

/* ---------- Gezinme ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 20; background: rgba(18,20,22,.72); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.04); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1200px; margin: 0 auto; padding: .85rem 1.5rem;
}
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -.02em; }
.logo { font-family: var(--display); }
.logo .mark, .hero-brand .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--lila)); color: var(--accent-ink); font-size: 1.05rem;
  box-shadow: 0 0 22px -4px rgba(45,212,191,.55);
}
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--soft); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); }
.me { display: flex; align-items: center; gap: .5rem; color: var(--soft); font-weight: 500; }
.me img { width: 30px; height: 30px; border-radius: 50%; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .95rem; line-height: 1;
  border: 1px solid transparent; border-radius: var(--r-sm); padding: .8rem 1.2rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 24px -10px rgba(45,212,191,.7);
  transition: background .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-hi); box-shadow: 0 8px 28px -8px rgba(45,212,191,.8); }
.btn-lg { font-size: 1.05rem; padding: 1rem 1.6rem; border-radius: var(--r-md); }
.btn-sm { font-size: .875rem; padding: .6rem .9rem; }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--glass-border); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.09); box-shadow: none; }
.btn-danger { background: var(--bad); color: #2A0A0A; box-shadow: none; }
.btn-danger:hover { background: #FCA5A5; box-shadow: none; }
.btn-white { background: #fff; color: #121416; box-shadow: none; }
.btn-white:hover { background: #E3E5E8; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(45,212,191,.16), rgba(167,139,250,.08) 55%, transparent);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem 6rem;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; }
.hero-copy p { font-size: 1.15rem; color: var(--soft); max-width: 40ch; margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { margin-top: 1.5rem; color: var(--mute); font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- Discord istemci örneği ---------- */
.client {
  display: grid; grid-template-columns: 64px 190px 1fr; height: 400px;
  border-radius: var(--r-lg); overflow: hidden; background: #1A1E22;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px var(--glass-border), 0 0 60px -20px rgba(45,212,191,.35);
  font-size: .9rem; color: #DBDEE1;
}
.rail { background: #0F1113; padding: .75rem 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.rail .srv {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); display: grid; place-items: center; font-weight: 700; color: var(--soft); font-size: .85rem;
}
.rail .srv.active { border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--lila)); color: var(--accent-ink); }
.rail .srv.active::before { content: ""; position: absolute; left: -12px; width: 4px; height: 36px; border-radius: 0 4px 4px 0; background: #fff; }
.rail hr { width: 30px; border: 0; border-top: 2px solid var(--surface-3); margin: .2rem 0; }
.chans { background: #15181B; display: flex; flex-direction: column; min-width: 0; }
.chans-head { padding: .85rem 1rem; font-weight: 700; color: var(--text); border-bottom: 1px solid #1F2023; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chans-cat { padding: 1rem 1rem .3rem; font-size: .72rem; font-weight: 700; color: var(--mute); }
.chan {
  display: flex; align-items: center; gap: .4rem; margin: 1px .5rem; padding: .35rem .5rem;
  border: 0; border-radius: 4px; background: none; color: var(--mute); text-align: left; cursor: pointer; font-weight: 500;
}
.chan .hash { font-size: 1.2rem; line-height: 1; color: var(--mute); }
.chan:hover { background: rgba(78,80,88,.3); color: var(--soft); }
.chan[aria-pressed="true"] { background: rgba(78,80,88,.6); color: var(--text); }
.chan .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chat { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: .85rem 1rem; border-bottom: 1px solid #26272B; font-weight: 700; color: var(--text); display: flex; gap: .4rem; align-items: center; }
.chat-head .hash { color: var(--mute); font-size: 1.25rem; font-weight: 400; line-height: 1; }
.chat-body { flex: 1; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; }
.chat-input { margin: 0 1rem 1rem; padding: .7rem 1rem; border-radius: 8px; background: var(--surface-3); color: var(--mute); font-size: .88rem; }
.msg { display: grid; grid-template-columns: 38px 1fr; gap: .75rem; }
.msg .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; background: var(--surface-3); }
.msg .av.bot { background: var(--accent); transition: background .3s; }
.msg .name { color: #F2F3F5; font-weight: 600; }
.msg .tag { font-size: .62rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: 1px 4px; border-radius: 3px; margin-left: .35rem; vertical-align: 2px; }
.msg .time { color: #949BA4; font-size: .72rem; margin-left: .4rem; }
.cmd { color: #99F6E4; background: rgba(45,212,191,.2); padding: 0 .25rem; border-radius: 3px; }
.caret[hidden] { display: none; }
.caret { display: inline-block; width: 2px; height: 1em; background: #DBDEE1; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.embed { margin-top: .35rem; background: #15181B; border-left: 4px solid var(--accent); border-radius: 4px; padding: .7rem .9rem; max-width: 360px; transition: border-color .3s; }
.embed-title { color: #F2F3F5; font-weight: 700; margin-bottom: .3rem; }
.embed-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .9rem; margin-top: .5rem; }
.embed-fields b { display: block; color: #F2F3F5; font-size: .78rem; }
.embed-fields span { font-size: .85rem; }
.is-hidden { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .client { animation: lift .9s .15s cubic-bezier(.2,.8,.2,1) both; }
  .reveal { animation: fade .3s both; }
}
@keyframes lift { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Bölümler ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-head { max-width: 600px; margin-bottom: 2.25rem; }
.section-head p { color: var(--soft); margin-top: .8rem; font-size: 1.05rem; }
.band { background: rgba(255,255,255,.015); border-block: 1px solid rgba(255,255,255,.05); }

/* Bot tipleri */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.type {
  display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem;
  background: var(--glass), var(--surface); border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .2s, transform .2s;
}
.type .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}
.type .tagline { color: var(--accent); font-weight: 600; font-size: .92rem; }
.type p.desc { color: var(--soft); font-size: .93rem; }
.type .cmds { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .5rem; }
a.type:hover, a.type:focus-visible { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 40px -14px var(--accent); transform: translateY(-2px); }
.type .more { font-size: .8rem; font-weight: 600; color: var(--soft); align-self: center; padding: 0 .2rem; }
a.type .pick { margin-top: .3rem; font-weight: 600; color: var(--text); }

/* Nasıl çalışır: gerçek bir sıralama */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--glass), var(--surface); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 1.5rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 1rem;
  border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--lila)); color: var(--accent-ink); font-weight: 800;
}
.steps h3 { margin-bottom: .45rem; }
.steps p { color: var(--soft); font-size: .95rem; }

.cta-band {
  margin: 0 auto; padding: 3rem; border-radius: 24px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(45,212,191,.35), transparent 70%),
    radial-gradient(600px 260px at 90% 100%, rgba(167,139,250,.35), transparent 70%),
    var(--surface);
  border: 1px solid var(--glass-border);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta-band p { opacity: .85; margin: .7rem 0 1.6rem; font-size: 1.05rem; }

/* ---------- Uygulama sayfaları ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
.page.narrow { max-width: 960px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.page-head p { color: var(--soft); margin-top: .6rem; }
.back { display: inline-block; color: var(--soft); text-decoration: none; margin-bottom: 1.2rem; font-weight: 500; }
.back:hover { color: var(--text); }

.panel { background: var(--glass), var(--surface); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 1.6rem; margin-bottom: 1rem; }
.panel h3 { margin-bottom: .9rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.split .panel { margin-bottom: 0; }

.guide { margin: 0; padding: 0; list-style: none; counter-reset: g; }
.guide li { counter-increment: g; display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; margin-bottom: 1rem; color: var(--soft); }
.guide li::before {
  content: counter(g); width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-3); color: var(--text); font-weight: 700; font-size: .8rem;
}
.guide b { color: var(--text); font-weight: 600; }
.guide a { color: var(--accent); }

label, .label { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.3rem; font-weight: 600; font-size: .95rem; }
label small, .label small { font-weight: 400; color: var(--mute); font-size: .85rem; }
input, select {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid transparent; border-radius: var(--r-sm);
  padding: .75rem .9rem; font: 400 .95rem/1.3 var(--font);
  transition: border-color .15s;
}
textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: .75rem .9rem; font: 400 .95rem/1.5 var(--font); resize: vertical; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }

/* Ayar grupları */
.cfg-group { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.4rem; }
.cfg-group:first-of-type { border-top: 0; margin-top: .8rem; padding-top: .4rem; }
.cfg-group h4 { margin: 0 0 1.1rem; font-size: 1rem; font-weight: 700; color: var(--text); }
.form-actions.sticky {
  position: sticky; bottom: 0; z-index: 5; align-items: center; justify-content: space-between;
  background: rgba(27,31,35,.92); backdrop-filter: blur(10px); margin: 1rem -1.6rem -1.6rem; padding: 1rem 1.6rem; border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 -10px 20px -12px rgba(0,0,0,.5);
}

/* Açma/kapama anahtarı */
.toggle { flex-direction: row; align-items: flex-start; gap: .85rem; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .switch {
  flex: none; position: relative; width: 42px; height: 24px; border-radius: 12px; background: var(--surface-3); transition: background .15s; margin-top: 1px;
}
.toggle .switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s;
}
.toggle input:checked + .switch { background: var(--accent); box-shadow: 0 0 14px -2px rgba(45,212,191,.6); }
.toggle input:checked + .switch::after { transform: translateX(18px); }
.toggle input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-text { display: flex; flex-direction: column; gap: .2rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.field-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: .4rem; }
form.inline { display: flex; gap: .6rem; }

/* Rütbe listesi */
.role-list { display: flex; flex-direction: column; gap: .5rem; }
.rank { display: grid; grid-template-columns: 1.8rem 1fr 38px; align-items: center; gap: .5rem; }
.rank .num { color: var(--mute); font-weight: 600; text-align: right; }
.rank .remove {
  width: 38px; height: 38px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--mute);
  cursor: pointer; font-size: 1.2rem; line-height: 1;
}
.rank .remove:hover { background: rgba(242,63,67,.15); color: var(--bad); }

/* Renk seçici */
.swatches { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.15);
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.swatches input[type=color] { width: 44px; height: 30px; padding: 0; border-radius: 15px; cursor: pointer; background: none; border: 2px dashed var(--line); }
.swatches input[type=color]::-webkit-color-swatch-wrapper { padding: 2px; }
.swatches input[type=color]::-webkit-color-swatch { border: 0; border-radius: 12px; }

/* ---------- Özel seçici (kanal / rol) ---------- */
.picker { position: relative; }
.picker-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.picker-btn {
  width: 100%; display: flex; align-items: center; gap: .5rem; text-align: left;
  background: var(--bg); color: var(--text); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: .72rem .9rem; cursor: pointer; font-weight: 500; min-height: 46px;
}
.picker-btn:hover { border-color: #2E3035; }
.picker-btn[aria-expanded="true"] { border-color: var(--accent); }
.picker-btn .chev { margin-left: auto; color: var(--mute); transition: transform .15s; flex: none; }
.picker-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.picker-btn .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-none { color: var(--mute); font-weight: 400; }
.pk-hash { color: var(--mute); font-size: 1.15rem; line-height: 1; width: 1rem; text-align: center; flex: none; }
.pk-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c, #99AAB5); flex: none; }
.pk-role { color: var(--c, var(--text)); }
.picker-pop {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  background: #171A1D; border: 1px solid var(--glass-border); border-radius: var(--r-md);
  box-shadow: 0 16px 40px rgba(0,0,0,.45); overflow: hidden;
}
.picker-pop[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .picker-pop:not([hidden]) { animation: drop .14s ease-out; } }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.picker-search { border-radius: 0; border: 0; border-bottom: 1px solid #2E3035; background: transparent; padding: .8rem .9rem; }
.picker-search:focus { border-color: #2E3035; }
.picker-list { list-style: none; margin: 0; padding: .35rem; max-height: 260px; overflow-y: auto; }
.picker-group { padding: .7rem .6rem .25rem; font-size: .72rem; font-weight: 700; color: var(--mute); }
.picker-opt {
  display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: 4px;
  cursor: pointer; color: var(--soft); font-weight: 500;
}
.picker-opt .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-opt.active { background: var(--surface-3); color: var(--text); }
.picker-opt[aria-selected="true"] { color: var(--text); }
.picker-opt[aria-selected="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); font-weight: 800; }
.picker-empty { padding: 1rem .6rem; color: var(--mute); font-size: .9rem; }

/* ---------- Bildirim ---------- */
.alert { padding: .95rem 1.15rem; border-radius: var(--r-md); margin-bottom: 1.5rem; font-weight: 500; }
.alert-success { background: rgba(52,211,153,.12); color: #6EE7B7; border: 1px solid rgba(52,211,153,.25); }
.alert-error { background: rgba(248,113,113,.12); color: #FCA5A5; border: 1px solid rgba(248,113,113,.25); }
@media (prefers-reduced-motion: no-preference) { .alert { animation: fade .3s both; } }

/* Bot listesi */
.bot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.bot-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: center;
  padding: 1.25rem; background: var(--glass), var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--glass-border); text-decoration: none; transition: border-color .15s, box-shadow .2s;
}
.bot-row:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 36px -14px var(--accent); }
.bot-row strong { font-size: 1.05rem; display: block; }
.bot-row .meta { color: var(--soft); font-size: .88rem; margin: .1rem 0 .35rem; }
.bot-row .type-pill { color: var(--accent); font-weight: 600; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-3); }
.avatar.lg { width: 88px; height: 88px; }

.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; white-space: nowrap; color: var(--soft); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mute); }
.status-online { color: #6EE7B7; }
.status-online::before { background: var(--ok); }
.status-starting, .status-pending, .status-crashed { color: #F5CD72; }
.status-starting::before, .status-pending::before, .status-crashed::before { background: var(--warn); }
.status-error { color: #FCA5A5; }
.status-error::before { background: var(--bad); }

.bot-head {
  position: relative; display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 112px 1.6rem 1.5rem; margin-bottom: 1rem; overflow: hidden;
}
.bot-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 96px; background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 35%, var(--surface))); opacity: .9; }
.bot-head > * { position: relative; }
.bot-head .avatar.lg { border: 6px solid var(--surface); margin-top: -70px; align-self: flex-start; }
.bot-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.bot-head .meta { color: var(--soft); margin: .25rem 0 .4rem; }
.bot-head .actions { margin-left: auto; display: flex; gap: .6rem; flex-wrap: wrap; }
.bot-head .where { margin-left: .6rem; }
.btn-local { background: var(--lila); color: #1E1336; box-shadow: 0 6px 24px -10px rgba(167,139,250,.8); }
.btn-local:hover { background: #C4B5FD; }
.invite { background: linear-gradient(120deg, rgba(45,212,191,.18), rgba(167,139,250,.10) 50%, var(--surface) 80%); }
.invite p { color: var(--soft); margin-bottom: 1.2rem; max-width: 60ch; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-color: rgba(248,113,113,.3); }
.danger-zone h3 { margin-bottom: .3rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }

.empty { text-align: center; padding: 4rem 1.5rem; }
.empty h2 { margin-bottom: .7rem; }
.empty p { color: var(--soft); margin-bottom: 1.6rem; }

.footer { border-top: 1px solid rgba(255,255,255,.05); margin-top: 3rem; }
.footer div { max-width: 1200px; margin: 0 auto; padding: 1.6rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--mute); font-size: .875rem; flex-wrap: wrap; }

/* ---------- Mobil ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 3rem; }
  .types { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links .hide-sm { display: none; }
  .client { grid-template-columns: 1fr; height: auto; }
  .rail, .chans { display: none; }
  .chat-body { min-height: 260px; }
  .types, .split, .field-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 2.2rem 1.3rem; }
  form.inline { flex-direction: column; }
  .bot-head .actions { margin-left: 0; }
}

/* ---------- Bot tipi dönüştürme ---------- */
.type-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.type-opt {
  --accent: var(--lila);
  flex-direction: row; align-items: center; gap: .8rem; margin: 0; padding: .9rem 1rem; cursor: pointer;
  border: 1px solid var(--glass-border); border-radius: var(--r-md); background: rgba(255,255,255,.02);
  transition: border-color .15s, background .15s;
}
.type-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-opt .ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 1.25rem; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.type-opt b { display: block; font-weight: 700; }
.type-opt small { display: block; color: var(--soft); font-weight: 400; font-size: .82rem; }
.type-opt:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.type-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.type-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

dialog.confirm {
  width: min(480px, calc(100vw - 2rem)); padding: 1.6rem; border-radius: var(--r-lg);
  background: var(--surface); color: var(--text); border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 50px -20px rgba(248,113,113,.4);
}
dialog.confirm::backdrop { background: rgba(8,10,12,.7); backdrop-filter: blur(4px); }
dialog.confirm h3 { margin-bottom: .7rem; }
dialog.confirm p { color: var(--soft); }
dialog.confirm label { margin: 0; }
.confirm-steps { display: flex; gap: .35rem; margin-bottom: 1.2rem; }
.confirm-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); transition: background .2s; }
.confirm-steps span.on { background: var(--bad); }
.confirm-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.4rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { dialog.confirm[open] { animation: fade .2s both; } }
@media (max-width: 760px) { .type-pick { grid-template-columns: 1fr; } }
.btn[hidden] { display: none; }

/* ================= ANA SAYFA ================= */
.home-hero { max-width: 900px; margin: 0 auto; padding: 6rem 1.5rem 3rem; text-align: center; }
.home-hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.04em; }
.home-hero h1 span:last-child {
  background: linear-gradient(90deg, var(--accent), var(--lila)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-hero p { color: var(--soft); font-size: 1.15rem; max-width: 46ch; margin: 1.4rem auto 2rem; }
.home-hero .hero-cta { justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-words span { display: inline-block; animation: rise-in .8s cubic-bezier(.2,.8,.2,1) both; }
  .reveal-words span:last-child { animation-delay: .12s; }
  .home-hero p, .home-hero .hero-cta { animation: fade .7s .35s both; }
  .showcase { animation: lift .9s .45s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(.4em); filter: blur(6px); } }

/* Bot seçici */
.showcase { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.tabs {
  display: flex; gap: .35rem; padding: .35rem; margin: 0 auto 1rem; width: fit-content; max-width: 100%; overflow-x: auto;
  background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); border-radius: 14px;
}
.tabs [role=tab] {
  display: flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .65rem 1.1rem; border: 0; border-radius: 10px; background: transparent; color: var(--soft);
  font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.tabs [role=tab]:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tabs [role=tab][aria-selected="true"] {
  color: var(--text); background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 24px -10px var(--accent);
}
.show-panel {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 2rem; align-items: center;
  padding: 2rem; border-radius: 22px; border: 1px solid var(--glass-border);
  background:
    radial-gradient(500px 300px at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--glass), var(--surface);
  transition: background .3s;
}
@media (prefers-reduced-motion: no-preference) { .show-panel.swap .show-info { animation: fade .35s both; } }
.show-info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.show-tag { color: var(--accent); font-weight: 700; margin: .4rem 0 .8rem; }
.show-desc { color: var(--soft); margin-bottom: 1.1rem; max-width: 52ch; }
.checks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .55rem; }
.checks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; align-items: start; }
.checks li::before {
  content: "✓"; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800;
  color: var(--accent-ink); background: var(--accent); margin-top: .15rem;
}
.show-panel .btn { background: var(--accent); }
.demo {
  --accent: inherit;
  display: flex; flex-direction: column; min-height: 360px; border-radius: 16px; overflow: hidden;
  background: #1A1E22; border: 1px solid var(--glass-border); color: #DBDEE1; font-size: .9rem;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.demo-head { padding: .85rem 1rem; border-bottom: 1px solid #262B30; font-weight: 700; color: var(--text); display: flex; gap: .4rem; align-items: center; }
.demo-head .hash { color: var(--mute); font-size: 1.25rem; font-weight: 400; line-height: 1; }

/* Neden DaveBots */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile {
  position: relative; overflow: hidden; padding: 1.5rem; border-radius: var(--r-lg);
  background: var(--glass), var(--surface); border: 1px solid var(--glass-border);
}
.tile h3 { margin-bottom: .5rem; }
.tile p { color: var(--soft); font-size: .95rem; }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
  background: radial-gradient(400px 260px at 100% 100%, rgba(167,139,250,.16), transparent 70%), var(--glass), var(--surface); }
.tile-wide p { max-width: 38ch; }
.mini-profile {
  width: 240px; border-radius: 14px; overflow: hidden; background: #15181B; border: 1px solid var(--glass-border);
  padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: .2rem;
}
.mini-banner { height: 64px; margin: 0 -1rem; background: linear-gradient(120deg, #5B9DFF, var(--lila)); }
.mini-av { width: 62px; height: 62px; margin-top: -31px; border-radius: 50%; border: 5px solid #15181B; background: #1E2A44; display: grid; place-items: center; font-size: 1.6rem; }
.mini-profile .tag { font-size: .62rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: 1px 4px; border-radius: 3px; vertical-align: 2px; }
.mini-profile small { color: var(--soft); }
.mini-picker { margin-top: 1rem; border-radius: 10px; background: #15181B; border: 1px solid var(--glass-border); padding: .3rem; font-size: .88rem; }
.mini-picker div { display: flex; gap: .5rem; padding: .4rem .55rem; border-radius: 6px; color: var(--soft); }
.mini-picker div span { color: var(--mute); width: 1rem; text-align: center; }
.mini-picker .on { background: var(--surface-3); color: var(--text); }
.mini-picker .on::after { content: "✓"; margin-left: auto; color: var(--accent); font-weight: 800; }
.mini-status { margin-top: 1rem; }

/* Adımlar: bağlantı çizgili */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: t; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 19px; left: 20px; right: calc(33.33% - 20px); height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--lila)); opacity: .5;
}
.timeline li { counter-increment: t; position: relative; }
.timeline li::before {
  content: counter(t); position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1.1rem;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); font: 700 1rem/1 var(--display);
  box-shadow: 0 0 20px -6px var(--accent);
}
.timeline h3 { margin-bottom: .45rem; }
.timeline p { color: var(--soft); font-size: .95rem; max-width: 32ch; }

/* SSS */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.faq { display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--glass-border); border-radius: var(--r-md); background: var(--glass), var(--surface); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--soft); }

@media (max-width: 960px) {
  .show-panel { grid-template-columns: 1fr; padding: 1.4rem; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .bento .tile:last-child { grid-column: span 2; }
  .faq-wrap { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 640px) {
  .home-hero { padding-top: 3.5rem; }
  .tabs { width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 1.5rem; }
  .timeline::before { display: none; }
}
.log-setup { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.log-setup > div { flex: 1; min-width: 260px; }
.log-setup h3 { margin-bottom: .4rem; }

/* ---------- Bot paneli: sekmeler ---------- */
[hidden] { display: none !important; }
.ptabs {
  display: flex; gap: .25rem; margin: 0 0 1rem; padding: .3rem; width: fit-content; max-width: 100%; overflow-x: auto;
  background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--r-md);
}
.ptabs [role=tab] {
  display: inline-flex; align-items: center; gap: .5rem; border: 0; background: transparent; color: var(--soft);
  font: 600 .95rem/1 var(--font); padding: .7rem 1.05rem; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap;
}
.ptabs [role=tab]:hover { color: var(--text); }
.ptabs [role=tab][aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.ptab-count { font-size: .75rem; color: var(--mute); background: var(--bg); padding: .2rem .45rem; border-radius: 999px; }
.pane-lead { margin: -.2rem 0 .4rem; }
.cfg-lock { border: 0; margin: 0; padding: 0; min-width: 0; }
.cfg-lock:disabled .pane, .log-setup:has([data-needs-online]:disabled) { opacity: .55; }
.cfg-lock:disabled .pane * { cursor: not-allowed !important; }

/* Çevrimdışı uyarısı */
.lock-note {
  display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; padding: .95rem 1.1rem;
  border-radius: var(--r-md); background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.28); color: var(--warn);
}
.lock-note svg { flex: none; margin-top: .1rem; }
.lock-note div { display: flex; flex-direction: column; gap: .15rem; }
.lock-note b { color: var(--text); }
.lock-note span { color: var(--soft); font-size: .9rem; }

/* Küçük anahtar */
.toggle.mini { margin: 0; align-items: center; }
.toggle.mini .switch { width: 36px; height: 20px; }
.toggle.mini .switch::after { width: 14px; height: 14px; }
.toggle.mini input:checked + .switch::after { transform: translateX(16px); }

/* Çoklu seçici */
.multi { position: relative; font-weight: 400; }
.mu-box {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; min-height: 44px; padding: .4rem;
  background: var(--bg); border-radius: var(--r-sm);
}
.mu-chip {
  display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: .3rem .3rem .3rem .55rem;
  background: var(--surface-2); border: 1px solid var(--glass-border); border-radius: 999px; font-size: .88rem;
}
.mu-chip .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.mu-x {
  width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--mute); cursor: pointer; font-size: 1rem; line-height: 1;
}
.mu-x:hover { background: rgba(248,113,113,.15); color: var(--bad); }
.mu-add {
  display: inline-flex; align-items: center; gap: .35rem; border: 1px dashed var(--line); background: transparent;
  color: var(--soft); border-radius: 999px; padding: .38rem .75rem; font: 600 .85rem/1 var(--font); cursor: pointer;
}
.mu-add:hover, .mu-add[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.mu-av { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-3); flex: none; }
.mu-sub { margin-left: auto; color: var(--mute); font-size: .8rem; }
.mu-pop { min-width: 260px; }

/* Komutlar sekmesi */
.pane-head { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1rem; }
.cmd-tools { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cmd-tools input { max-width: 320px; }
.cmd-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cmd + .cmd { border-top: 1px solid var(--line); }
.cmd-list .cmd { color: inherit; background: none; padding: 0; border-radius: 0; } /* anasayfa demosundaki .cmd stilini ezme */
.cmd-head { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; }
.cmd-name { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1; }
.cmd-name code { width: fit-content; font-size: .9rem; }
.cmd-name span { color: var(--mute); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd.off .cmd-name { opacity: .5; }
.cmd.off .cmd-name code { text-decoration: line-through; }
.cmd-badge { font-size: .75rem; font-weight: 700; color: var(--lila); background: rgba(167,139,250,.12); padding: .25rem .55rem; border-radius: 999px; white-space: nowrap; }
.cmd-body { padding: .4rem .9rem .2rem 3.9rem; background: rgba(0,0,0,.12); border-top: 1px dashed var(--line); }
.cmd-subs { margin: .6rem 0 .9rem; }
.cmd-subs code { font-size: .8rem; }
.cmd-body .label { font-size: .88rem; }

/* Automod */
.am-top { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; align-items: start; margin-top: .4rem; }
.rules { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1rem; }
.rule { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); transition: border-color .15s; }
.rule.on { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.rule-head { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; }
.rule-name { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.rule-name span { color: var(--mute); font-size: .86rem; }
.rule-sum { font-size: .8rem; font-weight: 600; color: var(--mute); white-space: nowrap; }
.rule.on .rule-sum { color: var(--accent); }
.rule-body { border-top: 1px dashed var(--line); padding: 1rem 1rem .2rem 3.9rem; }
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.2rem; }
.rule-grid .wide { grid-column: 1 / -1; }
.rule-grid label, .rule-grid .label { font-size: .88rem; }
.plain-select { appearance: auto; }

/* Ticket kategorileri */
.topts { display: flex; flex-direction: column; gap: .6rem; }
.topt {
  display: grid; grid-template-columns: 64px 1fr 1.6fr 38px; grid-template-areas: "e a d x" "k k r r"; gap: .5rem;
  padding: .7rem; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); font-weight: 400;
}
.topt > :nth-child(1) { grid-area: e; text-align: center; font-size: 1.15rem; padding-inline: .3rem; }
.topt > :nth-child(2) { grid-area: a; }
.topt > :nth-child(3) { grid-area: d; }
.topt > .picker:nth-of-type(1), .topt > select[data-k=kategori] { grid-area: k; }
.topt > .picker:nth-of-type(2), .topt > select[data-k=rol] { grid-area: r; }
.topt-x { grid-area: x; width: 38px; height: 38px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--mute); cursor: pointer; font-size: 1.2rem; }
.topt-x:hover { background: rgba(248,113,113,.15); color: var(--bad); }

@media (max-width: 760px) {
  .am-top, .rule-grid { grid-template-columns: 1fr; }
  .cmd-body, .rule-body { padding-left: .9rem; }
  .cmd-name span { white-space: normal; }
  .topt { grid-template-columns: 56px 1fr 38px; grid-template-areas: "e a x" "d d d" "k k k" "r r r"; }
}

/* Ayar sekmelerinde sağdaki bölüm menüsü */
.pane.has-nav:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 1.6rem; align-items: start; }
.pane-main > [data-sec][hidden], #cmd-list .cmd-list[hidden] { display: none; }
.pane-main .cfg-group:not([hidden]) { border-top: 0; margin-top: .6rem; padding-top: 0; }
#cmd-list, #am-rules { display: flex; flex-direction: column; gap: .8rem; }
#cmd-list .cmd-list.empty, #am-rules .rules[hidden] { display: none; }
.sec-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: .2rem; padding: .5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); }
.sec-nav button { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; text-align: left; padding: .6rem .75rem; border: 0; border-radius: 8px; background: none; color: var(--mute); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.sec-nav button:hover { color: var(--text); background: rgba(255,255,255,.04); }
.sec-nav button[aria-current="true"] { color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.sec-nav button small { font-size: .75rem; color: var(--mute); background: rgba(255,255,255,.06); padding: .1rem .45rem; border-radius: 999px; }
.sec-nav button.all { margin-top: .3rem; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; font-weight: 500; font-size: .85rem; }
.sec-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 900px) {
  .pane.has-nav:not([hidden]) { grid-template-columns: 1fr; gap: 1rem; }
  .sec-nav { order: -1; position: static; flex-direction: row; overflow-x: auto; padding: .35rem; }
  .sec-nav button { width: auto; white-space: nowrap; flex: none; }
  .sec-nav button[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .sec-nav button.all { margin: 0; border: 0; }
}

/* ===== KHA SERVICES: marka, ana sayfa animasyonları, admin ===== */
.logo-text { letter-spacing: .02em; font-weight: 600; white-space: nowrap; }
.logo-text b { font-weight: 800; color: var(--accent); }
.home-hero { position: relative; isolation: isolate; }
.aurora { position: absolute; inset: -120px -10vw auto; height: 620px; z-index: -1; pointer-events: none; overflow: hidden; mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 72%); }
.aurora i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .32; }
.aurora i:nth-child(1) { background: var(--accent); left: 12%; top: 40px; }
.aurora i:nth-child(2) { background: var(--lila); right: 10%; top: 0; opacity: .26; }
.aurora i:nth-child(3) { background: #7AA2F7; left: 42%; top: 200px; width: 380px; height: 380px; opacity: .16; }
.hero-brand { display: inline-flex; align-items: center; gap: .55rem; margin: 0 auto 1.2rem; padding: .35rem .9rem .35rem .4rem; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass); font-size: .85rem; letter-spacing: .12em; color: var(--soft); }
.hero-brand b { color: var(--text); letter-spacing: .12em; }
.hero-brand .mark { width: 26px; height: 26px; font-size: .8rem; }
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; margin: 2.6rem auto 0; padding: 0; max-width: 760px; }
.hero-stats div { flex: 1 1 140px; padding: .4rem 1.2rem; border-left: 1px solid var(--line); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats dt { font-size: .82rem; color: var(--mute); }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: .2rem; }
.hero-stats dd { margin: 0; font-family: Sora, sans-serif; font-size: 2rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-120%); }
.tile-perm { align-items: center; }
.mini-cmds { display: flex; flex-direction: column; gap: .45rem; min-width: 230px; }
.mini-cmds div { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.mini-cmds div.off { opacity: .55; }
.mini-cmds code { flex: 1; font-size: .85rem; color: var(--text); }
.mini-cmds .sw { width: 28px; height: 16px; border-radius: 999px; background: var(--surface-3); position: relative; flex: none; }
.mini-cmds .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--soft); transition: transform .3s; }
.mini-cmds .sw.on { background: var(--accent); }
.mini-cmds .sw.on::after { transform: translateX(12px); background: #fff; }
.mini-cmds .chip { font-size: .75rem; font-weight: 600; color: #E0AF68; background: rgba(224,175,104,.12); padding: .15rem .5rem; border-radius: 999px; }
.mini-cmds .chip.mute { color: var(--mute); background: rgba(255,255,255,.05); }
@media (prefers-reduced-motion: no-preference) {
  .aurora i:nth-child(1) { animation: drift1 18s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { animation: drift2 22s ease-in-out infinite alternate; }
  .aurora i:nth-child(3) { animation: drift1 26s ease-in-out infinite alternate-reverse; }
  .hero-brand { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-stats { animation: rise .8s .45s cubic-bezier(.2,.7,.2,1) both; }
  .btn-shine::after { animation: shine 5s 1.6s ease-in-out infinite; }
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.in .tile, .reveal.in .timeline li, .reveal.in .faq details { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .reveal.in .tile:nth-child(2), .reveal.in .timeline li:nth-child(2), .reveal.in .faq details:nth-child(2) { animation-delay: .08s; }
  .reveal.in .tile:nth-child(3), .reveal.in .timeline li:nth-child(3), .reveal.in .faq details:nth-child(3) { animation-delay: .16s; }
  .reveal.in .tile:nth-child(4), .reveal.in .faq details:nth-child(4) { animation-delay: .24s; }
  .reveal.in .tile:nth-child(5), .reveal.in .faq details:nth-child(5) { animation-delay: .32s; }
  .reveal.in .tile:nth-child(6) { animation-delay: .4s; }
  .tile { transition: transform .25s ease, border-color .25s ease; }
  .tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--glass-border)); }
  .btn { transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
  .btn:active { transform: translateY(1px) scale(.98); }
  .pane:not([hidden]) { animation: fade .25s ease both; }
  .bot-row { transition: transform .2s ease, border-color .2s ease; }
  .bot-row:hover { transform: translateX(3px); }
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(90px, 50px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-110px, 70px) scale(.9); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (max-width: 640px) {
  .hero-stats div { flex-basis: 45%; border-left: 0; padding: .6rem; }
  .hero-stats dd { font-size: 1.6rem; }
  .tile-perm { flex-direction: column; align-items: stretch; }
}

/* Admin */
.admin .stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.admin .stat { padding: 1rem 1.1rem; border: 1px solid var(--glass-border); border-radius: var(--r-md); background: var(--glass); display: flex; flex-direction: column; gap: .15rem; }
.admin .stat b { font-family: Sora, sans-serif; font-size: 1.7rem; }
.admin .stat span { color: var(--mute); font-size: .85rem; }
.admin-nav { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-nav a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); text-decoration: none; font-weight: 600; font-size: .9rem; }
.admin-nav a:hover { color: var(--text); border-color: var(--accent); }
.admin-nav small { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 .4rem; font-size: .72rem; }
.admin-sec { margin-bottom: 1.2rem; scroll-margin-top: 90px; }
.admin-sec h2 { font-size: 1.2rem; margin: 0 0 1rem; }
.admin-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.type-bars { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .85rem; color: var(--soft); }
.type-bars span { display: inline-flex; align-items: center; gap: .35rem; }
.type-bars i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.admin-tools { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .9rem; }
.admin-tools input { max-width: 300px; }
.admin-tools select { width: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.atable { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 860px; }
.atable th { text-align: left; font-weight: 600; color: var(--mute); font-size: .78rem; padding: .7rem .8rem; background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.atable td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable tr:last-child td { border-bottom: 0; }
.atable tbody tr:hover { background: rgba(255,255,255,.02); }
.atable td small { display: block; color: var(--mute); font-size: .75rem; margin-top: .1rem; }
.atable td small.err { color: #F7768E; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-bot { display: flex; align-items: center; gap: .6rem; }
.cell-bot small { display: block; }
.avatar.sm { width: 32px; height: 32px; border-radius: 50%; }
.cell-act { text-align: right; }
.empty-row { padding: 1rem; }
.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.node { padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); display: flex; flex-direction: column; gap: .6rem; }
.node.off { opacity: .6; }
.node-head { display: flex; justify-content: space-between; align-items: center; }
.meter { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.node small { color: var(--mute); }
.fb-list { display: flex; flex-direction: column; gap: .6rem; }
.fb { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); }
.fb-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.fb-head small { color: var(--mute); }
.fb p { margin: .5rem 0 0; white-space: pre-wrap; }
.fb-kind { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: rgba(255,255,255,.06); }
.fb-hata { color: #F7768E; background: rgba(247,118,142,.12); }
.fb-oneri { color: var(--accent); background: rgba(45,212,191,.12); }
@media (max-width: 900px) { .admin .stat-row { grid-template-columns: repeat(2, 1fr); } }

.logo-img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.hero-brand img { border-radius: 7px; display: block; }

/* Kaydet çubuğu: değişiklik olunca aşağıdan çıkar */
.save-bar[hidden] { display: none !important; }
.save-bar { border-top: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.save-text { display: flex; flex-direction: column; gap: .1rem; }
.save-text b { font-size: .95rem; }
.save-btns { display: flex; gap: .6rem; }
@media (prefers-reduced-motion: no-preference) { .save-bar:not([hidden]) { animation: rise .25s cubic-bezier(.2,.7,.2,1) both; } }
.alert-success { animation: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: .75rem 1.2rem; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); pointer-events: none; animation: toast 3.2s ease both; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }

/* ===== Webhook Koruma ===== */
.status-stopped { color: var(--soft); }
.status-stopped::before { background: var(--mute); }
.wh-quota { padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); color: var(--soft); white-space: nowrap; }
.wh-quota b { color: var(--accent); }
.wh-list { display: grid; gap: 16px; margin-top: 18px; }
.wh-card { display: grid; gap: 14px; }
.wh-card.is-off { opacity: .72; }
.wh-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wh-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }
.wh-url { display: flex; gap: 8px; margin-top: 6px; }
.wh-url input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.wh-stats { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.wh-stats > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: grid; gap: 2px; }
.wh-stats span { font-size: 12px; color: var(--mute); }
.wh-stats b { font-size: 15px; word-break: break-all; }
.wh-stats b.bad { color: var(--bad); }
.wh-stats small { color: var(--soft); font-size: 12px; }
.wh-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.wh-actions .push-right { margin-left: auto; }
.wh-edit summary { list-style: none; cursor: pointer; }
.wh-edit summary::-webkit-details-marker { display: none; }
.wh-edit-form { display: grid; gap: 8px; margin-top: 8px; min-width: 280px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.wh-logs summary { cursor: pointer; color: var(--soft); font-weight: 600; }
.wh-logs summary small { color: var(--mute); font-weight: 400; margin-left: 6px; }
.wh-logs[open] summary { margin-bottom: 10px; }
.wh-logs form { margin-top: 10px; }
.wh-admin-forms { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.wh-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.wh-inline label { display: grid; gap: 4px; font-size: 13px; }
.wh-inline input[type=number] { width: 110px; }
@media (max-width: 640px) { .wh-stats { grid-template-columns: 1fr 1fr; } .wh-stats > div:first-child { grid-column: 1 / -1; } .wh-url { flex-wrap: wrap; } }
