/* ============================================================================
   HAMZA_OS  ·  core.css
   Tasarım sistemi: değişkenler, kabuk (HUD/nav/terminal), bileşenler, efektler.
   Tek yerden yönetilir — her sayfa aynı iskeleti kullanır.
   ========================================================================== */

/* ── 1. TEMALAR ───────────────────────────────────────────────────────────── */
:root {
  --pri:      #00ff88;
  --pri-dim:  #0b9c50;
  --sec:      #00d4ff;
  --acc:      #ffb700;
  --bad:      #ff2e55;
  --bg:       #00060a;
  --bg2:      #01100c;
  --panel:    rgba(4, 22, 14, 0.72);
  --panel-2:  rgba(0, 255, 136, 0.04);
  --line:     rgba(0, 255, 136, 0.18);
  --line-2:   rgba(0, 255, 136, 0.38);
  --glow:     rgba(0, 255, 136, 0.35);
  --txt:      #c8ffe0;
  --txt-dim:  #4d8f6c;
  --txt-mid:  #79c79b;
  --white:    #eafff2;

  --mono: 'Share Tech Mono', 'Courier New', ui-monospace, monospace;
  --disp: 'Orbitron', 'Share Tech Mono', sans-serif;
  --ui:   'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r:    10px;
  --hud:  36px;
  --nav:  54px;
  --dock: 190px;
  --tr:   0.18s cubic-bezier(.4, 0, .2, 1);
}

:root[data-theme="cyber"] {
  --pri: #00f3ff; --pri-dim: #0a7f8c; --sec: #8a2be2; --acc: #ffb700;
  --bg: #030712; --bg2: #06101f;
  --panel: rgba(8, 18, 34, 0.76); --panel-2: rgba(0, 243, 255, 0.04);
  --line: rgba(0, 243, 255, 0.2); --line-2: rgba(0, 243, 255, 0.42);
  --glow: rgba(0, 243, 255, 0.35);
  --txt: #d5eefb; --txt-dim: #4a7189; --txt-mid: #7fb2cc; --white: #f2fbff;
}
:root[data-theme="blueprint"] {
  --pri: #60a5fa; --pri-dim: #2f6bbd; --sec: #a78bfa; --acc: #93c5fd;
  --bg: #060d18; --bg2: #0b192c;
  --panel: rgba(15, 28, 48, 0.8); --panel-2: rgba(96, 165, 250, 0.05);
  --line: rgba(96, 165, 250, 0.24); --line-2: rgba(96, 165, 250, 0.45);
  --glow: rgba(59, 130, 246, 0.32);
  --txt: #dbeafe; --txt-dim: #557094; --txt-mid: #93b4d8; --white: #f0f7ff;
}
:root[data-theme="amber"] {
  --pri: #ff9900; --pri-dim: #a35f00; --sec: #ff5e00; --acc: #fde68a;
  --bg: #0d0904; --bg2: #171006;
  --panel: rgba(28, 20, 10, 0.8); --panel-2: rgba(255, 153, 0, 0.05);
  --line: rgba(255, 153, 0, 0.24); --line-2: rgba(255, 153, 0, 0.5);
  --glow: rgba(255, 153, 0, 0.32);
  --txt: #ffe9c7; --txt-dim: #8a6b3c; --txt-mid: #d8ab6a; --white: #fff6e6;
}
:root[data-theme="oled"] {
  --pri: #ffffff; --pri-dim: #7d7d84; --sec: #38bdf8; --acc: #a1a1aa;
  --bg: #000000; --bg2: #08080a;
  --panel: rgba(16, 16, 18, 0.86); --panel-2: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.14); --line-2: rgba(255, 255, 255, 0.3);
  --glow: rgba(255, 255, 255, 0.16);
  --txt: #e6e6ea; --txt-dim: #6b6b73; --txt-mid: #a5a5ad; --white: #ffffff;
}

/* ── 2. TEMEL ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  padding-top: var(--hud);
  transition: background-color var(--tr), color var(--tr);
}
body.dock-open { padding-bottom: var(--dock); }

.mono  { font-family: var(--mono); }
.disp  { font-family: var(--disp); letter-spacing: 1px; }
a { color: var(--pri); text-decoration: none; transition: var(--tr); }
a:hover { color: var(--white); text-shadow: 0 0 8px var(--glow); }
::selection { background: var(--pri); color: var(--bg); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pri-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pri); }

:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }

/* ── 3. ARKA PLAN KATMANLARI ──────────────────────────────────────────────── */
#bg-canvas, #rain-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -3; pointer-events: none;
}
#rain-canvas { z-index: -2; opacity: 0; transition: opacity 0.6s; }
#rain-canvas.on { opacity: 0.5; }

.fx-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 78%);
}
.fx-scan {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.fx-vig {
  position: fixed; inset: 0; z-index: 899; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.75) 100%);
}
body.no-fx .fx-scan, body.no-fx .fx-vig, body.no-fx .fx-grid { display: none; }

/* ── 4. İMLEÇ ─────────────────────────────────────────────────────────────── */
@media (pointer: fine) {
  body.custom-cursor, body.custom-cursor * { cursor: none !important; }
  #cur {
    position: fixed; width: 7px; height: 7px; background: var(--pri);
    border-radius: 50%; pointer-events: none; z-index: 10000;
    transform: translate(-50%, -50%); box-shadow: 0 0 12px var(--pri);
  }
  #cur-ring {
    position: fixed; width: 26px; height: 26px; border: 1px solid var(--line-2);
    border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .16s, height .16s, border-color .16s, transform .06s linear;
  }
  #cur-ring.hot { width: 42px; height: 42px; border-color: var(--pri); }
}
@media (pointer: coarse) { #cur, #cur-ring { display: none; } }

/* ── 5. ÜST HUD ───────────────────────────────────────────────────────────── */
.hud {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hud); z-index: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 14px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 1.2px; color: var(--txt-mid);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.hud b { color: var(--pri); font-weight: 400; }
.hud-l, .hud-r { display: flex; align-items: center; gap: 12px; }
.hud-r > * { flex-shrink: 0; }
.hud-sep { color: var(--line-2); }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--pri);
       box-shadow: 0 0 8px var(--pri); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.hud-btn {
  background: transparent; border: 1px solid var(--line); color: var(--txt-mid);
  border-radius: 4px; padding: 3px 8px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 1px; cursor: pointer; transition: var(--tr);
}
.hud-btn:hover { color: var(--pri); border-color: var(--line-2); box-shadow: 0 0 10px var(--glow); }
.hud-btn.on { color: var(--pri); border-color: var(--pri); background: var(--panel-2); }

.theme-dots { display: flex; gap: 5px; }
.theme-dot {
  width: 15px; height: 15px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); transition: var(--tr);
}
.theme-dot:hover, .theme-dot.on { transform: scale(1.25); box-shadow: 0 0 10px currentColor; }

@media (max-width: 860px) { .hud-hide-sm { display: none !important; } }
@media (max-width: 620px) {
  .hud { gap: 8px; padding: 0 8px; font-size: 10px; }
  .hud-r { gap: 7px; }
  .theme-dots { display: none; }              /* tema seçimi komut paletinden */
  .hud-btn { padding: 3px 6px; font-size: 9px; }
}

/* ── 6. NAVİGASYON ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: var(--hud); z-index: 700;
  display: flex; align-items: center; gap: 10px; padding: 0 16px; height: var(--nav);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.brand { font-family: var(--disp); font-weight: 900; font-size: 15px; color: var(--white);
         letter-spacing: 2px; white-space: nowrap; }
.brand span { color: var(--pri); text-shadow: 0 0 12px var(--glow); }
.nav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px; white-space: nowrap;
  color: var(--txt-dim); padding: 6px 10px; border: 1px solid transparent;
  border-radius: 4px; transition: var(--tr); text-transform: uppercase;
}
.nav-a:hover { color: var(--pri); border-color: var(--line); background: var(--panel-2); }
.nav-a.active { color: var(--bg); background: var(--pri); border-color: var(--pri);
                box-shadow: 0 0 16px var(--glow); text-shadow: none; }
.nav-cta {
  font-family: var(--mono); font-size: 11px; padding: 6px 12px; border-radius: 4px;
  border: 1px solid var(--line-2); color: var(--pri); white-space: nowrap;
}
.nav-cta:hover { background: var(--pri); color: var(--bg); }
@media (max-width: 720px) {
  .brand { font-size: 12px; }
  .nav { padding: 0 8px; gap: 7px; height: 48px; }
  .nav-cta { padding: 6px 8px; font-size: 10px; }
}
@media (max-width: 460px) {
  .nav-cta { font-size: 0; padding: 7px 9px; }
  .nav-cta::after { content: '✉'; font-size: 13px; }
  .wrap { padding: 16px 10px 48px; }
  .panel { padding: 13px; }
}

/* ── 7. YERLEŞİM ──────────────────────────────────────────────────────────── */
.wrap { max-width: 1360px; margin: 0 auto; padding: 22px 16px 60px; }
.page-head { margin-bottom: 20px; }
.page-head h1 {
  font-family: var(--disp); font-size: clamp(20px, 3.4vw, 30px); font-weight: 900;
  color: var(--white); letter-spacing: 1px; line-height: 1.15;
}
.page-head h1 em { color: var(--pri); font-style: normal; text-shadow: 0 0 18px var(--glow); }
.page-head p { color: var(--txt-mid); font-size: 13px; margin-top: 6px; max-width: 76ch; }
.kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 3px; color: var(--pri);
  text-transform: uppercase; display: block; margin-bottom: 6px;
}

.grid { display: grid; gap: 14px; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); }
/* Galeri: auto-fill → tek fotoğraf tüm satırı kaplamaz */
.g-foto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 14px; }
/* Ana içerik solda, yan sütun sağda olduğunda */
.split.ters { grid-template-columns: 1fr minmax(260px, 340px); }
@media (max-width: 900px) { .split, .split.ters { grid-template-columns: 1fr; } }

/* ── 8. PANELLER ──────────────────────────────────────────────────────────── */
.panel {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; backdrop-filter: blur(8px);
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.panel::before, .panel::after {
  content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none;
  border-color: var(--line-2); opacity: .9;
}
.panel::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid;
                 border-radius: var(--r) 0 0 0; }
.panel::after  { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid;
                 border-radius: 0 0 var(--r) 0; }
.panel:hover { border-color: var(--line-2); box-shadow: 0 0 26px -8px var(--glow); }
.panel.flat::before, .panel.flat::after { display: none; }
.panel.link { cursor: pointer; }
.panel.link:hover { transform: translateY(-3px); }

.panel-h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--pri);
  text-transform: uppercase; padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-h .tag { color: var(--txt-dim); letter-spacing: 1px; }

.stat { text-align: left; }
.stat .k { font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px; color: var(--txt-dim);
           text-transform: uppercase; }
.stat .v { font-family: var(--disp); font-size: clamp(18px, 2.6vw, 26px); font-weight: 700;
           color: var(--pri); line-height: 1.2; margin-top: 2px; }
.stat .s { font-family: var(--mono); font-size: 10px; color: var(--txt-dim); }
.v.warn { color: var(--acc); } .v.bad { color: var(--bad); }

/* ── 9. FORM ──────────────────────────────────────────────────────────────── */
label, .lbl {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px;
  color: var(--txt-dim); text-transform: uppercase; margin-bottom: 5px;
}
input, textarea, select {
  width: 100%; background: rgba(0, 0, 0, .45); border: 1px solid var(--line);
  color: var(--white); font-family: var(--mono); font-size: 13px;
  padding: 9px 11px; border-radius: 5px; outline: none; transition: var(--tr);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--pri); box-shadow: 0 0 0 2px var(--panel-2), 0 0 16px -4px var(--glow);
}
select option { background: var(--bg2); color: var(--txt); }
textarea { resize: vertical; line-height: 1.5; }
.field { margin-bottom: 12px; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; min-width: 0; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; background: transparent;
  padding: 0; height: 22px; border: none; box-shadow: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--pri) var(--pct, 40%), rgba(255,255,255,.13) var(--pct, 40%));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.13); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--pri); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6px; border-radius: 50%;
  background: var(--pri); box-shadow: 0 0 10px var(--glow); cursor: pointer; border: 0;
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: var(--pri);
  border: 0; box-shadow: 0 0 10px var(--glow); cursor: pointer;
}
input[type="checkbox"] { width: auto; accent-color: var(--pri); }

input[type="file"] { padding: 8px; font-size: 12px; cursor: pointer; }
input[type="file"]::file-selector-button {
  background: var(--panel-2); color: var(--pri); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 6px 12px; margin-right: 10px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  transition: var(--tr);
}
input[type="file"]::file-selector-button:hover { background: var(--pri); color: var(--bg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; background: var(--pri); color: var(--bg); border: 1px solid var(--pri);
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; padding: 10px 14px; border-radius: 5px;
  cursor: pointer; transition: var(--tr);
}
.btn:hover { background: var(--white); border-color: var(--white); box-shadow: 0 0 22px var(--glow); }
.btn:active { transform: scale(.985); }
.btn.ghost { background: transparent; color: var(--pri); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--white); border-color: var(--pri); }
.btn.sm { padding: 6px 10px; font-size: 10px; width: auto; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; box-shadow: 0 0 18px rgba(255,46,85,.5); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 10. VERİ GÖSTERİMİ ───────────────────────────────────────────────────── */
.kv { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono);
      font-size: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--txt-dim); }
.kv .v { color: var(--white); font-weight: 700; }
.kv .v.ok { color: var(--pri); } .kv .v.warn { color: var(--acc); } .kv .v.bad { color: var(--bad); }

table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--txt-dim); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase;
     font-weight: 400; }
td { color: var(--txt); }
tbody tr { transition: background var(--tr); }
tbody tr:hover { background: var(--panel-2); }
.t-scroll { max-height: 320px; overflow: auto; }

.chip {
  display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px;
  padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2);
  color: var(--pri); text-transform: uppercase;
}
.chip.ok   { color: var(--pri); border-color: var(--pri); }
.chip.warn { color: var(--acc); border-color: var(--acc); }
.chip.bad  { color: var(--bad); border-color: var(--bad); }
.chip.dim  { color: var(--txt-dim); border-color: var(--line); }

.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.09); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--pri); border-radius: 3px;
           box-shadow: 0 0 10px var(--glow); transition: width .35s ease; }
.bar > i.warn { background: var(--acc); } .bar > i.bad { background: var(--bad); }

canvas.plot { width: 100%; display: block; background: rgba(0,0,0,.35);
              border: 1px solid var(--line); border-radius: 6px; }

.empty { font-family: var(--mono); font-size: 11px; color: var(--txt-dim);
         text-align: center; padding: 22px 10px; border: 1px dashed var(--line);
         border-radius: 6px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  border: 1px solid var(--line); border-left: 2px solid var(--pri); border-radius: 6px;
  padding: 9px 11px; background: rgba(0,0,0,.25); transition: var(--tr);
}
.item:hover { background: var(--panel-2); border-left-color: var(--acc); }
.item .h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.item .t { font-family: var(--mono); font-size: 12px; color: var(--white); font-weight: 700; }
.item .m { font-family: var(--mono); font-size: 10px; color: var(--txt-dim); }
.item .b { font-size: 12px; color: var(--txt-mid); margin-top: 4px; white-space: pre-wrap;
           word-break: break-word; }
.x {
  background: none; border: none; color: var(--txt-dim); font-family: var(--mono);
  cursor: pointer; font-size: 13px; padding: 0 3px; transition: var(--tr);
}
.x:hover { color: var(--bad); }

/* ── 11. TERMİNAL DOCK ────────────────────────────────────────────────────── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--dock); z-index: 850;
  display: none; flex-direction: column;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-top: 1px solid var(--line-2); backdrop-filter: blur(14px);
  box-shadow: 0 -18px 40px -20px var(--glow);
}
body.dock-open .dock { display: flex; }
.dock-h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 5px 12px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px; color: var(--txt-dim);
}
.dock-log { flex: 1; overflow-y: auto; padding: 8px 12px; font-family: var(--mono);
            font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.t-line { line-height: 1.42; word-break: break-word; white-space: pre-wrap; }
.t-cmd { color: var(--pri); font-weight: 700; }
.t-sys { color: var(--txt-dim); }
.t-out { color: var(--txt); }
.t-suc { color: var(--pri); }
.t-err { color: var(--bad); }
.t-warn{ color: var(--acc); }
.dock-in { display: flex; align-items: center; gap: 8px; padding: 7px 12px;
           border-top: 1px solid var(--line); }
.dock-in .p { color: var(--pri); font-family: var(--mono); font-weight: 700; }
.dock-in input { border: none; background: transparent; padding: 0; font-size: 13px; }
.dock-in input:focus { box-shadow: none; }

/* ── 12. KOMUT PALETİ ─────────────────────────────────────────────────────── */
.cmdk {
  position: fixed; inset: 0; z-index: 950; display: none;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px);
  align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.cmdk.on { display: flex; }
.cmdk-box {
  width: min(560px, 92vw); background: var(--bg2); border: 1px solid var(--line-2);
  border-radius: var(--r); overflow: hidden; box-shadow: 0 0 60px -10px var(--glow);
  animation: slideIn .16s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-12px); } }
.cmdk-box input { border: none; border-bottom: 1px solid var(--line); border-radius: 0;
                  font-size: 15px; padding: 14px 16px; }
.cmdk-box input:focus { box-shadow: none; }
.cmdk-list { max-height: 46vh; overflow-y: auto; }
.cmdk-i {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; color: var(--txt-mid); border-left: 2px solid transparent;
}
.cmdk-i.sel, .cmdk-i:hover { background: var(--panel-2); color: var(--white); border-left-color: var(--pri); }
.cmdk-i .d { margin-left: auto; font-size: 10px; color: var(--txt-dim); }

/* ── 13. TOAST ────────────────────────────────────────────────────────────── */
#toasts { position: fixed; right: 14px; bottom: 14px; z-index: 980;
          display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
body.dock-open #toasts { bottom: calc(var(--dock) + 14px); }
.toast {
  font-family: var(--mono); font-size: 11px; letter-spacing: .6px; color: var(--pri);
  background: var(--bg2); border: 1px solid var(--pri); border-left-width: 3px;
  padding: 9px 14px; border-radius: 5px; min-width: 190px; max-width: 320px;
  box-shadow: 0 0 24px -6px var(--glow); animation: tIn .22s ease;
}
.toast.warn { color: var(--acc); border-color: var(--acc); }
.toast.err  { color: var(--bad); border-color: var(--bad); }
.toast.out  { animation: tOut .3s ease forwards; }
@keyframes tIn  { from { opacity: 0; transform: translateX(24px); } }
@keyframes tOut { to   { opacity: 0; transform: translateX(24px); } }

/* ── 14. BOOT ─────────────────────────────────────────────────────────────── */
#boot {
  position: fixed; inset: 0; z-index: 9990; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; font-family: var(--mono); transition: opacity .45s ease;
}
#boot.done { opacity: 0; pointer-events: none; }
#boot .logo { font-family: var(--disp); font-size: clamp(22px, 6vw, 46px); font-weight: 900;
              color: var(--white); letter-spacing: 6px; }
#boot .logo span { color: var(--pri); }
#boot-log { width: min(460px, 88vw); height: 132px; overflow: hidden; font-size: 11px;
            color: var(--txt-dim); display: flex; flex-direction: column; gap: 2px; }
#boot-bar { width: min(460px, 88vw); }

/* ── 15. YARDIMCI ─────────────────────────────────────────────────────────── */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-t); position: absolute; inset: 0; opacity: .8;
}
.glitch::before { color: var(--sec); animation: gl1 3.4s infinite steps(2); }
.glitch::after  { color: var(--acc); animation: gl2 2.7s infinite steps(2); }
@keyframes gl1 { 0%,92%,100% { transform: none; opacity: 0 } 94% { transform: translate(-2px,1px); opacity: .7 } }
@keyframes gl2 { 0%,88%,100% { transform: none; opacity: 0 } 90% { transform: translate(2px,-1px); opacity: .7 } }

.type::after { content: '▋'; color: var(--pri); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }

.hr { height: 1px; background: var(--line); margin: 16px 0; border: none; }
.muted { color: var(--txt-dim); }
.small { font-size: 11px; }
.center { text-align: center; }
.mt { margin-top: 12px; } .mb { margin-bottom: 12px; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

footer.foot {
  border-top: 1px solid var(--line); padding: 16px; margin-top: 30px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; color: var(--txt-dim);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .fx-scan { display: none; }
}

@media print {
  .hud, .nav, .dock, .fx-scan, .fx-vig, .fx-grid, #bg-canvas, #rain-canvas,
  #toasts, .no-print { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .panel { border: 1px solid #999; background: #fff; color: #000; }
  .panel-h, .stat .v, td, th, .kv .v { color: #000 !important; }
}
