/* ==================================================================
   MilenyumCraft Yönetim Paneli — koyu, yoğun bilgi gösteren arayüz
   ================================================================== */

:root {
  --bg: #0b0d10;
  --bg-2: #0f1216;
  --panel: #14181e;
  --panel-2: #191e26;
  --panel-3: #1f252f;
  --line: #262d38;
  --line-soft: #1d232c;

  --text: #e8ecf3;
  --text-2: #aab3c2;
  --muted: #7b8494;
  --faint: #566072;

  /* Marka rengi: oyun ici, site ve istemciyle ayni altin (#FFD447).
     Panel turuncuydu; dort yuzey arasinda tek ayriksi o kalmisti. */
  --accent: #ffd447;
  --accent-2: #ffe07a;
  --accent-dim: rgba(255, 212, 71, .14);
  --iron: #7d8fa8;

  --ok: #3fd68a;
  --ok-dim: rgba(63, 214, 138, .13);
  --warn: #ffb648;
  --warn-dim: rgba(255, 182, 72, .13);
  --bad: #ff6058;
  --bad-dim: rgba(255, 96, 88, .13);
  --info: #5aa9ff;
  --info-dim: rgba(90, 169, 255, .13);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .45);
  --sidebar-w: 232px;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

::selection { background: var(--accent); color: #10131a; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a323d; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a4553; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mb-8 { margin-bottom: 8px; }

/* ------------------------------------------------------------------ */
/* Giriş                                                               */
/* ------------------------------------------------------------------ */

.login {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: radial-gradient(1100px 700px at 50% -10%, #1b2029 0%, var(--bg) 62%);
  z-index: 100; overflow: hidden;
}
/* Hareketli nokta ızgarası; kart onun üstünde durur */
.giris-tuval { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.login-card {
  position: relative; z-index: 1;
  width: 348px; padding: 36px 30px 30px; text-align: center;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  backdrop-filter: blur(14px) saturate(120%);
  animation: girisKart .45s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes girisKart { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .login-card { animation: none; } }
.login-card input { transition: border-color .15s ease, box-shadow .15s ease; }
.login-card input:focus { box-shadow: 0 0 0 3px var(--accent-dim); }
.login-mark { color: var(--accent); margin-bottom: 10px; }
.login-card h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.login-card p { margin: 4px 0 20px; font-size: 13px; }
.login-card input {
  width: 100%; margin-bottom: 12px;
}
.login-error { margin-top: 12px; color: var(--bad); font-size: 13px; min-height: 18px; }

/* ------------------------------------------------------------------ */
/* İskelet                                                             */
/* ------------------------------------------------------------------ */

.app { display: flex; height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--bg-2); border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; }
.brand-mark {
  width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent);
  background: var(--accent-dim); border-radius: 9px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 14px; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; color: var(--muted); }

.nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.nav-group { margin-top: 14px; }
.nav-group-label {
  font-size: 10px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--faint); padding: 0 8px 6px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 9px; margin-bottom: 1px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2); font: inherit; font-size: 13px;
  cursor: pointer; text-align: left; transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--accent-dim); color: var(--accent-2); font-weight: 500; }
.nav-item .ico { width: 16px; text-align: center; font-size: 13px; opacity: .95; }
.nav-item .badge {
  margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 20px;
  background: var(--panel-3); color: var(--text-2);
}
.nav-item.active .badge { background: rgba(240,121,30,.22); color: var(--accent-2); }

.sidebar-foot { padding: 12px; border-top: 1px solid var(--line-soft); }
.ssh-state { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.ssh-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: 0 0 7px; }
.ssh-state.on .dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-dim); }
.ssh-state.off .dot { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-dim); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 18px; flex: 0 0 56px;
  border-bottom: 1px solid var(--line-soft); background: var(--bg-2);
}
.crumb { display: flex; flex-direction: column; line-height: 1.2; min-width: 130px; }
.crumb h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.crumb span { font-size: 11.5px; }

.pills { display: flex; gap: 7px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.pill {
  display: flex; align-items: center; gap: 6px; height: 27px; padding: 0 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  font-size: 11.5px; color: var(--text-2); white-space: nowrap;
}
.pill b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.pill.ok .dot { background: var(--ok); } .pill.ok b { color: var(--ok); }
.pill.warn .dot { background: var(--warn); } .pill.warn b { color: var(--warn); }
.pill.bad .dot { background: var(--bad); } .pill.bad b { color: var(--bad); }

.topbar-actions { display: flex; gap: 8px; align-items: center; }

.content { flex: 1; overflow-y: auto; padding: 20px; }
.only-mobile { display: none; }

/* ------------------------------------------------------------------ */
/* Temel bileşenler                                                     */
/* ------------------------------------------------------------------ */

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line-soft);
}
.card-head h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.card-head .sub { font-size: 11.5px; color: var(--muted); }
.card-head .actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-body { padding: 14px; }
.card-body.flush { padding: 0; }

.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.sidebar-right { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1250px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.sidebar-right { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }

/* Ölçüm kutusu */
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 14px; position: relative; overflow: hidden;
}
.stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stat .value { font-size: 24px; font-weight: 650; letter-spacing: -.025em; margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat .foot { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.stat .spark { position: absolute; right: 0; bottom: 0; left: 0; height: 34px; opacity: .5; pointer-events: none; }
.stat.ok .value { color: var(--ok); }
.stat.warn .value { color: var(--warn); }
.stat.bad .value { color: var(--bad); }
.stat.accent .value { color: var(--accent-2); }

/* Ölçüm çubuğu */
.meter { height: 5px; background: var(--panel-3); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .35s ease; }
.meter.ok i { background: var(--ok); } .meter.warn i { background: var(--warn); } .meter.bad i { background: var(--bad); }

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: background .12s, border-color .12s, transform .06s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-3); border-color: #333c49; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #17110a; font-weight: 600; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.danger { background: var(--bad-dim); border-color: rgba(255,96,88,.35); color: #ff8b85; }
.btn.danger:hover { background: rgba(255,96,88,.22); }
.btn.good { background: var(--ok-dim); border-color: rgba(63,214,138,.3); color: var(--ok); }
.btn.ghost { background: transparent; }
.btn.small { height: 27px; padding: 0 10px; font-size: 12px; }
.btn.tiny { height: 24px; padding: 0 9px; font-size: 11.5px; }
.btn.block { width: 100%; }

.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 15px; cursor: pointer; transition: .12s;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Form alanları */
input:not([type]), input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  height: 32px; padding: 0 10px; width: 100%;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: 13px; outline: none; transition: border-color .12s;
}
textarea { height: auto; padding: 9px 10px; resize: vertical; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-2); }
label.field .hint { font-size: 11px; color: var(--faint); }
label.check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

/* Tablolar */
.table-wrap { overflow: auto; max-height: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--panel-2); color: var(--muted);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
  text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { color: var(--text-2); }
tbody td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:hover { background: rgba(255,255,255,.022); }
tbody tr.clickable { cursor: pointer; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* Etiketler */
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px;
  border-radius: 5px; font-size: 11px; font-weight: 500;
  background: var(--panel-3); color: var(--text-2); white-space: nowrap;
}
.tag.ok { background: var(--ok-dim); color: var(--ok); }
.tag.warn { background: var(--warn-dim); color: var(--warn); }
.tag.bad { background: var(--bad-dim); color: var(--bad); }
.tag.info { background: var(--info-dim); color: var(--info); }
.tag.accent { background: var(--accent-dim); color: var(--accent-2); }

.avatar { width: 24px; height: 24px; border-radius: 5px; background: var(--panel-3); image-rendering: pixelated; flex: 0 0 24px; }
.avatar.lg { width: 56px; height: 56px; border-radius: 9px; flex-basis: 56px; }

/* Konsol */
.terminal {
  background: #07090c; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--mono); font-size: 12px; line-height: 1.55;
  padding: 10px 12px; overflow-y: auto; overflow-x: hidden;
  white-space: pre-wrap; word-break: break-word;
}
.terminal .l { color: #b9c2d0; }
.terminal .l.warn { color: var(--warn); }
.terminal .l.err { color: var(--bad); }
.terminal .l.ok { color: var(--ok); }
.terminal .l.cmd { color: var(--accent-2); }
.terminal .l .ts { color: #4a5666; }
.terminal .l .src { color: #62718a; }

.cmdbar { display: flex; gap: 8px; margin-top: 10px; }
.cmdbar .prefix {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--accent); font-family: var(--mono); font-size: 13px;
}
.cmdbar input { font-family: var(--mono); }

/* Kip pencereleri */
.modal-root { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.modal-back {
  position: absolute; inset: 0; background: rgba(4,6,9,.68);
  backdrop-filter: blur(3px); pointer-events: auto;
  display: grid; place-items: center; padding: 24px;
  animation: fade .14s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(640px, 100%); max-height: 86vh; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); animation: pop .16s ease;
}
.modal.wide { width: min(940px, 100%); }
.modal.xwide { width: min(1200px, 100%); }
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { margin: 0; font-size: 14px; }
.modal-head .x { margin-left: auto; }
.modal-body { padding: 16px; overflow-y: auto; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line-soft); }

/* Yan panel */
.drawer-back { position: absolute; inset: 0; background: rgba(4,6,9,.6); pointer-events: auto; animation: fade .14s; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: var(--panel); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  animation: slide .18s cubic-bezier(.2,.8,.3,1);
}
@keyframes slide { from { transform: translateX(24px); opacity: .4; } }
.drawer-head { padding: 16px; border-bottom: 1px solid var(--line-soft); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }

/* Bildirimler */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 120; }
.toast {
  min-width: 250px; max-width: 400px; padding: 11px 14px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-left: 3px solid var(--iron); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); font-size: 13px; animation: toastIn .18s ease;
}
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } }
.toast.ok { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--bad); }
.toast.warn { border-left-color: var(--warn); }
.toast b { display: block; margin-bottom: 2px; font-size: 12.5px; }
.toast .msg { color: var(--text-2); font-size: 12.5px; word-break: break-word; }
.toast pre { margin: 6px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: pre-wrap; max-height: 130px; overflow: auto; }

/* Sekmeler */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tab {
  padding: 8px 13px; background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--accent-2); border-bottom-color: var(--accent); font-weight: 500; }

/* Sunucu kartı */
.server-card { display: flex; flex-direction: column; gap: 0; }
.server-card .top { display: flex; align-items: center; gap: 10px; padding: 13px 14px; }
.server-card .name { font-weight: 600; font-size: 13.5px; }
.server-card .kind { font-size: 11px; color: var(--muted); }
.server-card .body { padding: 0 14px 13px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.server-card .metric .k { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.server-card .metric .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 1px; }
.server-card .foot { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line-soft); background: rgba(0,0,0,.14); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; background: var(--faint); }
.status-dot.up { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-dim); }
.status-dot.down { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-dim); }
.status-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-dim); }

/* Anahtar/değer listesi */
.kv { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 6px 14px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); word-break: break-word; }

/* Dosya listesi */
.file-row { display: flex; align-items: center; gap: 9px; padding: 7px 12px; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 12.5px; }
.file-row:hover { background: rgba(255,255,255,.025); }
.file-row .ico { width: 16px; text-align: center; opacity: .8; }
.file-row .sz { margin-left: auto; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.breadcrumb { display: flex; align-items: center; gap: 4px; font-size: 12px; flex-wrap: wrap; }
.breadcrumb button { background: none; border: 0; color: var(--info); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.breadcrumb button:hover { background: var(--panel-2); }
.breadcrumb .sep { color: var(--faint); }

/* Envanter */
.inv-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.slot {
  aspect-ratio: 1; background: var(--panel-3); border: 1px solid var(--line);
  border-radius: 5px; display: grid; place-items: center; position: relative;
  font-size: 9px; color: var(--text-2); text-align: center; padding: 2px; overflow: hidden;
}
.slot.filled { background: var(--panel-2); border-color: #333c49; }
.slot .cnt { position: absolute; right: 2px; bottom: 1px; font-size: 9px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.slot .ench { position: absolute; left: 2px; top: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }

/* Yükleme */
.skeleton { background: linear-gradient(90deg, var(--panel-2) 25%, var(--panel-3) 50%, var(--panel-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }
.loading { display: grid; place-items: center; padding: 50px; color: var(--muted); font-size: 13px; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin-bottom: 10px; }

/* Grafik */
.chart { width: 100%; display: block; }
.chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* Uyarı kutusu */
.note {
  display: flex; gap: 10px; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--info-dim); border: 1px solid rgba(90,169,255,.22); font-size: 12.5px; color: #b9d6ff;
}
.note.warn { background: var(--warn-dim); border-color: rgba(255,182,72,.24); color: #ffd699; }
.note.bad { background: var(--bad-dim); border-color: rgba(255,96,88,.24); color: #ffb3af; }
.note .ico { flex: 0 0 auto; }

.searchbar { position: relative; min-width: 200px; }
.searchbar input { padding-left: 30px; }
.searchbar::before { content: "⌕"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 15px; pointer-events: none; }

@media (max-width: 860px) {
  .only-mobile { display: grid; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .pills { display: none; }
  .content { padding: 14px; }
}

/* Tablo icindeki islem dugmeleri dar ekranda tasmasin */
tbody td .btn { margin: 1px 2px 1px 0; }
td.actions-cell { white-space: nowrap; }

/* Konsol komut önerileri (native datalist Enter'ı yuttuğu için kendi listemiz) */
.cmd-hint { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.cmd-sug {
  padding: 3px 9px; border-radius: 5px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text-2); font-family: var(--mono); font-size: 11.5px;
}
.cmd-sug:hover, .cmd-sug.on { background: var(--accent-dim); border-color: rgba(240,121,30,.35); color: var(--accent-2); }

/* ------------------------------------------------------------------ */
/* Minecraft sunucu listesi önizlemesi                                  */
/* ------------------------------------------------------------------ */

.mc-list {
  display: flex; gap: 10px; align-items: flex-start;
  background: #2b2b2b; border: 2px solid #000; border-radius: 2px;
  padding: 8px; font-family: "Minecraft", ui-monospace, Menlo, monospace;
  image-rendering: pixelated; overflow-x: auto;
}
.mc-icon { width: 64px; height: 64px; flex: 0 0 64px; background: #1b1b1b; }
.mc-icon-img {
  width: 100%; height: 100%;
  background: url('/api/motd/icon') center/cover no-repeat, #1b1b1b;
}
.mc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mc-top { display: flex; align-items: baseline; gap: 8px; }
.mc-name { color: #fff; font-size: 15px; letter-spacing: .02em; }
.mc-count { margin-left: auto; color: #808080; font-size: 13px; font-variant-numeric: tabular-nums; }
.mc-ping { color: #55ff55; font-size: 13px; letter-spacing: -2px; }
.mc-motd { font-size: 13.5px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; min-height: 18px; }
.mc-motd span { text-shadow: 1.5px 1.5px 0 rgba(0, 0, 0, .55); }

@keyframes mmObf { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.mm-obf { animation: mmObf .35s steps(2) infinite; }

/* Renk paleti düğmeleri */
.sw {
  width: 24px; height: 24px; border-radius: 5px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); padding: 0;
}
.sw:hover { transform: scale(1.12); border-color: #fff; }
.btn.sym { min-width: 30px; font-size: 13px; }

/* İkon yükleme alanı */
.icon-drop {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s;
}
.icon-drop:hover, .icon-drop.over { border-color: var(--accent); background: var(--accent-dim); }
.icon-prev {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 6px;
  background: #1b1b1b; image-rendering: pixelated; object-fit: cover;
}

/* ------------------------------------------------------------------ */
/* Otomatik duyurular                                                  */
/* ------------------------------------------------------------------ */

.ap-dirty {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--warn-dim); border: 1px solid rgba(255,182,72,.28);
  color: #ffd699; font-size: 12.5px;
}

.ap-row {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: flex-start;
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft);
}
.ap-row:last-child { border-bottom: 0; }
.ap-row:hover { background: rgba(255,255,255,.02); }
.ap-no {
  font-variant-numeric: tabular-nums; color: var(--faint); font-size: 12px;
  text-align: right; padding-top: 5px;
}
.ap-main { min-width: 0; }
.ap-acts { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.ap-chat {
  background: #1b1b1b; border: 1px solid #000; border-radius: 3px; padding: 7px 9px;
  font-family: "Minecraft", ui-monospace, Menlo, monospace;
  display: flex; flex-direction: column; gap: 2px; overflow-x: auto;
}
.ap-chat .mc-motd { font-size: 12.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.ap-chat .mc-motd span { text-shadow: 1.5px 1.5px 0 rgba(0,0,0,.6); }
.empty-line { color: var(--faint); font-size: 12px; font-style: italic; }

.ap-sub {
  margin-top: 5px; font-size: 12px; color: var(--text-2);
  font-family: "Minecraft", ui-monospace, Menlo, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-sub b {
  font-family: var(--sans); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--faint); margin-right: 7px; font-weight: 600;
}
.ap-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.ap-badges:empty { display: none; }

.ap-tools {
  margin-top: 7px; padding: 8px 9px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg);
}
.ap-tools .btn.tiny { padding: 3px 7px; font-size: 11px; }
.ap-tools .btn.tiny.sym { min-width: 24px; padding: 3px 4px; font-size: 12.5px; }
.ap-sep { width: 1px; height: 18px; background: var(--line); display: inline-block; margin: 0 3px; }

.ap-preview-wrap { margin-top: 12px; }
.ap-edit .ap-chat { min-height: 40px; }

.ap-sec { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 10px; overflow: hidden; }
.ap-sec-head { padding: 9px 12px; background: var(--panel-2); margin: 0; gap: 9px; }
.ap-sec-head b { font-size: 12.5px; }
.ap-sec-body { display: none; padding: 12px; border-top: 1px solid var(--line); }
.ap-sec.on .ap-sec-body { display: block; }

.ap-anim { margin-top: 9px; font-size: 11px; color: var(--faint); line-height: 1.7; }
.ap-anim code {
  background: var(--panel-3); padding: 1px 5px; border-radius: 4px;
  font-family: var(--mono); font-size: 10.5px; color: var(--text-2);
}

@media (max-width: 860px) {
  .ap-row { grid-template-columns: 24px 1fr; }
  .ap-acts { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ================================================================== */
/* Ödüller                                                            */
/* ================================================================== */

.odul-hedef { display: flex; flex-wrap: wrap; gap: 6px; max-height: 168px; overflow-y: auto; }

.odul-oyuncu {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel-2); color: var(--text-2); font-size: 12px; cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.odul-oyuncu img { width: 20px; height: 20px; border-radius: 50%; }
.odul-oyuncu:hover { border-color: var(--accent-dim); color: var(--text); }
.odul-oyuncu.on { border-color: var(--accent); background: var(--accent-dim); color: var(--text); }

.odul-secili { min-height: 24px; }
.odul-chip {
  display: inline-flex; align-items: center; gap: 5px; margin: 0 5px 5px 0;
  padding: 3px 4px 3px 9px; border-radius: 999px; font-size: 11.5px;
  background: var(--accent-dim); border: 1px solid var(--accent); color: var(--text);
}
.odul-chip button {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 11px; line-height: 1; padding: 2px 4px;
}
.odul-chip button:hover { color: var(--bad); }

.odul-turler { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.odul-tur {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2);
  color: var(--text-2); font-size: 11.5px; cursor: pointer; transition: border-color .12s, background .12s;
}
.odul-tur .ik { font-size: 17px; line-height: 1; }
.odul-tur:hover { border-color: var(--accent-dim); }
.odul-tur.active { border-color: var(--accent); background: var(--accent-dim); color: var(--text); }

.odul-satir {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); font-size: 12.5px; margin-bottom: 6px;
}

.odul-paket {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); padding: 12px;
}
.odul-paket-liste { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.odul-paket-liste span { font-size: 11.5px; color: var(--text-2); }

/* ================================================================== */
/* Komutlar                                                           */
/* ================================================================== */

.komut-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 8px; }

.komut-kart {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); transition: border-color .12s, transform .08s;
}
.komut-kart:hover { border-color: var(--accent); transform: translateY(-1px); }
.komut-kart.riskli { border-left: 2px solid var(--bad); }
.komut-kart code {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.komut-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 10.5px; }

.komut-onizleme {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--panel-3); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; color: var(--accent); word-break: break-all;
}

@media (max-width: 1100px) {
  .odul-turler { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}

/* ================================================================== */
/* Ekonomi Merkezi                                                    */
/* ================================================================== */

.ek-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
.ek-nav { position: sticky; top: 0; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 4px; }
.ek-grup { margin-bottom: 10px; }
.ek-grup-ad { display: flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 6px 8px 4px; }
.ek-sec {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 6px 8px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: none; color: var(--text-2); font-size: 12.5px; cursor: pointer;
}
.ek-sec:hover { background: var(--panel-2); color: var(--text); }
.ek-sec.active { background: var(--accent-dim); border-color: var(--accent); color: var(--text); }
.ek-sec[hidden] { display: none; }

.ek-main { min-width: 0; }
.ek-baslik { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 14px; }
.ek-baslik h2 { margin: 0 0 2px; font-size: 17px; }
.ek-baslik-ikon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.ek-baslik-btn { display: flex; flex-direction: column; gap: 6px; }

.ek-ikon { image-rendering: pixelated; image-rendering: crisp-edges; flex: none; vertical-align: middle; border-radius: 3px; }
.ek-ikon.bos { display: inline-block; background: var(--panel-3); border: 1px dashed var(--line); }
.ek-mini-ikonlar { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }

.ek-alanlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ek-alanlar.dar { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ek-alan { padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); transition: border-color .12s, background .12s; }
.ek-alan.genis { grid-column: 1 / -1; }
.ek-alan-ad { font-size: 11.5px; color: var(--text-2); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.ek-ipucu { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--panel-3); color: var(--faint); font-size: 9.5px; cursor: help; }
.ek-sabit { font-size: 13px; color: var(--text); padding: 4px 0; }

.ek-in { width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); color: var(--text); font-size: 12.5px; }
.ek-in.kucuk { height: 26px; font-size: 12px; padding: 0 6px; }
.ek-in.sayi { font-family: var(--mono); text-align: right; }
.ek-num { display: inline-flex; align-items: center; gap: 4px; width: 100%; }
.ek-num input { min-width: 0; }
.ek-num i { font-style: normal; font-size: 11px; color: var(--faint); flex: none; }
.ek-ta { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); color: var(--text); font-family: var(--mono); font-size: 11.5px; line-height: 1.5; resize: vertical; }
.ek-sw { position: relative; display: inline-block; width: 36px; height: 20px; }
.ek-sw input { opacity: 0; width: 0; height: 0; }
.ek-sw span { position: absolute; inset: 0; border-radius: 20px; background: var(--panel-3); border: 1px solid var(--line); transition: background .15s; }
.ek-sw span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.ek-sw input:checked + span { background: var(--accent-dim); border-color: var(--accent); }
.ek-sw input:checked + span::after { transform: translateX(16px); background: var(--accent); }

.degisti { border-color: var(--accent) !important; background: var(--accent-dim) !important; box-shadow: inset 2px 0 0 var(--accent); }
td.degisti { background: var(--accent-dim) !important; }

.ek-blok { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.ek-blok-baslik { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); font-size: 12.5px; }
.ek-tablo { width: 100%; border-collapse: collapse; }
.ek-tablo th, .ek-tablo td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; vertical-align: middle; }
.ek-tablo th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); text-align: left; background: var(--panel-2); }
.ek-tablo th.num, .ek-tablo td.num { text-align: right; }
.ek-tablo td.num .ek-num { width: 120px; justify-content: flex-end; margin-left: auto; }
.ek-tablo td.num .ek-in.kucuk { width: 92px; }
.ek-tablo td .ek-ta { min-width: 220px; }
.ek-ad { min-width: 180px; }
.ek-yuzde { display: inline-block; min-width: 46px; margin-left: 6px; font-family: var(--mono); font-size: 11px; color: var(--accent); }
.ek-toplam td { background: var(--panel-2); font-size: 12px; }
.ek-gun-hucre { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.ek-gun-hucre .ek-num { width: 110px; }
.ek-gun-hucre .ek-in.kucuk { width: 80px; }

.ek-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ek-tab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--text-2); font-size: 12px; cursor: pointer; }
.ek-tab i { font-style: normal; font-size: 10.5px; color: var(--faint); background: var(--panel-3); padding: 1px 6px; border-radius: 999px; }
.ek-tab:hover { border-color: var(--accent-dim); color: var(--text); }
.ek-tab.active { border-color: var(--accent); background: var(--accent-dim); color: var(--text); }

.ek-urunler { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; margin-top: 12px; }
.ek-urun { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); padding: 9px 10px; transition: border-color .12s; }
.ek-urun[hidden] { display: none; }
.ek-urun-ust { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ek-urun-ad { font-size: 12.5px; text-transform: capitalize; line-height: 1.2; }
.ek-urun-fiyat { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ek-urun-fiyat label { display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; color: var(--faint); }

.ek-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.ek-kart { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 12px; }
.ek-kart-baslik { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.ek-kart-baslik b { flex: 1; }
.ek-kit-esyalar { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.ek-slot { position: relative; width: 38px; height: 38px; display: grid; place-items: center; background: var(--panel-3); border: 1px solid var(--line); border-radius: 4px; }
.ek-slot i { position: absolute; right: 2px; bottom: 1px; font-style: normal; font-size: 10px; font-family: var(--mono); color: #fff; text-shadow: 1px 1px 0 #000; }

.ek-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--panel); box-shadow: 0 -6px 24px rgba(0,0,0,.35); z-index: 5; font-size: 13px; }
.ek-bar.hidden { display: none; }

.ek-fark { margin: 6px 0 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); font-family: var(--mono); font-size: 11.5px; max-height: 50vh; overflow: auto; }
.ek-fark-yol { color: var(--faint); margin-top: 6px; }
.ek-fark .l { white-space: pre-wrap; word-break: break-all; padding: 1px 4px; border-radius: 3px; }
.ek-fark .eksi { color: #ff8a8a; background: rgba(255,80,80,.08); }
.ek-fark .arti { color: #9cff8a; background: rgba(90,255,120,.08); }
.ek-ham { width: 100%; min-height: 60vh; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--text); font-family: var(--mono); font-size: 12px; line-height: 1.5; resize: vertical; }

@media (max-width: 1000px) {
  .ek-wrap { grid-template-columns: 1fr; }
  .ek-nav { position: static; max-height: none; }
}

/* ==================================================================
   GÜNÜN ÖDÜLÜ  ·  süreli ödül etkinliği sayfası
   ================================================================== */

.go-odul-buyuk {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--accent-2);
  letter-spacing: .2px;
}

.go-kalemler { display: flex; flex-wrap: wrap; gap: 6px; }

.go-kalem {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 12px;
  color: var(--text);
}
.go-kalem em {
  font-style: normal;
  font-size: 10px;
  color: var(--faint);
}
.go-kalem.oto  { border-color: rgba(63, 214, 138, .4);  background: var(--ok-dim); }
.go-kalem.elle { border-color: rgba(255, 182, 72, .45); background: var(--warn-dim); }

.go-sart {
  padding: 7px 0;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-soft);
}
.go-sart:last-child { border-bottom: 0; }

/* --- gün gün ödül kartları --- */

.go-gunler {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.go-gun {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.go-gun.aktif { border-color: var(--accent); background: var(--accent-dim); }
.go-gun.bos   { border-style: dashed; opacity: .72; }

.go-gun-ust { display: flex; align-items: center; gap: 7px; }
.go-gun-ust b { flex: 1; font-size: 13px; }

.go-gun-odul {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  line-height: 1.35;
}

/* --- kalem düzenleme satırı --- */

.go-kalem-satir {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.go-kalem-satir:last-child { border-bottom: 0; }

.go-onizleme {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.go-onizleme-baslik {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--faint);
  margin-bottom: 7px;
}

/* --- metin düzenleyici --- */

.go-metin {
  display: grid;
  grid-template-columns: 210px 1fr 150px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.go-metin:last-child { border-bottom: 0; }
.go-metin input { width: 100%; }

/* --- ödül türleri tablosu --- */

.go-tur-baslik,
.go-tur-satir {
  display: grid;
  grid-template-columns: 120px 66px 1fr 1fr 130px 34px;
  gap: 8px;
  align-items: center;
}
.go-tur-baslik {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--faint);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.go-tur-satir {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.go-tur-satir:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .go-metin,
  .go-tur-baslik,
  .go-tur-satir { grid-template-columns: 1fr; }
  .go-tur-baslik { display: none; }
}

.go-holo-satir {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
}
.go-holo-satir input { width: 100%; font-family: var(--mono, monospace); font-size: 12px; }

/* ==================================================================
   Oyuncu Analizi
   ================================================================== */
.an-ust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.an-donemler { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.an-tarih { height: 27px; padding: 0 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-2); font: inherit; font-size: 12px; color-scheme: dark; }
.an-tarih.secili { border-color: var(--accent); color: var(--accent-2); }
.an-baslik { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.an-guncel { margin-left: auto; font-size: 11.5px; display: flex; align-items: center; gap: 6px; }

.an-canli { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; }
.an-canli .tag { height: 18px; font-size: 10.5px; }
.an-sag { margin-left: auto; font-size: 11.5px; }
.an-nabiz { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(63,214,138,.6); animation: an-nabiz 1.8s infinite; }
@keyframes an-nabiz { 0% { box-shadow: 0 0 0 0 rgba(63,214,138,.55); } 70% { box-shadow: 0 0 0 8px rgba(63,214,138,0); } 100% { box-shadow: 0 0 0 0 rgba(63,214,138,0); } }
.an-yesil { color: var(--ok); }

.an-huni { display: flex; align-items: stretch; gap: 6px; }
.an-adim { flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.an-adim-ust { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.an-adim-no { width: 18px; height: 18px; border-radius: 50%; background: var(--panel-3); color: var(--muted); font-size: 10.5px; display: inline-grid; place-items: center; flex: none; }
.an-adim-sayi { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.an-adim-cubuk { height: 6px; background: var(--panel-3); border-radius: 4px; overflow: hidden; }
.an-adim-cubuk i { display: block; height: 100%; border-radius: 4px; }
.an-adim-alt { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.an-adim-alt b { color: var(--text); font-size: 12.5px; }
.an-ok { align-self: center; color: var(--faint); font-size: 20px; }
.an-cumle { margin-top: 14px; font-size: 13.5px; line-height: 1.65; color: var(--text-2); }
.an-cumle b { color: var(--text); }

.an-yigin { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--panel-3); gap: 2px; }
.an-yigin i { display: block; height: 100%; min-width: 3px; }
.an-durumlar { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.an-durum { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: transparent; border: 0; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.an-durum:hover { background: var(--panel-2); }
.an-durum > i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.an-durum b { font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.an-y { font-size: 11.5px; min-width: 38px; text-align: right; }

.an-kutular { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.an-kutu { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.an-kutu-e { font-size: 11px; color: var(--muted); }
.an-kutu-d { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.an-kutu-a { font-size: 11px; color: var(--faint); }
.an-kutu.ok .an-kutu-d { color: var(--ok); }
.an-kutu.warn .an-kutu-d { color: var(--warn); }
.an-kutu.bad .an-kutu-d { color: var(--bad); }

.an-grafik-kap { overflow-x: auto; padding-bottom: 4px; }
.an-grafik { display: block; }
.an-sv-gun { cursor: pointer; }
.an-sv-gun:hover rect:nth-of-type(2), .an-sv-gun:hover rect:nth-of-type(3) { filter: brightness(1.25); }
.an-sv-gun.secili text { fill: var(--accent-2); font-weight: 700; }
tr.an-secili td { background: var(--accent-dim); }
.an-oran { font-weight: 600; }
.an-oran.ok { color: var(--ok); } .an-oran.warn { color: var(--warn); } .an-oran.bad { color: var(--bad); }

.an-saatler { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 140px; align-items: end; }
.an-saat { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; cursor: default; }
.an-saat i { display: block; width: 100%; background: var(--info); opacity: .55; border-radius: 3px 3px 1px 1px; }
.an-saat.zirve i { background: var(--accent); opacity: 1; }
.an-saat:hover i { opacity: 1; }
.an-saat span { font-size: 9.5px; color: var(--faint); height: 12px; }

.an-oyuncu-tablo { max-height: 640px; }
.an-online { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.an-nokta { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; background: var(--panel-3); border: 1px solid var(--line); vertical-align: middle; }
.an-nokta.evet { background: var(--ok); border-color: var(--ok); }
.an-nokta.hayir { background: var(--bad-dim); border-color: rgba(255,96,88,.5); }
.an-not { padding: 10px 14px; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--line-soft); line-height: 1.55; }

.an-alt { margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: 12px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; line-height: 1.55; }
.an-hata { color: var(--warn); }

@media (max-width: 1250px) { .an-kutular { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .an-huni { flex-direction: column; } .an-ok { transform: rotate(90deg); } }
.an-buyukler { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.an-buyuk { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.an-buyuk.tik { cursor: pointer; } .an-buyuk.tik:hover { border-color: var(--line); background: var(--panel-3); }
.an-buyuk-e { font-size: 11.5px; color: var(--muted); }
.an-buyuk-d { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.an-buyuk-a { font-size: 11px; color: var(--faint); line-height: 1.35; }
.an-buyuk.accent .an-buyuk-d { color: var(--accent-2); } .an-buyuk.info .an-buyuk-d { color: var(--info); }
.an-buyuk.ok .an-buyuk-d { color: var(--ok); } .an-buyuk.bad .an-buyuk-d { color: var(--bad); }
.an-turler { display: flex; gap: 5px; flex-wrap: wrap; }
.an-sure-hucre { min-width: 170px; }
.an-sure { height: 5px; background: var(--panel-3); border-radius: 3px; overflow: hidden; margin-bottom: 3px; }
.an-sure i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
@media (max-width: 1400px) { .an-buyukler { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .an-buyukler { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* AFK istemcisi: onay kutulu ayar satırı */
label.field.row { flex-direction: row; align-items: flex-start; gap: 9px; line-height: 1.5; }
label.field.row input[type="checkbox"] { margin-top: 2px; flex: none; }
label.field.row code { font-size: 11px; color: var(--faint); }
