/* =====================================================================
   TS3DNS — arayüz
   Tema: TeamSpeak istemcisi. Pencere çerçeveleri, kanal ağacı, durum çubuğu.
   Renkler sitenin mavi-gümüş logosundan gelir. Koyu tema varsayılandır;
   "klasik" açık tema TS3 istemcisinin gri-mavi görünümüne göndermedir.
   ===================================================================== */

@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-400-900-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-400-900-latin-ext.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-500-latin-ext.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF; }

:root {
  --bg: #0a121e;
  --bg-2: #0f1a2a;
  --bg-3: #152338;
  --bg-4: #1c2e49;
  --line: #213450;
  --line-2: #2e466a;
  --text: #e9eff8;
  --text-2: #a8b8ce;
  --text-3: #7286a2;
  --brand: #2f8fe6;
  --brand-hi: #62b0f5;
  --brand-ink: #ffffff;
  --brand-soft: rgba(47, 143, 230, .14);
  --silver: #c7d2df;
  --ok: #3fcf8e;
  --ok-soft: rgba(63, 207, 142, .13);
  --warn: #f0b54a;
  --warn-soft: rgba(240, 181, 74, .13);
  --err: #f47272;
  --err-soft: rgba(244, 114, 114, .12);
  --shadow: 0 18px 50px rgba(0, 0, 0, .38);
  --radius: 6px;
  --head: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #e7ecf3;
  --bg-2: #ffffff;
  --bg-3: #f2f5f9;
  --bg-4: #e4ebf4;
  --line: #cdd7e4;
  --line-2: #b3c1d4;
  --text: #122036;
  --text-2: #43577a;
  --text-3: #667995;
  --brand: #1c6fc4;
  --brand-hi: #1560ac;
  --brand-soft: rgba(28, 111, 196, .1);
  --silver: #5b6d86;
  --ok: #128a55;
  --ok-soft: rgba(18, 138, 85, .1);
  --warn: #a86a00;
  --warn-soft: rgba(168, 106, 0, .1);
  --err: #c93636;
  --err-soft: rgba(201, 54, 54, .08);
  --shadow: 0 14px 40px rgba(24, 45, 80, .14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--brand); color: #fff; }
[hidden] { display: none !important; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eyebrow { font: 600 .74rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-hi); display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--text-2); max-width: 46ch; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

/* -------------------------------------------------- durum noktası (TS kullanıcı simgesi) */
.dot { width: .62rem; height: .62rem; border-radius: 50%; background: var(--text-3); flex: none; display: inline-block; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot.err { background: var(--err); box-shadow: 0 0 0 3px var(--err-soft); }
.dot.brand { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* -------------------------------------------------- düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem 1.1rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-3); color: var(--text); font: 600 .94rem/1.2 var(--body); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--bg-4); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #4aa0ee; border-color: #4aa0ee; }
:root[data-theme="light"] .btn-primary:hover { background: #155ca6; border-color: #155ca6; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: var(--err); color: var(--err); }
.btn-danger:hover { background: var(--err-soft); }
.btn-danger.solid { background: var(--err); color: #1a0606; }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1.02rem; }
.btn-sm { min-height: 36px; padding: .35rem .75rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand-hi); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* -------------------------------------------------- form */
.field { display: block; margin-bottom: 1.1rem; }
.field > label, .label { display: block; font: 600 .86rem/1.3 var(--body); margin-bottom: .4rem; color: var(--text); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); color: var(--text); font: 400 1rem/1.4 var(--body); transition: border-color .15s, box-shadow .15s; }
:root[data-theme="light"] .input, :root[data-theme="light"] .select, :root[data-theme="light"] .textarea { background: #fff; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input.mono, .textarea.mono { font-family: var(--mono); font-size: .95rem; }
.input-short { max-width: 9rem; }
.textarea { min-height: 8rem; resize: vertical; }
.select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.hint { display: block; margin-top: .35rem; font-size: .83rem; color: var(--text-3); }
.inline-fields { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.joined { display: flex; }
.joined .input { border-radius: var(--radius) 0 0 var(--radius); min-width: 0; }
.joined .select { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; width: auto; max-width: 55%; flex: none; background-color: var(--bg-3); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .93rem; color: var(--text-2); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; flex: none; accent-color: var(--brand); }
.switch { display: flex; align-items: center; gap: .75rem; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--bg-4); border: 1px solid var(--line-2); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); transition: transform .15s, background .15s; }
.switch input:checked { background: var(--brand); border-color: var(--brand); }
.switch input:checked::after { transform: translateX(18px); background: #fff; }
.pw { position: relative; }
.pw .input { padding-right: 5rem; }
.pw button { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); min-height: 34px; }
.meter { height: 4px; border-radius: 4px; background: var(--bg-4); margin-top: .5rem; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--err); transition: width .2s, background .2s; }
.captcha { margin-bottom: 1.1rem; }

/* -------------------------------------------------- bildirimler */
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line-2); border-left: 3px solid var(--brand); border-radius: var(--radius); background: var(--brand-soft); color: var(--text); font-size: .95rem; margin-bottom: 1rem; }
.notice .i { margin-top: .2rem; color: var(--brand-hi); }
.notice.success { border-left-color: var(--ok); background: var(--ok-soft); }
.notice.success .i { color: var(--ok); }
.notice.error { border-left-color: var(--err); background: var(--err-soft); }
.notice.error .i { color: var(--err); }
.notice.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.notice.warn .i { color: var(--warn); }
.notice p:last-child { margin: 0; }
.flashes { width: min(100% - 2rem, var(--wrap)); margin: 1.25rem auto 0; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius); font-size: .9rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* -------------------------------------------------- etiketler */
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .55rem; border-radius: 4px; background: var(--bg-4); color: var(--text-2); font: 600 .74rem/1.4 var(--body); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.err { background: var(--err-soft); color: var(--err); }
.tag.brand { background: var(--brand-soft); color: var(--brand-hi); }

/* -------------------------------------------------- pencere (TS iletişim kutusu) */
.win { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.win.float { box-shadow: var(--shadow); }
.win-bar { display: flex; align-items: center; gap: .6rem; min-height: 40px; padding: .4rem .9rem; background: var(--bg-3); border-bottom: 1px solid var(--line); font: 650 .8rem/1.2 var(--head); letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.win-bar .i { color: var(--brand-hi); }
.win-bar .end { margin-left: auto; display: flex; gap: .5rem; align-items: center; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 500; }
.win-body { padding: 1.25rem; }
.win-foot { padding: .9rem 1.25rem; border-top: 1px solid var(--line); background: var(--bg-3); display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; align-items: center; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; }

/* -------------------------------------------------- adres kutusu */
.addr { display: flex; align-items: center; gap: .5rem; padding: .5rem .5rem .5rem .9rem; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--bg); font: 500 1.02rem/1.3 var(--mono); color: var(--text); min-width: 0; }
.addr span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.addr.big { font-size: clamp(1.1rem, 3.4vw, 1.6rem); padding: .9rem .7rem .9rem 1.1rem; }
.addr b { color: var(--brand-hi); font-weight: 500; }

/* -------------------------------------------------- kanal ağacı */
.tree { list-style: none; margin: 0; padding: .4rem; font-size: .93rem; }
.tree ul { list-style: none; margin: 0; padding: 0 0 0 1.15rem; position: relative; }
.tree ul::before { content: ""; position: absolute; left: .62rem; top: 0; bottom: 1.05rem; border-left: 1px solid var(--line-2); }
.tree li { position: relative; }
.tree ul > li::before { content: ""; position: absolute; left: -.53rem; top: 1.08rem; width: .5rem; border-top: 1px solid var(--line-2); }
.tree-row { display: flex; align-items: center; gap: .55rem; min-height: 38px; padding: .3rem .6rem; border-radius: 5px; color: var(--text); text-decoration: none; border: 1px solid transparent; }
a.tree-row:hover { background: var(--bg-3); text-decoration: none; }
.tree-row .i { color: var(--text-3); }
.tree-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-row .meta { color: var(--text-3); font-size: .78rem; font-family: var(--mono); white-space: nowrap; }
.tree-row.is-server { font-weight: 650; font-family: var(--head); }
.tree-row.is-server .i { color: var(--brand-hi); }
.tree-row.is-group { color: var(--text-2); font: 650 .74rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; min-height: 32px; }
.tree-row.is-active { background: var(--brand-soft); border-color: var(--brand); }
.tree-row.is-active .i { color: var(--brand-hi); }
.tree-row.is-add { color: var(--brand-hi); }
.tree-row.is-add .i { color: var(--brand-hi); }

/* -------------------------------------------------- durum çubuğu */
.statusbar { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; align-items: center; padding: .5rem .9rem; border-top: 1px solid var(--line); background: var(--bg-3); font: 500 .78rem/1.4 var(--mono); color: var(--text-3); }
.statusbar span { display: inline-flex; align-items: center; gap: .45rem; }

/* -------------------------------------------------- anahtar / değer listesi */
.kv { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 0; margin: 0; }
.kv dt, .kv dd { padding: .65rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--text-3); font-size: .86rem; }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 560px) {
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .kv dd { padding-top: .15rem; }
  .kv > dt:nth-last-child(2) { border-bottom: 0; }
}

/* -------------------------------------------------- tablo */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font: 650 .72rem/1.3 var(--head); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); padding: .7rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-3); }
.tbl td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--bg-3); }
.tbl .num { text-align: right; font-family: var(--mono); }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl small { display: block; color: var(--text-3); font-size: .8rem; }
.tbl .primary { font-weight: 600; color: var(--text); }
.empty { padding: 2.5rem 1.25rem; text-align: center; color: var(--text-2); }
.empty .i { width: 2.2rem; height: 2.2rem; color: var(--text-3); margin-bottom: .75rem; }

.pager { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: center; margin-top: 1.5rem; font-size: .9rem; }
.pager a, .pager span { min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .7rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-2); }
.pager a:hover { background: var(--bg-3); text-decoration: none; }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .gap { border: 0; min-width: 0; }

.tabs { display: flex; gap: .25rem; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1rem; color: var(--text-2); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.is-active { color: var(--brand-hi); border-bottom-color: var(--brand); }

/* -------------------------------------------------- üst çubuk */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font: 800 1.18rem/1 var(--head); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand b { color: var(--brand-hi); font-weight: 800; }
.nav { display: flex; align-items: center; gap: .15rem; margin-left: 1rem; }
.nav a { padding: .5rem .75rem; border-radius: var(--radius); color: var(--text-2); font-weight: 550; font-size: .93rem; }
.nav a:hover { color: var(--text); background: var(--bg-3); text-decoration: none; }
.nav a.is-active { color: var(--text); background: var(--bg-3); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: .75rem 1rem 1rem; background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .75rem; font-size: 1rem; }
  .top-end .hide-sm { display: none; }
}

/* -------------------------------------------------- ana sayfa */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60rem 28rem at 78% 8%, var(--brand-soft), transparent 70%), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 44px; opacity: .55; mask-image: linear-gradient(#000 40%, transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand-hi); }
.hero .lead { margin: 1.25rem 0 1.75rem; }
.ticks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; color: var(--text-2); font-size: .93rem; }
.ticks li { display: inline-flex; gap: .45rem; align-items: center; }
.ticks .i { color: var(--ok); }
.connect .win-body { padding: 1.25rem 1.25rem 1rem; }
.connect-status { display: flex; align-items: center; gap: .55rem; min-height: 1.6rem; font-size: .9rem; color: var(--text-2); margin: -.35rem 0 1rem; }
.connect-status.ok { color: var(--ok); }
.connect-status.err { color: var(--err); }
.connect-tree { border-top: 1px solid var(--line); background: var(--bg); }
.connect-tree .tree { padding: .5rem .6rem; font-size: .88rem; }
.connect-tree .tree-row { min-height: 30px; padding: .15rem .5rem; }
.connect-tree .talk { margin-left: auto; display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.connect-tree .talk i { width: 3px; background: var(--ok); border-radius: 1px; animation: talk 1s ease-in-out infinite; }
.connect-tree .talk i:nth-child(1) { height: 40%; }
.connect-tree .talk i:nth-child(2) { height: 100%; animation-delay: .15s; }
.connect-tree .talk i:nth-child(3) { height: 65%; animation-delay: .3s; }
@keyframes talk { 50% { transform: scaleY(.35); } }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.figures div { padding: 1.15rem 1.25rem; border-left: 1px solid var(--line); }
.figures div:first-child { border-left: 0; }
.figures strong { display: block; font: 500 clamp(1.4rem, 3vw, 1.9rem)/1.1 var(--mono); color: var(--text); }
.figures span { font-size: .85rem; color: var(--text-3); }
@media (max-width: 700px) { .figures { grid-template-columns: 1fr 1fr; } .figures div:nth-child(3) { border-left: 0; } .figures div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { margin: 0; color: var(--text-2); max-width: 44ch; }

.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 1.4rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); counter-increment: step; }
.steps li::before { content: "0" counter(step); font: 500 .8rem/1 var(--mono); color: var(--brand-hi); display: block; margin-bottom: 1rem; }
.steps h3 { margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--text-2); font-size: .95rem; }
.steps .addr { margin-top: 1rem; font-size: .88rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.duo { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.duo .win-body { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.duo ul { margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: .95rem; display: grid; gap: .5rem; }
.duo li { display: flex; gap: .55rem; }
.duo li .i { color: var(--ok); margin-top: .22rem; }
.duo li.no .i { color: var(--text-3); }
.duo .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }

.chatlog { margin: 0; padding: .5rem 0; list-style: none; font-size: .93rem; }
.chatlog li { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; padding: .6rem 1.25rem; border-bottom: 1px solid var(--line); }
.chatlog li:last-child { border-bottom: 0; }
.chatlog time { font: 500 .8rem/1.9 var(--mono); color: var(--text-3); white-space: nowrap; }
.chatlog b { color: var(--brand-hi); font-weight: 650; }
.chatlog p { margin: 0; color: var(--text-2); }

.posts { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-2); color: var(--text); transition: border-color .15s, transform .15s; }
.post:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-2px); }
.post-img { aspect-ratio: 16 / 9; background: var(--bg-3); overflow: hidden; display: grid; place-items: center; color: var(--text-3); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.post-body p { margin: 0; color: var(--text-2); font-size: .9rem; }
.post-meta { margin-top: auto; padding-top: .5rem; font-size: .8rem; color: var(--text-3); display: flex; gap: .75rem; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.faq { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; cursor: pointer; font: 650 1rem/1.35 var(--head); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--brand-hi); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { background: var(--bg-3); }
.faq details p { margin: 0; padding: 0 1.25rem 1.15rem; color: var(--text-2); max-width: 70ch; }

.cta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--brand); border-radius: 10px; background: linear-gradient(120deg, var(--brand-soft), transparent 70%), var(--bg-2); }
.cta h2 { margin: 0 0 .35rem; }
.cta p { margin: 0; color: var(--text-2); }

/* -------------------------------------------------- iç sayfalar */
.page { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); flex: 1; }
.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); margin-bottom: .5rem; }
.page-head p { color: var(--text-2); margin: 0; max-width: 60ch; }
.split { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .split, .split.even { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 84px; }
.fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.fieldset legend { font: 700 1rem/1.3 var(--head); padding: 0; margin-bottom: .9rem; display: flex; gap: .6rem; align-items: center; }
.fieldset legend span { font: 500 .78rem/1 var(--mono); color: var(--brand-hi); border: 1px solid var(--line-2); border-radius: 4px; padding: .3rem .45rem; }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; color: var(--text-2); font-size: .94rem; }
.list-plain li { display: flex; gap: .6rem; }
.list-plain .i { color: var(--brand-hi); margin-top: .22rem; }

.auth { width: min(100% - 2rem, 440px); margin: clamp(2rem, 6vw, 4rem) auto; }
.auth .win-body { padding: 1.5rem; }
.auth h1 { font-size: 1.6rem; margin-bottom: .35rem; }
.auth-alt { margin-top: 1.25rem; text-align: center; font-size: .93rem; color: var(--text-2); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; font-family: var(--mono); margin: 1rem 0; }
.codes span { padding: .5rem .75rem; background: var(--bg); border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; }
.qr { display: inline-block; padding: .6rem; background: #fff; border-radius: 8px; line-height: 0; }

.prose { color: var(--text-2); font-size: 1.04rem; line-height: 1.75; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin: 2em 0 .6em; }
.prose h2 { font-size: 1.45rem; }
.prose strong, .prose b { color: var(--text); }
.prose img { border-radius: 8px; margin: 1.5rem 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.5rem 0; padding: .75rem 1.1rem; border-left: 3px solid var(--brand); background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.prose code { background: var(--bg-3); padding: .1rem .35rem; border-radius: 4px; }
.article-cover { border-radius: 10px; margin: 0 0 2rem; aspect-ratio: 16 / 8; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--text-3); margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--bg); }
.timeline h3 { margin: .35rem 0 .3rem; }
.timeline p { margin: 0; color: var(--text-2); }

/* -------------------------------------------------- müşteri paneli (TS istemci düzeni) */
.client { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 520px; }
.client-tree { border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; min-width: 0; }
.client-tree .tree { flex: 1; overflow-y: auto; max-height: 68vh; }
.client-search { padding: .6rem; border-bottom: 1px solid var(--line); }
.client-search .input { min-height: 38px; font-size: .9rem; }
.client-main { padding: 1.5rem; min-width: 0; background: var(--bg); }
:root[data-theme="light"] .client-main { background: var(--bg-3); }
.client-main > .back { display: none; }
.record-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1.25rem; }
.record-head h1 { font: 500 clamp(1.25rem, 3vw, 1.75rem)/1.25 var(--mono); letter-spacing: 0; margin: .35rem 0 0; overflow-wrap: anywhere; }
.probe-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; font-size: .92rem; }
.probe-list li { display: flex; gap: .6rem; align-items: center; }
.probe-list code { color: var(--text-2); }
.danger-zone { border: 1px solid var(--err); border-radius: 8px; }
.danger-zone > summary { cursor: pointer; padding: .9rem 1.1rem; color: var(--err); font-weight: 600; list-style: none; display: flex; gap: .6rem; align-items: center; min-height: 48px; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone > div { padding: 0 1.1rem 1.1rem; }
@media (max-width: 860px) {
  .client { grid-template-columns: 1fr; min-height: 0; }
  .client-tree { border-right: 0; }
  .client-tree .tree { max-height: none; }
  .client.has-selection .client-tree { display: none; }
  .client:not(.has-selection) .client-main { border-top: 1px solid var(--line); }
  .client-main > .back { display: inline-flex; margin-bottom: 1rem; }
  .client-main { padding: 1.1rem; }
}

/* -------------------------------------------------- alt bilgi */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 3rem 0 1.5rem; margin-top: auto; font-size: .93rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
.foot h2 { font: 650 .76rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot p { color: var(--text-3); max-width: 34ch; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.foot-end { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; color: var(--text-3); font-size: .82rem; }
.foot-end img { height: 22px; width: auto; display: inline-block; vertical-align: middle; opacity: .8; }
:root[data-theme="light"] .foot-end img { filter: invert(1) hue-rotate(180deg); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

dialog.modal { border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--text); padding: 0; width: min(92vw, 440px); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(4, 9, 17, .7); }
dialog.modal .win-body p { margin: 0; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print { .top, .foot, .btn, .statusbar { display: none !important; } body { background: #fff; color: #000; } }
