/* =====================================================================
   talep_takip() — Talep Takip sayfası
   Hacker/terminal estetiği · error.css arka planıyla (err-rain/scan/vignette)
   ===================================================================== */

:root {
  --brand-teal:       #2FB3AD;
  --brand-teal-2:     #3ECEC7;
  --brand-mint:       #5EF0C7;
  --brand-amber:      #FFAD69;
  --brand-rose:       #FF7A85;
  --fg-primary:       #E4FFFB;
  --fg-secondary:     rgba(197, 245, 240, 0.55);
  --fg-muted:         rgba(197, 245, 240, 0.35);
  --bg-card-1:        rgba(11, 22, 24, 0.92);
  --bg-card-2:        rgba(4, 10, 12, 0.96);
  --bg-input:         rgba(6, 14, 16, 0.85);
  --border-teal:      rgba(47, 179, 173, 0.28);
  --border-teal-soft: rgba(47, 179, 173, 0.18);
  --font-mono:        'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

/* ==== Body / arka plan ==== */
.tk-body {
  margin: 0;
  box-sizing: border-box;   /* padding'i 100vh'ye dahil et → fantom scroll olmasın */
  min-height: 100vh;
  padding: 40px 24px;       /* üst = alt (simetrik) */
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(47,179,173,0.08), transparent 60%),
    linear-gradient(180deg, #0C151A, #080E11);
  color: var(--fg-primary);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

/* ==== Shell ==== */
.tk-shell {
  max-width: 1440px; margin: 0 auto; position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 26px;
}

/* ==== Top status bar ==== */
.tk-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(11,22,24,0.85), rgba(4,10,12,0.9));
  border: 1px solid rgba(47,179,173,0.22);
  font-family: var(--font-mono); font-size: 11px; color: rgba(197,245,240,0.55);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.tk-topbar__l, .tk-topbar__r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tk-topbar__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #5EF0C7;
  box-shadow: 0 0 10px rgba(94,240,199,0.7);
}
.tk-topbar__b   { color: #2FB3AD; text-shadow: 0 0 8px rgba(47,179,173,0.5); }
.tk-topbar__ver { color: rgba(197,245,240,0.35); }
.tk-clock       { color: #E4FFFB; letter-spacing: 0.14em; text-shadow: 0 0 6px rgba(47,179,173,0.35); }

/* ==== Hero ==== */
.tk-hero {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 0 4px; font-family: var(--font-mono);
}
.tk-hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(47,179,173,0.08); border: 1px solid rgba(47,179,173,0.35);
  color: #2FB3AD; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  text-shadow: 0 0 8px rgba(47,179,173,0.4);
}
.tk-hero__kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2FB3AD;
  box-shadow: 0 0 8px #2FB3AD;
}
.tk-hero__title {
  color: #E4FFFB; font-size: 44px; font-weight: 500; letter-spacing: 0.04em;
  line-height: 1.05; margin: 4px 0 2px; text-shadow: 0 0 24px rgba(47,179,173,0.28);
}
.tk-hero__title .paren { color: #2FB3AD; }
.tk-hero__sub {
  color: rgba(197,245,240,0.55); font-size: 13.5px; letter-spacing: 0.05em; max-width: 62ch;
  line-height: 1.55;
}

/* ==== 2-kolon grid ==== */
.tk-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px; align-items: stretch;
}
@media (max-width: 960px) { .tk-grid { grid-template-columns: 1fr; } }

/* ==== Kart shell ==== */
.tk-card {
  position: relative; padding: 22px 24px;
  background: linear-gradient(160deg, rgba(11,22,24,0.92), rgba(4,10,12,0.96));
  border: 1px solid rgba(47,179,173,0.28);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 22px 60px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(47,179,173,0.02) inset;
}
.tk-card::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,179,173,0.9), transparent);
}
.tk-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(47,179,173,0.03) 0 1px, transparent 1px 3px);
  opacity: .45;
}
.tk-card > * { position: relative; z-index: 1; }

.tk-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px dashed rgba(47,179,173,0.18);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(197,245,240,0.55);
}
.tk-card__title           { color: #2FB3AD; text-shadow: 0 0 8px rgba(47,179,173,0.45); }
.tk-card__title::before   { content: "▎ "; }
.tk-card__meta            { color: rgba(197,245,240,0.4); white-space: nowrap; }

/* ==== SOL: Terminal + stats + tips ==== */
.tk-panel { display: flex; flex-direction: column; gap: 16px; }
.tk-term {
  background: rgba(3,8,10,0.7); border: 1px solid rgba(47,179,173,0.18);
  border-radius: 10px; padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12.5px; color: #B5DFDB;
  line-height: 1.7; white-space: pre-wrap; min-height: 210px; overflow-x: auto;
}
.tk-term__line { display: block; opacity: 0; animation: bootIn 0.35s ease forwards; }
.tk-t__k    { color: rgba(197,245,240,0.5); }
.tk-t__ok   { color: #5EF0C7; text-shadow: 0 0 6px rgba(94,240,199,0.45); }
.tk-t__warn { color: #FFAD69; text-shadow: 0 0 6px rgba(255,173,105,0.45); }
.tk-t__err  { color: #FF7A85; text-shadow: 0 0 6px rgba(255,122,133,0.55); }
.tk-t__b    { color: #2FB3AD; text-shadow: 0 0 6px rgba(47,179,173,0.5); }
@keyframes bootIn { from { opacity: 0; transform: translateY(3px); }
                    to   { opacity: 1; transform: translateY(0);   } }

.tk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tk-stat  {
  padding: 10px 12px; border: 1px solid rgba(47,179,173,0.2); border-radius: 8px;
  background: rgba(6,14,16,0.65); font-family: var(--font-mono);
}
.tk-stat__k { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
              color: rgba(197,245,240,0.5); }
.tk-stat__v { color: #E4FFFB; font-size: 15px; margin-top: 4px; letter-spacing: 0.06em;
              text-shadow: 0 0 8px rgba(47,179,173,0.3); }
.tk-stat__v em { font-style: normal; color: #5EF0C7; }

.tk-tips { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0;
           font-family: var(--font-mono); font-size: 12px; color: rgba(197,245,240,0.65); }
.tk-tips li { list-style: none; padding-left: 18px; position: relative; line-height: 1.55; }
.tk-tips li::before { content: "$"; position: absolute; left: 0; color: #2FB3AD;
                      text-shadow: 0 0 6px rgba(47,179,173,0.4); }

/* ==== SAĞ: Form ==== */
.tk-card--form { display: flex; flex-direction: column; }
.tk-card--form .tk-form { flex: 1; }
.tk-card--form .tk-btn-row { margin-top: auto; }   /* butonu kartın altına yasla */
.tk-form  { display: flex; flex-direction: column; gap: 16px; }
.tk-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.tk-field label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(197,245,240,0.55);
}
.tk-field label::before { content: "> "; color: #2FB3AD; opacity: 0.7; }
.tk-field[data-invalid="true"] .tk-input {
  border-color: #FF7A85 !important;
  box-shadow: 0 0 0 3px rgba(255,122,133,0.14), 0 0 20px -4px rgba(255,122,133,0.55) !important;
}
.tk-input {
  width: 100%; padding: 14px 16px; box-sizing: border-box;
  background: rgba(6,14,16,0.85);
  border: 1px solid rgba(47,179,173,0.28);
  border-radius: 8px;
  color: #E4FFFB; font-family: var(--font-mono); font-size: 14px;
  letter-spacing: 0.04em; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.tk-input:focus {
  border-color: #2FB3AD;
  box-shadow: 0 0 0 3px rgba(47,179,173,0.14), 0 0 20px -4px rgba(47,179,173,0.55);
}
.tk-input::placeholder { color: rgba(197,245,240,0.28); letter-spacing: 0.04em; }
.tk-field--paste .tk-input { padding-right: 52px; }

.tk-paste {
  position: absolute; right: 8px; top: 26px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(47,179,173,0.3); border-radius: 6px;
  color: #2FB3AD; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .15s;
}
.tk-paste svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7;
                stroke-linecap: round; stroke-linejoin: round; }
.tk-paste:hover     { border-color: #2FB3AD; background: rgba(47,179,173,0.1); transform: translateY(-1px); }
.tk-paste.is-copied { color: #5EF0C7; border-color: #5EF0C7; background: rgba(94,240,199,0.1); }

.tk-btn-row { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.tk-btn {
  flex: 1; padding: 14px 22px; border: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(90deg, #2FB3AD, #3ECEC7); color: #041012;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  box-shadow: 0 12px 26px -14px rgba(47,179,173,0.9), 0 0 24px -8px rgba(47,179,173,0.55);
  transition: transform .15s, filter .2s;
}
.tk-btn:hover    { transform: translateY(-1px); filter: brightness(1.08); }
.tk-btn:disabled { opacity: 0.5; cursor: wait; }
.tk-btn-ghost {
  padding: 12px 14px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid rgba(47,179,173,0.35); color: #B5DFDB;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: color .2s, border-color .2s, background .2s;
}
.tk-btn-ghost:hover { color: #E4FFFB; border-color: #2FB3AD; background: rgba(47,179,173,0.08); }

.tk-hint       { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
                 color: rgba(197,245,240,0.35); margin-top: 2px; }
.tk-hint b     { color: #2FB3AD; font-weight: 500; }



/* ==== Mode toggle ==== */
.tk-result { display: none; }
/* Yenilemede sorgu ekranı hiç boyanmasın (JS sonucu getirene kadar) */
html[data-tk-restore] .tk-authwin,
html[data-tk-restore] .tk-authcaption { display: none !important; }
.tk-shell[data-mode="result"] .tk-authwin,
.tk-shell[data-mode="result"] .tk-authcaption { display: none; }
.tk-shell[data-mode="result"] .tk-result { display: flex; flex-direction: column; gap: 20px; }
.tk-shell[data-mode="query"] .tk-topbar { display: none; }
/* Sorgulama ekranı dikey ortalansın */
.tk-shell[data-mode="query"] { min-height: calc(100vh - 80px); justify-content: center; }

/* ==== Sorgulama terminal penceresi (tek çerçeve) ==== */
.tk-authwin {
  max-width: 1180px; margin: 0 auto; width: 100%; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(9,18,20,0.72), rgba(4,10,12,0.9));
  border: 1px solid rgba(47,179,173,0.28);
  box-shadow: 0 34px 90px -44px rgba(0,0,0,0.95);
}
.tk-authwin__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 20px; border-bottom: 1px solid rgba(47,179,173,0.16);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
}
.tk-authwin__barl { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tk-dots { display: inline-flex; gap: 7px; flex: none; }
.tk-dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.tk-dots i:nth-child(1) { background: #E86B78; }
.tk-dots i:nth-child(2) { background: #E3A961; }
.tk-dots i:nth-child(3) { background: #5EF0C7; }
.tk-authwin__path { color: rgba(197,245,240,0.5); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-authwin__enc { display: inline-flex; align-items: center; gap: 8px; color: #5EF0C7; letter-spacing: 0.16em; flex: none; }
.tk-authwin__encdot { width: 7px; height: 7px; border-radius: 50%; background: #5EF0C7; box-shadow: 0 0 10px #5EF0C7; }

.tk-authwin__body { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: 540px; }
@media (max-width: 860px) { .tk-authwin__body { grid-template-columns: 1fr; min-height: 0; } }
.tk-authwin__console { padding: 30px 32px; border-right: 1px solid rgba(47,179,173,0.14); }
@media (max-width: 860px) { .tk-authwin__console { border-right: none; border-bottom: 1px solid rgba(47,179,173,0.14); } }
.tk-authwin__console .tk-term { background: transparent; border: none; padding: 0; min-height: 0;
  font-size: 14px; line-height: 1.95; color: #B5DFDB; }
.tk-authwin__form { padding: 30px 34px 34px; display: flex; flex-direction: column; min-width: 0; }
.tk-authwin__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; color: #2FB3AD; margin-bottom: 12px; }
.tk-authwin__title { font-family: var(--font-mono); font-size: 33px; font-weight: 600; color: #E4FFFB;
  margin: 0 0 8px; letter-spacing: 0.01em; text-shadow: 0 0 22px rgba(47,179,173,0.25); }
.tk-authwin__sub { font-family: var(--font-mono); font-size: 12.5px; color: rgba(197,245,240,0.5); margin: 0 0 26px; letter-spacing: 0.02em; }

.tk-authguide { margin-top: 22px; padding: 16px 18px; border: 1px solid rgba(255,173,105,0.22); border-radius: 10px; background: rgba(255,173,105,0.04); }
.tk-authguide__head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: #FFAD69; margin-bottom: 12px; }
.tk-authguide__item { position: relative; padding-left: 20px; font-family: var(--font-mono); font-size: 12px;
  line-height: 1.6; color: rgba(197,245,240,0.62); margin: 0 0 10px; word-break: break-word; }
.tk-authguide__item:last-child { margin-bottom: 0; }
.tk-authguide__item::before { content: "▸"; position: absolute; left: 2px; color: #FFAD69; }
.tk-authguide__item b { color: #5EF0C7; }

.tk-authwin__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-top: 1px solid rgba(47,179,173,0.16); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(197,245,240,0.38);
}
.tk-authcaption { text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(197,245,240,0.28); margin: 18px 0 0; }

/* ==== Sonuç üst şerit ==== */
.tk-resbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(11,22,24,0.92), rgba(4,10,12,0.96));
  border: 1px solid rgba(47,179,173,0.28);
}
.tk-resbar::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,179,173,0.9), transparent); }
.tk-resbar__l { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); flex-wrap: wrap; }
.tk-resbar__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border-radius: 999px;
  background: rgba(94,240,199,0.08); border: 1px solid rgba(94,240,199,0.28); color: #5EF0C7;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.tk-resbar__kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5EF0C7; box-shadow: 0 0 8px #5EF0C7; }
.tk-resbar__ref { font-size: 16px; color: rgba(197,245,240,0.6); }
.tk-resbar__ref b { color: #2FB3AD; }

/* ==== 2 kolonlu tek konteyner — grid: içerik satırı + footer satırı ==== */
.tk-2col {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0;
  grid-template-areas: "chat frame" "chatfoot framefoot";
  background: linear-gradient(160deg, rgba(11,22,24,0.75), rgba(4,10,12,0.9));
  border: 1px solid rgba(47,179,173,0.28); border-radius: 14px; overflow: hidden;
  box-shadow: 0 26px 70px -34px rgba(0,0,0,0.95);
}
.tk-2col > .tk-chatpanel       { grid-area: chat; }
.tk-2col > .tk-frame           { grid-area: frame; }
.tk-2col > .tk-chatpanel__foot { grid-area: chatfoot; }
.tk-2col > .tk-frame__foot     { grid-area: framefoot; }
@media (max-width: 960px) {
  .tk-2col { grid-template-columns: 1fr; grid-template-areas: "chat" "chatfoot" "frame" "framefoot"; }
}

/* Masaüstü: sonuç bloğu dikey ortalı (üst=alt boşluk); içerik satırı doldurur, footer satırı dipte */
@media (min-width: 961px) {
  .tk-shell[data-mode="result"] { min-height: calc(100vh - 80px); justify-content: center; }
  .tk-2col { height: clamp(480px, calc(100vh - 220px), 780px);
             grid-template-rows: minmax(0, 1fr) auto; }
  .tk-chatpanel, .tk-frame { min-height: 0; overflow: hidden; }
  .tk-chatpanel__stream { flex: 1; min-height: 0; max-height: none; }
  .tk-frame__scroll { flex: 1; min-height: 0; }
}

/* ==== SOL: chat ==== */
.tk-chatpanel { display: flex; flex-direction: column; border-right: 1px solid rgba(47,179,173,0.2); min-width: 0; }
@media (max-width: 960px) { .tk-chatpanel { border-right: none; border-bottom: 1px solid rgba(47,179,173,0.2); } }
.tk-chatpanel__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px dashed rgba(47,179,173,0.18); background: rgba(4,10,12,0.55); font-family: var(--font-mono); }
.tk-chatpanel__title { color: #E4FFFB; font-size: 13px; letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; }
.tk-chatpanel__dot { width: 8px; height: 8px; border-radius: 50%; background: #5EF0C7; box-shadow: 0 0 10px rgba(94,240,199,0.7);
  animation: dcnBlink 2s ease-in-out infinite; }
@keyframes dcnBlink { 50% { opacity: .25; } }
.tk-chatpanel__meta { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(197,245,240,0.45); }
.tk-chatpanel__meta > :first-child { color: #2FB3AD; }
.tk-chatpanel__stream { flex: 1; overflow-y: auto; padding: 20px 20px 12px; display: flex; flex-direction: column; gap: 16px;
  max-height: 660px; scrollbar-width: thin; scrollbar-color: rgba(47,179,173,0.4) transparent; }
.tk-chatpanel__stream::-webkit-scrollbar { width: 6px; }
.tk-chatpanel__stream::-webkit-scrollbar-thumb { background: rgba(47,179,173,0.35); border-radius: 3px; }
.tk-chatpanel__foot { padding: 12px 20px; border-top: 1px dashed rgba(47,179,173,0.22);
  border-right: 1px solid rgba(47,179,173,0.2); background: rgba(4,10,12,0.6); }
@media (max-width: 960px) { .tk-chatpanel__foot { border-right: none; } }
.tk-chatpanel__lock { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; color: rgba(197,245,240,0.4); }
.tk-chatpanel__lock svg { width: 12px; height: 12px; color: rgba(47,179,173,0.6); stroke: currentColor; fill: none; stroke-width: 2; }
.tk-chatpanel__empty { align-self: center; margin: auto 0; padding: 20px 24px;
  border: 1px dashed rgba(47,179,173,0.22); border-radius: 10px; font-family: var(--font-mono);
  font-size: 12px; color: rgba(197,245,240,0.5); text-align: center; line-height: 1.7; }

/* ==== Chat mesajları ==== */
.tk-msg { display: flex; flex-direction: column; gap: 6px; max-width: 88%; }
.tk-msg--admin    { align-self: flex-start; }
.tk-msg--user     { align-self: flex-end; align-items: flex-end; }
.tk-msg--system   { align-self: flex-start; max-width: 88%; align-items: flex-start; }
.tk-msg--status   { align-self: flex-start; max-width: 88%; align-items: flex-start; margin-left: 48px; }
.tk-msg--sysclose { align-self: center; max-width: 92%; align-items: center; }
@media (max-width: 560px) { .tk-msg--status { margin-left: 20px; } }
.tk-msg__meta { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 0 4px; color: rgba(197,245,240,0.45); }
.tk-msg__author { font-weight: 600; letter-spacing: 0.22em; }
.tk-msg--admin  .tk-msg__author { color: #2FB3AD; }
.tk-msg--user   .tk-msg__author { color: #FFAD69; }
.tk-msg--system .tk-msg__author { color: rgba(197,245,240,0.6); }
.tk-msg--status .tk-msg__author { color: #2FB3AD; }
.tk-msg--sysclose .tk-msg__author { color: rgba(197,245,240,0.6); }
.tk-msg__time { color: rgba(197,245,240,0.35); }
.tk-msg__bubble { padding: 12px 14px; background: rgba(6,14,16,0.75); border: 1px solid rgba(47,179,173,0.24);
  border-radius: 12px; font-family: var(--font-mono); font-size: 12.5px; color: #DDEEEB; line-height: 1.6;
  word-break: break-word; overflow-wrap: anywhere; white-space: pre-wrap; box-shadow: 0 10px 22px -18px rgba(0,0,0,0.9); }
.tk-msg--admin  .tk-msg__bubble { border-top-left-radius: 4px; border-left: 2px solid #2FB3AD; }
.tk-msg--user   .tk-msg__bubble { border-top-right-radius: 4px; border-right: 2px solid #FFAD69; background: rgba(255,173,105,0.06); }
.tk-msg--system .tk-msg__bubble,
.tk-msg--status .tk-msg__bubble,
.tk-msg--sysclose .tk-msg__bubble { background: rgba(6,14,16,0.55); border-style: dashed; border-color: rgba(47,179,173,0.22);
  color: rgba(197,245,240,0.7); text-align: left; font-size: 11.5px; letter-spacing: 0.04em; padding: 8px 14px; }
.tk-msg--sysclose .tk-msg__bubble { text-align: center; }
.tk-msg__bubble b { color: #2FB3AD; font-weight: 600; }
.tk-msg--user .tk-msg__bubble b { color: #FFAD69; }
.tk-msg__chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px;
  border: 1px solid currentColor; background: rgba(0,0,0,0.3); font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }

/* ==== SAĞ: frame paneli (tek parça) ==== */
.tk-frame { display: flex; flex-direction: column; padding: 0; overflow: hidden; max-height: 720px;
  background: linear-gradient(180deg, rgba(9,18,20,0.85), rgba(4,10,12,0.98)); min-width: 0; }
@media (max-width: 960px) { .tk-frame { max-height: none; } }
.tk-frame__scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 22px 26px 16px;
  scrollbar-width: thin; scrollbar-color: rgba(47,179,173,0.4) transparent; }
.tk-frame__scroll::-webkit-scrollbar { width: 6px; }
.tk-frame__scroll::-webkit-scrollbar-thumb { background: rgba(47,179,173,0.35); border-radius: 3px; }
.tk-frame__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tk-frame__headL { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; flex-wrap: wrap; }
.tk-frame__ref { color: #2FB3AD; text-shadow: 0 0 8px rgba(47,179,173,0.45); }
.tk-frame__dot { color: rgba(197,245,240,0.3); }
.tk-frame__status { padding: 2px 8px; border: 1px solid currentColor; border-radius: 3px; background: rgba(0,0,0,0.25); font-weight: 600; }
.tk-frame__status.is-acik, .tk-frame__status.is-cozuldu { color: #5EF0C7; }
.tk-frame__status.is-islemde { color: #2FB3AD; }
.tk-frame__status.is-beklemede, .tk-frame__status.is-arandi { color: #FFAD69; }
.tk-frame__status.is-kapatildi { color: rgba(197,245,240,0.6); }
.tk-frame__close { width: 32px; height: 32px; padding: 0; flex: none; background: transparent;
  border: 1px solid rgba(47,179,173,0.28); border-radius: 6px; color: rgba(197,245,240,0.6);
  font-size: 20px; line-height: 1; cursor: pointer; font-family: var(--font-mono);
  transition: color .2s, border-color .2s, background .2s; }
.tk-frame__close:hover { color: #E4FFFB; border-color: #2FB3AD; background: rgba(47,179,173,0.08); }
.tk-frame__name { font-family: var(--font-mono); color: #E4FFFB; font-size: 27px; font-weight: 600;
  letter-spacing: 0.02em; line-height: 1.15; text-shadow: 0 0 18px rgba(47,179,173,0.28); margin-bottom: 4px; word-break: break-word; }
.tk-frame__subj { font-family: var(--font-mono); color: rgba(197,245,240,0.65); font-size: 14px;
  letter-spacing: 0.02em; line-height: 1.4; margin-bottom: 20px; word-break: break-word; overflow-wrap: anywhere; }
.tk-frame__topcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
@media (max-width: 480px) { .tk-frame__topcards { grid-template-columns: 1fr; } }
.tk-frame__info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 6px 4px 8px; font-family: var(--font-mono); }
.tk-frame__info-cell { min-width: 0; }
.tk-frame__info-k { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(197,245,240,0.45); margin-bottom: 6px; }
.tk-frame__info-v { color: #E4FFFB; font-size: 13px; letter-spacing: 0.02em; word-break: break-word; overflow-wrap: anywhere;
  line-height: 1.4; display: flex; align-items: center; gap: 8px; }
.tk-frame__info-copy { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0;
  background: transparent; border: 1px solid rgba(47,179,173,0.28); border-radius: 5px; color: #2FB3AD; cursor: pointer;
  transition: background .2s, border-color .2s; }
.tk-frame__info-copy svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tk-frame__info-copy:hover { background: rgba(47,179,173,0.1); border-color: #2FB3AD; }
.tk-frame__info-copy.is-copied { color: #5EF0C7; border-color: #5EF0C7; }
.tk-frame__divider { height: 1px; margin: 20px 0 18px; background: linear-gradient(90deg, transparent, rgba(47,179,173,0.35), transparent); }
.tk-frame__divider--push { margin-top: auto; }   /* butonları + footer'ı alta yasla */
.tk-frame__section-title { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 10px; }
.tk-frame__section-title > :first-child { color: #2FB3AD; }
.tk-frame__section-meta { color: rgba(197,245,240,0.4); }
.tk-frame__desc { padding: 12px 14px; border-radius: 8px; background: rgba(6,14,16,0.55); border-left: 2px solid #2FB3AD;
  font-family: var(--font-mono); font-size: 13px; color: #DDEEEB; line-height: 1.65;
  word-break: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.tk-frame__actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; flex: none; padding: 4px 26px 14px; }
.tk-frame__action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px;
  border-radius: 8px; cursor: pointer; background: rgba(6,14,16,0.55); border: 1px solid rgba(47,179,173,0.28); color: #B5DFDB;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color .2s, border-color .2s, background .2s, transform .15s; }
.tk-frame__action svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tk-frame__action:hover { color: #E4FFFB; border-color: #2FB3AD; background: rgba(47,179,173,0.1); transform: translateY(-1px); }
.tk-frame__action--primary { background: linear-gradient(90deg, #2FB3AD, #3ECEC7); color: #041012; border-color: transparent; font-weight: 600; }
.tk-frame__action--primary:hover { color: #041012; background: linear-gradient(90deg, #3ECEC7, #5EF0C7); }
.tk-frame__foot { padding: 12px 26px; border-top: 1px dashed rgba(47,179,173,0.22);
  background: rgba(4,10,12,0.6); flex-wrap: wrap; gap: 10px;
  display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(197,245,240,0.4); }
.tk-frame__foot b { color: #2FB3AD; }

/* ==== Öncelik + Tür kartları (topcard) ==== */
.tk-topcard { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 18px;
  border-radius: 14px; background: linear-gradient(160deg, rgba(11,22,24,0.92), rgba(4,10,12,0.96));
  border: 1px solid rgba(47,179,173,0.28); font-family: var(--font-mono); }
.tk-topcard::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 12px currentColor; opacity: 0; }
.tk-topcard--prio { color: #2FB3AD; }
.tk-topcard--prio.is-kritik { color: #FF7A85; border-color: rgba(255,122,133,0.4);
  background: radial-gradient(140% 130% at 100% 0%, rgba(255,122,133,0.16), rgba(4,10,12,0.96) 55%); }
.tk-topcard--prio.is-yuksek { color: #FFAD69; border-color: rgba(255,173,105,0.4);
  background: radial-gradient(140% 130% at 100% 0%, rgba(255,173,105,0.14), rgba(4,10,12,0.96) 55%); }
.tk-topcard--prio.is-dusuk { color: #5EF0C7; }
.tk-topcard--prio::after { opacity: 1; animation: prioPulse 1.6s ease-in-out infinite; }
@keyframes prioPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .35; } }
.tk-topcard__icon { width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(0,0,0,0.35); border: 1px solid currentColor; color: currentColor; }
.tk-topcard__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tk-topcard__k { display: block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(197,245,240,0.5); }
.tk-topcard__v { display: block; color: currentColor; font-size: 22px; font-weight: 600; letter-spacing: 0.06em;
  text-shadow: 0 0 12px currentColor; text-transform: uppercase; line-height: 1.1; margin-top: 4px; word-break: break-word; }

/* ==== Onay modalı ==== */
.tk-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tk-modal[hidden] { display: none; }
.tk-modal__backdrop { position: absolute; inset: 0; background: rgba(2,6,8,0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tk-modal__box { position: relative; z-index: 1; width: min(440px, 100%); padding: 24px 26px; overflow: hidden;
  background: linear-gradient(160deg, rgba(11,22,24,0.98), rgba(4,10,12,0.99));
  border: 1px solid rgba(47,179,173,0.35); border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.95); animation: modalIn 0.2s ease; }
.tk-modal__box::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,179,173,0.9), transparent); }
.tk-modal__title { font-family: var(--font-mono); color: #E4FFFB; font-size: 16px; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 10px; }
.tk-modal__text { font-family: var(--font-mono); color: rgba(197,245,240,0.6); font-size: 13px; line-height: 1.6; margin: 0 0 22px; }
.tk-modal__actions { display: flex; gap: 10px; justify-content: flex-end; }
.tk-modal__actions .tk-btn { flex: none; padding: 12px 20px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ==== Custom hacker toast ==== */
.tk-toast-wrap {
  position: fixed; top: 24px; right: 24px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
  max-width: min(420px, calc(100vw - 48px));
}
.tk-toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px 12px 12px;
  background: linear-gradient(160deg, rgba(11,22,24,0.96), rgba(4,10,12,0.98));
  border: 1px solid rgba(47,179,173,0.35); border-left-width: 3px;
  border-radius: 8px;
  font-family: var(--font-mono); font-size: 12.5px; color: #E4FFFB;
  box-shadow: 0 12px 32px -18px rgba(0,0,0,0.9), 0 0 22px -10px rgba(47,179,173,0.55);
  opacity: 0; transform: translateX(24px);
  animation: toastIn 0.28s ease forwards;
}
.tk-toast.is-out       { animation: toastOut 0.28s ease forwards; }
.tk-toast--err         { border-left-color: #FF7A85; }
.tk-toast--warn        { border-left-color: #FFAD69; }
.tk-toast--ok          { border-left-color: #5EF0C7; }
.tk-toast__ico         { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.06em; }
.tk-toast--err  .tk-toast__ico { color: #FF7A85; }
.tk-toast--warn .tk-toast__ico { color: #FFAD69; }
.tk-toast--ok   .tk-toast__ico { color: #5EF0C7; }
.tk-toast__body        { flex: 1; min-width: 0; }
.tk-toast__title       { color: rgba(197,245,240,0.55); font-size: 9.5px; letter-spacing: 0.22em;
                         text-transform: uppercase; margin-bottom: 2px; }
.tk-toast__msg         { color: #E4FFFB; word-break: break-word; }
.tk-toast__close       { background: transparent; border: none; color: rgba(197,245,240,0.4);
                         cursor: pointer; padding: 0 4px; font-family: var(--font-mono); font-size: 14px; }
.tk-toast__close:hover { color: #E4FFFB; }
@keyframes toastIn  { to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

@media (max-width: 600px) {
  .tk-hero__title { font-size: 34px; }
  .tk-row { grid-template-columns: 96px 1fr; }
}
