/* trtoolsjtag.com — TrToolsHUB sitesiyle aynı renkler ve yazı (TrToolsHUB docs/TASARIM.md). */
@font-face { font-family: "Plex Sans"; src: url("fonts/IBMPlexSans-Variable.ttf") format("truetype"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  /* TrToolsHUB ile aynı palet (TrToolsHUB docs/TASARIM.md). */
  --app: #1D2023; --canvas: #191C1F; --console: #15181A; --card: #1D2023; --raised: #23272B;
  --control: #23272B; --control-hover: #2A2F33; --line: #2E3337; --line-soft: #2E3337;
  --text: #E6E9EB; --text-2: #D9DDE0; --label: #A3AAAF; --muted: #8B9398;
  --accent: #1AA39B; --accent-text: #2EC4BA; --accent-hover: #157F79; --on-accent: #FFFFFF; --accent-deep: #12756F;
  --ok: #5FD08A; --ok-bg: #17291F; --ok-line: #24452F;
  --warn: #E8B84A; --warn-bg: #262116; --warn-line: #4A3D1C;
  --err: #F07070; --err-bg: #2A1B1C; --err-line: #4A2A2C;
  --r: 6px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font: 400 15px/1.6 "Segoe UI Variable Text", "Segoe UI", "Plex Sans", system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #8FE0D9; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 50px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
code, .mono { font-family: "Cascadia Mono", Consolas, "Plex Mono", monospace; font-size: .92em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ic { flex: none; vertical-align: -3px; }
.muted { color: var(--label); }
.small { font-size: 13.5px; }

/* üst çubuk */
.top { position: sticky; top: 0; z-index: 10; background: rgba(31,35,38,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: .02em; font-size: 17px; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }
.brand b { color: var(--accent); font-weight: 600; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text-2); font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.user { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.link { color: var(--text-2); font-size: 15px; }

/* düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--line);
  background: var(--control); color: var(--text); font: 500 15px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--control-hover); color: var(--text); }
.btn.primary { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn.block { width: 100%; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 72px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 "Cascadia Mono", Consolas, "Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(26,163,155,.18); }
.lead { font-size: 18px; color: var(--text-2); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.meta { font-size: 13.5px; color: var(--muted); }
.shot { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--console); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--label); border-top: 1px solid var(--line-soft); background: var(--card); }
.hero-shot { transform: perspective(1600px) rotateY(-4deg); transform-origin: left center; }

/* bölümler */
.section { padding: 64px 0; border-top: 1px solid var(--line-soft); }
.kicker { font: 500 12.5px/1 "Cascadia Mono", Consolas, "Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.feature { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px; }
.feature p { color: var(--text-2); font-size: 15px; margin: 0; }
.fi { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; background: #17302E; color: var(--accent-text); margin-bottom: 14px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px; }
.steps p { color: var(--text-2); font-size: 15px; margin: 0; }
.n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--accent-deep); color: var(--accent-text); font: 500 14px/1 "Cascadia Mono", Consolas, "Plex Mono", monospace; margin-bottom: 14px; }
.release-teaser { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; background: linear-gradient(135deg, #17302E, var(--card) 60%); border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.notes { margin: 0; padding-left: 20px; color: var(--text-2); }
.notes li { margin: 6px 0; }
.notes strong { color: var(--text); font-weight: 600; }

/* metin sayfaları */
.narrow { max-width: 720px; margin: 0 auto; padding: 56px 0 72px; }
.narrow.wide { max-width: 920px; }
.release { border-top: 1px solid var(--line-soft); padding: 28px 0; }
.release header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.release h2 { font-size: 22px; margin: 0; }
.release time { margin-left: auto; color: var(--muted); font-size: 14px; }
.releases { margin-top: 28px; }
.dlcard { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; margin-top: 24px; }
.dlcard > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hash { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 4px; font: 500 12px/1 "Cascadia Mono", Consolas, "Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; border: 1px solid; }
.tag.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.tag.warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }

/* formlar */
.auth { max-width: 420px; margin: 0 auto; padding: 64px 0 80px; }
.auth.done { text-align: center; max-width: 520px; }
.auth.done .actions { justify-content: center; }
.big-ic .ic { width: 48px; height: 48px; color: var(--ok); margin-bottom: 12px; }
.form { display: grid; gap: 16px; margin: 24px 0; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--label); font-weight: 500; }
.form input {
  height: 44px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--control);
  color: var(--text); font: 400 16px/1 inherit; font-family: inherit;
}
.form input:hover { border-color: #41474C; }
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,163,155,.25); }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.switch { text-align: center; color: var(--label); }
.alert { padding: 12px 14px; border-radius: 4px; border: 1px solid; font-size: 15px; margin: 16px 0 0; }
.alert.error { color: #F07070; background: var(--err-bg); border-color: var(--err-line); }
.alert.warn { color: #E3B653; background: var(--warn-bg); border-color: var(--warn-line); margin-bottom: 20px; }
.flash { margin: 20px auto 0; max-width: 920px; padding: 12px 16px; border-radius: 4px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: #5FD08A; }

/* hesabım */
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.acct-head h1 { margin: 0; font-size: 34px; }
.cards { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; margin-bottom: 16px; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px; }
.card h2 { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 0; }
.kv dt { color: var(--label); font-size: 14px; }
.kv dd { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 12px; }
.tbl th { text-align: left; font-weight: 500; color: var(--label); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; padding: 0 8px 8px 0; border-bottom: 1px solid var(--line-soft); }
.tbl td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line-soft); }
.inline-form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; margin: 8px 0 12px; }

/* yönetici: işlem kayıtları */
.tag.err { color: var(--err); background: var(--err-bg); border-color: var(--err-line); }
.form select {
  height: 44px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--control);
  color: var(--text); font: 400 15px/1 inherit; font-family: inherit;
}
.form select:hover { border-color: #41474C; }
.form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,163,155,.25); }
.logfilter { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 16px 0; }
.logfilter-actions { display: flex; gap: 8px; grid-column: 1 / -1; }
.tbl.log td { vertical-align: top; }
.tbl.log td:first-child { white-space: nowrap; }
.logdetail { margin-top: 4px; max-width: 42em; overflow-wrap: anywhere; }
@media (max-width: 720px) { .logfilter { grid-template-columns: 1fr 1fr; } }

/* yönetici paneli */
.adminnav { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 8px; border-bottom: 1px solid var(--line-soft); }
.adminnav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; color: var(--text-2); font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.adminnav a.on { color: var(--accent-text); border-bottom-color: var(--accent); }
.adminnav .ic { width: 16px; height: 16px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.statcard { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px 20px; }
.statcard:hover { border-color: var(--accent); }
.statval { font-size: 30px; font-weight: 700; color: var(--text); line-height: 1; }
.statlbl { color: var(--label); font-size: 13.5px; }
.stathint { color: var(--warn); font-size: 12px; }
.sub { font-size: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin: 28px 0 8px; }
.tbl.users td { vertical-align: top; }
.uacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.uform { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.uinline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--label); }
.uinline input, .uinline select { height: 34px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--line); background: var(--control); color: var(--text); font: 400 14px/1 inherit; font-family: inherit; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--label); }
.adduser { margin: 16px 0 24px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 4px 18px; }
.adduser summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.adduser[open] summary { border-bottom: 1px solid var(--line-soft); }
.credbox { background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: var(--r); padding: 16px 18px; }
.credbox .cred { display: inline-block; margin: 6px 0; padding: 10px 14px; background: var(--app); border: 1px solid var(--line); border-radius: 4px; font: 600 18px/1 "Cascadia Mono", Consolas, monospace; color: var(--text); letter-spacing: .04em; user-select: all; }
.form textarea { padding: 10px 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--control); color: var(--text); font: 400 15px/1.5 inherit; font-family: inherit; resize: vertical; }
.form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,163,155,.25); }
.form .chk { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.kicker a { color: var(--accent-text); }
.card.danger { border-color: var(--err-line); }
.card.danger h2 { color: var(--err); }
.card.danger .uform { gap: 8px; align-items: center; }
.card.danger input { height: 34px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--control); color: var(--text); font-family: inherit; }
.btn.danger { background: transparent; border-color: var(--err-line); color: var(--err); }
.btn.danger:hover { background: var(--err-bg); }
.segtabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 8px; padding: 4px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; }
.segtabs a { padding: 7px 16px; border-radius: 6px; color: var(--text-2); font-size: 14px; }
.segtabs a.on { background: var(--accent-deep); color: var(--on-accent); font-weight: 600; }
.usersearch { grid-template-columns: 2fr 1fr auto; }
@media (max-width: 720px) { .usersearch { grid-template-columns: 1fr; } }

/* alt bilgi */
.foot { border-top: 1px solid var(--line-soft); background: var(--app); margin-top: 32px; }
.fbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 64px; font-size: 14px; color: var(--muted); }
.fbar nav { display: flex; gap: 20px; }
.fbar a { color: var(--label); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-shot { transform: none; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .bar { gap: 14px; }
  .nav { display: none; }
  .brand span { font-size: 15px; }
  .user { gap: 12px; }
  .features, .steps, .gallery { grid-template-columns: 1fr; }
  .release-teaser, .dlcard, .acct-head { flex-direction: column; align-items: stretch; }
  .release time { margin-left: 0; width: 100%; }
  .section { padding: 48px 0; }
  .fbar { flex-direction: column; height: auto; padding: 18px 0; }
}

/* beta rozeti, alt bilgi, UFS listesi */
.beta { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-left: 2px; border-radius: 4px; border: 1px solid var(--accent-deep); background: #17302E; color: var(--accent-text); font: 600 11px/1 "Cascadia Mono", Consolas, "Plex Mono", monospace; letter-spacing: .08em; }
.center { text-align: center; }
.foot .fbar { height: auto; padding: 22px 0; }
.fcol { display: flex; flex-direction: column; gap: 6px; }
.fbrand { color: var(--text-2); font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: 6px; }
.fcol strong { color: var(--text-2); font-weight: 600; letter-spacing: .03em; }
.empty { text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: 6px; padding: 48px 24px; margin-top: 28px; }
.empty .fi { margin-bottom: 16px; }
.empty h2 { font-size: 22px; }
.vendor { margin-top: 32px; }
.vendor h2 { font-size: 20px; display: flex; align-items: baseline; gap: 10px; }
.tblwrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 6px 16px 0; }
.tbl td.strong { color: var(--text); font-weight: 500; }
.chip { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; margin: 2px 4px 2px 0; border-radius: 4px; background: #17302E; color: var(--accent-text); font-size: 12.5px; }
input.mono { font-family: "Cascadia Mono", Consolas, "Plex Mono", monospace !important; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 640px) { .brand .beta { display: none; } }

/* inceleme 2026-11-21: indirme kapalıyken pasif düğme; girdi kenarı zeminden ayırt edilsin */
.btn.soon { cursor: default; color: var(--label); background: transparent; border-style: dashed; }
.btn.soon:hover { background: transparent; color: var(--label); }
.form input { border-color: #41474C; }
.form input:hover { border-color: #565D63; }
@media (max-width: 640px) {
  /* mobilde menü gizlenmesin: ikinci satırda kaydırılabilir */
  .bar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 6px; }
  .nav { display: flex; order: 3; width: 100%; gap: 18px; overflow-x: auto; padding: 2px 0; }
  .nav a { font-size: 14px; white-space: nowrap; }
  .fbar { align-items: flex-start; }
}

/* ===================== yönetici paneli (2026-11-22 yeniden tasarım) ===================== */
.tag { white-space: nowrap; }
.awrap { max-width: 1440px; }
.admin { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; padding: 28px 0 56px; align-items: start; }
.aside { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px 10px; }
.aside-title { display: flex; align-items: center; gap: 8px; margin: 2px 8px 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.aside-title .ic { width: 16px; height: 16px; color: var(--accent-text); }
.anav { display: flex; flex-direction: column; gap: 2px; }
.anav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--text-2); font-size: 14.5px; }
.anav a:hover { background: var(--control); color: var(--text); }
.anav a.on { background: #17302E; color: var(--accent-text); font-weight: 600; }
.anav a span { flex: 1; white-space: nowrap; }
.anav .ic { width: 17px; height: 17px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn); color: #1a1405; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }
.amain { min-width: 0; }
.ahead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ahead-text { min-width: 0; }
.ahead h1 { font-size: 28px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.asub { margin: 6px 0 0; color: var(--label); font-size: 14.5px; }
.crumbs { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--label); }
.crumbs a:hover { color: var(--accent-text); }
.aactions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.aactions form { margin: 0; }
.anotice { padding: 12px 16px; border-radius: 8px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: #a8e6be; margin-bottom: 18px; font-size: 14.5px; }
.anotice.error { border-color: var(--err-line); background: var(--err-bg); color: #f5a9a9; }
.amain > .credbox { margin-bottom: 18px; }
.btn.xs { height: 30px; padding: 0 12px; font-size: 13.5px; }
.btn.ghost { background: transparent; }

/* istatistik kartları */
.statgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1280px) { .statgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px; color: var(--text); transition: border-color .15s; }
.stat:hover { border-color: var(--accent); color: var(--text); }
.stat-l { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--label); font-weight: 600; }
.stat-v { font-size: 30px; font-weight: 650; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-h { font-size: 12.5px; color: var(--muted); }
.stat.warn .stat-v { color: var(--warn); }
.stat.err .stat-v { color: var(--err); }

/* paneller */
.panel { background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-h h2 { font-size: 15px; font-weight: 600; letter-spacing: .01em; margin: 0; color: var(--text); }
.panel-h form { margin: 0; }
.panel.danger { border-color: var(--err-line); }
.panel.danger h2 { color: var(--err); }
.panel.narrowp { max-width: 760px; }
.agrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.agrid2 > .panel { margin-bottom: 18px; }
.dgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px; align-items: start; }
.dcol { min-width: 0; }
.empty-s { color: var(--muted); margin: 2px 0; font-size: 14px; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.plist li:first-child { border-top: 0; padding-top: 2px; }
.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.plist form { margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.err { background: var(--err); }

/* veri tabloları */
.dtable { background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px; overflow-x: auto; }
.dtable.flat { background: transparent; border: 0; border-radius: 0; margin: 0 -4px; }
.dtable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th { text-align: left; font-weight: 600; color: var(--label); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable:not(.flat) th { background: var(--raised); }
.dtable.flat th { padding: 6px 10px 9px; }
.dtable td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.dtable.flat td { padding: 9px 10px; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.dtable .acts { text-align: right; white-space: nowrap; width: 1%; }
.dtable .acts > * { margin-left: 6px; }
.dtable .empty-row { text-align: center; color: var(--muted); padding: 28px 14px; }
.rowf { display: inline-flex; margin: 0; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
.tfoot-note { margin: 10px 2px 0; color: var(--muted); font-size: 13px; }
.two { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; min-width: 0; }
.two .l2 { color: var(--muted); font-size: 12.5px; }
.res { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logdetail { margin-top: 4px; max-width: 42em; overflow-wrap: anywhere; }

/* kullanıcı hücresi + avatar */
.ucell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ucell > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ucell .usub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: #17302E; color: var(--accent-text); font-weight: 700; font-size: 14px; }
.av.lg { width: 44px; height: 44px; font-size: 18px; }

/* hap etiketleri */
.spill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid; vertical-align: middle; }
.spill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.spill.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.spill.warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.spill.err { color: var(--err); background: var(--err-bg); border-color: var(--err-line); }
.spill.off { color: var(--label); background: var(--raised); border-color: var(--line); }
.rpill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 4px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--raised); color: var(--text-2); border: 1px solid var(--line); vertical-align: middle; }
.rpill.r-admin { background: #241f38; color: #c7b8ff; border-color: #3b3360; }
.rpill.r-test { background: #16283a; color: #93cff2; border-color: #244560; }
.ahead h1 .rpill, .ahead h1 .spill { font-size: 12.5px; letter-spacing: 0; }
.txt-err { color: var(--err); }
.txt-ok { color: var(--ok); }

/* araç çubuğu ve süzgeçler */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.segtabs { display: inline-flex; flex-wrap: wrap; gap: 3px; margin: 0; padding: 4px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; }
.segtabs a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 6px; color: var(--text-2); font-size: 14px; }
.segtabs a:hover { background: var(--control); color: var(--text); }
.segtabs a b { font-size: 12px; font-weight: 600; color: var(--muted); }
.segtabs a.on { background: var(--accent-deep); color: var(--on-accent); font-weight: 600; }
.segtabs a.on b { color: rgba(255, 255, 255, .8); }
.tsearch { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.tinput, .tselect { height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--control); color: var(--text); font: 400 14px/1 inherit; font-family: inherit; }
.tsearch .tinput { min-width: 280px; }
.tinput:focus, .tselect:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 163, 155, .25); }
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 10px; align-items: end; background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; margin: 0 0 14px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--label); min-width: 0; }
.filters .tinput, .filters .tselect { width: 100%; text-transform: none; letter-spacing: 0; font-weight: 400; }
.filters .fact { display: flex; gap: 8px; }

/* formlar (panel içi) */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fgrid .full { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--label); min-width: 0; }
.f input, .f select, .f textarea { height: 38px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--control); color: var(--text); font: 400 14.5px/1.4 inherit; font-family: inherit; width: 100%; }
.f textarea { height: auto; min-height: 76px; padding: 9px 12px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 163, 155, .25); }
.f select:disabled { opacity: .6; }
.fchk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); margin-right: auto; cursor: pointer; }
.factions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; }
.inline-f { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.inline-f.top { margin-top: 12px; }
.inline-f input { height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--control); color: var(--text); font: 400 14px/1 inherit; font-family: inherit; flex: 1; min-width: 160px; }
.inline-f input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 163, 155, .25); }
.hint2 { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; font-weight: 400; }
.hint2.nomargin { margin: 0; }
.kv2 { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 14px; }
.kv2 dt { color: var(--label); }
.kv2 dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.exp-now { font-size: 20px; font-weight: 650; margin: 0; }
.exp-now .small { font-weight: 400; }
.credbox { background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 10px; padding: 16px 18px; }
.credbox p { margin: 6px 0; }

@media (max-width: 1100px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters .fact { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .admin { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; }
  .aside { position: static; padding: 8px; min-width: 0; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .segtabs { overflow-x: auto; flex-wrap: nowrap; }
  .tsearch .tselect { flex: 1; }
  .aside-title { display: none; }
  .anav { flex-direction: row; overflow-x: auto; }
  .dgrid, .agrid2 { grid-template-columns: 1fr; }
  .ahead { flex-direction: column; align-items: flex-start; }
  .tsearch .tinput { min-width: 0; flex: 1; }
}
@media (max-width: 560px) {
  .fgrid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
}

/* Hesabım: HWID tablosu ve kendi cihaz sıfırlaması (2026-11-22) */
.tblwrap0 { overflow-x: auto; }
details.reset { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
details.reset summary { cursor: pointer; color: var(--accent-text); font-size: 14px; }
details.reset .form { margin: 12px 0 0; }
