/* 28 Kas 2026 (yobro, bilesen katmani): YoBro'den kalan saf siyah zeminler (#000, rgba(0,0,0,..)) sicak geceye
   (var(--background), rgba(13,11,16,..)), soguk komur ve notr gri yuzeyler ayni acikliktaki sicak tonlara cevrildi. */
/* yobro app · baaf design language (3 Sep 2026, Cihan: "yobro'yi baaf'a
   dönüştür"). Black ground, lime accent, rounded surfaces, one system typeface.
   Tokens, buttons and the auth modal come from styles.css. Layout rules
   (grids, breakpoints, the phone/desk split) are kept exactly as they were;
   only the look changed. Direction colours are exchange green/red (--gain /
   --danger), the brand accent is lime (--accent) and the two are never mixed:
   a number that went up is green, a button you press is lime. */

.ap-page { background: var(--background); }
.ap-boot {
  padding: 80px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.ap { display: flex; flex-direction: column; min-height: 100vh; }
/* 24 Eyl (Cihan: "eski mobili silelim"): masaustu surumunun dar ekran duzeni
   kalkti; telefon ve dar dokunmatik ekran telefon surumunu alir (app/src/m).
   Daraltilmis bilgisayar penceresinde duzen 901 pikselin altina ezilmez,
   sayfa yana kayar. */
.ap { min-width: 901px; }

/* ---------- top bar ----------
   baaf's header: 64px, black, one hairline under it. Brand left, sections in
   the middle, the lime Connect pill right. No sidebar and no bottom bar
   (Cihan, 3 Sep): the header carries the whole navigation on every width. */

.ap-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 24px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
/* 23 Eyl: uygulama cubugu da ayni - iOS Safari'de ustundeki seritte kayan icerik gorunmez. */
.ap-top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--background); pointer-events: none; }
/* wide: three columns so the menu sits at the viewport's centre whatever the
   width of the wallet chip (24 Aug) */
/* desk (3 Eyl, baaf): the sections live in the left rail, so the bar is
   the search box on the left and the wallet on the right */
.ap-top { display: flex; gap: 12px; padding: 0 24px; }
.ap-wallet { margin-left: auto; }
.ap-wallet { position: relative; display: flex; align-items: center; gap: 8px; }
/* 3 Sep (Cihan): the profile door wears no frame - just the avatar (and the
   name on a desk), a touch larger */
.ap-profilechip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 4px;
  border: none; border-radius: var(--r-xl); background: none;
  color: var(--foreground); font-family: var(--sans); font-size: 14px; font-weight: 600;
  transition: opacity 0.2s ease;
}
.ap-profilechip:hover { background: none; border: none; color: var(--foreground); opacity: 0.85; }
.ap-chipdot { position: relative; display: inline-flex; width: 8px; height: 8px; flex: 0 0 auto; }
.ap-chipdot::before {
  content: ""; position: absolute; inset: 0; border-radius: 10px; background: var(--gain);
  opacity: 0.5; animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.ap-chipdot::after { content: ""; position: relative; width: 8px; height: 8px; border-radius: 10px; background: var(--gain); }
/* baaf's main: px-6 py-6 */
.ap-body { padding: 24px; flex: 1 1 auto; }
.ap-site { flex: 1 1 auto; }

/* footer on the app pages (baaf: © mono left, X in the middle, links right) */
.ap-foot {
  margin-top: 24px; border-top: 1px solid var(--border);
  padding: 22px 96px 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--muted);
}
.ap-foot .ap-footcopy { font-family: var(--mono); }
.ap-footlinks { display: flex; align-items: center; gap: 24px; }
.ap-footlinks a { color: var(--muted); transition: color 0.2s ease; }
.ap-footlinks a:hover { color: var(--foreground); }
.ap-footx { display: inline-flex; color: var(--muted); }

/* ---------- layout helpers ---------- */
.ap-stack { display: grid; gap: 16px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.ap-stack > * { min-width: 0; }
@media (max-width: 1080px) { .ap-split, .ap-split.wide-left, .ap-split.wide-right { grid-template-columns: minmax(0, 1fr); } }

/* ---------- panel ----------
   baaf's card: rounded-2xl, hairline border, surface fill. padding:0 undoes
   the landing page's generic <section> rule (a panel is a <section>). */
.ap-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}
.ap-panelhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.ap-panelhead h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

.ap-panelhead:has(.ap-titlerow) h2 { flex: 1 1 auto; }

.ap-closeall.armed { background: var(--danger); border-color: var(--danger); color: #000; }
.ap-panelaside { font-size: 12px; color: var(--muted); min-width: 0; max-width: 100%; }
.ap-panelbody { padding: 18px; }
/* search (and the view switch) in the panel header, right-aligned */
.ap-panelhead:has(.ap-headsearch), .ap-panelhead:has(.ap-headtools) { align-items: center; }
.ap-panelaside:has(.ap-headsearch), .ap-panelaside:has(.ap-headtools) { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.ap-panelhead h2:has(.pu-nav){ flex: 1 1 auto; min-width: 0; font-weight: 500; }
.ap-panelhead .pu-nav { padding-top: 4px; }
.ap-headsearch .ap-search { margin-left: 0; min-width: 0; width: 240px; flex: 0 1 240px; padding: 7px 12px; }

/* ---------- stats: baaf's stat cards ---------- */
.ap-statvalue.accent { color: var(--accent); }
.ap-stats.compact .ap-stat { padding: 12px 16px; }
.ap-stats.compact .ap-statvalue { margin-top: 4px; font-size: 18px; }
.ap-stats.compact .ap-statsub { font-size: 11px; }

/* ---------- empty, gate, notes ---------- */
.ap-empty { padding: 40px 18px; text-align: center; border: 1px dashed var(--border); border-radius: var(--r-2xl); }
.ap-panel.slim .ap-empty { padding: 18px 16px; }
.ap-panel.slim .ap-emptybody { margin-top: 3px; }
.ap-emptytitle { font-weight: 700; font-size: 15px; }
.ap-emptybody { margin-top: 6px; font-size: 13.5px; color: var(--muted); max-width: 520px; margin-inline: auto; line-height: 1.6; }
/* the connect door: baaf's dashed card with the lime pill in the middle */
.ap-gate { padding: 40px 18px; text-align: center; border: 1px dashed var(--border); border-radius: var(--r-2xl); }
.ap-gatetitle { font-weight: 700; font-size: 17px; }
.ap-gatebody { margin: 6px auto 18px; font-size: 14px; color: var(--muted); max-width: 480px; line-height: 1.6; }
.ap-note { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.ap-hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.ap-warn { font-size: 12.5px; color: var(--danger); line-height: 1.5; margin-top: 6px; }

.ap-statusbar {
  margin: 0; padding: 8px 16px; text-align: center;
  border-bottom: 1px solid var(--border); background: var(--surface);
}

/* ---------- toolbar, tabs, search ---------- */
.ap-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.ap-tabs.small .ap-tab { padding: 4px 0; font-size: 13px; }
/* baaf's .input: rounded-[10px], hairline, black fill, lime focus ring */
.ap-search {
  margin-left: auto; min-width: 260px; flex: 0 1 340px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--background);
  padding: 9px 14px; font-family: var(--sans); font-size: 14px; line-height: 1.4; color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ap-search::placeholder { color: var(--muted-2); }
.ap-search:hover { border-color: var(--border-strong); }
.ap-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* spot ticket: the fee line under the amount (7 Sep) */
.ap-feerow { margin: 6px 0 0; }
/* a page that threw inside its own boundary; the rail and wallet stay (7 Sep) */
.ap-pageerr { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 0; }

/* ---------- table (baaf ChainTable) ----------
   The table runs edge to edge inside its rounded panel; the header row is a
   small-caps line, rows are separated by hairlines and light up on hover. */
.ap-tablewrap { overflow-x: auto; }
.ap-panelbody > .ap-tablewrap { margin: -18px; }
.ap-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ap-table th {
  text-align: left; padding: 12px 14px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2);
  border-bottom: 1px solid var(--border); white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}
.ap-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ap-table tbody tr:last-child td { border-bottom: none; }
.ap-table tbody tr { cursor: default; transition: background 0.15s ease; }
.ap-table tbody tr:hover { background: var(--surface-2); }
.ap-table tbody tr.on { background: var(--surface-2); }
.ap-table td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-table td.num.up { color: var(--gain); }
.ap-table td.num.down { color: var(--danger); }
.ap-tsym { font-family: var(--sans); font-weight: 700; font-size: 15px; display: block; }
.ap-tname { font-size: 12px; color: var(--muted); display: block; }

/* ---------- forms ---------- */
.ap-label {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted-2); display: block; margin-bottom: 4px;
}
.ap-input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2);
  padding: 10px 14px; font-family: var(--sans); font-size: 14px; color: var(--foreground);
  transition: border-color 0.2s ease;
}
.ap-input::placeholder { color: var(--muted-2); }
.ap-input:focus { outline: none; border-color: var(--accent); }
.ap-inputrow { display: flex; align-items: stretch; gap: 8px; }
.ap-inputrow .ap-input { flex: 1 1 0; min-width: 0; }
.ap-mini {
  border: none; background: none; cursor: pointer; border-radius: 10px;
  padding: 4px 8px; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease;
}
.ap-mini:hover { color: var(--foreground); }
.ap-choice {
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer;
  padding: 6px 12px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ap-choice.on { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.ap-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ap-check input { margin-top: 3px; accent-color: var(--accent); }
.ap-select {
  border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2);
  padding: 8px 12px; font-family: var(--sans); font-size: 13px; color: var(--foreground);
}
.ap-range { width: 100%; accent-color: var(--accent); }

/* ---------- trade ticket (baaf TradePanel) ----------
   Buy / Sell as full colour pills, one big centred number, one-tap presets,
   a receive box, the wide CTA in the side's colour with black text. */
.ap-side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* 3 Kas (Cihan: "buy ve sell butonlarinin kenarlari cok yuvarlak"): 999px -> 16 px; ayni gun "hala kivrimli, biraz daha azaltalim" -> 12 px. */
.ap-sidebtn {
  border: none; border-radius: var(--r-xl); background: none; cursor: pointer;
  padding: 10px; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
/* Secili olmayan yon ayni kare, ici bos (3 Kas, Cihan: "digeri de ayni kareden olsun ama bos olsun", "Sell'e basilabilecegi
   anlasilmiyor"): ince cerceve; uzerine gelince cerceve ve yazi belirginlesir. */
.ap-sidebtn:not(.on) { box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--foreground); }
.ap-sidebtn:not(.on):hover { box-shadow: inset 0 0 0 1px var(--muted-3); background: var(--surface-2); }
.ap-sidebtn:hover { color: var(--foreground); }
.ap-sidebtn.buy.on { background: var(--accent); color: #000; }
.ap-sidebtn.sell.on { background: var(--danger); color: #000; }
.ap-amount { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 8px; }
.ap-amountinput {
  flex: 1 1 0; width: 0; min-width: 0; border: none; background: none; outline: none;
  font-family: var(--sans); font-size: 44px; font-weight: 600; color: var(--foreground);
  font-variant-numeric: tabular-nums; text-align: center; letter-spacing: -0.02em; /* 4 Eyl gece (Cihan): tutar ortali */
}
.ap-amountinput::placeholder { color: var(--muted-2); }
.ap-unit {
  flex: 0 0 auto; padding: 4px 8px; border-radius: var(--r-lg); background: var(--surface-2);
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted);
}
/* TUTAR (3 Kas, Cihan: "0 tam ortada, USD tam altinda ... harikalar yarat"): ortada tek sayi ($ onde ya da sembol arkada),
   altinda karsi birim cipi; basinca oklar doner, sayi asagidan suzulur. Girdi genisligi yaziya gore (ch), satir ortali. */
/* contain: uzun sayi bileti (ve sag sutunu) genisletmez; yazi kutunun olculen genisligine sigar. */
.ap-amount.ap-amt2 { flex-direction: column; gap: 12px; padding: 24px 8px 18px; min-width: 0; contain: inline-size; }
.ap-amtline {
  display: flex; align-items: center; justify-content: center; min-width: 0; cursor: text; white-space: nowrap;
  font-family: var(--sans); font-size: 44px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--foreground);
  animation: ap-birimgel 0.24s var(--ease-out, ease-out);
}
.ap-amtkutu { display: inline-grid; flex: 0 0 auto; }
.ap-amtkutu::after { content: attr(data-v) " "; visibility: hidden; white-space: pre; grid-area: 1 / 1; font: inherit; letter-spacing: inherit; }
.ap-amt2 .ap-amountinput { grid-area: 1 / 1; width: 100%; min-width: 0; font: inherit; letter-spacing: inherit; line-height: inherit; padding: 0; text-align: left; }
.ap-amtpre { margin-right: -0.04em; }
.ap-amtpre.bos { color: var(--muted-2); }
.ap-amtsuf {
  flex: 0 1 auto; min-width: 0; max-width: 120px; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: max(14px, 0.38em); font-weight: 600; letter-spacing: 0; color: var(--muted);
}
.ap-birim {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0; cursor: pointer;
  padding: 6px 12px 6px 9px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2);
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ap-birim span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-birim b { font-weight: 600; color: var(--foreground); }
.ap-birim:hover { color: var(--foreground); border-color: var(--muted-3); background: var(--surface-3); }
.ap-birim:active { transform: scale(0.97); }
.ap-birim svg { flex: 0 0 auto; color: var(--accent); transition: transform 0.35s var(--spring, ease); }
.ap-birim.ters svg { transform: rotate(180deg); }
@keyframes ap-birimgel { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ap-amtline { animation: none; } .ap-birim svg { transition: none; } }
.ap-preset {
  border: none; border-radius: var(--r-xl); background: none; cursor: pointer;
  padding: 8px; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--foreground);
  transition: background 0.2s ease, color 0.2s ease;
}
.ap-preset:hover { background: var(--surface-2); }
.ap-preset.on { background: var(--surface-2); color: var(--accent); font-weight: 600; }
.ap-preset i {
  font-style: normal; font-size: 9px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-2);
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 1px 5px; margin-left: 7px;
  white-space: nowrap; vertical-align: 1px;
}
/* Agent decision flow: date on top, the sentence under it */
.ag-flow { margin-top: 12px; display: grid; }
.ag-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.ag-item:last-child { border-bottom: none; padding-bottom: 0; }
.ag-ts { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }
.ag-ts i { font-style: normal; color: var(--danger); }
.ag-text { margin-top: 3px; font-size: 13.5px; line-height: 1.55; }
.ag-more {
  border: none; background: none; cursor: pointer;
  padding: 10px 0 0; text-align: left;
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease;
}
.ag-more:hover { color: var(--accent); }

/* ── Profile identity row ── */
.pf-label { font-size: 10.5px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em; }
.pf-actions .auth-link { display: inline-block; width: auto; margin-top: 0; padding: 0; }

/* history card rows */
.ph-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.ph-item:last-child { border-bottom: none; }
.ph-amt.pos { color: var(--gain); }
.ph-amt.neg { color: var(--danger); }
.ph-amt.mut { color: var(--muted); }

/* ── Platform activity: icon | title + who + when | amount ── */
.act-list { display: grid; }
.act-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.act-row:last-child { border-bottom: none; }
button.act-row-button {
  width: 100%; appearance: none; background: transparent; color: inherit;
  border-top: 0; border-inline: 0; border-radius: 0; text-align: left; font: inherit; cursor: pointer;
}
button.act-row-button:hover { background: #ffffff04; }
button.act-row-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.act-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg); color: var(--muted); background: var(--surface-2);
}
.act-icon.credit { color: var(--accent); background: var(--accent-soft); }
.act-icon.withdraw { color: var(--foreground); }
.act-icon.perps, .act-icon.spot, .act-icon.pump { color: var(--foreground); }
.act-main { display: grid; gap: 3px; min-width: 0; }
.act-title { font-size: 14px; font-weight: 600; color: var(--foreground); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.act-who {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); background: var(--surface-2); border-radius: var(--r-md); padding: 2px 6px;
}
.act-who.agent { color: var(--accent); background: var(--accent-soft); }
.act-sub { font-family: var(--mono); font-size: 11px; color: var(--muted-2); overflow-wrap: anywhere; }
.act-sub a { border: none; padding: 0; font-size: 11px; }
.act-amt { font-family: var(--mono); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.act-amt.pos { color: var(--gain); }
.act-amt.neg { color: var(--danger); }
.act-amt.mut { color: var(--muted); }

/* ── Rank board: summary cards, podium, real columns ── */
.lb-sumcell .ap-label { margin: 0; }
.lb-sumcell b.pos, .lb-cardnet.pos { color: var(--gain); }
.lb-sumcell b.neg, .lb-cardnet.neg { color: var(--danger); }
.lb-cardnet.zero { color: var(--muted); }
.lb-summe .auth-link { justify-self: start; text-align: left; }

.lb-podium.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb-podium.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lb-podium.n1 { grid-template-columns: minmax(0, 1fr); }
.lb-card.me { box-shadow: inset 0 0 0 1px var(--accent); }

.lb-you { color: var(--accent); font-size: 10px; font-weight: 700; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.08em; background: var(--accent-soft); border-radius: var(--r-md); padding: 1px 5px; }

.ap-panelaside .ap-tabs.small .ap-tab { padding: 4px 0; }

/* Profile identity: face + name + address; the editor opens under it. */
.pf-face {
  flex: 0 0 auto; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-2xl); font-size: 28px; line-height: 1;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  padding: 0; color: inherit; font-family: inherit;
  transition: border-color 0.2s ease;
}
.pf-face:disabled { cursor: default; }
.pf-face.clickable { cursor: pointer; }
.pf-face.clickable:hover, .pf-face.on { border-color: var(--accent); }
.pf-name {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  background: none; border: none; padding: 0; text-align: left; color: inherit; font-family: inherit;
  cursor: default; transition: color 0.2s ease;
}
.pf-name.clickable { cursor: pointer; }
.pf-name.clickable:hover { color: var(--accent); }
/* balance strip: three equal cells with hairlines between them */
.pf-balqty.mut { color: var(--muted); }

.pf-noname { color: var(--muted); font-weight: 400; font-size: 14px; }
.pf-edit { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.pf-field { display: grid; gap: 6px; }
.pf-fieldlabel { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); }
.pf-field .ap-input { max-width: 320px; }
.pf-hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
/* 23 Eyl (Cihan): emoji yerine agent karakterleri; yuvarlak kareler ızgarası,
   telefonda da satıra sığar. Seçili olanın çevresinde lime halka. */
.pf-avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; max-width: 464px; }
.pf-avatarbtn {
  aspect-ratio: 1; width: 100%; border: 2px solid transparent; border-radius: 10px; background: var(--surface-2); cursor: pointer;
  display: block; padding: 2px; transition: border-color 0.2s ease, transform 0.15s ease;
}
.pf-avatarbtn img { display: block; width: 100%; height: 100%; border-radius: 10px; }
.pf-avatarbtn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.pf-avatarbtn.on { border-color: var(--accent); }
.pf-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.pf-check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.pf-err { font-size: 13px; color: var(--danger); }
.pf-editactions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-editactions .auth-link { display: inline-block; width: auto; margin-top: 0; padding: 0; }

/* top bar chip: face + name */
.ap-chipface { font-size: 24px; line-height: 1; }
.ap-chipname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-ticketrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 4px; }
/* pay source rows */
.ap-payopt:hover, .ap-payopt.on { color: var(--foreground); }
.ap-payopt.on b { color: var(--foreground); }
.ap-payopt.on i { background: var(--accent); border-color: var(--accent); }
.tm-scrpay .ap-payopt.on { border-color: var(--accent); }
/* slippage popover: baaf's rounded card */
.ap-slip { border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); padding: 14px; display: grid; gap: 10px; }
.ap-slipinput { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ap-slipinput .ap-input { width: 72px; text-align: right; font-family: var(--mono); padding: 6px 10px; }
/* the "You receive" box */
.ap-info { display: grid; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; font-size: 13px; }
.ap-info > div { display: flex; justify-content: space-between; gap: 10px; }
.ap-info dt { color: var(--muted); }
.ap-info dd { font-family: var(--mono); }

/* ---------- market bar, chart, book ---------- */
.ap-marketbar .ap-label { margin: 0; }
.ap-chart.tall { min-height: 340px; }

/* ---------- payouts ---------- */

/* the rewards panel is reused from the landing page; drop its outer border here
   because the app panel already draws one */
.ap-panelbody > .rw-panel { border: none; border-radius: 0; background: none; }
.ap-panelbody > .rw-panel > .rw-head { padding-left: 0; padding-right: 0; padding-top: 0; }
.ap-panelbody > .rw-panel > .rw-grid { padding-left: 0; padding-right: 0; }
.ap-panelbody > .rw-panel > .rw-note { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.ap-panelbody > .rw-panel > .rw-positions { padding-left: 0; padding-right: 0; }
.ap-panelbody > .rw-connect { border: 1px dashed var(--border); }

/* ---------- transaction toast: baaf's rounded card with a deep shadow ---------- */
.ap-toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: 460px;
  border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface);
  padding: 13px 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.ap-toast.success { border-left: 4px solid var(--gain); }
.ap-toast.error { border-left: 4px solid var(--danger); }
.ap-toasttext { font-size: 13.5px; line-height: 1.5; flex: 1 1 auto; }
.ap-toastlink { font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.ap-toastlink:hover { text-decoration: underline; }
.ap-toastx { background: none; border: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--muted); border-radius: 10px; width: 32px; height: 32px; }
.ap-toastx:hover { color: var(--foreground); background: var(--surface-2); }
/* YENI SURUM KARTI (14 Eki, Cihan: Fomo'daki "New version available · Reload"):
   acik sekme yeni yayini fark edince altta ortada (YeniSurum.tsx). */
.ap-yv {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 24px; width: fit-content; margin-inline: auto;
  display: flex; align-items: center; gap: 14px; padding: 9px 9px 9px 20px;
  border-radius: 10px; background: rgba(28, 30, 34, 0.97);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 50px -12px rgba(0, 0, 0, 0.75);
  animation: ap-yv-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.ap-yv-text { font: 600 15px/1 var(--sans); color: var(--foreground); white-space: nowrap; }
.ap-yv-go { height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--accent); color: #000; font: 700 14px/1 var(--sans); cursor: pointer; }
.ap-yv-go:hover { filter: brightness(1.08); }
.ap-yv-x { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.ap-yv-x:hover { color: var(--foreground); background: var(--surface-2); }
@keyframes ap-yv-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ap-yv { animation-duration: 0.01s; } }
.ap-txlink {
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 3px 7px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.ap-txlink:hover { border-color: rgba(255, 106, 0, 0.5); color: var(--accent); }

/* ---------- launch feed ---------- */
.ap-slip.danger { border-color: rgba(255, 77, 109, 0.5); }

/* ---------- create: success state ---------- */

.ap-info dd.danger { color: var(--danger); }
.ap-marketstats .up { color: var(--gain); }
.ap-marketstats .down { color: var(--danger); }

/* ---------- perps: market bar, book ---------- */
.ap-marketpick .up { color: var(--gain); font-family: var(--mono); font-size: 13px; }
.ap-marketpick .down { color: var(--danger); font-family: var(--mono); font-size: 13px; }
.ap-bookrow.ask span:first-child { color: var(--danger); }
.ap-bookrow.bid span:first-child { color: var(--gain); }

/* ---------- chart ---------- */
.ap-poside {
  display: inline-block; margin-right: 8px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ap-poside.long { color: var(--gain); }
.ap-poside.short { color: var(--danger); }

/* ---------- position cards ---------- */

.ap-postable th.num .ap-closeall { padding: 0 9px; }

/* ---------- visibility helpers ---------- */
.only-desk { display: none !important; }
.only-desk { display: block !important; }

/* ---------- back chevron (detail pages) ---------- */

.tm-back {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-left: -10px; border-radius: 10px;
  background: none; border: none; cursor: pointer; color: var(--foreground);
  transition: opacity 0.2s ease;
}
.tm-back:active { opacity: 0.6; }

.up { color: var(--gain); }
.down { color: var(--danger); }

/* ---------- desktop stat strip ----------
   baaf's token identity card: the market, the big mono number, then facts. */
.tm-strip {
  display: flex; align-items: center; gap: 22px;
  border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface);
  padding: 14px 20px; overflow-x: auto;
}
.tm-ident {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; padding: 6px 10px 6px 6px; text-align: left;
  border-radius: var(--r-xl); color: inherit; font: inherit;
  transition: background 0.2s ease;
}
@media (max-width: 1200px) {
  .perp-stat-strip { flex-wrap: wrap; gap: 14px 18px; overflow: visible; }
  .perp-stat-strip .tm-cell { padding-left: 14px; }
}
.tm-ident:disabled { cursor: default; }
.tm-ident:hover:not(:disabled) { background: var(--surface-2); }
.tm-identname {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 16px; font-weight: 700; white-space: nowrap;
}
.tm-identsub { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tm-badge {
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); padding: 1px 6px;
  font-family: var(--mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); font-weight: 600;
}
.tm-caret { font-size: 9px; color: var(--muted-2); transition: transform 0.15s ease; display: inline-flex; }
.tm-caret.open { transform: rotate(180deg); }
.tm-big {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 30px; font-weight: 700;
  line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
  border-radius: var(--r-md); padding: 2px 4px; margin: -2px -4px;
}
.tm-bigchg { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.tm-cell { flex: 0 0 auto; border-left: 1px solid var(--border); padding-left: 22px; }
.tm-celllabel {
  display: block; white-space: nowrap;
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted-2); font-weight: 500;
}
.tm-cellvalue {
  display: block; margin-top: 5px; white-space: nowrap;
  font-family: var(--mono); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.tm-cellchips .tm-cellvalue { font-weight: 400; }

/* ---------- market picker dropdown (desktop) ---------- */
.tm-scrim {
  position: fixed; inset: 0; z-index: 72;
  background: rgba(13, 11, 16, 0.4);
  border: none; cursor: default;
  animation: overlay-in 0.16s ease;
}
.tm-pick {
  position: fixed; z-index: 73;
  width: 340px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: fade-up 0.12s ease both;
}
.tm-picklist { max-height: 340px; overflow-y: auto; }
.tm-pickrow {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 14px; background: none; border: none;
  border-bottom: 1px solid var(--border); cursor: pointer; text-align: left;
  color: var(--foreground); font: inherit;
  transition: background 0.15s ease;
}
.tm-pickrow:last-child { border-bottom: none; }
.tm-pickrow:hover { background: var(--surface-2); }
.tm-pickname { flex: 1 1 auto; min-width: 0; }
.tm-picksym { display: block; font-family: var(--sans); font-size: 14px; font-weight: 700; }
.tm-picksub {
  display: block; font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tm-pickpx { flex: 0 0 auto; text-align: right; font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-pickchg { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; }

/* ---------- terminal layout ---------- */
.tm-term { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.tm-termmain { min-width: 0; display: grid; gap: 16px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.tm-termmain > * { min-width: 0; }
.tm-term { grid-template-columns: minmax(0, 1fr) 332px; align-items: start; }
.tm-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 16px;
  height: var(--termh, 470px);
}
.tm-rowcell { position: relative; min-width: 0; min-height: 0; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); overflow: hidden; }
/* 19 Eyl (Cihan: "sag taraf scroll olmuyor, sayfayla birlikte kaysin"): ray
   artik yapisik degil; About + pozisyonlar uzadikca sayfayla iner. */
.tm-aside { position: static; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.tm-grip {
  display: flex; width: 100%; height: 18px; cursor: ns-resize;
  align-items: center; justify-content: center; background: none; border: none;
  touch-action: none;
}
.tm-grip i { display: block; width: 44px; height: 4px; border-radius: 10px; background: var(--surface-3); transition: background 0.2s ease; }
.tm-grip:hover i { background: var(--accent); }
/* the grip on every width: a small circle with up/down arrows, centred on
   its line (3 Sep, Cihan). The grip itself takes no room; the dot floats up
   onto the frame's bottom hairline (desk) or onto the line between the time
   axis and the 1s/1m row (phone). */
.tm-grip { height: 0; margin: 0; padding: 0; position: relative; z-index: 6; overflow: visible; justify-content: center; }
.tm-grip i { display: none; }
.tm-gripdot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 10px; pointer-events: auto;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted);
  transform: translateY(var(--gripy, calc(-50% - 1px)));
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tm-gripdot svg { width: 10px; height: 10px; }
.tm-grip:hover .tm-gripdot, .tm-grip:active .tm-gripdot { color: var(--accent); border-color: var(--accent); }

/* ---------- order book ---------- */
.tm-book {
  display: flex; flex-direction: column; height: 100%; min-height: 0;
  font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums;
}
.tm-booktabs {
  display: flex; align-items: center; gap: 2px;
  padding: 6px 8px; border-bottom: 1px solid var(--border);
}
.tm-booktab {
  background: none; border: none; cursor: pointer; padding: 5px 9px; border-radius: var(--r-lg);
  font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}

.pt-levfixed { margin-bottom: 8px; }
.tm-booktab.on { color: var(--foreground); background: var(--surface-2); }
.tm-group {
  margin-left: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2);
  font-family: var(--mono); font-size: 10.5px; color: var(--muted); padding: 3px 6px;
}
.tm-bookhead,
.tm-brow {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px;
  padding: 2px 10px;
}
.tm-bookhead {
  padding-top: 6px; padding-bottom: 6px;
  font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2);
}
.tm-bookside { display: flex; flex-direction: column; }
.tm-pressure { margin-top: auto; }
.tm-bookside { flex: 1 1 0; min-height: 0; overflow: hidden; }
.tm-bookside.asks { justify-content: flex-end; }
.tm-brow {
  position: relative; width: 100%; background: none; border: none;
  cursor: pointer; text-align: left; font: inherit; line-height: 1.75; color: inherit;
}
.tm-brow:hover { background: var(--surface-2); }
.tm-brow.empty { cursor: default; opacity: 0.35; }
.tm-depth { position: absolute; top: 0; bottom: 0; right: 0; }
.tm-brow.ask .tm-depth { background: var(--danger-soft); }
.tm-brow.bid .tm-depth { background: var(--gain-soft); }
.tm-bpx { position: relative; }
.tm-brow.ask .tm-bpx { color: var(--danger); }
.tm-brow.bid .tm-bpx { color: var(--gain); }
.tm-bsz, .tm-btot { position: relative; text-align: right; }
.tm-btot { color: var(--muted-2); }
.tm-blast {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: nowrap;
  padding: 7px 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.tm-blastpx { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.tm-bspread { font-size: 10px; color: var(--muted-2); white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tm-pressure {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-top: 1px solid var(--border); font-size: 10px; font-weight: 600;
}
.tm-pbar { flex: 1 1 auto; min-width: 0; height: 4px; background: var(--danger); border-radius: 10px; overflow: hidden; }
.tm-pbar i { display: block; height: 100%; background: var(--gain); }
.tm-bookempty { padding: 28px 12px; text-align: center; font-family: var(--sans); font-size: 12.5px; color: var(--muted); }

/* ---------- stat tiles: baaf's Tile - label on top, value below, centred ---------- */
.tm-tile { padding: 10px 6px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); min-width: 0; text-align: center; }
.tm-tilelabel { display: block; font-size: 11px; color: var(--muted); }
.tm-tilevalue {
  display: block; margin-top: 4px;
  font-family: var(--mono); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* ---------- segmented control: baaf's pill tabs ----------
   a bordered rounded-2xl rail, each option a rounded-xl pill, the chosen one
   lime on lime-soft. */
.tm-seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); }
.tm-seg.wide { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.tm-segbtn {
  background: none; border: none; cursor: pointer;
  padding: 0 12px; min-height: 32px; border-radius: var(--r-xl);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--muted);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.tm-segbtn:hover { color: var(--foreground); }
.tm-segbtn.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tm-seg.small .tm-segbtn { padding: 0 10px; min-height: 28px; font-size: 12px; }
.tm-seg.scroll { max-width: 100%; overflow-x: auto; }
.tm-seg.scroll .tm-segbtn { white-space: nowrap; flex: 0 0 auto; }

/* The clock beside a funding rate. */
.tm-countdown { margin-left: 7px; color: var(--muted-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.tm-tilevalue .tm-countdown { display: block; margin: 3px 0 0; font-size: 11px; }

/* ---------- board toolbar ---------- */
.tm-toolbar .ap-search { min-width: 0; }

/* ---------- board rows (baaf's MobileTokenRow / table rows) ---------- */

.tm-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  width: 100%; padding: 12px 16px; min-height: 60px;
  background: none; border: none; border-bottom: 1px solid var(--border);
  cursor: pointer; text-align: left;
  color: var(--foreground); font: inherit;
  transition: background 0.15s ease;
}
.tm-card:last-child { border-bottom: none; }
.tm-card:hover, .tm-card.on { background: var(--surface-2); }
.tm-card:active { background: var(--surface-2); }
.tm-cardsym { display: block; font-family: var(--sans); font-size: 15px; font-weight: 700; }
/* 17 Eyl (Cihan): perps satirinda kaldirac cipi - tickerin saginda, ince
   cerceve, lime yazi, okunakli mono. */
.tm-levchip {
  display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 1px 6px;
  border: 1px solid rgba(255, 106, 0, 0.35); border-radius: var(--r-md);
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: rgba(255, 106, 0, 0.06); line-height: 16px;
}
.tm-cardname {
  display: block; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tm-cardpx { font-family: var(--mono); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- token identity (desk hero) ---------- */
.tm-hero {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); padding: 20px;
}
.tm-logo {
  flex: 0 0 auto; width: 64px; height: 64px; object-fit: cover;
  border: none; border-radius: 10px; background: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 20px; font-weight: 700; color: var(--accent);
}
.tm-logo.sm { width: 40px; height: 40px; font-size: 14px; border-radius: 10px; }
.tm-logo.xs { width: 30px; height: 30px; font-size: 11px; border-radius: 10px; }
/* 19 Eyl (Cihan): logonun arkasındaki çerçeve kalktı; harf karosu yüzeyini korur. */
span.tm-logo { background: var(--surface-2); }
/* Perps başlığındaki logo web'de daha iri (19 Eyl). */
.tm-ident .tm-coin, .tm-ident .tm-coin.lg { width: 48px; height: 48px; } .tm-ident { gap: 14px; }
.tm-heroname { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.tm-herosym { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); }
.tm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); cursor: pointer;
  padding: 5px 10px; min-height: 30px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tm-chip:hover { border-color: rgba(255, 106, 0, 0.5); color: var(--accent); }
.tm-chip.static { cursor: default; }
.tm-chip.static:hover { border-color: var(--border); color: var(--muted); }
.tm-metrictoggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: 14px; color: var(--muted);
  transition: color 0.2s ease;
}
.tm-metrictoggle:hover { color: var(--foreground); }
.tm-metrictoggle svg { border: 1px solid rgba(255, 106, 0, 0.6); border-radius: var(--r-md); padding: 3px; width: 20px; height: 20px; color: var(--accent); }
.tm-metricvalue {
  display: block; margin-top: 4px;
  font-family: var(--mono); font-size: 36px; font-weight: 700;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  transition: color 0.7s ease;
}
.tm-chiprow.wide {
  flex: 1 1 100%;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---------- live dot (baaf's ping) ---------- */
@keyframes tm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- skeleton ---------- */
.tm-skel {
  border-radius: var(--r-xl);
  background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

/* ---------- buy / sell buttons, market search strip ---------- */

.tm-tradebtn.buy { background: var(--accent); }
.tm-tradebtn.sell { background: var(--danger); }

.tm-sheetsearch { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.tm-sheetsearch .ap-search { width: 100%; flex: none; margin: 0; min-width: 0; }

/* Chart cell: the sized, positioned frame every TVChart mounts into */
.tm-chartcell {
  position: relative; overflow: hidden;
  min-width: 0; min-height: 0;
  border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface);
}
/* GRAFIK YUKLENIYOR (28 Eyl, Selcuk; eski spark cizgisinin yerine): grafigin ve canli
   seridin ustunde, hucrenin kendi renginde ortu; ustunden soldan saga hafif isik gecer.
   Isik 0,2 sn gecikmeyle belirir (hizli acilista hic gorunmez); "bitti" 0,2 sn'de erir. */
.tm-chartload { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; background-color: inherit; transition: opacity 0.2s ease; }
.tm-chartload::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.07) 50%, transparent 60%);
  background-size: 300% 100%;
  animation: tm-yuk-gir 0.3s ease 0.2s both, tm-yuk-kay 1.6s ease-in-out 0.2s infinite;
}
.tm-chartload.bitti { opacity: 0; }
@keyframes tm-yuk-gir { from { opacity: 0; } to { opacity: 1; } }
@keyframes tm-yuk-kay { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .tm-chartload::after { animation: none; opacity: 0; } }

/* ---------- TVChart chrome ----------
   Timeframe pills on top, indicator tabs underneath: baaf's CandleChart bar
   (mono xs pills, the chosen one lime on lime-soft). */
.tv-box {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; min-height: 0; user-select: none;
}
.tv-bar, .tv-tabs {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 6px 10px; flex: 0 0 auto;
}
.tv-bar { border-bottom: 1px solid var(--border); }
.tv-tabs { border-top: 1px solid var(--border); }
.tv-pill {
  flex: 0 0 auto;
  background: none; border: none; cursor: pointer; border-radius: var(--r-lg);
  padding: 4px 10px; font-family: var(--mono); font-size: 12px; color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.tv-pill:hover { color: var(--foreground); }
.tv-pill.on { color: var(--accent); font-weight: 700; background: var(--accent-soft); }
.tv-pane { position: relative; min-height: 0; flex: 1 1 auto; }
.tv-holder { position: absolute; inset: 0; }
/* 19 Eyl (Cihan: "imleci yukari kaydirinca sayfa asagi kayiyor"): telefonda
   grafik uzerindeki dokunma TAMAMEN grafigindir. iOS, iframe icindeki
   dokunmayi ilk dikey harekette sayfa kaydirmasina ceviriyordu; touch-action
   iframe'in kendi ogesi uzerinden icerigine de uygulanir. Sayfa grafigin
   disindan kaydirilir. */
@media (max-width: 1023px) {
  .tv-holder, .tv-holder iframe { touch-action: none; }
}
.tv-menuscrim { position: fixed; inset: 0; z-index: 30; background: none; border: none; cursor: default; }
.tv-menurow .tv-pill { flex: 1 1 auto; text-align: left; border: none; background: none; }
.tv-menurow .tv-pill.on { background: var(--accent-soft); }
.tv-star:hover, .tv-star.on { color: var(--gold); }
.tv-tabscroll {
  display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto;
  overflow-x: auto;
}
.tv-sep { flex: 0 0 auto; width: 1px; height: 14px; background: var(--border); margin: 0 4px; }
.tv-gear {
  flex: 0 0 auto; background: none; border: none; cursor: pointer; border-radius: var(--r-lg);
  padding: 4px 6px; color: var(--muted); display: flex;
  transition: color 0.2s ease;
}
.tv-gear:hover, .tv-gear.on { color: var(--accent); }
.tv-cfg {
  position: absolute; right: 8px; bottom: 100%; z-index: 31; margin-bottom: 6px; width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8); padding: 14px;
  animation: fade-up 120ms ease both;
}
.tv-cfgtitle { margin-bottom: 8px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); }
.tv-cfgrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.tv-cfgkey { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tv-cfginputs { display: flex; gap: 4px; }
.tv-cfginputs input {
  width: 52px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2);
  padding: 4px 6px; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--foreground);
}
.tv-cfginputs input:focus { outline: none; border-color: var(--accent); }

/* ---------- market logos: round, like every venue renders them ---------- */
.tm-coin {
  width: 30px; height: 30px; flex: 0 0 auto;
  /* ONE treatment for every logo (3 Sep): a circle the artwork FILLS
     (cover). Contain left letterboxed slivers, free shapes left a ragged
     column; a filled circle renders every source - square, round, wide -
     as the same clean coin. */
  border-radius: 10px;
  object-fit: cover; background: none;
  border: none;
}
.tm-coin.lg { width: 36px; height: 36px; }
.tm-coin.sm { width: 26px; height: 26px; }

span.tm-coin {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 11px; font-weight: 700; color: #fff; border-color: transparent;
}
span.tm-coin.sm { font-size: 10px; }
span.tm-coin.lg { font-size: 13px; }
.tm-mkt { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* ---------- ticket refinements shared by spot / perps / detail ---------- */
.tm-tick { display: grid; gap: 10px; }
.tm-pctrow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; } /* 27 Eki: alim bileti 5 dugme; dortluler aynen dort sutun */
.tm-lev.on { background: var(--accent); color: #000; }
.tm-cost {
  display: grid; gap: 6px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2); font-size: 12.5px;
}
.tm-cost > div { display: flex; justify-content: space-between; gap: 10px; }
.tm-cost dt { color: var(--muted); }
.tm-cost dd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tm-cost dd.danger { color: var(--danger); }
.tm-cta {
  width: 100%; min-height: 50px; cursor: pointer; border: none; border-radius: var(--r-2xl);
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  letter-spacing: 0; text-transform: none; color: #000;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.tm-cta.buy { background: var(--accent); }
.tm-cta.buy:hover { background: var(--accent-strong); }
.tm-cta.sell { background: var(--danger); }
.tm-cta.sell:hover { opacity: 0.9; }
.tm-cta:disabled { opacity: 0.5; cursor: default; }
.tm-ctarow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Para yetmeyince düğme çözüme döner (27 Eyl, Selcuk): "Add cash", "Add money to
   Perps". Beyaz: ne alım ne satım, yalnız para ekleme. */
.tm-cta.add { background: var(--foreground); color: #0c0910; }
.tm-cta.add:hover { background: #fff; }
.tm-ctarow > .tm-cta.add { grid-column: 1 / -1; }

/* Perps ticket (pt-*): bead's Aster panel in baaf's dress */
.pt { display: flex; flex-direction: column; gap: 10px; }
.tm-aside .pt { min-height: 100%; }
/* 16 Kas (Cihan: "sagdaki bolum uzamasin"): bilet grafik+defter boyuna uzamaz; grafik
   uzatilinca Long/Short altinda bos kutu kaliyordu. Kutu icerigi kadar. */
.pt-rail .ap-panel { display: flex; flex-direction: column; }
.pt-rail .ap-panelbody { flex: 1 1 auto; display: flex; flex-direction: column; }
.pt-rail .ap-panelbody > .pt { flex: 1 1 auto; }
/* 17 Eyl aksam (Cihan): Limit/Market solda, telefonda grafik dugmesi sagda -
   ayni yukseklik (38px), ayni cerceve, ayni yazi; acikken lime. */
.pt-typesrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.pt-types { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--background); align-self: start; }
.pt-type {
  border: 0; background: none; cursor: pointer; padding: 0 12px; min-height: 30px; border-radius: var(--r-xl);
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.pt-type.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pt-type:disabled { cursor: default; opacity: 0.7; }
.pt-type i {
  font-style: normal; font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 1px 5px; margin-left: 6px; vertical-align: 1px;
}
.pt-size .pt-unit { flex: 0 0 auto; min-width: 74px; cursor: pointer; }
.pt-levbtn.on { border-color: var(--accent); }
button.tm-blastpx { border: 0; background: none; padding: 0; font: inherit; cursor: default; color: inherit; }
button.tm-blastpx.up { color: var(--gain); }
button.tm-blastpx.down { color: var(--danger); }
button.tm-blastpx.tappable { cursor: pointer; }
button.tm-blastpx.tappable:hover { text-decoration: underline; text-underline-offset: 3px; }
.pt-levwheel { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2); padding: 12px 14px 14px; display: grid; gap: 10px; }
.pt-levhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pt-levhead .ap-label { margin: 0; }
.pt-levval { display: flex; align-items: baseline; gap: 2px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pt-levval input {
  width: 3ch; border: 0; border-bottom: 1px solid var(--border); background: none; padding: 0 2px 2px;
  font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--foreground); text-align: right;
  font-variant-numeric: tabular-nums;
}
.pt-levval input:focus { outline: none; border-bottom-color: var(--accent); }
.pt-levwheel .ap-range { margin: 2px 0 0; }
.pt-levscale { display: flex; justify-content: space-between; margin-top: -6px; font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.pt-levmark.on { background: var(--accent); color: #000; }
.pt-price .ap-input { min-width: 0; }
.pt-bbo {
  flex: 0 0 auto; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2); cursor: pointer;
  padding: 0 10px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pt-bbo { font-size: 11px; letter-spacing: 0.04em; }
.pt-bbo:hover { border-color: var(--border-strong); color: var(--foreground); }
.pt-flagrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-tif { padding: 4px 8px; font-size: 12px; cursor: pointer; }
.pt-range { margin-top: 8px; }
.pt-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted);
}
.pt-row b { font-family: var(--mono); font-weight: 600; color: var(--foreground); font-variant-numeric: tabular-nums; }
.pt-row b.pos { color: var(--gain); }
.pt-row b.neg { color: var(--danger); }
.pt-flags { display: grid; gap: 8px; }
.pt-slip { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.pt-slip .ap-input { width: 68px; padding: 6px 8px; font-size: 12px; text-align: right; font-family: var(--mono); }
.pt-info { border-top: 1px solid var(--border); border-left: 0; border-right: 0; border-bottom: 0; padding: 10px 0 0; background: none; }
.pt-why { margin: 0; }
.pt-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 4px; }

@keyframes pu-pulse { 50% { opacity: 0.25; } }
/* 3 Sep: table logos keep their own shape; only the strip/row cover images are rounded */
.pu-page .pu-chip .tm-coin.lg { width: 40px; height: 40px; border-radius: var(--r-xl); }

/* Bonding curve progress: a rounded track with a lime fill. */
.pu-prog {
  display: inline-block; width: 72px; height: 6px; position: relative;
  border-radius: 10px; background: var(--surface-3); vertical-align: middle; overflow: hidden;
}
.pu-prog i { display: block; height: 100%; background: var(--accent); border-radius: 10px; position: relative; z-index: 1; }
/* ZIRVE (21 Eyl aksam, Cihan): soluk katman = en yuksek doluluk; lime = su anki doluluk */
.pu-prog .pu-peak { display: block; position: absolute; left: 0; top: 0; height: 100%; border-radius: 10px; background: rgba(240, 173, 45, .45); }
.pu-prog .pu-peaktick { display: block; position: absolute; top: 0; width: 2px; height: 100%; background: #f0ad2d; z-index: 2; }
/* BONDING ROZETI (19 Eyl, Faz 2): kartta MC satirinin altinda "bonding · 42%" + ince cubuk; telefon satirinda MC'nin yaninda. */
.pu-bond { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0; }
/* BONDING LAUNCHPAD SUZGECI (19 Eyl aksam): All / Pons / LONG cipleri, sekme
   cubugunun altinda; secili cip vurgu zemini, logo minik daire. */
.pu-lpchip.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pu-lpchips { padding: 10px 0 0; }
.pu-bondtxt { font-size: 11px; color: var(--accent); letter-spacing: .01em; white-space: nowrap; }
.pu-bondbar { flex: 1 1 auto; max-width: 96px; height: 3px; }

/* Row chips: live now, or a creator still holding a red-flag share. */
.tm-badge.pu-live { color: var(--danger); border-color: rgba(255, 77, 109, 0.4); background: var(--danger-soft); margin-left: 6px; }
.tm-badge.pu-warn { color: var(--danger); margin-left: 6px; }

/* Price flash: whatever moved a number lights it for a beat (baaf: the text
   goes green/red and eases back; the row gets a soft wash). */
@keyframes pxf-up { from { background: rgba(43, 214, 123, 0.1); } to { background: transparent; } }
@keyframes pxf-down { from { background: rgba(255, 77, 109, 0.1); } to { background: transparent; } }
.pxf-up { animation: pxf-up 0.9s ease-out; }
.pxf-down { animation: pxf-down 0.9s ease-out; }
/* the big numbers that carry the flash class themselves go green/red for a beat */
.tm-big.pxf-up { color: var(--gain); }
.tm-big.pxf-down { color: var(--danger); }
@keyframes pxf-tick-up { from { box-shadow: inset 3px 0 0 var(--gain); } to { box-shadow: inset 3px 0 0 transparent; } }
@keyframes pxf-tick-down { from { box-shadow: inset 3px 0 0 var(--danger); } to { box-shadow: inset 3px 0 0 transparent; } }

.tm-card.pxf-up { animation: pxf-up 0.9s ease-out, pxf-tick-up 0.9s ease-out; color: inherit; }
.tm-card.pxf-down { animation: pxf-down 0.9s ease-out, pxf-tick-down 0.9s ease-out; color: inherit; }
.tm-card.pxf-up .tm-cardpx { color: var(--gain); }
.tm-card.pxf-down .tm-cardpx { color: var(--danger); }
@media (prefers-reduced-motion: reduce) {
  .pxf-up, .pxf-down,
  .tm-card.pxf-up, .tm-card.pxf-down { animation: none; }
}

/* ---------- the big market board (tm-board) ----------
   baaf's perps table: 36px round art, bold symbol, muted name, the mark price
   as the heaviest mono number, the 24h change in a tinted chip. */

/* 24h change: mono, semibold, DUZ YAZI - 17 Eyl (Cihan): cip cercevesi ve
   arka plani her tahtada (Tokens, Perps, Watchlist; telefon ve masaustu) kalkti,
   yon yalniz renkle okunur. */
.tm-chg {
  display: inline-block; min-width: 0; padding: 0; border-radius: 0; text-align: right;
  font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--muted); background: none; white-space: nowrap;
}
.tm-chg.up { color: var(--gain); }
.tm-chg.down { color: var(--danger); }

/* ---------- grid view (baaf's BoardCard) ----------
   Square art with rounded corners, the name, $ticker under it, the mono
   number, then a quiet stats line. Cards grow on hover and flash on a tick. */
.tm-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}
.tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1024px) { .tm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .tm-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tm-gcard {
  display: block; width: 100%; min-width: 0;
  background: none; border: none; padding: 0; text-align: left; cursor: pointer;
  color: var(--foreground); font: inherit;
  transition: transform 0.2s ease;
}
.tm-gcard:hover, .tm-gcard:active { transform: scale(1.04); }
.tm-gart {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  /* translateZ: iOS Safari ignores rounded clipping over filtered children
     without its own layer - measured on the phone (3 Sep) */
  transform: translateZ(0);
  border-radius: var(--r-xl); border: 1px solid transparent; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease;
}
.tm-gcard:hover .tm-gart { border-color: rgba(255, 106, 0, 0.6); }
.tm-gart img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease; }
.tm-gcard:hover .tm-gart img { opacity: 0.9; }
/* market logos are small round marks, not artwork: they sit centred on the tile */
.tm-gart.contain > img { width: 62%; height: 62%; border-radius: 10px; object-fit: cover; background: #fff0; }
.tm-gtile {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 34px; font-weight: 700; color: #fff;
}
.tm-gart.contain > .tm-gtile { width: 62%; height: 62%; border-radius: 10px; font-size: 26px; }
.tm-gart.pxf-up { border-color: rgba(43, 214, 123, 0.6); animation: flash-gain-kf 1.2s ease-out; }
.tm-gart.pxf-down { border-color: rgba(255, 77, 109, 0.6); animation: flash-danger-kf 1.2s ease-out; }
.tm-gbadge {
  position: absolute; right: 8px; top: 8px;
  padding: 2px 6px; border-radius: var(--r-lg);
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  background: var(--accent); color: #000;
}
.tm-gbadge.warn { background: var(--danger); color: #000; }
/* AYNI ISIM rozeti (21 Eyl, plan D): sembolun yaninda kucuk, sessiz uyari. */
.tm-gdup { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--danger); border-radius: 10px; color: var(--danger); font-size: 10px; letter-spacing: .02em; vertical-align: middle; }
.tm-gbody { padding: 8px 2px 0; }
.tm-gname { display: block; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-gsym { display: block; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-gbig {
  margin-top: 4px; font-family: var(--mono); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: color 0.7s ease; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.tm-gbig small { font-size: 12px; font-weight: 400; color: var(--muted-2); }
.tm-gbig.up { color: var(--gain); }
.tm-gbig.down { color: var(--danger); }
.tm-gsub {
  margin-top: 4px; display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 23 Eyl (Cihan): MC / VOL yazilari Perps'teki "vol" satiriyla ayni ton (--muted), soluk degil. */
.tm-gsub b { font-weight: 400; color: var(--muted); }
.tm-gsub .up { color: var(--gain); }
.tm-gsub .down { color: var(--danger); }
.tm-gsub svg { flex: 0 0 auto; }

/* pager (baaf): previous · page · next */
.tm-pager { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tm-pagerbtn { background: none; border: none; cursor: pointer; padding: 8px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.tm-pagerbtn:hover { color: var(--foreground); }
.tm-pagerbtn:disabled { opacity: 0.4; cursor: default; }
.tm-pagernum { display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 36px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: var(--r-xl); background: var(--surface-2); font-family: var(--mono); font-size: 14px; font-weight: 700; }

/* age next to a token's name: a sprout and a short age (baaf) */
.pu-age {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--gain); white-space: nowrap; vertical-align: 1px;
}

/* Glyph-only link chips (X, telegram, website, explorer). */
.tm-chip.icon { padding: 5px 8px; }

/* Pump section nav: baaf's mobile tab strip - words with a lime underline */
.pu-navbtn.on { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- identity card, baaf mold: who + links, then the money line ---------- */
.tm-hero { display: block; }
.th-top { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.th-name { min-width: 0; }
.th-name .tm-heroname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-name .tm-heroname .tm-star-inline { margin-left: 10px; vertical-align: 2px; }
/* 4 Eyl (Cihan): cipler ismin ALTINDA yasar, saga yaslanmaz */
.th-links {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-top: 10px;
}
/* 4 Eyl (Cihan): para blogu sag ust kosede dikey durur; alt cizgi kalkti */
.th-money {
  margin-left: auto; display: flex; flex-direction: column;
  align-items: flex-end; gap: 2px; flex: 0 0 auto; text-align: right;
}
.th-money .th-ath { margin-left: 0; margin-top: 8px; flex: 0 0 auto; } /* 4 Eyl gece: flex-basis dikey sutunda YUKSEKLIK oluyordu (cerceve 350px buyudu) */
.th-bigrow { display: flex; align-items: baseline; gap: 12px; margin-top: 2px; }
.th-chg { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--muted); }
.th-chg.up { color: var(--gain); }
.th-chg.down { color: var(--danger); }
/* 30 Eyl (Cihan): ATH yalniz etiket; yesil ilerleme cubugu her yerden kalkti */
.th-ath { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; }
.th-athlabel { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Address rows in the pool card: chip + explorer glyph, right-aligned. */
.th-addr { display: inline-flex; align-items: center; gap: 6px; }

/* ── Sticky agent button: the agent's face (22 Eyl) ──
   A lime rounded square IS the face: no circle, no label. Eyes blink and
   glance around now and then so it reads as someone waiting. Ignored, it
   slides into the right edge with only a strip showing; the face shifts
   toward the screen so both eyes peek out from the edge. Dragging lifts it
   and moves frame by frame with transitions off (no stutter). */
.agent-fab {
  --fab: 52px;
  position: fixed; right: 18px; bottom: 26px; width: var(--fab); height: var(--fab);
  border: none; border-radius: 10px; background: #FF6A00; color: #000; /* 28 Kas yobro: turuncu yüz (site vurgusundan bağımsız) */
  display: grid; place-items: center; overflow: visible;
  cursor: grab; z-index: 60; padding: 0;
  box-shadow: 0 6px 18px #0007, 0 0 0 3px var(--background);
  transition: opacity .6s ease, transform .55s cubic-bezier(.22, 1, .36, 1), background .2s ease, border-radius .4s ease;
  touch-action: none; will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
/* desktop: sit on the page's right content line (24px gutter, like the
   cards and the wallet button) and a little higher off the bottom edge;
   the greeting bubble follows so its tail still points at the face (22 Eyl) */
.agent-fab { right: 24px; bottom: 34px; }
/* Ekipten okunmamis mesaj (24 Eki, ekipMesaji.ts): dugmenin kosesinde nokta; sohbet acilinca kalkar. */
.agent-fab-dot { position: absolute; top: -4px; right: -4px; width: 13px; height: 13px; border-radius: 14px; background: #ff4d6d; box-shadow: 0 0 0 2.5px var(--background); pointer-events: none; z-index: 2; }
.ap-ekipdot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 14px; background: #ff4d6d; flex: 0 0 auto; vertical-align: middle; }
.ap-railitem .ap-ekipdot { margin-left: auto; }
.ap.sidebar-min .ap-railitem:has(.ap-ekipdot) { position: relative; }
.ap.sidebar-min .ap-railitem .ap-ekipdot { position: absolute; top: 9px; right: 9px; margin: 0; }
.agent-greeting.agent-greeting { right: 24px; bottom: 116px; }
/* soft breathing glow (opacity only, stays on the compositor); 28 Kas yobro: turuncu */
.agent-fab::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; z-index: -1;
  box-shadow: 0 0 22px 2px rgba(255, 106, 0, .42);
  animation: fab-breathe 3.2s ease-in-out infinite;
}
.agent-fab .core { width: 100%; height: 100%; display: block; border-radius: inherit; }
.agent-fab .core .face {
  transform-box: fill-box; transform-origin: center;
}
.agent-fab .core .face { transition: transform .55s cubic-bezier(.22, 1, .36, 1); }
/* 21 Eki: gozler ayri dis <svg> (AgentFab.tsx core-eyes); kayma ve kirpma kutunun kendi
   olcusunun yuzdesiyle: 480'lik cizimde 26 birim = %5,417, 104 birim = %21,667; kirpma ekseni
   gozlerin ortasi (y 209/480 = %43,54). */
.agent-fab .core-eyes {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
  transform-origin: 50% 43.54%;
  animation: fab-look 7.5s ease-in-out infinite;
  transition: translate .55s cubic-bezier(.22, 1, .36, 1);
}
.agent-fab:active, .agent-fab.dragging { cursor: grabbing; }
.agent-fab.dragging {
  transform: scale(1.08) rotate(-4deg);
  transition: opacity .2s ease, transform .18s ease-out, background .2s ease;
  box-shadow: 0 14px 30px #000a, 0 0 0 3px var(--background);
}
.agent-fab.home-quiet { --fab: 46px; border-radius: 8px; box-shadow: 0 2px 12px #0005, 0 0 0 3px var(--background); }
.agent-fab.home-quiet::before { animation: none; opacity: .5; }
.agent-fab .ring { display: none; }
/* tucked: only the eye strip shows; the face slides left and looks at the page */
.agent-fab.tucked { border-radius: 8px 0 0 8px; }
.agent-fab.tucked .core .face { transform: translateX(-104px); }
.agent-fab.tucked .core-eyes { translate: -21.667% 0; }
.agent-fab.idle { opacity: .72; }
.agent-fab.idle::before { animation-duration: 4.6s; }
@media (hover: hover) { .agent-fab:hover { opacity: 1; background: #FF7D24; } }
@keyframes fab-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes fab-look {
  0%, 30%, 100% { transform: none; }
  32% { transform: scaleY(.12); }
  34% { transform: none; }
  46%, 56% { transform: translateX(-5.417%); }
  62%, 72% { transform: translateX(4.583%); }
  78% { transform: none; }
  88% { transform: scaleY(.12); }
  90% { transform: none; }
}
/* kept for the chat header dot */
@keyframes fab-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.8); opacity: 0.7; } }

/* ── Agent Connect page ── */
.agent-connect { max-width: 560px; margin: 0 auto; }

/* ── Agent window (the sticky button's chat + mini panel): baaf's card ── */
.agc {
  position: fixed; right: 24px; bottom: 100px; z-index: 59;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  padding: 0; margin: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: pop-in 220ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

.agc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.agc-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0;
}
.agc-dot { width: 9px; height: 9px; border-radius: 10px; background: var(--accent); animation: fab-pulse 2.4s ease-in-out infinite; }
.agc-steps { display: inline-flex; gap: 5px; margin-left: 2px; }
.agc-steps i { width: 7px; height: 7px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; }
.agc-steps i.on { background: var(--accent); border-color: var(--accent); }
.agc-steps i.done { background: var(--muted); border-color: var(--muted); }
.agc-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.agc-tool {
  background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: var(--r-lg);
  font-size: 14px; line-height: 1; color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.agc-tool:hover { color: var(--foreground); background: var(--surface-2); }
.agc-tool { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 8px; color: var(--muted-2); }
.agc-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.agc { border-color: var(--border-strong); border-radius: 12px; }
.agc-compose .btn.sm { min-width: 44px; border-radius: 8px; background: var(--foreground); border-color: var(--foreground); color: #0c0910; }
.agc-compose .btn.sm:disabled { opacity: 1; background: var(--surface-3); border-color: var(--surface-3); color: var(--muted-2); }

.agc-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.agc-row { display: flex; }
.agc-row.user { justify-content: flex-end; }
.agc-bubble {
  max-width: 86%; padding: 9px 12px; font-size: 13.5px; line-height: 1.45;
  border-radius: var(--r-2xl); background: var(--surface-2); color: var(--foreground); white-space: pre-wrap;
}
.agc-bubble.user { background: rgba(181, 140, 255, .17); border: 1px solid rgba(181, 140, 255, .3); color: var(--foreground); }
.agc-bubble.typing { display: inline-flex; gap: 4px; align-items: center; min-width: 44px; min-height: 20px; }
.agc-bubble.typing i {
  width: 5px; height: 5px; border-radius: 10px; background: var(--muted); display: block;
  animation: agc-blink 1.1s ease-in-out infinite;
}
.agc-bubble.typing i:nth-child(2) { animation-delay: 0.18s; }
.agc-bubble.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes agc-blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
/* Hareket azaltmada bekleme AYNI kalır, yalnız noktalar kıpırdamaz (6 Eyl,
   Selçuk kararı). Gösterge görünür durur, çünkü sırayı o anlatıyor. */
@media (prefers-reduced-motion: reduce) {
  .agc-bubble.typing i { animation: none; opacity: 0.55; }
}

.agc-chip {
  background: none; border: 0; cursor: pointer; padding: 0 2px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.agc-chip:hover { color: var(--foreground); }
.agc-cta { text-decoration: none; }
.ap-inputrow input[type="range"] { accent-color: var(--accent); }

.agc-compose {
  display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface);
}
.agc-compose input {
  flex: 1 1 auto; min-width: 0; padding: 10px 14px; font-size: 14px; font-family: var(--sans);
  border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2); color: var(--foreground);
  transition: border-color 0.2s ease;
}
.agc-compose input::placeholder { color: var(--muted-2); }
.agc-compose input:focus { outline: none; border-color: rgba(181, 140, 255, .5); }

/* ── AGENT PENCERESİ, CÜZDAN BAĞLIYKEN (25 Eyl, AgentMini.tsx; Cihan: "bozuk,
   amacına uygun değil, baştan yarat"). Agent sayfasının cebe sığanı: üstte
   yüz + anahtarın durumu + agent'ın cüzdanı, altında AYNI sohbet (ag2-chat),
   sayfaya göre öneriler. Renk dili sayfayla aynı: lime agent, leylak sen. */
.agm {
  --ag-violet: #b58cff;
  position: fixed; right: 24px; bottom: 100px; z-index: 59;
  width: min(400px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 130px)); height: min(640px, calc(100dvh - 130px));
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate; padding: 0; margin: 0;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface);
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, .92);
  transform-origin: bottom right; animation: agentPanelIn .4s cubic-bezier(.16, 1, .3, 1) both;
}
.agm:focus { outline: none; }
.agm-head { position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px; padding: 14px 10px 14px 16px; border-bottom: 1px solid var(--border); }
.agm-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 140% at 8% 50%, rgba(255, 255, 255, .035), transparent 70%); }
.agm.is-on .agm-glow { background: radial-gradient(36% 150% at 6% 50%, rgba(255, 106, 0, .12), transparent 70%), radial-gradient(55% 170% at 100% 0%, rgba(181, 140, 255, .13), transparent 70%); }
.agm-face { position: relative; flex: 0 0 auto; width: 44px; height: 44px; animation: ag2-float 5.5s ease-in-out infinite; }
.agm-face .ag2-body { transition: filter .5s ease; }
.agm:not(.is-on) .agm-face .ag2-body { filter: saturate(.35) brightness(.75); }
.agm.is-on .agm-face .ag2-body { filter: drop-shadow(0 0 14px rgba(255, 106, 0, .3)); }
.agm.is-thinking .agm-face .hm-look { translate: 8px -10px; }
.agm.is-thinking .agm-face .hm-yuzkat .hm-look { translate: 1.6667% -2.0833%; }
.agm-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.agm-id > b { font: 800 16px/1.1 var(--sans); letter-spacing: -0.015em; }
.agm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.agm-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 8px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); font: 700 11.5px/1.1 var(--sans); cursor: pointer; box-shadow: var(--edge); transition: color .15s, background .15s; }
.agm-state:hover { color: var(--foreground); background: var(--surface-3); }
.agm-state i { width: 7px; height: 7px; border-radius: 10px; background: var(--muted-2); }
.agm.is-on .agm-state { color: var(--accent); background: var(--accent-soft); }
.agm.is-on .agm-state i { background: var(--accent); }
.agm-tools { flex: 0 0 auto; align-self: flex-start; display: flex; gap: 2px; margin-top: -4px; }
.agm-tool { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted-2); cursor: pointer; transition: color .15s, background .15s; }
.agm-tool:hover { color: var(--foreground); background: var(--surface-2); }
.agm-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Sohbet: Agent sayfasındakinin aynısı, pencereye sığacak ölçüde. */
.agm .ag2-chat { flex: 1 1 auto; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.agm .ag2-chat-box { flex: 1 1 0; height: auto; min-height: 0; padding: 14px 14px 10px; gap: 10px; background-size: 16px 16px; }
.agm .ag2-chat-pay { margin-top: -10px; }
.agm .ag2-msg { max-width: 92%; gap: 7px; }
.agm .ag2-msg.card { max-width: 100%; }
.agm .ag2-msg > .ag2-body { width: 22px !important; height: 22px !important; }
.agm .ag2-msg-gap { flex-basis: 22px; }
.agm .ag2-msg-bubble { padding: 9px 12px; font-size: 13.5px; line-height: 1.48; }
.agm .ag2-msg.agent:has(.agt-pages) > .ag2-body { margin-bottom: 34px; }
.agm .ag2-card { padding: 12px; }
.agm .ag2-chat-empty { max-width: 290px; }
.agm .ag2-chat-empty .ag2-body { width: 52px !important; height: 52px !important; }
.agm .ag2-chat-empty p { font-size: 13.5px; }
/* TELEGRAM DAVETİ (8 Eki 2026, app/src/app/TelegramDavet.tsx): yandaki pencerenin ilk balonu, Agent sayfasındaki kartın düğmeleriyle. */
.ag2-tgdavet { flex: 0 0 auto; max-width: 96%; }
.ag2-tgdavet .ag2-msg-bubble { display: flex; flex-direction: column; gap: 12px; }
.ag2-tgdavet .ag2-msg-bubble p { margin: 0; }
.ag2-tgdavet .btn.tgc-btn { min-height: 42px; font-size: 13.5px; border-radius: 8px; }
.ag2-tgdavet .tgc-code { gap: 4px; flex-wrap: nowrap; }
.ag2-tgdavet .tgc-code span { width: 22px; height: 32px; font-size: 15px; border-radius: 6px; }
.ag2-tgdavet .tgc-code span:nth-child(5) { margin-right: 6px; }
.ag2-tgdavet .tgc-code em { display: none; }
.ag2-tgdavet .tgc-code em.on { display: block; position: absolute; }
.ag2-tgdavet .tgc-code { position: relative; padding-bottom: 14px; }
.ag2-tgdavet .tgc-code em.on { bottom: 0; left: 0; right: 0; }
.ag2-tgdavet .tgc-wait { margin: -4px 0 0; justify-content: flex-start; }
.ag2-tgdavet-ok { color: var(--gain); font-weight: 600; }
.agm :is(.agm-head, .ag2-suggest, .ag2-compose) { flex: 0 0 auto; }
.agm .ag2-suggest { padding: 10px 14px 0; gap: 6px; }
.agm .ag2-chip { padding: 6px 11px; font-size: 12.5px; }
.agm .ag2-compose { padding: 10px 14px 14px; }
.agm .ag2-kapsul textarea { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .agm, .agm-face { animation: none; } }

/* language picker */
.agc-lang {
  appearance: none; -webkit-appearance: none;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer;
  padding: 3px 7px; max-width: 96px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted);
}
.agc-lang:hover, .agc-lang:focus { border-color: var(--border-strong); color: var(--foreground); outline: none; }

/* Available row: amount + round deposit button */
.pt-avail { display: inline-flex; align-items: center; gap: 8px; }
.pt-plus {
  width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--accent); color: #000;
  font: 700 15px/1 var(--sans); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 0 1px;
  transition: background 0.2s ease;
}
.pt-plus:hover { background: var(--accent-strong); }
/* İşlem sayfasındaki "+": cüzdandan bu cebe ekle (18 Eyl, kendi cüzdan) */
.pk-add { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: 6px; vertical-align: middle; }
.pk-addform .ap-input { width: 128px; padding: 4px 8px; font-size: 13px; }
.ap-depositbare { padding: 4px 0 0; }
.ap-depositbare .ap-note { font-size: 12.5px; }

/* Deposit dialog: short, one thing per row */
.dp { display: grid; gap: 12px; }
.dp .tm-seg { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.dp-amt {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface-2); padding: 18px 12px;
}
.dp-amt input {
  width: 60%; max-width: 220px; border: 0; background: transparent; text-align: right;
  font: 600 34px/1.1 var(--sans); letter-spacing: -0.02em; color: var(--foreground); font-variant-numeric: tabular-nums; outline: none; padding: 0;
}
.dp-amt input::placeholder { color: var(--muted-2); }
.dp-unit { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); }
.dp-sub { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); margin-top: -6px; }
.dp-err { color: var(--danger); }
.dp-go { width: 100%; min-height: 48px; font-size: 15px; }
.dp-note { font-size: 13px; margin: 0; }
.dp-fine { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin: 0; text-align: center; }
.dp-recent { border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 4px; }
.dp-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; font-family: var(--mono); font-size: 11.5px; }
.dp-when { color: var(--muted-2); }
.dp-copy { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* liq. price row: long side green, short side red */
.tm-cost .pt-liq-l, .pt-info .pt-liq-l { color: var(--gain); }
.tm-cost .pt-liq-s, .pt-info .pt-liq-s { color: var(--danger); }
.tm-cost dd.danger .pt-liq-l, .tm-cost dd.danger .pt-liq-s { font-weight: 700; }

/* ---------- profile: account numbers inside the identity panel ---------- */

/* profile: deposit / withdraw doors in the stats strip */

/* Agent wallet row under the stats */
.pf-agentwallet .pf-hint { margin: 0; }
.pf-agentwallet { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* perps: share a position as a picture */
.ap-shareico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: var(--r-xl);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease;
}
@media (hover: hover) {
  .ap-shareico:hover { border-color: var(--border-strong); color: var(--foreground); }
}
.ap-shareico:active { border-color: var(--border-strong); color: var(--foreground); }

.ap-postable .ap-shareico { width: 34px; height: 34px; vertical-align: middle; margin-left: 6px; }
.shr { display: grid; gap: 14px; padding-top: 4px; }
.shr-img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--r-2xl); }
.shr-wait {
  aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
}
.shr-actions { display: flex; gap: 10px; }
.shr-actions .btn { flex: 1 1 0; min-width: 0; }
.shr .dp-fine { margin: 0; }

/* ── Paylaşım stüdyosu (22 Eyl, Cihan: Hyperliquid'inki gibi, agent'la) ──
   Masaüstü: solda kart, sağda ayarlar. Telefon: tam ekran, kart üstte. */
/* 22 Eyl (Cihan): pencere içeriğe göre boylanır; kart ile ayarlar aynı
   yükseklikte, kart dikeyde ortada, aralar biraz açık, yanlarda boşluk yok. */
.auth-modal.shr-modal { max-width: 1180px; padding: 24px 32px 32px; box-sizing: border-box; }
.auth-modal.shr-modal:has(.shr2.story) { max-width: 960px; }
.shr2 { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr) 320px; align-items: stretch; }
.shr2.story { grid-template-columns: minmax(0, 540px) 320px; justify-content: center; }
.shr2-stage { position: relative; align-self: center; }
.shr2.story .shr2-side { justify-content: space-between; }
.shr2.story .shr2-actions { margin-top: 0; }
.shr2-canvas { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); background: #06030a; box-shadow: 0 30px 80px -30px rgba(255, 106, 0, 0.18); }
.shr2-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 500 14px/1 var(--mono); }
.shr2-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.shr2-group { display: grid; gap: 8px; }
.shr2-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); }
.shr2-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.shr2-seg button { border: none; background: none; color: var(--muted); padding: 9px 0; border-radius: 6px; font: 600 14px/1 var(--sans); cursor: pointer; }
.shr2-seg button.on { background: var(--background); color: var(--foreground); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }
.shr2-moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shr2-mood {
  display: grid; justify-items: center; gap: 4px; padding: 8px 4px 7px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: 600 12px/1 var(--sans);
  transition: border-color .15s ease, transform .15s ease, color .15s ease;
}
.shr2-mood img { width: 56px; height: 56px; display: block; }
@media (hover: hover) { .shr2-mood:hover { border-color: var(--border-strong); color: var(--foreground); transform: translateY(-1px); } }
.shr2-mood.on { border-color: var(--accent); color: var(--accent); background: rgba(255, 106, 0, 0.06); }
.shr2-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--foreground); font: 700 15px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.04em;
}
.shr2-input:focus { outline: none; border-color: var(--accent); }
.shr2-toggles { display: grid; gap: 10px; }
.shr2-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--foreground); cursor: pointer; }
.shr2-toggle input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.shr2-actions { display: grid; gap: 10px; margin-top: auto; }
.shr2-row { display: flex; gap: 10px; }
.shr2-row .btn { flex: 1 1 0; min-width: 0; justify-content: center; }
.btn.shr2-x { width: 100%; justify-content: center; gap: 8px; background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.btn.shr2-tg { justify-content: center; gap: 8px; background: #2aabee; border-color: #2aabee; color: #fff; font-weight: 700; }
.shr2-note { margin: 0; font-size: 13px; color: var(--accent); text-align: center; }

/* positions header: live total P/L + close all */
.ph-total.pos { color: var(--gain); }
.ph-total.neg { color: var(--danger); }

/* close-all confirm: one question, two doors, the dangerous one red */
.cca { display: grid; gap: 12px; }
.cca-big { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.cca-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.cca-actions { display: flex; gap: 10px; margin-top: 4px; }
.cca-actions .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; }
.btn.cca-go { background: var(--danger); border-color: var(--danger); color: #000; }
@media (hover: hover) { .btn.cca-go:hover { background: #f0405f; border-color: #f0405f; color: #000; } }
.btn.cca-go:active { background: #f0405f; border-color: #f0405f; color: #000; }

.hold { display: grid; }
.hold-logo .tm-coin { width: 32px; height: 32px; }
.hold-side {
  position: absolute; right: -4px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 9px/1 var(--sans); color: #000; font-style: normal; border: 2px solid var(--surface);
}
.hold-side.long { background: var(--gain); }
.hold-side.short { background: var(--danger); }
.hold-pnl.pos { color: var(--gain); }
.hold-pnl.neg { color: var(--danger); }

/* ── Token value panels: pulse, range, community ── */
.tx-chips { display: flex; gap: 6px; margin-bottom: 10px; }
.tx-chip {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2);
  font: 700 13px/1.2 var(--mono); font-variant-numeric: tabular-nums;
}
.tx-chip b { font-family: var(--sans); font-size: 10.5px; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.tx-chip.up { color: var(--gain); }
.tx-chip.down { color: var(--danger); }
.tx-chip.pos { color: var(--gain); }
.tx-chip.neg { color: var(--danger); }
.tx-pressure { border-top: none; padding-left: 0; padding-right: 0; font-family: var(--mono); }
.tx-range { display: flex; align-items: center; gap: 10px; padding-top: 10px; font: 500 11px/1 var(--mono); color: var(--muted); }
.tx-rangetrack { position: relative; flex: 1 1 auto; height: 4px; background: var(--surface-3); border-radius: 10px; }
.tx-rangetrack i {
  position: absolute; top: -3px; width: 2px; height: 10px; background: var(--foreground); border-radius: 10px;
  transform: translateX(-50%);
}
.tx-rangeval { color: var(--foreground); }
.tx-band { margin: 0 0 6px; font: 600 12.5px/1.4 var(--sans); }
.tx-band.ok { color: var(--gain); }
.tx-band.warn { color: var(--gold); }
.tx-band.bad { color: var(--danger); }
.tx-composer { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tx-composer-in {
  width: 100%; resize: vertical; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2);
  font: 400 13.5px/1.5 var(--sans); color: var(--foreground);
  transition: border-color 0.2s ease;
}
.tx-composer-in::placeholder { color: var(--muted-2); }
.tx-composer-in:focus { outline: none; border-color: var(--accent); }
.tx-composer-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.tx-count { font: 500 11px/1 var(--mono); color: var(--muted-2); }
.tx-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tx-note { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.tx-noteava { font-size: 18px; line-height: 1.3; flex: 0 0 auto; }
.tx-notebody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tx-notehead { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.tx-notehead b { font-family: var(--sans); font-weight: 700; }
.tx-notehead time { color: var(--muted-2); font-size: 11px; }
.tx-notetext { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Rehearsal-season label on the rank board */
.lb-rehearsal {
  margin: 0; padding: 10px 14px;
  border: 1px solid rgba(255, 106, 0, 0.4); border-radius: var(--r-xl);
  background: var(--accent-soft); font-size: 13px; line-height: 1.5;
}
.lb-rehearsal b { color: var(--accent); font-weight: 700; margin-right: 6px; }

/* the header's Connect button says "Connect wallet" (24 Eyl: yalniz masaustu) */
.ap-connectlong { display: inline; }
.ap-connectshort { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   DESK FRAME (3 Eyl, baaf): a collapsible left rail with the logo and every
   section, the top bar with the ⌘K search box; the content column steps
   right by the rail's width. Phones keep the single top bar.
   ══════════════════════════════════════════════════════════════════════════ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ap-col { display: flex; flex-direction: column; min-height: 100vh; }
.ap-rail {
  position: fixed; left: 0; top: 0; z-index: 40;
  display: flex; flex-direction: column;
  /* 22 Eyl: 100dvh - rayin dibindeki Support/Docs tarayici cubugunun altinda
     kalmasin (iPad Safari'de 100vh gorunen alandan uzundur). */
  height: 100vh; height: 100dvh; width: 212px;
  padding: 10px 12px 24px;
  border-right: 1px solid var(--border); background: var(--background);
  transition: width 0.3s ease;
}
.ap.sidebar-min .ap-rail { width: 76px; }
.ap-col { margin-left: 212px; transition: margin-left 0.3s ease; }
.ap.sidebar-min .ap-col { margin-left: 76px; }
.ap-railhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 22px; min-height: 44px; }
.ap.sidebar-min .ap-railhead { flex-direction: column; gap: 8px; }
.ap-raillogo { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: var(--r-xl); min-width: 0; }
/* 5 Eyl (Cihan, ucuncu kez): the mark is ONE image at ONE size in both states
   (28px, the menu glyph size); the wordmark (IBM Plex Mono "yobro_", text
   only) sits beside it and simply hides when the rail folds. */
.ap-railmark { display: block; width: 26px; height: 26px; flex: 0 0 auto; }
.ap-raillockup { display: block; height: 19px; width: auto; }
.ap.sidebar-min .ap-raillockup { display: none; }
.ap.sidebar-min .ap-raillogo { padding: 4px 0; justify-content: center; }
.ap-railtoggle {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: var(--r-lg);
  border: none; background: none; color: var(--muted-2); opacity: 0.4;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.ap-railtoggle:hover { opacity: 1; background: var(--surface); color: var(--foreground); }
.ap-railtoggle svg { transition: transform 0.3s ease; }
.ap.sidebar-min .ap-railtoggle svg { transform: scaleX(-1); }
.ap-railnav { display: flex; flex-direction: column; gap: 4px; }
.ap-railitem {
  display: flex; align-items: center; gap: 13px;
  min-height: 48px; padding: 0 12px; border-radius: var(--r-xl);
  font-family: var(--sans); font-size: 20px; font-weight: 500; color: var(--muted);
  white-space: nowrap; overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}
.ap-railitem:hover { background: var(--surface); color: var(--foreground); }
.ap-railitem.on { background: var(--surface-2); color: var(--foreground); }
.ap-railitem svg { flex: 0 0 auto; transition: color 0.2s ease; }
.ap-railitem.on svg { color: var(--accent); }
.ap-raildot { margin-left: auto; width: 7px; height: 7px; border-radius: 10px; background: var(--accent); flex: 0 0 auto; }
.ap.sidebar-min .ap-railitem { justify-content: center; padding: 0; }
.ap.sidebar-min .ap-railitem span, .ap.sidebar-min .ap-raildot { display: none; }
/* 22 Eyl (Cihan): the help group at the foot of the rail - Support (the
   Telegram agent) over Docs. Same item, drawn one step smaller: these are
   doors to help, not boards. */
.ap-railfoot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border); }
.ap-railitem.sm { min-height: 36px; font-size: 15px; gap: 10px; color: var(--muted-2); }
.ap-railitem.sm:hover { color: var(--foreground); }

/* the top bar's search box (baaf's SearchTrigger): a glyph, the field, ⌘ + K */
.ap-topsearchwrap { flex: 0 1 448px; min-width: 0; }
.ap-topsearch { position: relative; }
.ap-topsearchico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.ap-topsearch input {
  width: 100%; padding: 10px 72px 10px 36px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--background);
  font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ap-topsearch input::placeholder { color: var(--muted-2); }
.ap-topsearch input:hover { border-color: var(--border-strong); }
.ap-topsearch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ap-topsearch kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 4px; pointer-events: none;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2);
  padding: 2px 6px; font-family: var(--mono); font-size: 10px; color: var(--muted-2);
}
.ap-topsearch kbd .ap-topsearchmeta { font-size: 13px; line-height: 1; }
/* phone: the search glyph beside the wallet */
.ap-topsearchbtn { display: none !important; }

/* ---------- ⌘K palette (baaf's CommandPalette) ----------
   desk: a centred rounded panel over a dimmed, blurred page; phone: the
   whole screen. One flat list under section labels; the chosen row is lit. */
.cp-wrap { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.cp-scrim { position: absolute; inset: 0; border: none; cursor: default; background: rgba(13, 11, 16, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: overlay-in 0.16s ease both; }
.cp {
  position: relative; width: 100%; max-width: 672px; max-height: min(720px, 84vh);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  animation: fade-up 120ms ease backwards;
}
.cp-row { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--border); }
.cp-ico { flex: 0 0 auto; color: var(--muted-2); }
.cp-input {
  flex: 1 1 auto; min-width: 0; background: none; border: none; outline: none;
  padding: 16px 0; font-family: var(--sans); font-size: 16px; color: var(--foreground);
}
.cp-input::placeholder { color: var(--muted-2); }
.cp-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cp-kbd {
  flex: 0 0 auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2);
  padding: 2px 6px; font-family: var(--mono); font-size: 10px; color: var(--muted-2);
}
.cp-x { display: none; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; border: none; background: var(--surface-2); color: var(--muted); align-items: center; justify-content: center; cursor: pointer; }
/* 30 Eyl (Cihan: "mobil ve web aramasi ayni olsun, son bakilanlar ayni hizada"):
   pencere telefon aramasinin masaustu cizimi; veri ortak (app/src/arama.ts).
   Serit suzgeci, Movers seridi, her satir ayni izgarada: logo | ad + etiket /
   alt satir | sabit genislikte fiyat + degisim | secim isareti. */
.cp-filter { display: flex; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.cp-ftab { height: 32px; padding: 0 14px; border: 0; border-radius: 10px; background: none; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--muted); font: 700 13.5px/1 var(--sans); cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.cp-ftab:hover { color: var(--foreground); }
.cp-ftab.on { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--foreground); }
.cp-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 0 10px 14px; }
.cp-group { display: block; }
.cp-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 16px 8px 6px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2);
}
.cp-body > .cp-group:first-child > .cp-label { margin-top: 12px; }
.cp-clear { border: none; background: none; cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--accent); text-transform: none; letter-spacing: 0; }
.cp-clear:hover { color: var(--accent-strong); }
.cp-moverst { display: inline-flex; align-items: center; gap: 8px; }
.cp-livedot { width: 7px; height: 7px; border-radius: 14px; background: var(--gain); animation: cp-livedot 1.8s ease-out infinite; }
@keyframes cp-livedot { 0%, 100% { box-shadow: 0 0 0 0 rgba(43, 214, 123, .55); } 70% { box-shadow: 0 0 0 7px rgba(43, 214, 123, 0); } }
.cp-movers { display: flex; gap: 10px; overflow-x: auto; padding: 2px 6px 8px; scrollbar-width: none; }
.cp-movers::-webkit-scrollbar { display: none; }
.cp-mover { flex: 0 0 auto; width: 88px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px 10px; border: 0; border-radius: 12px; background: linear-gradient(180deg, rgba(43, 214, 123, .12), rgba(43, 214, 123, .02)); color: var(--foreground); font: inherit; cursor: pointer; transition: transform .18s ease, background .18s ease; animation: cp-rise .36s ease both; }
.cp-mover:hover { transform: translateY(-2px); background: linear-gradient(180deg, rgba(43, 214, 123, .18), rgba(43, 214, 123, .04)); }
.cp-mover b { max-width: 76px; font: 800 13px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-mover span { font: 800 14px/1.1 var(--sans); letter-spacing: -0.02em; color: var(--gain); font-variant-numeric: tabular-nums; }
.cp-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 128px 18px; align-items: center; column-gap: 12px; width: 100%; min-height: 62px;
  padding: 8px 10px; border-radius: 10px; border: none; background: none;
  text-align: left; color: var(--foreground); cursor: pointer; font: inherit;
  transition: background 0.15s ease; animation: cp-rise .3s ease both;
}
.cp-item.on { background: var(--surface-2); }
@keyframes cp-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cp-art { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.cp-art.round { border-radius: 10px; }
.cp-art img { width: 100%; height: 100%; object-fit: cover; }
.cp-tile { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 12px; font-weight: 700; color: #fff; }
.cp-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cp-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cp-name { min-width: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-name mark { background: none; color: var(--accent); }
.cp-sym { flex: 0 1 auto; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-sub { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-spin { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 14px; border: 2px solid var(--surface-3); border-top-color: var(--accent); animation: cp-spin .7s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }
/* ARAMA UYARISI (24 Eyl): taklit / az likidite / az sahip / islemsiz */
.cp-warn { font-style: normal; color: var(--gold); }
.tm-warn { margin: 0 0 10px; padding: 9px 14px; border-radius: var(--r-xl); background: var(--gold-soft); color: var(--gold); font-size: 13px; line-height: 1.4; }
.tm-warn b { font-weight: 700; }
/* SAHTE TOKEN BANDI (29 Eyl, Selcuk): kimlik calmasi ya da taklit. Kucuk "Caution" satirindan
   ayri ve kirmizi; baslik ve resmi tokene bag kirmizi, cumle okunur beyaz. */
.tm-fake { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--r-xl); background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.45); color: var(--foreground); font-size: 13.5px; line-height: 1.45; }
.tm-fake b { color: var(--red); font-weight: 700; }
.tm-fake a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.cp-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
.cp-end b { max-width: 100%; font: 700 14.5px/1.2 var(--sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-end b small { font-size: 11.5px; font-weight: 600; color: var(--muted-2); }
.cp-chg { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font: 700 12px/1 var(--sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--muted); }
.cp-item.on .cp-chg { background: var(--surface-3); }
.cp-chg.up, .cp-item.on .cp-chg.up { background: var(--gain-soft); color: var(--gain); }
.cp-chg.down, .cp-item.on .cp-chg.down { background: var(--danger-soft); color: var(--danger); }
.cp-lane { flex: 0 0 auto; padding: 2px 6px; border-radius: 5px; font: 700 10.5px/1.3 var(--sans); background: var(--surface-3); color: var(--muted); }
.cp-lane.perps { background: var(--gain-soft); color: var(--gain); }
.cp-lane.tokens { background: rgba(251, 191, 36, 0.14); color: var(--gold); }
.cp-enter { justify-self: end; }
.cp-note { margin: 4px 12px 8px; font-size: 12.5px; line-height: 1.45; color: var(--muted-2); }
.cp-empty { padding: 44px 12px; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); }
.cp-empty small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--muted-2); }
@media (prefers-reduced-motion: reduce) { .cp-item, .cp-mover, .cp-livedot { animation: none; } }

/* ---------- pump.fun board as baaf's home (3 Sep, Cihan: birebir) ----------
   No panel frame: a crown heading, a drifting belt of the biggest tokens, a
   sticky bar of pill tabs + Grid/Table, then the card grid or the table. */
.pu-home { display: block; }
.pu-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pu-heading h1 { margin: 0; font-family: var(--sans); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.pu-crown { flex: 0 0 auto; color: var(--accent); }
.pu-back {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 36px; height: 36px; margin-left: -8px; border: none; border-radius: var(--r-xl); background: none;
  color: var(--muted); cursor: pointer; transition: color 0.2s ease, background 0.2s ease;
}
.pu-back:hover { color: var(--foreground); background: var(--surface); }
.pu-mrow > img { display: block; }

 /* 18 Eyl gece (Cihan): kayan kartlarin ustune azicik bosluk */

.pu-word { margin: 0; font-family: var(--sans); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--foreground); }

.pu-bartabs { position: relative; min-width: 0; flex: 1 1 auto; }
.pu-bartablist { display: flex; align-items: center; gap: 20px; overflow-x: auto; padding-right: 32px; scrollbar-width: none; }
/* 23 Eyl (Cihan: "sekmeler asagi yukari hareket ediyor"): overflow-x:auto seridi
   dikeyde de kaydirilabilir yapiyordu (overflow-y auto'ya doner); tekerlek sekmeleri
   oynatiyordu. Serit yalniz yana kayar, kenarda sayfaya tasmaz. */
.pu-bartablist { overflow-y: hidden; overscroll-behavior-x: contain; }
.pu-bartablist::-webkit-scrollbar { display: none; }
.pu-bartab {
  flex: 0 0 auto; white-space: nowrap; background: none; border: none; border-bottom: 2px solid transparent;
  padding: 2px 0; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.pu-bartab.on { color: var(--accent); border-bottom-color: var(--accent); }
/* 5 Kas (Cihan: "Post'un altindaki yesil cizgi cerceveli, Tokens'taki gibi duz cizgi olsun"): genel :focus-visible
   kurali (styles.css, border-radius 6px) tiklanan sekmenin koselerini yuvarliyor, alt cizgi iki uctan kivriliyordu. */
.pu-bartab, .pu-bartab:focus, .pu-bartab:focus-visible { border-radius: 0; }
.pu-barfade { position: absolute; top: 0; bottom: 0; right: 0; width: 40px; pointer-events: none; background: linear-gradient(to left, var(--background), transparent); }

/* grid: baaf caps at five columns */
.pu-grid { gap: 28px 20px; }
@media (min-width: 1400px) { .pu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pu-spark { position: absolute; right: 8px; bottom: 8px; width: 58%; height: 26%; pointer-events: none; }
/* 19 Eyl: token kartinda logo daire + bulanik zemin (contain); mini grafik ve rozet zeminin USTUNDE kalir. */
.tm-gart.contain .pu-spark, .tm-gart.contain .tm-gbadge { z-index: 2; }

/* ---------- lansman rozeti (19 Eyl, Cihan): logonun sag altinda minik launchpad logosu ---------- */
.tm-lpwrap { position: relative; display: inline-flex; flex: 0 0 auto; line-height: 0; }
.tm-lpwrap > * { flex: 0 0 auto; }
/* Secici ozgullugu bilincli yuksek: .pu-top img / .tm-gart img gibi genel logo
   kurallari rozeti de yakalar; rozet kendi olcusunu hep geri alir. */
.tm-lpwrap > img.tm-lpbadge, .tm-gart.contain > .tm-lpwrap > img.tm-lpbadge {
  position: absolute; right: -3px; bottom: -3px; z-index: 2; left: auto; top: auto;
  width: 42%; max-width: 26px; min-width: 14px; height: auto; aspect-ratio: 1 / 1;
  border-radius: 10px; object-fit: cover; box-sizing: border-box; filter: none; opacity: 1; transform: none;
  border: 2px solid var(--background, #000); background: var(--surface-2);
}
.tm-gart.contain > .tm-lpwrap > img.tm-lpbadge { width: 30%; max-width: 44px; right: 0; bottom: 0; border-width: 3px; }
.pu-mrow .tm-lpwrap > img.tm-lpbadge { max-width: 20px; }

.pu-vol { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pu-pager { margin-top: 48px; }
.pu-pagerdots { padding: 0 4px; font-family: var(--mono); font-size: 14px; color: var(--muted-2); }

.pu-mlive { flex: 0 0 auto; padding: 0 4px; border-radius: 4px; background: var(--accent); color: #000; font-family: var(--mono); font-size: 9px; font-weight: 700; line-height: 14px; }

/* 17 Eyl (Cihan): telefon satiri UC SUTUN, hepsi ayni yukseklikte ve dikeyde
   ortali - logo | sembol + soluk MC | fiyat + 24s cipi. Mini grafik, ad
   satiri, V/MC cipleri, yas ve yildiz kalkti; satirlar simetrik oturur. */
.pu-mrow {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; min-height: 72px; padding: 12px 16px;
  border: none; border-top: 1px solid var(--border); background: none; color: var(--foreground); text-align: left; cursor: pointer; font: inherit;
}
.pu-mrow:first-child { border-top: none; }
.pu-mrow:active { background: var(--surface-2); }
.pu-mrow > img, .pu-mrow > .tm-lpwrap > :first-child, .pu-mtile { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; }
.pu-mtile { display: flex; align-items: center; justify-content: center; background: var(--surface-3); font-weight: 700; }
.pu-mid { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pu-msym { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pu-msymtext { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pu-mcap { font-family: var(--mono); font-size: 13px; line-height: 18px; color: var(--muted); white-space: nowrap; transition: color 0.7s ease; }
.pu-mcap.up { color: var(--gain); }
.pu-mcap.down { color: var(--danger); }
.pu-mright { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.pu-mpx { font-family: var(--mono); font-size: 17px; font-weight: 700; line-height: 22px; font-variant-numeric: tabular-nums; transition: color 0.7s ease; }
.pu-mpx.up { color: var(--gain); }
.pu-mpx.down { color: var(--danger); }
/* 17 Eyl (Cihan): yuzde cipinin cercevesi kalkti, saga yasli duz yazi */
.pu-mmc { display: flex; justify-content: flex-end; }
.pu-mmc .tm-chg { padding: 0; min-width: 0; background: none; border-radius: 0; font-size: 13px; line-height: 18px; font-weight: 600; text-align: right; }
.pu-mmc .tm-chg.flat { color: var(--muted-2); }
/* BONDING SATIRI (19 Eyl, Cihan'in ekran goruntusu): sembol + filiz/yas,
   altinda 24s hacim; sagda MC (canli renk), altinda doluluk cubugu + yuzde. */
.pu-mage { display: inline-flex; align-items: center; gap: 3px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--gain); white-space: nowrap; }
.pu-mage svg { display: block; }
.pu-mvol { font-family: var(--mono); font-size: 13px; line-height: 18px; color: var(--muted); white-space: nowrap; }
.pu-mbmc { font-family: var(--mono); font-size: 17px; font-weight: 700; line-height: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 0.7s ease; }
.pu-mbmc.up { color: var(--gain); }
.pu-mbmc.down { color: var(--danger); }
.pu-mfill { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pu-mbar { width: 64px; height: 5px; }
.pu-mpct { font-family: var(--mono); font-size: 13px; line-height: 18px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* market logo tiles: blurred, enlarged copy of the logo behind the crisp
   mark. LAYERING (3 Sep, Cihan: "kirli koseler"): the backdrop is its own
   clipped, GPU-composited layer with the blur on the IMG inside it - the
   glow physically cannot reach past the card's rounded edge. */
.tm-gart.contain .tm-gback {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit; overflow: hidden; transform: translateZ(0);
}
.tm-gart.contain .tm-gback img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  transform: scale(1.5); filter: blur(24px) saturate(1.4); opacity: 0.75;
}
.tm-gart.contain > img, .tm-gart.contain > .tm-gtile, .tm-gart.contain > .tm-lpwrap { position: relative; z-index: 1; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45)); }
/* 19 Eyl: rozetli logo - sarmal 62%'lik daireyi alir, icindeki logo/karo onu doldurur */
.tm-gart.contain > .tm-lpwrap { width: 62%; height: 62%; }
.tm-gart.contain > .tm-lpwrap > :first-child { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; font-size: 26px; }
.tm-gart.contain::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(13, 11, 16, 0.05), rgba(13, 11, 16, 0.35)); }

/* frameless scenes: the desk table keeps a rounded frame of its own */
.sc-frame { border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden; }
.sc-frame .ap-table { border: none; }
.sc-frame .ap-table thead th:first-child, .sc-frame .ap-table tbody td:first-child { padding-left: 16px; }
.sc-frame .ap-table thead th:last-child, .sc-frame .ap-table tbody td:last-child { padding-right: 16px; }
.pu-home > .pu-search { display: none; }
/* the rank / activity rows: hairlines edge to edge on a phone */

.pf-activity .act-row:last-of-type { border-bottom: 1px solid var(--border); }
.pf-activity { display: block; }

.pu-wordtop { margin-bottom: 10px; }

/* ---------- chart chrome, 3 Sep: dexscreener on a desk, pump.fun on a phone ---------- */
.tv-bottom { border-top: 1px solid var(--border); border-bottom: none; }
/* YOBRO GRAFIGI (20 Eyl gece, sifirdan; Chart.tsx, lightweight-charts): telefon ve
   masaustu ayni pano. Dikey dokunma sayfaya gider (pan-y), yatay + iki parmak grafige. */
.oc-pane { position: relative; }
.oc-holder { position: absolute; inset: 0; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.oc-holder canvas { -webkit-touch-callout: none; }
.oc-pane, .oc-box { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* KENARDAKI SEVIYE (15 Kas; app/Chart.tsx kenarlar): olcegin disindaki likidasyon / giris / TP / SL grafigin ust ya da alt
   kenarinda, eksen etiketinin dilinde (renkli kutu, koyu yazi, yonu gosteren ok). */
.oc-kenar { position: absolute; right: 4px; z-index: 6; display: grid; justify-items: end; gap: 3px; pointer-events: none; }
.oc-kenar.ust { top: 4px; }
.oc-kenarsatir { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 3px; color: #15121a; font: 600 11px/16px var(--mono, ui-monospace, monospace); white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.oc-kenarsatir b { font-weight: 600; font-family: var(--sans, inherit); }
.oc-kenarsatir i { font-style: normal; }
/* SEVIYE BANDI (15 Kas; app/TVChart.tsx bantlar): gorunen araliktaki seviyenin cizgisi hizasinda, fiyat ekseninin hemen
   solunda renkli bant; fiyati eksendeki TradingView etiketi yazar (telefondaki baslik + eksen etiketi ikilisi). */
.oc-bant { position: absolute; z-index: 5; transform: translateY(-50%); padding: 1px 7px; border-radius: 3px 0 0 3px; color: #15121a; font: 600 11px/16px var(--sans, inherit); white-space: nowrap; pointer-events: none; }

.mc-note { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted-2); pointer-events: none; }
/* MUM SURELERI (14 Eki, Cihan: "mumlarin surelerini belirleyelim: 1 sn, 1 dk, 5 dk, 15 dk, 1 saat,
   4 saat, 1 gun, 1 hafta, 1 ay, All; sigmayacak, kaydirmali yaparsin"; kurallar tv/ranges.ts).
   Dar ekranda (TradingView basligi yokken) grafigin altindaki satir: sureler kayan seritte
   (MumSerit.tsx), saginda can, mum/cizgi ve ayarlar sabit. Eski LIVE / 1H / 4H satiri kalkti. */
.tv-ranges { justify-content: flex-start; gap: 2px; }
.tv-ranges .tv-grow { display: none; }
.tv-ranges .tv-pill { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 5px 0; flex: 1 1 0; text-align: center; }
.tv-ranges .tv-iconbtn { flex: 0 0 auto; padding: 5px 9px; justify-content: center; }
.tv-iconbtn { display: inline-flex; align-items: center; padding: 4px 8px; }
.mum-serit {
  position: relative; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 2px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mum-serit::-webkit-scrollbar { display: none; }
.tv-ranges .mum-serit .tv-pill { flex: 0 0 auto; padding: 5px 9px; }
/* MASAUSTU: can ve grafik ayarlari TradingView basliginin ortadaki boslugunda (14 Eki, Cihan: "sadece
   zil ve chart setting kismini aradaki bosluga guzel bir sekilde ekleyelim"). Yer, baslikta acilan bos
   yer tutucudan olculur (TVChart.tsx ustYer); olculemezse sagdaki TradingView dugmelerinin solunda. */
.tv-ust { position: absolute; z-index: 3; display: flex; align-items: center; gap: 2px; padding: 0 2px; }
.tv-ust .tv-pill { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; padding: 0; border-radius: 6px; color: #b9b2bf; }
.tv-ust .tv-pill:hover { color: var(--foreground); background: var(--surface-2); }
.tv-ust .tv-pill.on, .tv-ust .ga-btn.dolu { color: var(--accent); background: none; }
/* Basliga sigmayinca (dar grafik) ayni iki dugme grafigin altinda, saga yasli ince satirda. */
.tv-bar.tv-bottom.tv-ranges.tv-ust-alt { justify-content: flex-end; gap: 4px; padding: 4px 10px; }
@media (max-width: 1023px) {
  /* pump.fun's bare pane: no frame, no side borders, edge to edge */
  .tm-chartcell { border: none; border-radius: 0; background: var(--background); margin-left: -16px; margin-right: -16px; }
  /* 19 Eyl (Cihan: "chartla sekmeler arasinda cok bosluk var"): grafik altindaki bloklar birbirine yaklasir. */
  .tm-termmain { gap: 6px; }
  .tv-bar.tv-bottom { padding: 6px 12px; gap: 4px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .tv-bar.tv-bottom.tv-tight { padding: 6px 8px; gap: 0; justify-content: space-between;
    -webkit-mask-image: none; mask-image: none; overflow-x: hidden; }
  .tv-bar.tv-bottom.tv-tight .tv-pill { font-size: 12.5px; padding: 6px 5px; }
  .tv-bar.tv-bottom.tv-tight .tv-sep { margin: 0 1px; }
  .tv-bar.tv-bottom.tv-tight .tv-scale { margin-left: 0; gap: 0; }
  .tv-bar.tv-bottom.tv-tight .tv-iconbtn { padding: 4px 5px; }
  .tv-bar.tv-bottom.tv-tight .tv-iconbtn svg { width: 14px; height: 14px; }
  .tv-bar.tv-bottom::-webkit-scrollbar { display: none; }
  .tv-bar.tv-bottom .tv-pill { font-family: var(--sans); font-size: 15px; font-weight: 500; padding: 6px 10px; color: var(--muted); }
  .tv-bar.tv-bottom.tv-ranges { padding: 6px 10px; gap: 0; -webkit-mask-image: none; mask-image: none; overflow-x: hidden; }
  .tv-bar.tv-bottom.tv-ranges .tv-pill { font-family: var(--mono); font-size: 12.5px; font-weight: 600; padding: 6px 0; }
  .tv-bar.tv-bottom.tv-ranges .tv-iconbtn { padding: 6px 8px; }
  .tv-bar.tv-bottom.tv-ranges .tv-sep { margin: 0 2px; }
  .tv-bar.tv-bottom .tv-pill.on { color: var(--foreground); background: var(--surface-2); font-weight: 600; }
  .tv-tabs { padding: 4px 12px; }
  /* the indicator row scrolls; its right edge melts so KDJ reads as "more" */
  .tv-tabscroll {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    scrollbar-width: none;
  }
  .tv-tabscroll::-webkit-scrollbar { display: none; }
}

/* SAYAN SAYININ YON RENGI (4 Eyl gece, Cihan): yukari sayarken yesil, asagi
   sayarken kirmizi - pons/spot/perps, mobil + web ayni sistem. Renk
   sayimla gelir, kisa bir oturmadan sonra yuzeyin kendi rengine doner. */
.roll { transition: color 0.3s ease; }
.roll.roll-up { color: var(--gain) !important; }
.roll.roll-down { color: var(--danger) !important; }

/* 4 Eyl gece (Cihan): bilet ile havuz karti birbirine giriyordu - rail
   bosluğu yalniz genis ekrandaki sticky kuralinda yasiyordu; simdi her
   genislikte var. Hero'da yuzde solda, fiyat sagda: satir saga yaslanir. */
.tm-aside { display: flex; flex-direction: column; gap: 16px; }
.th-bigrow { justify-content: flex-end; }

/* 5 Eyl (Cihan, 3. kez): rail bosluğu. .only-desk display:block dayatiyor,
   flex+gap hic calismiyordu (olculdu: kart#0 alt 482 = kart#1 ust 482).
   Kural artik display'den bagimsiz: komsu kartlar arasi 16px. */
.tm-aside > * + * { margin-top: 16px !important; }
/* 18 Eki (Selcuk): Buy/Sell biletinin ustunde kucuk uyari satiri (telefondaki m-tokwarn'in masaustu esi). */
.tm-tokwarn { padding: 8px 12px; border-radius: 8px; background: var(--surface); color: var(--muted-2); font-size: 12px; line-height: 1.45; }
.tm-tokwarn p { margin: 0; }
.tm-tokwarn b { font-weight: 700; color: rgba(251, 191, 36, 0.8); }
/* Hero: sol logo bir tik buyuk, sag blok sol blokla ayni yukseklikte (simetri). */
.th-top { align-items: stretch; }
.th-top > .tm-logo { width: 96px; height: 96px; font-size: 26px; border-radius: 10px; flex: 0 0 auto; }
.th-money { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; }
/* Bilet: dislı + bakiye satiri */
.ap-ticketrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ap-slipgear { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 4px 10px; color: var(--muted); font-family: var(--mono); font-size: 12px; cursor: pointer; }
.ap-slipgear.on, .ap-slipgear:hover { color: var(--foreground); border-color: var(--accent); }
.ap-avail { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.ap-avail b { color: var(--foreground); font-weight: 600; }

/* 5 Eyl (Cihan): hero simetrisi - sag blok kucultuldu ve iki blok dikeyde
   ortalanir; logonun ustundeki ve altindaki bosluk esit olur. */
.th-top { align-items: center; }
.th-money { gap: 0; align-self: center; justify-content: center; }
.th-money .tm-metrictoggle { font-size: 13px; }
.th-money .tm-metricvalue { font-size: 30px; margin-top: 0; }
.th-money .th-chg { font-size: 13px; }
.th-money .th-ath { margin-top: 4px; }

/* 5 Eyl (Cihan): grafik boyut tutamagi - yuvarlak kucuk (14px), oklar ayni,
   HER genislikte tam ortada: flex hizasina degil mutlak konuma dayanir. */
.tm-grip { position: relative; height: 0; width: 100%; display: block; }
.tm-gripdot {
  position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin: 0;
  transform: translate(-50%, -50%) !important;
}
.tm-gripdot svg { width: 10px; height: 10px; }

/* 5 Eyl (Cihan): ray katlaninca logo ayni boyda kalir; daraltma dugmesi
   rayin sag cizgisinin ustune, yuvarlak siyah altlikla oturur. */
.ap-rail { overflow: visible; }
.ap-railhead { position: relative; }
.ap.sidebar-min .ap-railhead { flex-direction: row; justify-content: center; }
.ap-railtoggle {
  position: absolute; right: -28px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 10px; opacity: 1;
  background: var(--background); border: 1px solid var(--border); color: var(--muted);
  z-index: 41;
}
.ap-railtoggle:hover { background: var(--surface); color: var(--foreground); border-color: var(--border-strong); }

/* MASA ISKELETI (.pr-term): Watchlist, Rank ve Agent masalari ayni iki sutun (liste ve sag ray). */
.pr-term { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.pr-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pr-term { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.pr-aside { position: sticky; top: calc(var(--topbar) + 16px); align-self: start; }

/* phone token panel: link icons only (no CA chip), a neat equal row (5 Eyl) */
.tm-identchips-mob .tm-chip.icon { min-height: 40px; min-width: 44px; justify-content: center; padding: 0 12px; border-radius: var(--r-xl); }
/* pooled amount, then its dollar value (5 Eyl) */
.th-usd { color: var(--muted); margin-left: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   ACCOUNT SCENE (5 Eyl aksam, Cihan): Profile + Credit in the site's
   frameless language. `.ac` scopes it: no panels, hairline rows, the number
   strip on hairlines, section words via .pu-sect. Platform activity was
   already in this dress and is untouched.
   ══════════════════════════════════════════════════════════════════════════ */
.ac { display: flex; flex-direction: column; gap: 30px; }
.ac-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ac-gate { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0 6px; }
.ac-gate p { margin: 0; max-width: 520px; font: 400 15px/1.6 var(--sans); color: var(--muted); }

/* identity strip */
.ac .pf-id { padding: 4px 0 18px; }
.ac .pf-face { width: 56px; height: 56px; font-size: 28px; border-radius: 10px; }
.ac .pf-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.ac .pf-edit { margin: 0 0 16px; padding: 16px 0 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* the number strip: cells on hairlines, no fill */
.ac .pf-stats { margin: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ac .pf-stats .ap-stat { padding: 16px 18px 16px 0; }
.ac .pf-stats .ap-stat + .ap-stat { padding-left: 18px; }
.ac .pf-stats .ap-statlabel { font: 600 12px/1 var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); }
.ac .pf-stats .ap-statvalue { font-size: 24px; margin-top: 8px; }
.ac .pf-money { padding: 12px 0 12px 18px; }
.ac .pf-agentwallet { margin: 0; padding: 12px 0 0; border-top: none; }
@media (max-width: 900px) {
  .ac .pf-stats .ap-stat { padding: 14px 12px 14px 0; }
  .ac .pf-stats .ap-stat:nth-child(2n) { padding-left: 14px; padding-right: 0; }
  .ac .pf-money { padding: 12px 0 12px 12px; }
  .ac .pf-face { width: 50px; height: 50px; font-size: 26px; }
  .ac .pf-name { font-size: 20px; }
}

/* the rewards card (Credit page) in the same dress */
.ac .rw-panel { border: none; border-radius: 0; background: none; }
.ac .rw-connect { border: none; border-radius: 0; padding: 4px 0 8px; text-align: left; }
.ac .rw-connect p { max-width: 520px; font-size: 15px; }
.ac .rw-grid, .ac .rw-grid.three { padding: 0; gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ac .rw-cell { background: none; border: none; border-radius: 0; padding: 16px 18px 16px 0; }
.ac .rw-cell + .rw-cell { border-left: 1px solid var(--border); padding-left: 18px; }
.ac .rw-cell .sym { font: 600 12px/1 var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.ac .rw-cell.main .sym { color: var(--muted); }
.ac .rw-cell .name { font-size: 11.5px; margin-top: 4px; }
.ac .rw-cell .val { font-size: 24px; }
.ac .rw-cell.main .val { color: var(--accent); }
.ac .rw-valrow { margin-top: 8px; }
.ac .rw-positions { padding: 12px 0 0; margin-top: 0; border-top: none; }
.ac .rw-note { padding: 12px 0 0; border-top: none; }
@media (max-width: 900px) {
  .ac .rw-grid.three .rw-cell { padding: 12px 0; }
  .ac .rw-cell + .rw-cell { border-left: none; border-top: 1px solid var(--border); padding-left: 0; }
}

/* stat strip (platform record) */
.ac-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ac-stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 16px 0; min-width: 0; }
.ac-stat + .ac-stat { border-left: 1px solid var(--border); padding-left: 18px; }
.ac-statlabel { font: 600 12px/1 var(--sans); color: var(--muted); }
.ac-stat b { font: 700 24px/1.1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ac-stat.accent b { color: var(--accent); }
.ac-stat small { font: 400 11.5px/1.3 var(--sans); color: var(--muted-2); }

/* hairline rows (payout history, backing) */
.ac-rows { display: flex; flex-direction: column; }
.ac-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--border); }
.ac-row:last-child { border-bottom: 1px solid var(--border); }
.ac-cycle { grid-template-columns: auto minmax(0, 1fr) auto; }
.ac-rowtime { font: 500 12px/1.3 var(--mono); color: var(--muted-2); white-space: nowrap; }
.ac-rowmain { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ac-rowtitle { font: 600 14.5px/1.3 var(--sans); }
.ac-rowsub { font: 400 12.5px/1.5 var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.ac-tx { margin-left: 8px; font: 500 11.5px/1 var(--mono); color: var(--accent); text-decoration: none; border-bottom: 1px dotted rgba(255, 106, 0, 0.5); }
.ac-rownum { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.ac-rownum b { font: 700 15px/1 var(--mono); font-variant-numeric: tabular-nums; }
.ac-rownum b.pos { color: var(--gain); }
.ac-rownum small { font: 400 11.5px/1.3 var(--mono); color: var(--muted-2); white-space: nowrap; }
.ac-note { margin: 12px 0 0; font: 400 13px/1.6 var(--sans); color: var(--muted); max-width: 720px; }
@media (max-width: 900px) {
  .ac { gap: 26px; }
}
/* the profile's positions list and activity ride the same hairlines */
.ac .hold-row { padding-left: 0; padding-right: 0; }
.ac .pf-activity { margin-top: 0; }
/* the landing's generic section dress must not leak into the account scene */
.ac > section, .ac section { padding: 0; border-bottom: none; }
/* empty states: no dashed box, a quiet left-aligned line on hairlines */
.ac .ap-empty { border: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0; text-align: left; padding: 18px 0; }
.ac .ap-emptybody { margin-inline: 0; }
.ac .pf-stats .ap-stat { text-align: left; }

/* profile money doors as pills, field labels in the site's word style */
.ac .pf-moneybtn { flex-direction: row; min-height: 44px; border-radius: 10px; font-size: 13px; gap: 8px; }
.ac .pf-money { align-items: center; }
.ac .pf-fieldlabel { font: 600 12px/1 var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); }
/* profile: two cells, each door inside its own number (5 Eyl aksam) */
.ac .pf-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac .pf-stats.two .ap-stat:nth-child(2) { border-right: none; border-bottom: none; }
.ac .pf-stats.two .ap-stat:nth-child(1) { border-bottom: none; }

.ac .pf-stats section.ap-stat { padding: 16px 18px 16px 0; border-bottom: none; }
.ac .pf-stats section.ap-stat + section.ap-stat { padding-left: 18px; }

/* Wallet values: one hierarchy for holdings, activity and balance summaries. */
.ac .pf-stats.wallet-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.wallet-number-label { display: block; font: 400 10px/1.5 var(--sans); color: var(--muted); white-space: nowrap; }
.act-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
@media (max-width: 700px) {
  .ac .pf-stats.wallet-three { grid-template-columns: 1fr; }
  .ac .pf-stats.wallet-three section.ap-stat { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .ac .pf-stats.wallet-three section.ap-stat:last-child { border-bottom: 0; }
  .ac .pf-stats.wallet-three .ap-statsub { white-space: normal; }
}

/* ── Ust cubuk ozeti (5 Eyl gece): cuzdan cipinin solunda Credit · Cash ·
   Deposit; kucuk, yalniz masaustu. ── */
.ap-topmoney { display: flex; }
.ap-topmoney + .ap-wallet { margin-left: 0; }

/* ── Yorum kutusu tutamagi (5 Eyl gece, Cihan: "kosedeki beyaz cizgiler
   cercevenin disina tasiyor"): tarayicinin cizgileri yuvarlak kosenin
   ustune biniyordu; kendi cizgimizi ceker, koseden iceri alir. ── */
.tx-composer-in, .ap-textarea { background-clip: padding-box; }
.tx-composer-in::-webkit-resizer, .ap-textarea::-webkit-resizer {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='M8 1 1 8M8 5 5 8' stroke='%239a9a9a' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1px 1px;
  background-size: 9px 9px;
}

/* ── Kimlik satiri araclari (5 Eyl gece): kalem + ayarlar carki adin saginda,
   cark minik bir acilir menu acar (ses, export key, sign out); agent cuzdani
   adresin saginda. ── */
.pf-nameline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pf-tools { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
/* ALTIN ROZET (5 Eyl gece): adin hemen saginda, cerceve yok; boyu disaridan */
.rz { flex: 0 0 auto; display: inline-block; vertical-align: -3px; margin-left: 5px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.pf-nameline .rz { margin-left: 0; }
.ap-chipbadge { display: inline-flex; align-items: center; margin-left: -2px; }
.ap-chipbadge:empty { display: none; }

.tx-notehead .rz { margin-left: 4px; }
.pf-tool {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: 1px solid var(--border); border-radius: 10px; background: none; color: var(--muted);
  cursor: pointer; padding: 0; transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.pf-tool:hover, .pf-tool.on { color: var(--foreground); border-color: var(--border-strong); background: var(--surface-2); }
.pf-tool:disabled { opacity: .4; cursor: default; }
.pf-gearwrap { position: relative; display: inline-flex; }
.pf-menuscrim { position: fixed; inset: 0; z-index: 30; background: none; border: none; cursor: default; }
/* AYARLAR MENUSU SAGA HIZALI VE CERCEVELI (17 Eyl, Cihan). Cark sayfanin en
   saginda durur; menu carkin SOL kenarindan sagA dogru aciliyordu, sayfa
   kenarinda kesiliyor ve cercevesi gorunmuyordu. Simdi carkin sag kenarina
   hizali ve sola dogru acilir; cerceve de siyah zeminde secilsin diye koyu
   cizgi (--border) yerine belirgin cizgi (--border-strong). */
.pf-menu {
  position: absolute; right: 0; top: 100%; z-index: 31; margin-top: 8px; min-width: 190px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .8); padding: 6px;
  animation: fade-up 120ms ease both;
}
.pf-menurow {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
  border: none; border-radius: var(--r-lg); background: none; color: var(--foreground);
  font: 500 13.5px/1 var(--sans); cursor: pointer; text-align: left; white-space: nowrap;
  transition: background .15s ease;
}
.pf-menurow:hover { background: var(--surface-2); }
.pf-menurow svg { flex: 0 0 auto; color: var(--muted); }
.pf-menurow:hover svg { color: var(--foreground); }
.pf-menurow span { flex: 1 1 auto; }
.pf-menurow b { font: 600 11.5px/1 var(--mono); color: var(--muted-2); }
.pf-menurow b.on { color: var(--accent); }
.pf-menurow.danger:hover { color: var(--danger); }
.pf-menurow.danger:hover svg { color: var(--danger); }
.pf-agentinline .pf-fieldlabel { margin: 0; }

/* ── Kimlik satiri buyudu (5 Eyl gece, Cihan): yuz, ad, adresler ve araclar
   birbirine denk boyda. ── */
.ac .pf-face { width: 72px; height: 72px; font-size: 36px; }
.ac .pf-name { font-size: 26px; }
.ac .pf-noname { font-size: 17px; }
.ac .pf-nameline { gap: 12px; }
.ac .pf-tool { width: 32px; height: 32px; }
.ac .pf-tool svg { width: 16px; height: 16px; }
.ac .pf-addrline { gap: 18px; margin-top: 4px; }
.ac .pf-addrline .pf-fieldlabel { font-size: 14px; }
.ac .pf-addrline .rw-addr { font-size: 15px; }
.ac .pf-addrline .rw-addrbtn svg { width: 14px; height: 14px; }
.ac .pf-agentinline { gap: 8px; }
@media (max-width: 900px) {
  .ac .pf-face { width: 64px; height: 64px; font-size: 32px; }
  .ac .pf-name { font-size: 24px; }
  .ac .pf-addrline { gap: 10px 14px; }
}

/* ── Hesap sahnesi bosluk ve baslik (5 Eyl gece, Cihan): Positions ile
   Platform activity ayni baslik, bolumler arasi daha ferah; Credit sayfasi
   ayni kalip. Kalem + cark sayfanin saginda; mobilde adresler etiketten
   kucuk, iki adres satiri birbirine yakin. ── */
.ac { gap: 44px; }
.ac .pu-word { font-size: 18px; }
.ac .ac-secthead { margin-bottom: 12px; }
.ac .ac-secthead .pu-word { margin: 0; }
.ac .pu-wordtop { margin-bottom: 12px; }
.ac .pf-id { align-items: center; }
.ac .pf-tools { margin-left: auto; align-self: center; }
.ac .pf-nameline { gap: 8px; }
.ac .pf-addrline { row-gap: 6px; }
@media (max-width: 900px) {
  .ac { gap: 38px; }
  .ac .pf-face { width: 76px; height: 76px; font-size: 38px; }
  .ac .pf-name { font-size: 24px; }
  .ac .pf-addrline { gap: 4px 12px; margin-top: 4px; }
  .ac .pf-addrline .pf-fieldlabel { font-size: 14px; }
  .ac .pf-addrline .rw-addr { font-size: 13px; }
  .ac .pf-addrline .rw-addrbtn svg { width: 13px; height: 13px; }
  .ac .pf-agentinline { gap: 6px; }
  .ac .pf-tools { align-self: flex-start; margin-top: 6px; }
}
@media (max-width: 900px) {
  .ac .pf-id { flex-wrap: nowrap; }
  .ac .pf-who { min-width: 0; flex: 1 1 auto; }
  .ac .pf-tools { margin-top: 0; align-self: center; }
}

/* ── Rank: ad + rozet + "you" tek satirda (5 Eyl gece) ── */

/* 5 Eyl gece (Cihan): mobilde cuzdan satirlari bir kademe kucuk */
@media (max-width: 900px) {
  .ac .pf-addrline { gap: 3px 10px; margin-top: 3px; }
  .ac .pf-addrline .pf-fieldlabel { font-size: 12.5px; }
  .ac .pf-addrline .rw-addr { font-size: 12px; }
  .ac .pf-addrline .rw-addrbtn svg { width: 12px; height: 12px; }
  .ac .pf-agentinline { gap: 5px; }
}
/* Credit basligi (5 Eyl gece, Cihan): ustte biraz nefes, altindaki bosluk kisa */
.ac > .ac-head { padding-top: 14px; margin-bottom: -18px; }
@media (max-width: 900px) {
  .ac > .ac-head { padding-top: 10px; margin-bottom: -14px; }
}

/* Onboarding v4: davet ve erişilebilir taslak tamamlama. */
.agent-greeting {
  position: fixed; z-index: 58; right: 20px; bottom: 108px;
  width: min(300px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 27px 28px 26px; border: 1px solid rgba(255, 106, 0, .24);
  border-radius: 14px 14px 10px 14px; color: #f4f6eb;
  background: radial-gradient(ellipse at 0 0, #ff6a0010, transparent 70%), #171a13;
  box-shadow: 0 16px 52px #0009, 0 0 36px #ff6a0009;
  transform-origin: var(--agent-tail, calc(100% - 26px)) bottom;
  --agent-rise: 28px;
  animation: agentGreetingIn .78s cubic-bezier(.22,1,.36,1) both;
}
.agent-greeting::before, .agent-greeting::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 50%;
  background: #191d13; border: 1px solid rgba(255, 106, 0, .24);
  box-shadow: 0 4px 12px #0005;
}
.agent-greeting::before { width: 14px; height: 14px; left: calc(var(--agent-tail, 100% - 26px) - 17px); bottom: -12px; animation: agentTailIn .38s cubic-bezier(.16,1,.3,1) .17s both; }
.agent-greeting::after { width: 6px; height: 6px; left: calc(var(--agent-tail, 100% - 26px) - 3px); bottom: -23px; animation: agentTailIn .38s cubic-bezier(.16,1,.3,1) .07s both; }
.agent-greeting.below { --agent-rise: -28px; transform-origin: var(--agent-tail, calc(100% - 26px)) top; }
.agent-greeting.below::before { bottom: auto; top: -12px; }
.agent-greeting.below::after { bottom: auto; top: -23px; }
.agent-greeting ~ .agent-fab { animation: agentGreetingGlow 1.1s ease-out both; }
.agent-greeting ~ .agent-fab .ring {
  display: block; position: absolute; inset: -4px; border: 1px solid #ff6a0099;
  border-radius: inherit; pointer-events: none; opacity: 0;
  animation: agentGreetingRing .95s ease-out both;
}
.agent-greeting-message {
  display: block; width: 100%; border: 0; padding: 0; background: transparent;
  color: inherit; text-align: start; cursor: pointer;
  font: 500 18px/1.48 var(--sans); letter-spacing: -.025em;
}
.agent-greeting-line { display: block; position: relative; overflow-wrap: anywhere; }
.agent-greeting-line + .agent-greeting-line { margin-top: 13px; color: #f8b88b; }
.agent-greeting-layout { display: block; visibility: hidden; }
.agent-greeting-ink { position: absolute; inset: 0; }
.agent-greeting-caret {
  display: inline-block; width: 2px; height: .9em; margin-inline-start: 3px;
  vertical-align: -.06em; border-radius: 1px; background: #ff6a00;
  animation: agentCaret .8s steps(1) infinite;
}
.agent-greeting-dots { display: inline-flex; align-items: center; gap: 5px; height: 1.48em; }
.agent-greeting-dots i {
  width: 4px; height: 4px; border-radius: 50%; background: #f8b88b;
  animation: agentThinking 1s ease-in-out infinite;
}
.agent-greeting-dots i:nth-child(2) { animation-delay: .12s; }
.agent-greeting-dots i:nth-child(3) { animation-delay: .24s; }
.agent-greeting-dismiss {
  position: absolute; top: 6px; inset-inline-end: 6px; display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #a0aa8f; opacity: .65; cursor: pointer;
  transition: color .2s, background .2s, opacity .2s;
}
.agent-greeting-dismiss svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
@media (hover: hover) {
  .agent-greeting-dismiss:hover { color: #f8eae0; background: #ffffff0a; opacity: 1; }
}
.agent-greeting button:focus-visible { outline: 2px solid var(--accent, #ff9c55); outline-offset: 4px; }
.agc.agc { transform-origin: bottom right; animation: agentPanelIn .4s cubic-bezier(.16,1,.3,1) both; }
.agc-draft { position: relative; flex: 1; min-width: 0; background: var(--surface-2); border-radius: var(--r-xl); }
.agc-compose .agc-draft input { position: relative; width: 100%; box-sizing: border-box; background: transparent; }
.agc-completion { position: absolute; inset: 0; display: flex; align-items: center; white-space: pre;
  overflow: hidden; padding: 11px 15px; color: #7d8574; font: 14px var(--sans); pointer-events: none; }
.agc-completion span { color: transparent; }
.agc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes agentGreetingIn {
  0% { opacity: 0; transform: translateY(var(--agent-rise)) scale(.72) rotate(2.5deg); }
  15% { opacity: 1; }
  52% { opacity: 1; transform: translateY(-5px) scale(var(--agent-overshoot, 1.06)) rotate(-.7deg); }
  76% { transform: translateY(1px) scale(.988) rotate(.15deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes agentTailIn {
  0% { opacity: 0; transform: scale(.2); }
  65% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes agentGreetingGlow {
  0%, 100% { box-shadow: 0 0 24px #ff6a0059, 0 0 0 4px var(--background); }
  28% { box-shadow: 0 0 38px #ff6a00a6, 0 0 70px #ff6a003d, 0 0 0 4px var(--background); }
}
@keyframes agentGreetingRing {
  0% { opacity: 0; transform: scale(.8); }
  18% { opacity: .8; }
  100% { opacity: 0; transform: scale(1.4); }
}
@keyframes agentCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes agentThinking { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-3px); opacity: 1; } }
@keyframes agentPanelIn { from { opacity: 0; transform: translateY(14px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .agent-greeting, .agent-greeting::before, .agent-greeting::after,
  .agent-greeting ~ .agent-fab, .agent-greeting ~ .agent-fab .ring,
  .agent-fab .core-eyes, .agent-fab::before, .agc.agc, .agent-greeting-caret, .agent-greeting-dots i { animation: none; transition: none; }
}
.agent-greeting.reduced-motion, .agent-greeting.reduced-motion::before, .agent-greeting.reduced-motion::after,
.agent-greeting.reduced-motion ~ .agent-fab, .agent-greeting.reduced-motion ~ .agent-fab .ring,
.agent-greeting.reduced-motion ~ .agent-fab .core-eyes { animation: none; transition: none; }

/* ---------- perps hesap sahnesi (6 Eyl, Cihan): cercevesiz ----------
   "Account" basligi ve panel cercevesi yok. Solda altcizgili,
   kaydirmali sekme seridi; sagda tek Close All. Yalniz pozisyon tablosu
   (masaustu) ve pozisyon kartlari (telefon) cerceveli; oteki sekmeler
   (emirler, gecmis) ince cizgili duz satirlar. */
.ac-acct { margin-top: 4px; }
.ac-acct .ap-empty { border: none; border-bottom: 1px solid var(--border); border-radius: 0; text-align: left; padding: 22px 0; }
.ac-acct .ap-emptybody { margin-inline: 0; }
.ac-acctbar { display: flex; align-items: center; gap: 0; padding: 4px 0 0; border-bottom: 1px solid var(--border); }
.ac-acctbar .pu-bartabs { flex: 1 1 auto; min-width: 0; }
.ac-acctbar .pu-bartablist { padding-bottom: 8px; padding-right: 40px; }
.ac-acctbar .pu-bartab { font-size: 14px; padding: 6px 0 4px; }
/* GOLGE YOK (6 Eyl, Cihan: "golgeyi kaldir"): sekme listesi Close All'a
   kadar okunur, kesik son sekme kaydirmayi kendisi soyler. */
.ac-acctbar .pu-barfade { display: none; }
.ac-acctbar .pu-bartablist { padding-right: 10px; }
.ac-acctbar { gap: 0; }
.ac-acctbody { padding-top: 14px; }
/* cercevesiz tablolar: kenar bosluklari sifir, baslik zemini yok */
.ac-acct .ap-tablewrap:not(.sc-frame) .ap-table th { background: none; }
.ac-acct .ap-tablewrap:not(.sc-frame) .ap-table th:first-child, .ac-acct .ap-tablewrap:not(.sc-frame) .ap-table td:first-child { padding-left: 0; }
.ac-acct .ap-tablewrap:not(.sc-frame) .ap-table th:last-child, .ac-acct .ap-tablewrap:not(.sc-frame) .ap-table td:last-child { padding-right: 0; }
.ac-acct .ap-tablewrap:not(.sc-frame) .ap-table tbody tr:last-child td { border-bottom: 1px solid var(--border); }
.ac-acct .ap-tablewrap:not(.sc-frame) .ap-table tbody tr:hover { background: none; }
/* pozisyon tablosu: tek cerceve, yuzey zemin */
.ac-acct .sc-frame { background: var(--surface); }
.ac-acct .sc-frame .ap-table th { background: none; }

/* YILDIZ (16 Eyl aksam, Radar): token sayfasinda isim yaninda ici bos yildiz;
   basinca dolar (sicrama + dolgu animasyonu) ve token Radar listesine girer. */
.tm-star { display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; padding: 2px; border: 0; background: none; color: var(--muted); cursor: pointer; vertical-align: middle; border-radius: 10px; transition: color 0.2s ease; }
.tm-star svg { fill: transparent; transition: fill 0.25s ease, transform 0.25s ease; }
.tm-star:hover { color: var(--accent); }
.tm-star.on { color: var(--accent); }
.tm-star.on svg { fill: currentColor; animation: tm-star-pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes tm-star-pop { 0% { transform: scale(0.6); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.tm-star-inline { margin-left: 4px; padding: 1px; }
.tm-star-inline svg { vertical-align: -2px; }

/* 17 Eyl gece (Cihan): perps tutamagi grafik+defter satirinin degil GRAFIGIN
   ortasinda; sol ray acik da kapali da olsa sutun kalibi satirla ayni. */
/* grafik sutunu = satir - defter (268px) - bosluk (16px); nokta onun ortasinda */
.tm-grip-term .tm-gripdot { left: calc((100% - 284px) / 2); }
/* hesap paneli iki sutunu kaplar; sticky ray ilk satirda kalir */
.tm-termfull { grid-column: 1 / -1; min-width: 0; }

/* ── Agent yetkisi (18 Eyl, kendi cüzdan modeli Faz 1) ─────────────────── */
.pf-yetki-text.on { color: var(--gain); }
.ya-big { font-size: 16px; font-weight: 600; margin: 0 0 10px; line-height: 1.4; }
.ya-list { margin: 0 0 14px; padding-left: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.ya-list li + li { margin-top: 4px; }
.ya-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
/* Yetki kaldirma onayi: Cash disindaki para (29 Eyl O3). Pencere .ag2-wallet
   icinde cizildigi icin paragraf kurallari ondan guclu secicilerle yazilir. */
.ya-money { margin: 0 0 14px; padding: 12px 14px 14px; border-radius: var(--r-2xl); background: var(--surface-2); box-shadow: var(--edge), inset 0 0 0 1px var(--border); }
.ya-money-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12.5px; font-weight: 600; color: var(--gold); }
.ya-money-head b { font-size: 16px; font-weight: 700; color: var(--foreground); font-variant-numeric: tabular-nums; }
.ya-money-rows { list-style: none; margin: 10px 0 0; padding: 10px 0 0; display: grid; gap: 8px; border-top: 1px solid var(--border); }
.ya-money-rows li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.ya-money-rows li > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--foreground); font-weight: 500; }
.ya-money-rows li > span:last-child { display: grid; justify-items: end; color: var(--foreground); font-variant-numeric: tabular-nums; }
.ya-money-rows small { font-size: 11.5px; color: var(--muted-2); }
.ya-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 3px; background: var(--muted-2); }
.ya-dot.perps { background: #b58cff; }
.ya-money p.ya-money-note { margin: 12px 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ya-money .ya-money-go { width: 100%; }
.auth-modal p.ya-money-wait { margin: 0 0 12px; font-size: 12.5px; color: var(--muted-2); }
/* ── Üç cep (18 Eyl, Faz 5) ──────────────────────────────────────────── */
.ap-tmval.dim { color: var(--muted); }
.pk { margin-top: 10px; }
.pk-cell.dim b { color: var(--muted); }
.pk-cell.total b { color: var(--gain); }
.pk-move .ap-input { min-width: 120px; }
.pk-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pk-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.pk-row b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pk-row i { font-style: normal; color: var(--muted); }
.pk-row.doldu i { color: var(--gain); }
.pk-row.dustu i { color: var(--danger); }
/* TRANSFER AYRINTISI (9 Eki, denetim raporu Paket 5, QA PRED-026): Activity'deki tasima,
   gonderim ve getirme satiri ile Transfer "Recent" satiri bu pencereyi acar (TransferDetails.tsx). */
button.pk-row { width: 100%; appearance: none; background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.pk-row:hover span { color: var(--accent); }
button.pk-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.trd { display: grid; gap: 12px; min-width: 0; }
.trd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.trd-route { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 18px; font-weight: 700; }
.trd-route b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trd-route b:first-child { flex-shrink: 0; max-width: 60%; }
.trd-route i { font-style: normal; color: var(--muted-2); }
.trd-st { flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 5px; background: var(--gain-soft); color: var(--gain); }
.trd-st.pending { background: var(--gold-soft); color: var(--gold); }
.trd-st.failed { background: var(--danger-soft); color: var(--danger); }
.trd-when { margin: -6px 0 0; font-size: 12px; color: var(--muted-2); }
.trd-lines { margin: 0; border-block: 1px solid var(--border); }
.trd-lines + .trd-lines { border-top: 0; margin-top: -12px; }
.trd-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; border-bottom: 1px solid var(--border); }
.trd-lines > div:last-child { border-bottom: 0; }
.trd-lines dt { min-width: 0; font-size: 13px; color: var(--muted); }
.trd-lines dd { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; color: var(--foreground); }
.trd-txlink { color: var(--foreground); text-decoration: none; border-bottom: 1px dotted var(--muted-2); }
.trd-txlink:hover { color: var(--accent); border-color: var(--accent); }
.trd-note { margin: -4px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.trd-leg { display: grid; gap: 6px; }
.trd-leg h4 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.trd-id { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
.trd-id span { grid-column: 1 / -1; font-size: 11px; color: var(--muted-2); }
.trd-id code { font-family: var(--mono); font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.trd-copy { appearance: none; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); color: var(--muted); font: 600 11px/1 var(--sans); padding: 5px 8px; cursor: pointer; }
.trd-copy:hover { color: var(--foreground); }
.trd-who { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; appearance: none; border: 0; background: none; padding: 0; color: var(--foreground); font: inherit; cursor: pointer; text-decoration: underline dotted var(--muted-2); text-underline-offset: 3px; }
/* ISLEM AYRINTISI (14 Eki): Activity'de transfer disindaki her satirin penceresi (IslemDetay.tsx). */
.isd { align-content: start; }
/* Sitenin genel `section` dolgusu (styles.css) pencerenin bolumlerine girmesin. */
.trd .trd-leg { padding: 0; border: 0; }
.isd-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.isd-logo { flex: 0 0 auto; display: inline-flex; }
.isd-id { flex: 1 1 auto; display: grid; gap: 2px; min-width: 0; }
.isd-title { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isd-when { font-size: 12px; color: var(--muted-2); }
.isd-sub { margin: -4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.isd-hero { display: grid; gap: 4px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); }
.isd-hero span { font-size: 12px; color: var(--muted-2); }
.isd-hero b { font-family: var(--mono); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.isd-hero.pos b, .trd-lines dd.pos { color: var(--gain); }
.isd-hero.neg b, .trd-lines dd.neg { color: var(--danger); }
.isd .trd-lines dt { flex: 0 0 auto; }
.isd .trd-lines dd { flex: 0 1 auto; min-width: 0; padding: 8px 0; line-height: 1.4; overflow-wrap: anywhere; }
.isd-actions { display: flex; }
.isd-go { flex: 1 1 auto; justify-content: center; }

/* ══════════════════════════════════════════════════════════════════════════
   PROFİL, YENİ ÜST (18 Eyl gece, Cihan: gönderdiği ekran görüntüsünün
   birebiri, önce telefon). Kabuğun üst çubuğu telefonda gizli (.ap.detail);
   geri düğmesi + büyük avatar + ad + çark; altında bio; sonra portföy özeti
   (büyük toplam, dönem değişimi, eğri, nakit) ve pozisyonlar (Open/Closed,
   tür çipleri, 56px logolu satırlar). Agent yetkisi ve cepler en altta.
   ══════════════════════════════════════════════════════════════════════════ */
.pfx { gap: 26px; }
.pfx-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 0; }
.pfx-back {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--foreground); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pfx-back:hover { background: var(--surface-2); border-color: var(--border-strong); }
.pfx-back:active { transform: scale(0.96); }
.pfx .pf-face.pfx-face { width: 64px; height: 64px; font-size: 32px; border-radius: 10px; }
.pfx-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.pfx .pf-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfx-bio { margin: -12px 0 0; font: 400 15px/1.5 var(--sans); color: var(--muted); max-width: 640px; overflow-wrap: anywhere; }
.pf-menurow.pfx-editrow { border-bottom: 1px solid var(--border); }
.pfx .pf-edit { margin: -8px 0 0; }

/* portföy özeti */
.pfx-hero { display: flex; flex-direction: column; }
.pfx-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pfx-total { font: 700 46px/1 var(--sans); letter-spacing: -0.035em; color: var(--foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pfx-total small { font-size: 0.82em; font-weight: 700; color: var(--muted-2); opacity: 0.7; }
.pfx-change { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; font: 600 21px/1.2 var(--sans); }
.pfx-change b { font-weight: 600; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.pfx-change b.pos { color: var(--gain); }
.pfx-change b.neg { color: var(--danger); }
.pfx-change span { font-size: 18px; font-weight: 500; color: var(--muted-2); }
.pfx-note { margin-top: 6px; font: 500 12px/1.4 var(--mono); color: var(--muted-2); }
.pfx-periods { display: inline-flex; gap: 2px; flex: 0 0 auto; margin-top: 2px; }
.pfx-periods button {
  min-width: 46px; height: 34px; padding: 0 10px; border-radius: 8px; border: none; background: none;
  font: 600 15px/1 var(--sans); color: var(--muted-2); cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.pfx-periods button.on { background: var(--surface-2); color: var(--foreground); }
.pfx-chart { position: relative; height: 190px; margin: 26px 0 0; }
.pfx-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.pfx-chart .pfx-line { fill: none; stroke: var(--gain); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pfx-chart .pfx-line.neg { stroke: var(--danger); }
.pfx-chart .pfx-area { fill: url(#pfxFill); }
.pfx-dot {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 10px; background: var(--gain);
  box-shadow: 0 0 0 11px rgba(43, 214, 123, 0.16), 0 0 26px rgba(43, 214, 123, 0.45);
}
.pfx-dot.neg { background: var(--danger); box-shadow: 0 0 0 11px rgba(255, 77, 109, 0.16), 0 0 26px rgba(255, 77, 109, 0.45); }

.pfx-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); flex: 0 0 auto; }
.pfx-toggle button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 8px; border: none; background: none;
  font: 600 16px/1 var(--sans); color: var(--muted-2); cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.pfx-toggle button.on { background: var(--surface-3); color: var(--foreground); }
.pfx-dotlive { width: 8px; height: 8px; border-radius: 10px; background: var(--accent); }

.pfx-openpnl.pos { color: var(--gain); }
.pfx-openpnl.neg { color: var(--danger); }
.pfx-list { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.pfx-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0;
  background: none; border: none; width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; border-radius: 8px;
  transition: background 0.15s ease;
}
.pfx-row:hover .pfx-main b { color: var(--accent); }
.pfx-logo { position: relative; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; }
.pfx-logo .tm-coin { width: 56px; height: 56px; }
.pfx-logo .hold-side { width: 20px; height: 20px; font-size: 10px; right: -2px; bottom: -2px; border: 2px solid var(--background); }
.pfx-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pfx-main b { font: 700 20px/1.15 var(--sans); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s ease; }
.pfx-main small { font: 500 15px/1.2 var(--sans); color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfx-num { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.pfx-num b { font: 700 20px/1.15 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pfx-num b.pos { color: var(--gain); }
.pfx-num b.neg { color: var(--danger); }
.pfx-num small { font: 600 15px/1.2 var(--sans); white-space: nowrap; }
.pfx-num small.pos { color: var(--gain); }
.pfx-num small.neg { color: var(--danger); }
.pfx-num small.mut { color: var(--muted-2); }

/* ── Profil, ikinci tur (18 Eyl gece, Cihan): geri düğmesi grafik sayfasınınki,
   dört kapı (Deposit · Send · Transfer · Agent), küçük dönem anahtarı, dokunarak
   gezilen eğri, dört hücre, daha küçük pozisyon başlığı/çipleri, fotoğraf. ── */
.pfx-back.tm-back { margin-left: -6px; }
.face-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.pfx .pf-face.pfx-face { overflow: hidden; padding: 0; }
.pfx-facein.face-img { border-radius: 10px; }
.ap-chipface.face-img { width: 28px; height: 28px; border-radius: 10px; }

/* ÜST ÇİP (18 Eyl gece, Cihan: "dış çerçeveyi kaldır, resmi çerçeve boyuna
   büyüt"): çip çerçevesiz, fotoğraf çipin tamamını doldurur; profil
   bilinene kadar sessiz bir yuvarlak (rastgele emoji yok). */
.ap-profilechip, .ap-profilechip.btn, .ap-profilechip.btn.ghost, .ap-profilechip:hover { background: none; border: none; box-shadow: none; }
.ap-profilechip .ap-chipface.face-img { width: 32px; height: 32px; border-radius: 10px; }
.ap-chipghost { display: inline-block; width: 30px; height: 30px; border-radius: 10px; background: var(--surface-2); }
/* 19 Eyl (Cihan: "çok büyütmüşsün, çok az küçültelim"): 44 → 38px. */

.tx-noteava.face-img { width: 24px; height: 24px; border-radius: 10px; }
.pfx-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: -4px; }
.pfx-action {
  display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: none; padding: 0;
  color: var(--muted); font: 600 13.5px/1 var(--sans); cursor: pointer;
}
.pfx-actionicon {
  width: 62px; height: 62px; border-radius: 12px; background: var(--surface); color: var(--foreground);
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s ease, transform 0.15s ease;
}
.pfx-action:hover .pfx-actionicon { background: var(--surface-2); }
.pfx-action:active .pfx-actionicon { transform: scale(0.96); background: var(--surface-2); }
.pfx-action:disabled { opacity: 0.4; cursor: default; }
.pfx-periods button { min-width: 38px; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 12.5px; }
.pfx-hero, .pfx-chart { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pfx-chart { touch-action: none; cursor: crosshair; margin-top: 30px; }
.pfx-chart .pfx-line.dim { opacity: 0.28; }
.pfx-chart.scrubbing .pfx-dot { transition: none; }
.pfx-cursor { position: absolute; top: -10px; bottom: 0; width: 1px; margin-left: -0.5px; background: rgba(43, 214, 123, 0.55); pointer-events: none; }
.pfx-cursorlabel {
  position: absolute; top: -34px; transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: var(--surface-2);
  color: var(--muted); font: 600 11.5px/1.2 var(--mono); white-space: nowrap; pointer-events: none;
}
.pfx-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.pfx-cell { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px; border-radius: 10px; background: var(--surface); min-width: 0; }
.pfx-cell span { font: 600 12px/1 var(--sans); color: var(--muted-2); }
.pfx-cell b { font: 700 15px/1.1 var(--sans); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pfx-toggle { padding: 2px; border-radius: 8px; }
.pfx-toggle button { min-height: 30px; padding: 0 11px; border-radius: 6px; font-size: 13.5px; gap: 6px; }
.pfx-dotlive { width: 6px; height: 6px; }

.pfx-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; padding: 10px 0; }
.pfx-logo { width: 48px; height: 48px; }
.pfx-logo .tm-coin { width: 48px; height: 48px; }
.pfx-logo .hold-side { width: 18px; height: 18px; font-size: 9px; }
.pfx-main b, .pfx-num b { font-size: 17px; }
.pfx-main small, .pfx-num small { font-size: 13px; }
/* fotoğraf alanı ve kapı formları */
.pfx-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pfx-photoprev { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; font-size: 28px; display: inline-flex; align-items: center; justify-content: center; }
.pfx-photobtn { cursor: pointer; }
.pfx-form .ap-note { margin: 0; }
.pfx-addr .btn { flex: 0 0 auto; }

/* geri: BTC grafik sayfasındaki ince "<" ile birebir; çerçeve/dolgu yok */
.pfx-back.tm-back, .pfx-back.tm-back:hover { width: 40px; height: 40px; margin-left: -10px; border: none; border-radius: 10px; background: none; color: var(--foreground); }
/* büyük toplam ve hücreler ekrana göre küçülür; sayı hiç kesilmez */
.pfx-top > div:first-child { min-width: 0; flex: 1 1 auto; }
.pfx-total { font-size: clamp(26px, 10.2vw, 44px); }
.pfx-change { font-size: clamp(15px, 4.8vw, 20px); }
.pfx-change span { font-size: 0.85em; }
.pfx-cell { padding: 10px 10px; gap: 5px; }
.pfx-cell span { font-size: 11.5px; }
.pfx-cell b { font-size: clamp(11.5px, 3.5vw, 15px); letter-spacing: -0.01em; }
/* Open / Closed daha küçük */
.pfx-toggle { padding: 2px; border-radius: 8px; }
.pfx-toggle button { min-height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; gap: 5px; }
.pfx-dotlive { width: 5px; height: 5px; }

/* ── PROFİL ALT EKRANLARI (18 Eyl gece, Cihan: "popup olmasın, tam sayfa"):
   Platform activity · Deposit · Withdraw · Transfer. Başlık ortada, geri
   düğmesi grafik sayfasınınki; içerik profil sayfasının dilinde. ── */
.pfs-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 6px; }
.pfs-title { flex: 1 1 auto; margin: 0; text-align: center; font: 700 18px/1.2 var(--sans); letter-spacing: -0.01em; }
.pfs-spacer { flex: 0 0 auto; width: 40px; height: 40px; }
.pfs-activity { margin-top: 4px; }

/* Transfer / Withdraw / Deposit ortak dil: From-To kartı, tutar alanı, onay. */
.tr { display: grid; gap: 18px; margin-top: 8px; }
.tr-card { position: relative; border-radius: 12px; background: var(--surface); padding: 4px 56px 4px 4px; }
.tr-rows { display: flex; flex-direction: column; }
.tr-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px;
  min-height: 62px; padding: 8px 12px; background: none; border: none; border-radius: 10px; color: var(--foreground);
  font-family: var(--sans); text-align: left; cursor: pointer; transition: background 0.2s ease;
}
.tr-row.static { cursor: default; grid-template-columns: 64px minmax(0, 1fr) auto; }
/* 19 Eyl (Cihan): dokununca açık gri çerçeve gelmesin; seçim listesi zaten açılıyor. */
.tr-row:not(.static):active { opacity: 0.8; }
.tr-rowlabel { font-size: 13px; color: var(--muted); }
.tr-rowname { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.tr-rowname small { font-size: 11.5px; font-weight: 500; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-rowbal { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
.tr-rowchev { color: var(--muted-2); transform: rotate(180deg); }
.tr-hair { height: 1px; margin: 0 12px; background: var(--border); }
.tr-swap {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--foreground); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.tr-swap svg { transform: rotate(90deg); }
.tr-swap:hover { background: var(--surface-3); }
.tr-swap:active { transform: translateY(-50%) scale(0.94); }
.tr-pick { display: flex; flex-direction: column; border-radius: 10px; background: var(--surface); padding: 4px; margin-top: -8px; }
.tr-pickrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 14px;
  background: none; border: none; border-radius: 8px; color: var(--foreground); font-family: var(--sans); text-align: left; cursor: pointer;
}
.tr-pickrow:hover { background: var(--surface-2); }
.tr-pickrow.on { box-shadow: inset 0 0 0 1px var(--accent); }
.tr-pickrow.other { opacity: 0.5; }
.tr-pickname { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 700; }
.tr-pickname small { font-size: 11.5px; font-weight: 500; color: var(--muted-2); }
.tr-pickrow b { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.tr-field { display: grid; gap: 8px; }
.tr-amount { display: flex; align-items: center; gap: 10px; border-radius: 10px; background: var(--surface); padding: 6px 14px 6px 16px; min-height: 60px; }
.tr-amount:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
.tr-amountin { flex: 1 1 0; min-width: 0; background: none; border: none; outline: none; color: var(--foreground); font: 600 22px/1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tr-amountin::placeholder { color: var(--muted-2); font-weight: 500; font-size: 18px; }
.tr-unit { font: 700 14px/1 var(--sans); color: var(--foreground); }
.tr-max { background: none; border: none; padding: 6px 2px 6px 8px; color: var(--accent); font: 700 14px/1 var(--sans); cursor: pointer; }
.tr-max:disabled { opacity: 0.4; cursor: default; }
.tr-addrin { font-family: var(--mono); font-size: 13.5px; padding: 14px 16px; border-radius: 10px; background: var(--surface); border-color: transparent; }
.tr-note { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--surface); font-size: 13.5px; line-height: 1.45; }
.tr-note.ok { color: var(--gain); }
.tr-note.bad { color: var(--danger); }
.tr-confirm { width: 100%; min-height: 52px; border-radius: 10px; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tr-hint { margin: -4px 2px 0; line-height: 1.5; }
.tr-recent { margin-top: 6px; }
.tr-recent .pk-list { margin-top: 8px; }
.dp-addr { padding: 14px 14px; border-radius: 10px; background: var(--surface); font: 500 11.5px/1.5 var(--mono); letter-spacing: -0.01em; overflow-wrap: anywhere; color: var(--foreground); }

/* Nokta deseni ayrı katmanda (19 Eyl): maske kabın kendisindeyken eğrinin
   sağ ucunu da siliyordu ("noktanın sağı siyahlığın arkasında"). */
.pfx-chart::before {
  content: ""; position: absolute; inset: -8px 0; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--foreground) 9%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 45%, transparent 100%);
}
.pfx-chart svg, .pfx-chart .pfx-dot, .pfx-chart .pfx-cursor, .pfx-chart .pfx-cursorlabel, .pfx-emptytext { z-index: 1; }
.pfx-chart .pfx-waveline { fill: none; stroke: color-mix(in srgb, var(--foreground) 30%, transparent); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pfx-emptytext { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font: 600 15px/1 var(--sans); color: var(--muted-2); }

/* ── POZİSYON SAYFASI (19 Eyl, Cihan: "pozisyona tıklayınca popup değil tam
   sayfa; üstte pazarın başlığı, altında grafik, altında kart, altında bu
   pazardaki işlemler"). Başlık her ekranda görünür, telefonda yapışık. ── */
.pp { display: flex; flex-direction: column; gap: 18px; }
.pp-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 0; }

.pp-mid { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pp-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-sym { display: flex; align-items: center; gap: 8px; font: 800 20px/1.1 var(--sans); letter-spacing: -0.02em; white-space: nowrap; }
.pp-name { font-size: 12.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font: 700 11px/1 var(--sans); text-transform: capitalize; letter-spacing: 0.02em; }
.pp-badge.long { color: var(--gain); background: color-mix(in srgb, var(--gain) 14%, transparent); }
.pp-badge.short { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.pp-price { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.pp-px { font: 700 20px/1.1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pp-chg { font: 500 12px/1.2 var(--mono); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.pp-chg.pos { color: var(--gain); }
.pp-chg.neg { color: var(--danger); }
/* 19 Eyl (Cihan): telefonda grafik daha kısa, paylaşım satırı daha ince; işlemler yukarı çıkar. */
.pp-chart { position: relative; height: 230px; margin: 0 -16px; }
.pp-chart { height: 420px; margin: 0; border-radius: 10px; overflow: hidden; }
.pp-chart > * { height: 100%; }
.pp-chartempty { margin: 0; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 13px; }

/* Kart (19 Eyl, ikinci çizim): görünür yüzey + ince çerçeve, üstte değer /
   kâr-zarar, ortada üç eşit hücre (dikey ayraçlı), altta Share satırı. */
.pp-card {
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #18151c 0%, #110e15 100%); border: 1px solid var(--border);
}
.pp-cardtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 20px 18px; }
.pp-left, .pp-right { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pp-right { text-align: right; align-items: flex-end; }
.pp-val, .pp-pnl { font: 700 30px/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-pnl.pos { color: var(--gain); }
.pp-pnl.neg { color: var(--danger); }
.pp-left small, .pp-right small { font: 500 13.5px/1.3 var(--sans); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-right small.pos { color: var(--gain); }
.pp-right small.neg { color: var(--danger); }
.pp-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.pp-cell { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 16px 8px 18px; min-width: 0; text-align: center; }
.pp-cell + .pp-cell { border-left: 1px solid var(--border); }
.pp-cell i { font: 500 12px/1 var(--sans); color: var(--muted-2); font-style: normal; white-space: nowrap; }
.pp-cell b { font: 600 15.5px/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pp-share {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 40px; border: none; border-top: 1px solid var(--border); background: rgba(255,255,255,0.02);
  color: var(--foreground); font: 600 14px/1 var(--sans); cursor: pointer; transition: background 0.2s ease;
}
.pp-cardtop { padding: 18px 18px 14px; }
.pp-cell { padding: 12px 8px 14px; }
/* Alt düğmeler (19 Eyl): telefonda gezinti çubuğunun üstüne sabit; web'de akışta. */
.pp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-act { min-height: 50px; border: none; border-radius: 10px; font: 700 15.5px/1 var(--sans); cursor: pointer; transition: opacity 0.2s ease, transform 0.1s ease; }
.pp-act:active { transform: scale(0.98); }
.pp-act.buy { background: var(--gain); color: #061a10; }
.pp-act.sell { background: var(--surface-2); color: var(--foreground); border: 1px solid var(--border); }
.pp-act:disabled { opacity: 0.4; cursor: default; }

.pp-share:hover { background: rgba(255,255,255,0.05); }
.pp-share:disabled { opacity: 0.4; cursor: default; }

.pp-tx { display: flex; flex-direction: column; gap: 6px; padding-bottom: 72px; }
.pp-txhead {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 0;
  background: none; border: none; color: var(--foreground); font: 700 18px/1.2 var(--sans); letter-spacing: -0.01em; cursor: pointer; text-align: left;
}
.pp-txhead:disabled { color: var(--muted-2); cursor: default; }
.pp-txchev { color: var(--muted-2); transform: rotate(-90deg); transition: transform 0.2s ease; }
.pp-txchev.open { transform: rotate(90deg); }
.pp-txlist { max-height: 60vh; overflow: auto; -webkit-overflow-scrolling: touch; }
.pfs-position .pfx-back { margin-left: -6px; }

/* ── ÜST ŞERİT, İKİ KUTU (19 Eyl, Cihan): Cash + "Deposit more" · toplam
   değer + açık K/Z. Yalnız masaüstü; cüzdan çipinin solunda. ── */
.ap-tiles { display: none; align-items: stretch; gap: 10px; margin-left: auto; }
.ap-tiles { display: flex; }
.ap-tiles + .ap-wallet { margin-left: 0; }
/* 19 Eyl (Cihan): biraz daha küçük. */
.ap-tile {
  display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 108px;
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}
.ap-tileval {
  display: inline-flex; align-items: baseline; gap: 5px; background: none; border: none; padding: 0; cursor: pointer;
  color: var(--foreground); font: 700 14px/1.1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: left;
}
.ap-tileval small { font: 500 11.5px/1 var(--sans); color: var(--muted-2); }
.ap-tileval:hover { color: var(--accent); }
.ap-tilelink { background: none; border: none; padding: 0; text-align: left; cursor: pointer; color: var(--accent); font: 600 11.5px/1.1 var(--sans); }
.ap-tilelink:hover { text-decoration: underline; }
.ap-tilesub { font: 500 11.5px/1.1 var(--mono); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.ap-tilesub.pos { color: var(--gain); }
.ap-tilesub.neg { color: var(--danger); }

/* ── ABOUT PANELİ (19 Eyl, Cihan: bilet altında örnekteki About bloğu) ── */
.ab { display: flex; flex-direction: column; gap: 14px; }
/* Kendi kartı (19 Eyl): panel kabuğunun boşluğu ve alt çizgisi yok. */
.ab-card { padding: 20px 20px 16px; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); }
.ab-title { margin: 0; font: 700 20px/1.2 var(--sans); letter-spacing: -0.02em; }
.ab-desc { margin: -4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ab-desc.muted { color: var(--muted-2); }
/* ACIKLAMA UC SATIR + "more" (21 Eyl, Cihan): kapali hal tam uc satir
   (3 x 1.5em satir araligi), tasan metinde ucuncu satirin sonunda arkasi
   silinen "more" dugmesi; basinca yukseklik olculup animasyonla acilir.
   Yukseklik sinirini React yazar (olculen tam boy), animasyon bitince kalkar:
   pencere daralinca acik metin kirpilmaz. */
.desc { position: relative; }
.desc-body { max-height: calc(1.5em * 3); overflow: hidden; transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1); }
.desc.on .desc-body { max-height: none; }
.desc-more {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  padding: 0 0 0 28px; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; line-height: 1.5;
  color: color-mix(in srgb, var(--green) 45%, var(--muted-2));
  background: linear-gradient(90deg, transparent 0, var(--desc-bg, var(--surface)) 24px, var(--desc-bg, var(--surface)) 100%);
}
.mt-pane .desc { --desc-bg: var(--background); }
.mt-pane .desc-more { font-size: 15px; }
.desc.on .desc-more { position: static; display: block; margin-top: 6px; padding: 0; background: none; }
.desc-more:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .desc-body { transition: none; } }
/* YOBRO'nin kendi tanitimi (3 Kas): giris satiri + dort tek satirlik madde; satir araligi bozulmaz ki katlama satir arasindan kessin. */
.yobro-tanitim .ot-giris { margin: 0; color: var(--foreground); font-weight: 600; }
.yobro-tanitim .ot-liste { list-style: none; margin: 0; padding: 0; }
.yobro-tanitim .ot-liste li { position: relative; padding-left: 14px; }
.yobro-tanitim .ot-liste li::before { content: ""; position: absolute; left: 2px; top: calc(0.75em - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.yobro-tanitim .ot-liste a { color: var(--accent); text-decoration: none; }
.yobro-tanitim .ot-liste a:hover { text-decoration: underline; }
/* 19 Eyl (Cihan: "5M/1H/6H/1D asla 2. satira kaymasin, gerekirse %30-40 kucult"):
   sayi kaba gore olcek alir (container query), 332px rayda ~10px, genis
   kartta 12px; hicbir genislikte sarmaz. */
.ab-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; container-type: inline-size; }
.ab-chip { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 2px; min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; }
.ab-chip i { font: 500 11px/1 var(--sans); color: var(--muted-2); font-style: normal; white-space: nowrap; }
.ab-chip b { font: 600 clamp(9px, 3.3cqi, 12px)/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.01em; }
.ab-chip.pos b { color: var(--gain); }
.ab-chip.neg b { color: var(--danger); }
/* 24 Eyl (Cihan): ciplere basinca alttaki alim/satim o pencereye kayar; baslik ve aciklama kucuk, aciklama 2 satir. */
button.ab-chip { font: inherit; color: inherit; cursor: pointer; transition: border-color 140ms, background 140ms; }
button.ab-chip:hover { border-color: var(--border-strong, var(--muted-2)); }
button.ab-chip.on { border-color: rgba(255, 255, 255, 0.32); background: var(--surface-2, var(--surface)); }
.ab-card .ab-head .ab-title { font-size: 15px; }
.ab-card .ab-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-card .ab-chip b { font-size: clamp(11px, 4.4cqi, 14px); }
.ab-card .ab-desc { font-size: 12.5px; }
.ab-card .desc-body { max-height: calc(1.5em * 2); }
.ab-card .desc.on .desc-body { max-height: none; }
.ab-bar { display: flex; flex-direction: column; gap: 6px; }
.ab-barrow { display: flex; justify-content: space-between; font: 500 13.5px/1.2 var(--sans); color: var(--muted-2); }
.ab-barrow b { color: var(--foreground); font-weight: 700; font-variant-numeric: tabular-nums; }
.ab-track { display: flex; gap: 4px; height: 6px; }
.ab-fill { display: block; height: 100%; border-radius: 10px; background: var(--gain); }
.ab-rest { display: block; height: 100%; border-radius: 10px; background: var(--danger); }
/* Hacim bolunmesi bilinmeyen pencere (motor bu tokeni izlemiyor): tek notr cubuk. */
.ab-neutral { display: block; width: 100%; height: 100%; border-radius: 10px; background: var(--surface-2); }
.ab-barrow .muted { color: var(--muted-2); font-weight: 500; }
/* TRANSACTIONS BLOGU (19 Eyl): web About kartinda ve telefon About sekmesinde ayni. */
.ab-tx { display: flex; flex-direction: column; gap: 12px; }

.ab-bar .ab-barrow { gap: 8px; }
.ab-barl, .ab-barr { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 23 Eyl (Cihan): baslik 20→17, "Search on X" kucuk dugme olarak basligin saginda. */
.ab-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.ab-head .ab-title { font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-searchx {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); font: 600 11.5px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: border-color .2s ease, color .2s ease;
}
.ab-searchx:hover { border-color: var(--border-strong); color: var(--foreground); }
/* Sosyaller (en cok 3) TEK SIRA: 1 tane tam genislik, 2-3 tane esit paylasir; yazi 11,5px ki uc ad da tam gorunsun (29 Eki, Cihan). */
.ab-links { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.ab-link {
  display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 9px 4px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--foreground); font: 600 11.5px/1 var(--sans); text-decoration: none; transition: border-color .2s ease, background .2s ease;
}
.ab-link:hover { border-color: var(--border-strong); background: var(--surface-2); }
.ab-link svg { flex: 0 0 auto; width: 12px; height: 12px; }
.ab-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-facts { display: grid; gap: 10px; margin: 2px 0 0; }
.ab-facts > div { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; }
.ab-facts dt { color: var(--muted); white-space: nowrap; }
.ab-facts dt::after { content: ""; display: inline-block; }
.ab-facts > div::after { content: ""; order: 2; flex: 1 1 auto; border-bottom: 1px dashed var(--border); transform: translateY(-4px); }
.ab-facts dt { order: 1; }
.ab-facts dd { order: 3; margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
/* Yakim (19 Eki): piyasa degerinin altinda soluk ikinci satir. */
.ab-facts dd .ab-yakim { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); text-align: right; }
.ab-lp { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-weight: 600; }

.ab-lplogo { width: 16px; height: 16px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.ab-copy { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 0; color: var(--foreground); font: inherit; cursor: pointer; }
.ab-copy small { color: var(--accent); font-family: var(--sans); font-size: 11px; }
.ab-more { align-self: center; margin: 2px 0 -6px; padding: 7px 14px; border: none; border-radius: 8px; background: var(--surface-2); color: var(--muted); font: 600 13px/1 var(--sans); cursor: pointer; }
.ab-more:hover { color: var(--foreground); }
.ab-pos { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 0; }
.ab-poshead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ab-empty { margin: 14px 0 8px; text-align: center; color: var(--muted-2); font-size: 14px; }
.ab-poslist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ab-posrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ab-posrow:last-child { border-bottom: none; }
.ab-posl, .ab-posr { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ab-posr { text-align: right; align-items: flex-end; }
.ab-posrow b { font: 600 14px/1.2 var(--sans); white-space: nowrap; }
.ab-posrow small { font: 500 12px/1.2 var(--sans); color: var(--muted-2); }
.ab-posrow .pos { color: var(--gain); }
.ab-posrow .neg { color: var(--danger); }

/* styles.css'teki genel `section { padding: 64px 0; border-bottom }` kurali bu <section>'a da
   biniyordu: telefonda grafikle sekmeler arasinda 64 px bosluk (19 Eyl, Cihan). Burada sifirlanir. */
.mt { display: flex; flex-direction: column; gap: 14px; padding: 0; border-bottom: 0; }
.mt-tabs { display: flex; border-bottom: 1px solid var(--border); }
.mt-tabs button {
  flex: 1 1 0; min-width: 0; padding: 12px 6px 11px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted-2); font: 600 15px/1.2 var(--sans); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s ease, border-color .2s ease;
}
.mt-tabs button.on { color: var(--foreground); border-bottom-color: var(--accent); }
.mt-pane { display: flex; flex-direction: column; gap: 14px; padding: 2px 0 8px; }
/* 29 Eki: govde dolgusuz oldugu icin panelin 16 px yuvarlak kosesi (overflow: hidden) kenara degen icerigi
   yontuyordu; en gorunur hali bos panelde "No posts yet." yazisinin N harfinin sol alti. Gorunmeyen panelde kose yok. */
.mt-notes .ap-panel { border: none; border-radius: 0; background: none; }
.mt-notes .ap-panelbody { padding: 0; }

/* HOLDERS SADE (28 Eyl, Selcuk: "bayat, karisik"): tek serit + uc etiket + kapali harita (Map)
   + bes sutunlu liste; havuz ve sozlesmeler listenin en altinda soluk satir. Sekme adinda sayi soluk. */
.mt-tabs .mt-tabnum { font-style: normal; font-weight: 500; color: var(--muted-3); margin-left: 6px; font-size: 13px; }
.hd { gap: 0; }
.hd-serit { display: flex; height: 10px; gap: 3px; border-radius: 10px; overflow: hidden; margin-top: 6px; }
.hd-serit i { display: block; height: 100%; min-width: 2px; }
.hd-s-top { background: var(--accent); }
.hd-s-kalan { background: rgba(255, 106, 0, 0.28); }
.hd-s-soz { background: repeating-linear-gradient(135deg, #3a3e44 0 4px, #2a2d31 4px 8px); }
.hd-s-yak { background: #4a4f57; }
/* 29 Eyl (Selcuk, sahip siniflari): uygulamalarda (stake, borc verme, borsa, lansman ucreti). Mavi-gri:
   kullanicilarin kendi tokeni, bir programin icinde; havuzdan ve kilitten ayri gorunsun. */
.hd-s-uyg { background: #4d6a9a; }
/* bonding curve: satilmamis arz, ici bos dilim (kimsenin degil) */
.hd-s-egri { background: transparent; box-shadow: inset 0 0 0 1px #3a3e44; }
.hd-alt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.hd-alt span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 13px; white-space: nowrap; }
.hd-alt span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.hd-alt .hd-alt-soz::before { background: repeating-linear-gradient(135deg, #5a5f66 0 2px, #2a2d31 2px 4px); }
.hd-alt .hd-alt-yak::before { background: #4a4f57; }
.hd-alt .hd-alt-yak { cursor: help; }
.hd-alt .hd-alt-uyg::before { background: #4d6a9a; }
.hd-alt span[title] { cursor: help; }
.hd-alt .hd-alt-egri::before { background: transparent; box-shadow: inset 0 0 0 1px #5a5f66; }
.hd-alt .hd-alt-egri { cursor: help; }
.hd-alt b { color: var(--foreground); font-weight: 600; font-variant-numeric: tabular-nums; }
.hd-mapbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; color: var(--muted-2); font: 500 13px/1 var(--sans); cursor: pointer; }
.hd-mapbtn:hover, .hd-mapbtn.on { color: var(--foreground); }
.hd-harita { position: relative; height: 220px; margin-top: 16px; border-radius: 8px; overflow: hidden; }
.hd-blok { position: absolute; border: 2px solid var(--surface); border-radius: 6px; padding: 7px 9px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hd-blok b { font-size: 14px; font-weight: 600; color: #0b0c0d; font-variant-numeric: tabular-nums; }
.hd-blok span { font-size: 11px; color: rgba(11, 12, 13, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-blok.c1 { background: #ff6a00; } .hd-blok.c2 { background: #e05d00; } .hd-blok.c3 { background: #c45200; } .hd-blok.c4 { background: #a84600; }
.hd-blok.c5 { background: #4a2912; } .hd-blok.c5 b { color: var(--muted); } .hd-blok.c5 span { color: var(--muted-2); }
.hd-blok.h { background: repeating-linear-gradient(135deg, #2e3237 0 6px, #24272b 6px 12px); }
.hd-blok.h b { color: var(--muted); } .hd-blok.h span { color: var(--muted-2); }
.hd-blok.y { background: #25282c; } .hd-blok.y b { color: var(--muted); } .hd-blok.y span { color: var(--muted-2); }
.hd-blok.e { background: transparent; box-shadow: inset 0 0 0 1px #3a3e44; } .hd-blok.e b { color: var(--muted); } .hd-blok.e span { color: var(--muted-2); }
.hd-blok.u { background: #2c3a52; } .hd-blok.u b { color: var(--muted); } .hd-blok.u span { color: var(--muted-2); }
a.hd-blok { text-decoration: none; cursor: pointer; }
a.hd-blok:hover, a.hd-blok:focus-visible { outline: 2px solid var(--foreground); outline-offset: -2px; }
/* LISTE (2 Eki, Selcuk: grup satirlari "A, bolumlu liste" gibi): sabit kolonlar; grup bantlarinin ic izgarasi
   ayni olculeri kullanir, pay ve deger her satirda alt alta hizali (sag bosluk 14 piksel, bantla ayni). */
.mt-pane.hd { container-type: inline-size; }
.hd-liste { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 20px; font-variant-numeric: tabular-nums; }
.hd-liste col.hd-c-no { width: 34px; }
.hd-liste col.hd-c-pay { width: 90px; }
.hd-liste col.hd-c-deg { width: 100px; }
.hd-liste col.hd-c-deg.son { width: 114px; }
.hd-liste col.hd-c-son { width: 144px; }
.hd-liste th { font-size: 12px; font-weight: 500; color: var(--muted-3); text-align: left; padding: 0 0 10px; }
.hd-liste td { padding: 11px 0; border-top: 1px solid var(--border); font-size: 14px; }
.hd-liste tr > :last-child { padding-right: 14px; }
.hd-liste .r { text-align: right; }
.hd-liste .hd-no { color: var(--muted-3); }
.hd-liste .hd-pay { font-weight: 600; }
.hd-liste .hd-deg { color: var(--muted-2); }
.hd-liste .hd-son { white-space: nowrap; }
.hd-son span { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 500; cursor: default; }
.hd-son i { font-style: normal; font-size: 0.72em; }
.hd-son em { font-style: normal; font-weight: 400; color: var(--muted-3); font-size: 12.5px; margin-left: 2px; }
.hd-son .al { color: var(--gain); }
.hd-son .sat { color: var(--danger); }
.hd-adres { font-weight: 500; color: inherit; text-decoration: none; }
.hd-adres:hover { text-decoration: underline; }
.hd-sen { font-size: 11px; font-weight: 600; color: var(--background); background: var(--accent); border-radius: 10px; padding: 1px 7px; margin-left: 8px; }
/* Satir etiketi rozet (2 Eki; eskiden adresin yaninda kucuk gri yazi): contract, pool, burned, Uniswap v4... */
.hd-rozet { display: inline-flex; align-items: center; height: 21px; margin-left: 8px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.hd-rozet[title] { cursor: help; }
/* dogrulanmamis likidite (BUN'daki kancalar gibi): kimin cekebilecegi okunamiyor */
.hd-rozet.hd-uyari { color: var(--gold); background: var(--gold-soft); border-color: rgba(251, 191, 36, 0.35); }
/* tutari yazilmayan satirin kisa nedeni ("in pool", "can't be sold", "not sold yet") */
.hd-yok { font-size: 12.5px; color: var(--muted-2); white-space: nowrap; }
/* acik grubun satirlari bandin altinda girintili */
.hd-soz td:nth-child(2) { padding-left: 18px; }
.hd-soz .hd-pay { font-weight: 500; }
/* GRUP BANDI: renkli kenar, ad + kac kayit + ne demek oldugu (sayfada, title balonunda degil), pay ve deger */
.hd-liste .hd-bas td { padding: 12px 0 0; border-top: 0; }
.hd-liste .hd-bas + tr td { border-top: 0; }
.hd-bant { display: grid; grid-template-columns: minmax(0, 1fr) 90px 100px; align-items: start; width: 100%; padding: 13px 14px 13px 16px; border: 0; border-radius: 8px; background: var(--surface-2); box-shadow: inset 4px 0 0 0 var(--k); color: inherit; font: inherit; text-align: left; }
.hd-bant.son { grid-template-columns: minmax(0, 1fr) 90px 100px 130px; }
button.hd-bant { cursor: pointer; transition: background .15s ease; }
button.hd-bant:hover { background: var(--surface-3); }
button.hd-bant:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hd-bant-sol { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.hd-bant-ad { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-height: 26px; }
.hd-bant-ad b { font-size: 16.5px; font-weight: 600; color: var(--foreground); }
.hd-bant-sayi { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 3px 9px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); white-space: nowrap; }
.hd-bant-renk { width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: 0 0 auto; }
.hd-bant-ok { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); flex: 0 0 auto; }
.hd-bant-ok::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-right: 1.8px solid var(--foreground); border-bottom: 1.8px solid var(--foreground); transform: translate(-60%, -70%) rotate(45deg); transition: transform .18s ease; }
.hd-bas.acik .hd-bant-ok::after { transform: translate(-50%, -30%) rotate(-135deg); }
button.hd-bant:hover .hd-bant-ok { border-color: var(--muted-2); }
.hd-bant-not { display: block; max-width: 66ch; font-size: 13.5px; line-height: 1.45; color: var(--muted-2); padding-left: 22px; }
.hd-bant.acilir .hd-bant-not { padding-left: 56px; }
.hd-bant-pay { text-align: right; font-size: 16.5px; font-weight: 700; color: var(--foreground); line-height: 26px; }
.hd-bant-deg { text-align: right; font-size: 14px; color: var(--muted-2); line-height: 26px; }
a.hd-bant-adres { margin-left: 0; color: var(--foreground); font-weight: 500; text-decoration: none; cursor: pointer; }
a.hd-bant-adres:hover { border-color: var(--muted-2); }
/* bant renkleri seridin ve anahtarin renkleri; kenar koyu zeminde secilsin diye biraz acik */
.hd-bas.k-herkes { --k: rgba(255, 106, 0, 0.42); --c: rgba(255, 106, 0, 0.28); }
.hd-bas.k-likidite { --k: #7d838c; --c: repeating-linear-gradient(135deg, #5a5f66 0 2px, #2a2d31 2px 4px); }
.hd-bas.k-kilit { --k: #5a6069; --c: #4a4f57; }
.hd-bas.k-uygulama { --k: #4d6a9a; --c: #4d6a9a; }
/* egri: kesik cizgili bant, hep acik, cumlesi tiklamadan okunur */
.hd-bas.k-egri .hd-bant { background: transparent; box-shadow: none; border: 1.5px dashed #5a5f66; }
.hd-bas.k-egri .hd-bant-renk { background: transparent; box-shadow: inset 0 0 0 1px #5a5f66; }
.hd-bas.k-egri .hd-bant-not { color: var(--muted); font-size: 14px; }
@container (max-width: 720px) {
  .hd-bant-not, .hd-bant.acilir .hd-bant-not { padding-left: 0; }
}
/* KARISIK GRUP NOTU (2 Eki, Faz 1, 6. denetim T18-2 / D41): bandin tutari yalniz sureli kilitlerinse
   tutarin altinda soluk "timed locks" (yuzde butun grubun). */
.hd-bant-deg .hd-kismi { display: block; line-height: 1.25; }
/* DAR KAP (2 Eki, Faz 1, 6. denetim T18-1 / D40): pencere ~1100 pikselden darken Holders ~480 pikselin
   altina iner; sabit sutunlar (34 + 90 + 114) bandin ad ve aciklamasina 40 piksel birakiyordu (aciklama
   kelime kelime alt alta, bant 400 piksel boyunda), adresler iki satira bolunuyordu ve "Last trade" cikinca
   tablo sagdaki sutunun ustune tasiyordu. Bu kademede: bandin adi ve aciklamasi tam satir, yuzde ve tutar
   alt satirda; Share 70, Value 96 piksel (bandin izleri de: rakamlar yine alt alta); "Last trade" sutunu
   gizlenir, Value son sutun olur. 1180 piksel ve ustu pencere (kap 540+) degismez. */
@container (max-width: 480px) {
  .hd-bant, .hd-bant.son { grid-template-columns: minmax(0, 1fr) 70px 82px; row-gap: 4px; }
  .hd-bant.son > :nth-child(4) { display: none; }
  .hd-bant-sol { grid-column: 1 / -1; }
  .hd-bant-pay { grid-column: 2; }
  .hd-bant-deg { grid-column: 3; }
  .hd-liste col.hd-c-pay { width: 70px; }
  .hd-liste col.hd-c-deg, .hd-liste col.hd-c-deg.son { width: 96px; }
  .hd-liste col.hd-c-son { width: 0; visibility: collapse; }
  .hd-liste tr > :nth-child(4) { padding-right: 14px; }
  .hd-liste tr > :nth-child(5) { visibility: hidden; padding: 0; }
}
.mt-tradehead, .mt-trade { display: grid; grid-template-columns: 44px 66px minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 8px; align-items: center; }
.mt-tradehead { font: 500 11px/1 var(--sans); color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; padding: 0 0 6px; border-bottom: 1px solid var(--border); }
.mt-trades { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 420px; overflow: auto; -webkit-overflow-scrolling: touch; }
.mt-trade { padding: 9px 0; border-bottom: 1px solid var(--border); font: 500 13.5px/1.2 var(--mono); font-variant-numeric: tabular-nums; transition: background .6s ease; }
.mt-trade.fresh { background: color-mix(in srgb, var(--accent) 10%, transparent); animation: mt-slide .32s ease-out; }
/* CANLI SUNUM (20 Eyl, 6. madde): yeni islem ustten kayarak girer */
@keyframes mt-slide { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.th-chgrow { display: inline-flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.th-chgrow .th-chg { font-size: 13px; }
/* 27 Eki: piyasa degeri yuzdenin solunda */
.th-mc { font: 600 13px var(--mono); color: var(--muted); }
.th-mc b { color: var(--foreground); font-weight: 600; }
.mt-trade .mt-t { color: var(--muted-2); }
.mt-trade.buy .mt-side, .mt-trade.buy .mt-usd { color: var(--gain); }
.mt-trade.sell .mt-side, .mt-trade.sell .mt-usd { color: var(--danger); }
.mt-trade .mt-side { font-family: var(--sans); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
/* UYGULAMA LOGOSU (10 Eki, Cihan: "nereden alinmis, kucuk marka logosu"): islemin geldigi uygulama; bilinmiyorsa ayni boyda bos yer. */
.mt-app { width: 16px; height: 16px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2, #1b1d20); }
.mt-app.empty { display: inline-block; background: none; }
.hd-app { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border-radius: 50%; object-fit: cover; }
.hd-app.empty { background: none; }
.ags-zr.hd-app { display: inline-grid; --ags-zr: 16px; border-radius: calc(var(--ags-zr) * 0.28); vertical-align: -3px; }
/* YoBro logosu Agent yuzu (27 Eki, Cihan): daire degil, Agent dugmesi gibi yuvarlak kose kare; grafik rozetinde de. */
img[data-app="yobro"] { border-radius: 29%; background: none; }
.mt-tx { color: var(--muted-2); display: inline-flex; justify-content: flex-end; }
.mt .r { text-align: right; }
.ab-empty.small { font-size: 12.5px; margin: 4px 0 0; line-height: 1.5; }
.only-desk .mt { margin-top: 4px; }

/* TOKEN SEKMELERI CERCEVEDE (24 Eki, Cihan): Post · Holders · Trades tek cercevenin icinde, sabit boy;
   her sekme kendi icinde kayar (sayfa boyu sekmeyle oynamaz, altta bos alan kalmaz). Secili sekmenin
   cizgisi duz: uclari kivrilmaz, cercevenin alt kenari gibi durmaz. Trades basligi ustte sabit, satirlar
   tam onun cizgisinin altinda kaybolur. Ic liste bitince tekerlek sayfayi kaydirmaya devam eder (overscroll
   kilidi yok; 24 Eki aksam, Cihan: "sona gelemiyorum, sayfa da kaysin"). */
.mt.mt-kutu { gap: 0; height: clamp(460px, calc(100vh - 140px), 780px); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--background); }
.mt-kutu .mt-tabs { flex: none; padding: 0 16px; }
.mt-kutu .mt-tabs button { border-radius: 0; }
.mt-kaydir { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px 16px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.mt-kaydir[hidden] { display: none; }
.mt-kaydir.k-trades { padding-top: 0; }
.mt-kutu .mt-pane { padding-bottom: 0; }
.mt-kutu .mt-islem { gap: 0; }
.mt-kutu .mt-tradehead { position: sticky; top: 0; z-index: 1; padding: 14px 0 8px; background: var(--background); }
.mt-kutu .mt-trades { max-height: none; overflow: visible; }
.mt-kutu .mt-trade:last-child { border-bottom: 0; }
/* KISILI ISLEM LISTESI MASAUSTU (2 Kas, Cihan: "web de de buna uygun bisey yaparsin"; m/kisiliIslemler.tsx `web`):
   telefondaki gibi Time · kisi · Amount · Price · Total, satira tiklayinca alta acilan adet + ETH/SOL + fiyat + gezgin. */
.m-ktxs.web { display: grid; }
.m-ktxs.web .m-ktxhead, .m-ktxs.web .m-ktxrow, .m-ktxs.web .m-ktxalt { display: grid; grid-template-columns: 40px minmax(0, 1fr) 84px 108px 92px; align-items: center; gap: 24px; }
.m-ktxs.web .m-ktxhead { font: 500 11px/1 var(--sans); color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; padding: 0 0 6px; border-bottom: 1px solid var(--border); }
.m-ktxs.web .m-ktxhead span:nth-child(n+3) { text-align: right; }
.mt-kutu .m-ktxs.web .m-ktxhead { position: sticky; top: 0; z-index: 1; padding: 14px 0 8px; background: var(--background); }
.m-ktxs.web .m-ktx { border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; transition: background .6s ease; }
.m-ktxs.web .m-ktx:last-child { border-bottom: 0; }
.m-ktxs.web .m-ktx.fresh { background: color-mix(in srgb, var(--accent) 10%, transparent); animation: mt-slide .32s ease-out; }
.m-ktxs.web .m-ktxrow { width: 100%; min-height: 40px; padding: 0 4px; background: none; border: 0; border-radius: 6px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.m-ktxs.web .m-ktxrow:hover { background: color-mix(in srgb, var(--foreground) 4%, transparent); }
.m-ktxs.web .m-ktxago { color: var(--muted-2); font: 500 12.5px/1 var(--mono); white-space: nowrap; }
.m-ktxs.web .m-ktxwho { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.m-ktxs.web .m-ktxface, .m-ktxs.web .m-ktxapp { width: 18px; height: 18px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2, #1b1d20); font-size: 12px; line-height: 18px; text-align: center; overflow: hidden; }
.m-ktxs.web .ags-zr.m-ktxzr { --ags-zr: 18px; }
.m-ktxs.web .m-ktxad { min-width: 0; font: 700 13px/1.2 var(--sans); color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ktxs.web .m-ktxqty { font: 500 13px/1 var(--mono); color: var(--muted); text-align: right; white-space: nowrap; }
.m-ktxs.web .m-ktxpx { font: 600 13px/1 var(--mono); text-align: right; white-space: nowrap; }
.m-ktxs.web .m-ktxusd { font: 700 13.5px/1 var(--mono); text-align: right; white-space: nowrap; }
.m-ktxs.web .m-ktx.buy > .m-ktxrow .m-ktxpx, .m-ktxs.web .m-ktx.buy > .m-ktxrow .m-ktxusd, .m-ktxs.web .m-ktxalt.buy .m-ktxpx, .m-ktxs.web .m-ktxalt.buy .m-ktxusd, .m-ktxs.web .m-ktxalt.buy .m-ktxyon { color: var(--gain); }
.m-ktxs.web .m-ktx.sell > .m-ktxrow .m-ktxpx, .m-ktxs.web .m-ktx.sell > .m-ktxrow .m-ktxusd, .m-ktxs.web .m-ktxalt.sell .m-ktxpx, .m-ktxs.web .m-ktxalt.sell .m-ktxusd, .m-ktxs.web .m-ktxalt.sell .m-ktxyon { color: var(--danger); }
.m-ktxs.web .m-ktxdet { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s cubic-bezier(0.22, 1, 0.36, 1); }
.m-ktxs.web .m-ktx.open .m-ktxdet { grid-template-rows: 1fr; }
.m-ktxs.web.gecis .m-ktxdet { transition: none; }
.m-ktxs.web .m-ktxdet > div { min-height: 0; overflow: hidden; display: grid; }
.m-ktxs.web .m-ktx.open .m-ktxdet > div { padding-bottom: 8px; }
.m-ktxs.web .m-ktxalt { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; min-height: 34px; padding: 0 4px; margin-top: 2px; border-radius: 6px; background: color-mix(in srgb, var(--foreground) 3%, transparent); color: inherit; text-decoration: none; }
.m-ktxs.web .m-ktxalt:hover { background: color-mix(in srgb, var(--foreground) 7%, transparent); }
.m-ktxs.web .m-ktxyon { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--sans); padding-left: 26px; }
.m-ktxs.web .m-ktxdaha { display: block; width: 100%; margin: 12px 0 4px; padding: 10px 0; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--foreground) 6%, transparent); color: var(--foreground); font: 600 13px/1 var(--sans); cursor: pointer; }
.m-ktxs.web .m-ktxdaha:hover { background: color-mix(in srgb, var(--foreground) 10%, transparent); }
.m-ktxs.web .m-ktxcuz { justify-self: start; margin: 6px 0 6px 68px; padding: 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--foreground) 6%, transparent); color: var(--foreground); font: 600 12px/1.2 var(--sans); text-decoration: none; }
.m-ktxs.web .m-ktxcuz:hover { background: color-mix(in srgb, var(--foreground) 11%, transparent); }
.m-ktxs.web .m-ktx.open { position: relative; }
.m-ktxs.web .m-ktxscanyer { grid-column: span 2; }
/* satir 40 px; sag kenar = Total sutunu 92 + aralik 24 + ic bosluk 4 */
.m-ktxs.web .m-ktxscan { position: absolute; z-index: 1; top: 20px; right: 120px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; text-decoration: none; border-radius: 10px; background: color-mix(in srgb, var(--foreground) 8%, transparent); color: var(--foreground); font: 600 12px/1.2 var(--sans); white-space: nowrap; cursor: pointer; }
.m-ktxs.web .m-ktxscan:hover { background: color-mix(in srgb, var(--foreground) 13%, transparent); }
.hd-scan { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 3px 10px; border-radius: 10px; background: color-mix(in srgb, var(--foreground) 8%, transparent); color: var(--foreground); font: 600 12px/1.2 var(--sans); white-space: nowrap; text-decoration: none; vertical-align: middle; }
.hd-scan:hover { background: color-mix(in srgb, var(--foreground) 13%, transparent); }
/* 3 Kas: Holders cuzdan acilimi (SahipIslemleri) */
.hd-liste tr.hd-sec { cursor: pointer; }
.hd-liste tr.hd-sec:hover td { background: color-mix(in srgb, var(--foreground) 3%, transparent); }
.hd-adresbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: inherit; cursor: pointer; }
.hd-liste tr.hd-acilim > td { padding: 4px 14px 14px 34px; border-top: 0; }
.m-ksahip.web { display: grid; }
.m-ksahip.web .m-ktxcuz { margin: 0 0 12px; }
.mt-kutu .m-ksahip.web .m-ktxhead, .m-ksahip.web .m-ktxhead { position: static; padding: 12px 0 6px; background: none; }
.m-ksahip.web .m-ktxyon { padding-left: 0; }
.m-ksahip.web .m-ktxbos { padding: 8px 4px 2px; }
.m-ksahip.web .m-ksozet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 12px 14px; border-radius: 8px; background: color-mix(in srgb, var(--foreground) 4%, transparent); font-variant-numeric: tabular-nums; }
.m-ksahip.web .m-ksozet > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m-ksahip.web .m-ksozet span { font: 500 11px/1 var(--sans); color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.m-ksahip.web .m-ksozet b { font: 700 14px/1.2 var(--mono); color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ksahip.web .m-ksozet b.al { color: var(--gain); }
.m-ksahip.web .m-ksozet b.sat { color: var(--danger); }
.m-ksahip.web .m-ksozet small { font: 500 12px/1.2 var(--mono); color: var(--muted); white-space: nowrap; }
.m-ktxs.web .m-ktxbos { margin: 0; padding: 4px 4px 8px 68px; font: 500 12.5px/1.3 var(--sans); color: var(--muted-2); }
@media (prefers-reduced-motion: reduce) { .m-ktxs.web .m-ktxdet { transition: none; } }

/* Perps sağ rayı sayfadaki yerinde durur (22 Eyl, Cihan): 19 Eyl'deki sticky
   kuralı kalktı; pozisyon tablosu tam genişliğe uzayınca ray kaydırırken
   tablonun üstüne biniyordu. */

/* Pozisyon tablosu okunaklı (22 Eyl, Cihan): rakamlar tahtalardaki gibi
   kalın ve bir boy büyük, logo ticker'ın solunda. */
.ap-postable .tm-mkt { gap: 12px; }
.ap-postable .tm-coin.lg { width: 36px; height: 36px; }
.ap-postable .ap-tsym { font-size: 16px; letter-spacing: 0.01em; }
.ap-postable td.num { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--foreground); }
.ap-postable td.num.up { color: var(--gain); }
.ap-postable td.num.down, .ap-postable td.num.danger { color: var(--danger); }
.ap-postable td.num .ap-tname { font-family: var(--sans); font-weight: 400; font-size: 12px; }
/* 22 Eyl (Cihan): Market hücresi = ticker + kaldıraç, altında Long/Short;
   satır eylemleri Hyperliquid gibi yazı düğmeler (Close, Reverse). */
.ap-postable .ap-tsym { display: flex; align-items: center; gap: 8px; }
.ap-poslev { font: 700 12px/1 var(--mono); padding: 3px 6px; border-radius: 5px; background: var(--surface-2); color: var(--muted); }
.ap-poslev.long { color: var(--gain); background: rgba(43, 214, 123, 0.12); }
.ap-poslev.short { color: var(--danger); background: rgba(255, 77, 109, 0.12); }
.ap-postable .ap-poside { display: block; margin: 3px 0 0; font-size: 12px; }
.ap-poslane { margin-left: 6px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.ap-postable .ap-roe { font-size: 13px; font-weight: 500; opacity: 0.85; }
.ap-posacts { display: inline-flex; align-items: center; gap: 4px; }
.ap-actlink, .ap-closeall-link {
  border: none; background: none; cursor: pointer; padding: 6px 8px; border-radius: 6px;
  font: 600 14px/1 var(--sans); color: var(--accent);
}
.ap-closeall-link { font-size: 12px; text-transform: none; letter-spacing: 0; }
.ap-actlink:hover, .ap-closeall-link:hover { background: var(--surface-2); }
.ap-actlink:disabled, .ap-closeall-link:disabled { opacity: 0.45; cursor: default; }
.ap-postable .ap-posacts .ap-shareico { margin-left: 2px; }
/* PERPS TEK POZISYON (16 Kas): cok girisli pozisyonun "N entries" acici ve altindaki giris satirlari (sonuk, girintili). */
.ap-girisac { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 7px; border: none; border-radius: 5px;
  background: var(--surface-2); color: var(--muted); font: 600 11px/1.3 var(--sans); cursor: pointer; }
.ap-girisac:hover { color: var(--foreground); }
.ap-postable tr.ap-posgiris td { background: rgba(255, 255, 255, 0.015); }
.ap-postable tr.ap-posgiris td.num { font-size: 13px; font-weight: 500; }
.ap-postable tr.ap-posgiris .tm-mkt { padding-left: 22px; }
.ap-postable tr.ap-posgiris .tm-coin.lg { width: 22px; height: 22px; opacity: .7; }
.ap-postable tr.ap-posgiris .ap-tsym { font-size: 13px; }

/* Pozisyon pencereleri (Close / Reverse) */
.pa { display: grid; gap: 14px; }
.pa-head { display: flex; align-items: center; gap: 12px; }
.pa-head b { display: block; font-size: 18px; font-weight: 700; }
.pa-side { font-size: 13px; font-weight: 700; }
.pa-side.long { color: var(--gain); }
.pa-side.short { color: var(--danger); }
.pa-note { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.pa-rows { margin: 0; display: grid; gap: 10px; }
.pa-rows > div { display: flex; justify-content: space-between; gap: 12px; }
.pa-rows dt { color: var(--muted); font-size: 14px; }
.pa-rows dd { margin: 0; font: 600 14.5px/1.3 var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.pa-rows dd.up { color: var(--gain); }
.pa-rows dd.down { color: var(--danger); }
.pa-rows dd .pa-side { font-family: var(--sans); }
.pa-pctrow { display: flex; align-items: center; gap: 12px; }
.pa-pctval { flex: 0 0 52px; text-align: right; font: 700 15px/1 var(--mono); }
.pa-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pa-chip {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--foreground);
  border-radius: 8px; padding: 9px 0; font: 600 13.5px/1 var(--sans); cursor: pointer;
}
.pa-chip.on { border-color: var(--accent); color: var(--accent); }
.btn.pa-go { width: 100%; justify-content: center; background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.btn.pa-go.long { background: var(--gain); border-color: var(--gain); }
.btn.pa-go.short { background: var(--danger); border-color: var(--danger); }

/* Add margin (29 Eyl, O17): tutar kutusu + Max */
.pa-amt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.pa-amt:focus-within { border-color: var(--accent); }
.pa-amt-cur { color: var(--muted); font: 600 18px/1 var(--mono); }
.pa-amt input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: none; color: var(--foreground); font: 700 20px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.pa-max { flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface-3); color: var(--foreground); border-radius: 10px; padding: 6px 12px; font: 700 12.5px/1 var(--sans); cursor: pointer; }
.pa-max:hover { border-color: var(--accent); color: var(--accent); }
.pa-note.pa-warn { color: var(--danger); }

/* ── NOTLAR (19 Eyl, Cihan; Fomo örneği): pozisyonlu notlar, beğeni, sıralama ── */
.nt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.nt-write { border: none; border-radius: 10px; padding: 9px 14px; background: var(--accent); color: #000; font: 700 13.5px/1 var(--sans); cursor: pointer; }
.nt-write:hover { filter: brightness(1.06); }
.nt-hint { color: var(--muted-2); font-size: 13px; line-height: 1.4; min-width: 0; }
.nt-sort { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--muted); }
.nt-sort select {
  appearance: none; -webkit-appearance: none; background: var(--surface-2); color: var(--foreground); border: 1px solid var(--border);
  border-radius: 10px; padding: 7px 28px 7px 12px; font: 600 12.5px/1 var(--sans); cursor: pointer;
}
.nt-sort select:focus { outline: none; border-color: var(--accent); }
.nt-sort svg { position: absolute; right: 11px; pointer-events: none; }
.nt-list .tx-note { padding: 14px 0; }
.nt-note .tx-notebody { gap: 6px; flex: 1 1 auto; }
.nt-pos { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.nt-pos i { font-style: normal; font-weight: 600; }
.nt-pos i.pos { color: var(--gain); }
.nt-pos i.neg { color: var(--danger); }
.nt-pos small { margin-left: 2px; padding: 2px 6px; border-radius: 10px; background: var(--surface-2); color: var(--muted-2); font: 600 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.nt-pos.closed b { color: var(--muted); }
.nt-like { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 4px 8px 4px 0; background: none; border: none; color: var(--muted-2); font: 600 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.nt-like:hover { color: var(--foreground); }
.nt-like.on { color: var(--danger); }
.nt-like:disabled { opacity: .6; cursor: default; }


/* BONDING YARISI (21 Eyl, Cihan: "coinler birbiriyle yarismali, canli olmali") */
.pu-rank { display: inline-flex; align-items: baseline; gap: 3px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pu-rank b { font-weight: 700; color: var(--text); }
.pu-rank i { font-style: normal; font-size: 11px; font-weight: 700; }
.pu-rank.up i { color: var(--gain); }
.pu-rank.down i { color: var(--danger); }
.pu-thrank, .pu-tdrank { width: 64px; padding-right: 0 !important; }
.pu-mbrow .pu-rank { margin-right: 4px; }
.pu-hiz { font-family: var(--mono); font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pu-hiz.up { color: var(--gain); }
.pu-hiz.down { color: var(--danger); }
.pu-alici { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--accent); white-space: nowrap; }
.pu-mnew { color: var(--accent); text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }

/* Yeni giren: ustten kayar + lime parlama (5 dk boyunca sunucu 'yeni' der; animasyon bir kez) */
@keyframes pu-yeni-parla { 0% { box-shadow: inset 3px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); } 100% { box-shadow: inset 3px 0 0 transparent; background: transparent; } }
.pu-mbrow.pu-yeni { animation: mt-slide .35s ease-out, pu-yeni-parla 6s ease-out; }
/* 23 Eyl (Cihan: "dikey sacma cizgiler"): parlama her td'ye verilince soldaki lime cizgi
   HER HUCREDE ciziliyordu. Tabloda zemin tum hucrelerde, cizgi yalniz ilk hucrede. */
@keyframes pu-yeni-zemin { 0% { background: color-mix(in srgb, var(--accent) 14%, transparent); } 100% { background: transparent; } }
tr.pu-yeni > td { animation: pu-yeni-zemin 6s ease-out; }
tr.pu-yeni > td:first-child { animation: pu-yeni-parla 6s ease-out; }
/* Mezuniyete yakin (>= %80): cubuk lime nabiz */
@keyframes pu-nabiz { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }
.pu-prog-hot i, .pu-prog-hot .pu-prog i { background: var(--accent) !important; animation: pu-nabiz 1.6s ease-in-out infinite; }
.pu-mbrow.pu-yakin .pu-mpct { color: var(--accent); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pu-prog-hot i, .pu-mbrow.pu-yeni, tr.pu-yeni > td { animation: none; } }

/* 23 Eyl (Cihan): sol ray kalkti - bolumler ust cubukta yalniz adlariyla,
   arama saga kaydi ve daraldi. */
.ap-rail { display: none !important; }
.ap-col, .ap.sidebar-min .ap-col { margin-left: 0 !important; }
.ap-desklogo.only-desk { display: flex !important; align-items: center; flex: 0 0 auto; }
/* 15 Eki (Cihan: "%30 cok olmus, %10 yapalim"): isaret 24 -> 26, yazi 17 -> 19, menu 14 -> 15.5 px */
.ap-desklogo img { display: block; width: 26px; height: 26px; flex: 0 0 auto; }
.ap-desknav.only-desk { display: flex !important; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ap-desknav::-webkit-scrollbar { display: none; }
.ap-deskitem {
  padding: 6px 11px; border-radius: 6px; white-space: nowrap;
  font-family: var(--sans); font-size: 15.5px; font-weight: 500; color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.ap-deskitem:hover { background: var(--surface); color: var(--foreground); }
.ap-deskitem.on { color: var(--accent); }
.ap-topsearchwrap.only-desk { flex: 0 1 260px; margin-left: auto; }
.ap-wallet { margin-left: 0; }

/* 23 Eyl (Cihan, fomo ornegi): masaustu ISLEM MASASI - solda sekmeli liste
   (telefon satirlariyla), ortada grid ya da secilen tokenin grafigi + sekmeleri,
   sagda alim/satim bileti, About ve pozisyonlar. Liste yerinde kalir. */
.td-desk { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.td-list {
  position: sticky; top: 80px; height: calc(100vh - 96px);
  display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); overflow: hidden;
}
.td-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.td-tab {
  flex: 1 1 0; padding: 7px 8px; border: none; border-radius: 6px; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.td-tab:hover { color: var(--foreground); background: var(--surface-2); }
.td-tab.on { color: var(--foreground); background: var(--surface-3); }
.td-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.td-list .pu-mrow { grid-template-columns: 38px minmax(0, 1fr) auto; min-height: 58px; padding: 9px 14px; gap: 10px; }
.td-list .pu-mrow > img, .td-list .pu-mrow > .tm-lpwrap > :first-child, .td-list .pu-mtile { width: 38px; height: 38px; }
.td-list .pu-msymtext, .td-list .pu-mpx { font-size: 14.5px; line-height: 19px; }
.td-list .pu-mcap, .td-list .pu-mmc .tm-chg { font-size: 12px; line-height: 16px; }
.td-list .pu-mrow:hover { background: var(--surface-2); }
/* POZISYON ISIGI (14 Eki, Cihan: telefondaki halkanin "aynisini web'e de yapalim", "abartma"):
   Tokens / Perps listelerinde acik pozisyonu olan satirin logosu ince lime halka +
   yumusak isima (app/pozisyonIsigi.ts; telefon m.css .m-logo.held ile ayni renk). */
.pu-mrow.pos-held > img:not(.tm-lpbadge), .pu-mrow.pos-held > .pu-mtile, .pu-mrow.pos-held > .tm-lpwrap > :first-child,
.tm-card.pos-held > .tm-coin{
  box-shadow: 0 0 0 1.5px rgba(255, 106, 0, 0.9), 0 0 16px 3px rgba(255, 106, 0, 0.4);
}
.td-main { min-width: 0; }
.td-main .pu-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.td-main .tm-aside { position: sticky; top: 80px; }
.td-pick { border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); padding: 14px; }
.td-picktabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.td-picktabs span { text-align: center; padding: 10px; border-radius: var(--r-lg); background: var(--surface-2); font-weight: 600; color: var(--muted-2); }
.td-picktabs span.on { color: var(--accent); }
.td-pick p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 1200px) { .td-desk { grid-template-columns: 280px minmax(0, 1fr); } }
/* 23 Eyl (Cihan): masa sayfanin tamamini kullanir - kenar boslugu daraldi */
.ap-body:has(.td-desk) { padding: 10px 12px; }
.ap-top:has(~ .ap-body .td-desk), .ap-col:has(.td-desk) .ap-top { padding: 0 14px; }
.td-desk { gap: 12px; grid-template-columns: 330px minmax(0, 1fr); }
.td-list, .td-main .tm-aside { top: 74px; }
.td-list { height: calc(100vh - 84px); }
.td-main .tm-term { gap: 12px; }
.ap-desklogo img.ap-desklockup { display: block; height: 19px; width: auto; max-width: none; flex: 0 0 auto; object-fit: contain; }
.ap-desklogo.only-desk { gap: 9px; margin-right: 11px; }
/* 23 Eyl (Cihan: "kaya gibi saglam olsun"): masada SAYFA KAYMAZ. Header, sol
   liste ve sag sutun yerinde durur; her bolum yalniz kendi icinde kayar
   (liste, orta alan, sag sutun). overscroll-behavior: kenara gelince kaydirma
   sayfaya tasmaz, esneme/zıplama olmaz. */
html:has(.td-desk), body:has(.td-desk) { overflow: hidden; height: 100%; overscroll-behavior: none; }
.ap-body:has(.td-desk) { overflow: hidden; }
.td-desk { height: calc(100vh - 84px); height: calc(100dvh - 84px); align-items: stretch; }
.td-list { position: static; height: auto; min-height: 0; }
.td-main { min-height: 0; height: 100%; }
.td-main > .tm-term { height: 100%; align-items: stretch; }
.td-main > .tm-term > .tm-termmain, .td-main > .tm-term > .tm-aside {
  min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.td-main > .tm-term > .tm-aside { position: static; }
.td-rows { overscroll-behavior: contain; }
/* 23 Eyl (Cihan): Perps masasi - Tokens masasinin aynisi. Pazar secilince orta
   alan (serit, grafik + defter, bilet, hesap paneli) tek parca kendi icinde kayar;
   sol liste ve header yerinde durur. */
/* 1 Eki (Cihan): cubuk gizli - 'thin' asagidaki .td-main 'none' kuralini eziyordu,
   islem sonucu ekranindan donunce sag kenarda kalin beyaz cubuk cikiyordu. */
.td-perp .td-main { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.td-perp .td-main > .tm-term { height: auto; align-items: start; }
.td-perp .td-main > .tm-term > .tm-termmain, .td-perp .td-main > .tm-term > .tm-aside { overflow: visible; min-height: auto; }
.td-list .tm-card { width: 100%; gap: 10px; padding: 9px 14px; min-height: 58px; border-left: none; border-right: none; border-radius: 0; }
.td-list .tm-card:first-child { border-top: none; }
.td-list .tm-card .tm-coin.lg { width: 36px; height: 36px; }
.td-list .tm-cardsym, .td-list .tm-cardpx { font-size: 14.5px; }
.td-list .tm-cardname, .td-list .tm-card .tm-chg { font-size: 12px; }
.td-tabs .td-tab { flex: 1 1 auto; white-space: nowrap; padding: 7px 6px; }
.td-list .tm-cardright { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
/* 23 Eyl gece (Cihan, ikinci tur): (1) sag sutun da kendi icinde kayar - grid
   satiri ekrana sabitlendi; (2) kaydirma cubuklari gorunmez; (3) icerik tam
   header cizgisinin altinda kaybolur (ustte bosluk yok, bosluk kaydiranin
   icinde); (4) kartlar hafif kucuk ve buyuyunce kenara takilmaz (kaydiranin
   icinde yan bosluk); (5) orta gridde dortlu sira (Tokens + Perps). */
.ap-body:has(.td-desk) { padding: 0 12px; }
.td-desk { height: calc(100vh - 64px); height: calc(100dvh - 64px); }
.td-list { margin: 12px 0; }
.td-main > .tm-term { grid-template-rows: minmax(0, 1fr); }
.td-main > .tm-term > .tm-termmain { padding: 14px 12px 20px; }
.td-main > .tm-term > .tm-aside { padding: 12px 0 20px; }
.td-perp .td-main { padding: 12px 0 20px; }
.td-perp .td-main > .tm-term { grid-template-rows: none; }
.td-perp .td-main > .tm-term > .tm-termmain, .td-perp .td-main > .tm-term > .tm-aside { padding: 0; }
.td-rows, .td-main, .td-main > .tm-term > .tm-termmain, .td-main > .tm-term > .tm-aside { scrollbar-width: none; -ms-overflow-style: none; }
.td-rows::-webkit-scrollbar, .td-main::-webkit-scrollbar,
.td-main > .tm-term > .tm-termmain::-webkit-scrollbar, .td-main > .tm-term > .tm-aside::-webkit-scrollbar { display: none; width: 0; height: 0; }
.td-main .tm-grid, .td-main .tm-grid.pu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
/* diger sayfalar da ayni genislikte: header ve govde ayni kenar boslugu */
.ap-top { padding: 0 14px; }
.ap-body { padding: 16px 12px 24px; }
html, body { overflow-x: clip; overscroll-behavior: none; }
/* 24 Eyl: 901 pikselden dar bilgisayar penceresinde duzen ezilmez (.ap
   min-width); kirpma yerine sayfa yana kaydirilir, sag taraf kaybolmaz. */
@media (max-width: 900px) {
  html { overflow-x: auto; } body { overflow-x: visible; }
  /* islem masalari tam ekran, dikey kaydirma kendi icinde; yalniz yana kayar */
  html:has(.td-desk) { overflow-x: auto; overflow-y: hidden; }
  body:has(.td-desk) { overflow: visible; }
}
/* Header arama kutusu genis (Cihan). */
.ap-topsearchwrap.only-desk { flex: 0 1 400px; }
/* 23 Eyl (Cihan): Perps'te biletin altinda Your positions; sag sutun iki satiri
   kaplar, hesap paneli grafik sutununda kalir (grafigin altinda bosluk olmaz). */
.td-perp .td-main > .tm-term > .tm-aside { grid-column: 2; grid-row: 1 / span 2; }
.td-perp .td-main > .tm-term > .tm-termfull { grid-column: 1; grid-row: 2; }
.ab-posl .pos { color: var(--gain); font-weight: 600; }
.ab-posl .neg { color: var(--danger); font-weight: 600; }
/* 23 Eyl gece (Cihan): yan sutunlar %20 dar (330 -> 264, 332 -> 266), orta
   sahne genisler. Orta sahnedeki kartlarda kare zemin, bulanik arka plan ve
   cerceve YOK; logo yuvarlak kalir ve buyur (%62 -> %86). */
.td-desk { grid-template-columns: 264px minmax(0, 1fr); }
.td-main > .tm-term { grid-template-columns: minmax(0, 1fr) 266px; }
.td-main .tm-gart, .td-main .tm-gcard:hover .tm-gart { background: none; border-color: transparent; overflow: visible; }
/* 21 Eki (Cihan: "scroll tekliyor"): orta sahnede kirpma yok (overflow visible), iOS kirpma hilesi
   translateZ(0) gereksiz; her kart ayri katman aciyordu. */
.td-main .tm-gart { transform: none; }
.td-main .tm-gart.contain .tm-gback, .td-main .tm-gart.contain::after { display: none; }
.td-main .tm-gart.contain > img, .td-main .tm-gart.contain > .tm-gtile, .td-main .tm-gart.contain > .tm-lpwrap { width: 86%; height: 86%; }
.td-main .tm-gart.contain > img, .td-main .tm-gart.contain > .tm-gtile { border-radius: 10px; }
.td-main .tm-gart.pxf-up, .td-main .tm-gart.pxf-down { border-color: transparent; animation: none; }
/* 23 Eyl gece (Cihan): daraltma %20 degil %15 (330 -> 280, 332 -> 282);
   bilette "Wallet not connected" yazisi kucuk. */
.td-desk { grid-template-columns: 280px minmax(0, 1fr); }
.td-main > .tm-term { grid-template-columns: minmax(0, 1fr) 282px; }
.td-main .ap-avail { font-size: 11px; }
/* 23 Eyl (Cihan): Tokens kartinda fiyatin saginda 24s yuzdesi */
.tm-gchg { margin-left: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; vertical-align: middle; }
.tm-gchg.up { color: var(--gain); }
.tm-gchg.down { color: var(--danger); }
.tm-gchg.flat { color: var(--muted-2); }
/* 23 Eyl gece (Cihan): orta sahne logolari biraz daha buyuk (%86 -> %96) */
.td-main .tm-gart.contain > img, .td-main .tm-gart.contain > .tm-gtile, .td-main .tm-gart.contain > .tm-lpwrap { width: 96%; height: 96%; }
/* 23 Eyl gece (Cihan): yalniz sag sutun %10 genis (282 -> 310) */
.td-main > .tm-term { grid-template-columns: minmax(0, 1fr) 310px; }
/* 23 Eyl gece (Cihan: "sag taraf hala kaymiyor"): KOK SEBEP 780. satirdaki
   eski `.tm-aside { align-self: start }` - sutun ekran boyuna oturmuyor,
   icerigi kadar uzuyordu; tasan kisim kaydirilamadan kesiliyordu. Artik sutun
   masa boyunda durur ve kendi icinde kayar; icindeki kutular sikismaz. */
.td-desk:not(.td-perp) .td-main > .tm-term > .tm-aside { align-self: stretch; height: 100%; min-height: 0; overflow-y: auto; }
.td-desk:not(.td-perp) .td-main > .tm-term > .tm-termmain { align-self: stretch; height: 100%; min-height: 0; }
.td-main > .tm-term > .tm-aside > * { flex-shrink: 0; }
/* 23 Eyl gece (Cihan): Tokens'ta token acikken grafik tarafi ve sag sutun
   BIRLIKTE kayar (Perps'teki gibi); sol liste sabit. Token secilmemisken grid
   ve sag sutun ayri ayri kaymaya devam eder. */
.td-birlikte .td-main { overflow-y: auto; overscroll-behavior: contain; padding: 12px 0 20px; }
.td-desk.td-birlikte .td-main > .tm-term { height: auto; grid-template-rows: none; align-items: start; }
.td-desk.td-birlikte .td-main > .tm-term > .tm-termmain,
.td-desk.td-birlikte .td-main > .tm-term > .tm-aside { height: auto; overflow: visible; min-height: auto; padding: 0; align-self: start; }

/* ── TASARIM TURU (23 Eyl, Cihan: "cerceve, rengi ve secili sekme kutusu kotu") ──
   (1) Kartlar ve pencereler ustte ince bir isik cizgisi tasir (--edge): koyu
   zeminde renk acmadan kendini belli eder. (2) Liste sekmeleri kutu degil
   yazi + lime alt cizgi (ust menudeki lime nokta ile ayni dil). (3) Open/Closed
   ve benzeri anahtarlar cercevesiz: yuva hafif koyu, secili parca bir ton acik. */
/* 21 Kas (Cihan: "ust cizgi sanki ust uste binmis iki cizgi, bozuk gorunuyor"): bu kutularin hepsinde
   1px border var (anahtarlarda saydam). --edge border'in ICINDE cizilir, ust kenarda cizginin 1px
   altinda ikinci bir cizgi olusturuyordu; kaldirildi. KURAL: --edge yalniz border'siz kutuda
   (cerceve inset 0 0 0 1px golgeyle ciziliyorsa ikisi ayni satira duser). Border'li kutuya --edge yazma. */
.td-tabs { gap: 12px; padding: 0 16px; min-height: 48px; align-items: stretch; justify-content: space-between; background: none; }
.td-tabs .td-tab {
  flex: 0 0 auto; position: relative; padding: 0 1px; border-radius: 0; background: none;
  font-size: 14px; font-weight: 600; color: var(--muted-2); white-space: nowrap;
}
.td-tabs .td-tab:hover { background: none; color: var(--foreground); }
.td-tabs .td-tab.on { background: none; color: var(--foreground); }
.td-tabs .td-tab.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent);
}
.pfx-toggle, .tm-seg { border-color: transparent; background: var(--surface-2); }
.pfx-toggle button.on { background: var(--surface-3); box-shadow: var(--edge); }
/* MASA POZISYONLARI (23 Eyl, Cihan: "profil listesi gibi"): profil satirinin
   dili, 310 px sutuna gore kucuk olcek. */
.ab-pfx { gap: 0; margin-top: 0; }
.ab-pfx .pfx-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; }
.ab-pfx .pfx-logo, .ab-pfx .pfx-logo .tm-coin { width: 40px; height: 40px; }
.ab-pfx .pfx-logo .hold-side { width: 16px; height: 16px; font-size: 8.5px; right: -3px; bottom: -3px; }
.ab-pfx .pfx-main { gap: 4px; }
/* YOUR POSITIONS (14 Eki): kazancin odeme islemi satirin hemen altinda kucuk baglanti; "Show more" ortada. */
.yp-pos .pf3-more { align-self: center; margin-top: 8px; }
.ab-pfx .pfx-main b, .ab-pfx .pfx-num b { font-size: 16px; }
.ab-pfx .pfx-main small, .ab-pfx .pfx-num small { font-size: 13px; }

/* PERPS POZISYON TABLOSU SIGAR (23 Eyl, Cihan: "Close ve Share goremiyorum"):
   cerceve (.sc-frame overflow:hidden) tasan son sutunu kesiyordu. Yazilar ve
   bosluklar kucuk; yine de dar ekranda kesilmez, yana kayar. */
.ap-tablewrap.sc-frame:has(.ap-postable) { overflow-x: auto; scrollbar-width: none; }
.ap-postable th { padding: 10px 10px; font-size: 10.5px; }
.ap-postable td { padding: 10px 10px; }
.ap-postable .tm-mkt { gap: 10px; }
.ap-postable .tm-coin.lg { width: 30px; height: 30px; }
.ap-postable .ap-tsym { font-size: 14px; }
.ap-postable .ap-poside { font-size: 10px; }
.ap-postable td.num { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.ap-postable .ap-roe { font-size: 12px; }
.ap-postable .ap-actlink { font-size: 13px; }
.ap-postable .ap-shareico { width: 30px; height: 30px; margin-left: 4px; }
/* ORDER BOOK DAR (23 Eyl, Cihan: "order book'u daralt, chart genislesin"):
   268 → 228 px; satir yazisi ve bosluklari buna gore. */
.tm-row { grid-template-columns: minmax(0, 1fr) 228px; }
.tm-row .tm-bookhead, .tm-row .tm-brow { gap: 4px; padding-left: 8px; padding-right: 8px; }
.tm-row .tm-brow { font-size: 12px; }
.tm-row .tm-blast { padding-left: 8px; padding-right: 8px; }
.tm-row .tm-blastpx { font-size: 14px; }
/* KÜÇÜK DİZÜSTÜ (29 Eyl, tarama 4, D29): 1180 px altında sol liste + bilet
   sütunu yer kaplayınca grafik ~140 px kalıyordu, emir defteri ondan genişti.
   Bu aralıkta defter grafiğin altına iner; grafik satırı sürükleme tutamağının
   boyunu (--termh) korur, defter sabit 300 px. Daha geniş ekranda değişiklik yok. */
@media (max-width: 1179px) {
  .td-perp .tm-row { height: auto !important; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--termh, 470px) 300px; }
}
/* Ayni kural butun yatay seritlerde (23 Eyl): ust menu, sekmeler, haplar, grafik
   alt cubugu, 5 dk kartlari. Yana kayar, asagi-yukari hic oynamaz. */
.ap-desknav, .tm-seg.scroll, .tv-tabscroll, .tv-bar.tv-bottom{
  overflow-y: hidden; overscroll-behavior-x: contain;
}

/* PERPS POZISYON TABLOSU TEK EKRANA SIGAR (23 Eyl, Cihan: "ANTHROPIC acinca
   sigmadi, saga kaydirmak zorunda kalmasin"): Size yalniz adet, ROE PnL'in altinda,
   uzun ticker "..." ile kisalir (tam adi ustune gelince), bosluklar dar. */
.ap-postable { table-layout: auto; width: 100%; }
.ap-postable th, .ap-postable td { padding-left: 8px; padding-right: 8px; }
.sc-frame .ap-postable thead th:first-child, .sc-frame .ap-postable tbody td:first-child { padding-left: 14px; }
.sc-frame .ap-postable thead th:last-child, .sc-frame .ap-postable tbody td:last-child { padding-right: 12px; }
.ap-postable .tm-mkt { gap: 8px; min-width: 0; }
.ap-postable .tm-coin.lg { width: 28px; height: 28px; flex: 0 0 auto; }
.ap-postable .ap-tsym { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; }
.ap-postable .ap-tsymtxt { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-postable .ap-poslev { flex: 0 0 auto; }
.ap-postable td.num { font-size: 12.5px; }
.ap-postable .ap-roe { display: block; margin-top: 2px; font-size: 11px; opacity: .85; }
.ap-postable .ap-posacts { gap: 2px; }
.ap-postable .ap-actlink { font-size: 12.5px; padding-left: 5px; padding-right: 5px; }
.ap-postable .ap-shareico { width: 28px; height: 28px; margin-left: 2px; }
/* Sekme degisince grafik ile sekmeler arasi mesafe oynamasin (23 Eyl): sag
   sutun iki satiri kapliyor; uzunken artan yer GRAFIK satirina da dagitiliyordu.
   Artik tamami alt satira (hesap paneli) gider, grafik satiri icerigi kadar. */
.td-perp .td-main > .tm-term { grid-template-rows: auto minmax(0, 1fr); align-content: start; }
.td-perp .td-main > .tm-term > .tm-termmain, .td-perp .td-main > .tm-term > .tm-termfull { align-self: start; }

/* MASA LISTESI SATIRI (.pdl-row; 23 Eyl): Watchlist, Rank, Agent ve profil masalarinin sol listesi. Cerceve Tokens
   masasinin kendisi (.td-desk .td-birlikte): sayfa kaymaz, liste yerinde, orta + sag birlikte kayar. */
.pdl-row {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; min-height: 62px; padding: 10px 14px;
  border: none; border-top: 1px solid var(--border); background: none; color: var(--foreground);
  text-align: left; text-decoration: none; cursor: pointer; font: inherit;
  transition: background 0.15s ease;
}
.pdl-row:first-child { border-top: none; }
.pdl-row:hover { background: var(--surface-2); }
.pdl-row.on { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.pdl-row:hover .pdl-title { color: var(--foreground); }
.pdl-mid { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pdl-title {
  font: 600 13.5px/1.3 var(--sans); color: var(--foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pdl-title.one { display: block; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; }
.pdl-title em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 4px; }
.pdl-sub { font: 500 12px/16px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdl-sub .up { color: var(--gain); }
.pdl-sub .down { color: var(--danger); }
.pdl-sub .pdl-son { font-style: normal; color: var(--muted-2, #7d8187); }
.pdl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 86px; text-align: right; }
.pdl-pct { font: 700 15px/19px var(--mono); color: var(--foreground); }
.pdl-pct.up { color: var(--gain); }
.pdl-pct.down { color: var(--danger); }
.pdl-lab { max-width: 86px; font: 500 11.5px/15px var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* sahne: ustte 5 dk turlari, altta konu seridi + olay kartlari */
.pd-stage { gap: 28px; }
/* 5 dk kartinin basligi: sayfa basligi icin yazilan sonraki .pd-5mhead (flex,
   iki uca yasli) kartin ic basligini da ezip adi ortaya itiyordu. */
/* Perps Post sekmesi (23 Eyl): liste ustunde acilan yazma kutusu */
.nt-inline { margin: 2px 0 14px; }
.ac-posts { padding-top: 6px; }

/* WATCHLIST / RANK / AGENT MASALARI (23 Eyl, Cihan: "bu tasarima uygun yapalim,
   sag ve solu sana birakiyorum"). Ortak cerceve .pr-term. */
.pdl-row .tm-coin.lg { width: 38px; height: 38px; }
.pdl-title .tm-levchip { margin-left: 6px; vertical-align: 1px; }
.pdl-lab.tm-chg { font-family: var(--mono); font-weight: 600; }
.rk-how, .rk-you, .agd-safe, .agd-intro { padding: 16px; }
.rk-youhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rk-youhead .ab-title, .rk-how .ab-title, .agd-safe .ab-title, .agd-intro .ab-title, .rk-you .ab-title { font-size: 17px; }
.rk-youhead span { font: 500 12px/1 var(--sans); color: var(--muted-2); }
.rk-how .pos { color: var(--gain); }

/* RANK */
.rk-row { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 9px 14px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }
.rk-row:first-child { border-top: 0; }
.rk-row:hover { background: var(--surface-2); }
.rk-row.on { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.rk-row.me .rk-name b { color: var(--accent); }
.rk-pos { font: 700 13px/1 var(--mono); color: var(--muted-2); text-align: center; }
.rk-pos.m1 { color: #f5c451; } .rk-pos.m2 { color: #c9d1d9; } .rk-pos.m3 { color: #d98c5f; }
.rk-ava { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }
.rk-name { display: flex; align-items: center; gap: 5px; min-width: 0; }
.rk-name b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-name .lb-you { font-style: normal; }
.rk-net { font: 700 14px/1 var(--mono); white-space: nowrap; }
.rk-net.pos, .rk-podnet.pos, .rk-stats .pos, .rk-periodnet.pos, .rk-younums .pos, .rk-bnet.pos, .rk-period .pos, .pdl-sub .pos { color: var(--gain); }
.rk-net.neg, .rk-podnet.neg, .rk-stats .neg, .rk-periodnet.neg, .rk-younums .neg, .rk-bnet.neg, .rk-period .neg, .pdl-sub .neg { color: var(--danger); }
.rk-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.rk-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px 18px; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); box-shadow: none; color: inherit; font: inherit; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.rk-step:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.rk-step.empty { visibility: hidden; }
/* 15 Eki: kursunun birincisi altin degil lime (kadraj rozetiyle ayni ton), ikinci hafif beyaz isik */
.rk-step.p1 { padding-top: 34px; padding-bottom: 26px; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 106, 0, .10), transparent 60%), var(--surface); border-color: rgba(255, 106, 0, .32); }
.rk-step.p2 { background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .05), transparent 60%), var(--surface); }
.rk-medal { position: absolute; top: 12px; left: 14px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 10px; font: 800 12px/1 var(--mono); color: #000; background: #d98c5f; }
.rk-step.p1 .rk-medal { background: #f5c451; } .rk-step.p2 .rk-medal { background: #c9d1d9; }
.rk-podava { width: 64px; height: 64px; border-radius: 10px; font-size: 34px; }
.rk-step.p1 .rk-podava { width: 80px; height: 80px; font-size: 42px; box-shadow: 0 0 0 3px rgba(255, 106, 0, .55); }
.rk-podname { display: flex; align-items: center; gap: 5px; max-width: 100%; font-weight: 700; font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rk-podnet { font: 800 22px/1.1 var(--mono); }
.rk-step.p1 .rk-podnet { font-size: 26px; }
.rk-podsub { font-size: 12.5px; color: var(--muted); }
.rk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; border-radius: var(--r-xl); overflow: hidden; background: var(--border); box-shadow: var(--edge); }
.rk-stats > div { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); }
.rk-stats span { font-size: 12px; color: var(--muted); }
.rk-stats b { font: 700 18px/1.1 var(--mono); }
/* 30 Eyl (Cihan): kursunun altinda ayni donemin siralamasi 4'ten devam eder;
   ad, altinda islem sayisi, sagda net (ozet seridi ve Most active kalkti). */
.rk-board { padding: 4px 0; overflow: hidden; }
.rk-brow { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 10px 18px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }
.rk-brow:first-child { border-top: 0; }
.rk-brow:hover { background: var(--surface-2); }
.rk-brow.me .rk-name b { color: var(--accent); }
.rk-bava { width: 40px; height: 40px; border-radius: 10px; font-size: 21px; }
.rk-bmid { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rk-brow .rk-name b { font-size: 15px; }
.rk-bsub { font-size: 12.5px; color: var(--muted); }
.rk-bnet { font: 700 15px/1 var(--mono); white-space: nowrap; }
.rk-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 600 13px/1 var(--sans); cursor: pointer; }
.rk-back:hover { color: var(--foreground); background: var(--surface-2); }
.rk-trader { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r-2xl); background: radial-gradient(90% 120% at 0% 0%, rgba(255, 106, 0, .07), transparent 60%), var(--surface); box-shadow: none; border: 1px solid var(--border); }
.rk-traderava { width: 88px; height: 88px; border-radius: 10px; font-size: 46px; flex: 0 0 auto; }
.rk-traderid { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Oyuncuya gonder (27 Eyl, Cihan) */
.rk-send { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px 0 15px; border-radius: 10px; background: var(--accent, #ff6a00); color: #000; font: 800 14px var(--sans); cursor: pointer; transition: transform .15s ease; }
.rk-send:hover { transform: translateY(-1px); }
.rk-traderid h1 { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 26px/1.1 var(--sans); letter-spacing: -0.02em; }
.rk-traderid h1 .lb-you { font-style: normal; font-size: 12px; }
.rk-addr { display: inline-flex; align-items: center; gap: 4px; font: 500 13px/1 var(--mono); color: var(--muted); text-decoration: none; }
.rk-addr:hover { color: var(--foreground); }
.rk-bio { margin: 4px 0 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.rk-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rk-period { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: none; min-width: 0; }
.rk-period.off { opacity: .6; }
.rk-periodh { font: 600 12px/1 var(--sans); color: var(--muted); }
.rk-periodnet { font: 800 20px/1.1 var(--mono); }
.rk-periodbar { height: 4px; border-radius: 10px; background: var(--surface-3); overflow: hidden; }
.rk-periodbar i { display: block; height: 100%; border-radius: 10px; background: var(--muted-2); }
.rk-periodbar i.pos { background: var(--gain); } .rk-periodbar i.neg { background: var(--danger); }
.rk-periodrow { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.rk-periodrow b { font: 600 13px/1 var(--mono); color: var(--foreground); }
.rk-periodrow b small { font-weight: 500; color: var(--muted-2); font-size: 11px; }
.rk-periodnone { font-size: 13px; color: var(--muted-2); line-height: 1.4; }
.rk-youtxt { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.rk-youtxt:last-child { margin-bottom: 0; }
.rk-youbody { display: grid; grid-template-columns: 44px auto minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rk-youava { width: 44px; height: 44px; border-radius: 10px; font-size: 24px; }
.rk-youpos { display: flex; flex-direction: column; font: 800 26px/1 var(--mono); }
.rk-youpos small { font: 500 11px/1.4 var(--sans); color: var(--muted-2); }
.rk-younums { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rk-younums b { font: 700 16px/1 var(--mono); }
.rk-younums small { font-size: 12px; color: var(--muted); }
.rk-how ul, .agd-safe ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.rk-how li, .agd-safe li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rk-how li::before, .agd-safe li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 10px; background: var(--accent); }
.rk-how li b { color: var(--foreground); font-weight: 600; }

/* AGENT */
.agd-face { display: inline-block; flex: 0 0 auto; }
.agd-face svg { display: block; width: 100%; height: 100%; }
.agd-face.live svg { filter: drop-shadow(0 0 14px rgba(255, 106, 0, .35)); }
.agd-eyes { animation: agd-blink 5.5s infinite; transform-origin: 50% 44%; }
@keyframes agd-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.agd-hero { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: var(--r-2xl); background: radial-gradient(80% 140% at 0% 0%, rgba(255, 106, 0, .09), transparent 60%), var(--surface); box-shadow: none; }
.agd-heroid { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.agd-heroid h1 { margin: 0; font: 800 26px/1.1 var(--sans); letter-spacing: -0.02em; }
.agd-heroid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.agd-heroid p span { color: var(--foreground); }
.agd-intro p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.agd-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.agd-promises > div { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r-xl); background: var(--surface-2); }
.agd-promises b { font-size: 14px; }
.agd-promises span { font-size: 13px; line-height: 1.5; color: var(--muted); }
.td-ag .pr-aside .ap-panel .ap-panelbody { padding: 14px 16px; }
@media (max-width: 1279px) { .rk-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .agd-promises { grid-template-columns: minmax(0, 1fr); } }

/* 23 Eyl (Cihan): Tokens kimlik karti Perps seridi yuksekliginde. Logo 48,
   iki satir (isim / sembol+cipler), sagda fiyat ustte, anahtar+ATH altta;
   geri oku logonun solunda (.pu-back). */
.tm-hero { padding: 12px 20px; } /* 23 Eki (Cihan: "ust bari biraz kisaltalim"): 14 -> 12 px, ATH satiri da kalkti */
.th-top { align-items: center; gap: 12px; }
.th-top > .tm-logo { width: 48px; height: 48px; font-size: 16px; }
.th-top .tm-heroname { font-size: 18px; line-height: 1.25; }
.th-subrow { display: flex; align-items: center; gap: 10px; margin-top: 3px; min-width: 0; }
.th-subrow .tm-herosym { font-size: 13px; white-space: nowrap; }
.th-subrow .th-links { margin-top: 0; flex-wrap: nowrap; gap: 4px; }
.th-subrow .tm-chip { min-height: 24px; padding: 2px 8px; font-size: 11px; }
.th-money { align-self: center; justify-content: center; gap: 0; }
.th-money .th-bigrow { margin-top: 0; flex-direction: column; align-items: flex-end; gap: 4px; } /* 14 Eki (Cihan): yuzde fiyatin altinda */
.th-money .tm-metricvalue { font-size: 28px; line-height: 1.1; }
.th-moneysub { justify-content: flex-end; margin-top: 4px; }
.th-moneysub .tm-metrictoggle { font-size: 12px; gap: 6px; }
.th-moneysub .tm-metrictoggle svg { width: 18px; height: 18px; }
.th-moneysub .th-ath { margin-top: 0; }
.th-moneysub .th-athlabel { font-size: 12px; }

/* PROFIL MASASI (23 Eyl, Cihan: "profile sayfasini da ayni sekilde; saga rank'in
   daraltilmis hali"). Solda pozisyonlar, ortada profil + portfoy + son hareketler
   ya da alt ekran (pozisyon, deposit, withdraw, transfer, activity), sagda Rank. */
.td-tabs .td-tab small { margin-left: 4px; font: 600 11px/1 var(--mono); color: var(--muted-2); }
/* 23 Eyl: tur sekmelerinin altinda tam genislik Open | Closed; yuva hafif koyu, secili yari bir ton acik */
.pfd-oc { flex: 0 0 auto; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.pfd-oc .pfx-toggle { display: flex; width: 100%; padding: 3px; border-radius: 8px; }
.pfd-oc .pfx-toggle button { flex: 1 1 0; justify-content: center; gap: 7px; min-height: 34px; padding: 0 10px; border-radius: 6px; font-size: 14px; }
.pfd-oc .pfx-toggle button small { font: 600 11.5px/1 var(--mono); color: var(--muted-2); }
.pfd-oc .pfx-toggle button.on small { color: var(--accent); }
.pfd-row .pfx-logo, .pfd-row .pfx-logo .tm-coin { width: 38px; height: 38px; }
.pfd-row .pfx-logo { position: relative; }
.pfd-row .pfx-logo .hold-side { width: 15px; height: 15px; font-size: 8px; right: -3px; bottom: -3px; }
.pfd-pct.pos, .pdl-pct.pos { color: var(--gain); }
.pfd-pct.neg, .pdl-pct.neg { color: var(--danger); }
.pfd-empty { padding: 24px 16px; line-height: 1.5; }
.td-pf .pr-term { grid-template-columns: minmax(0, 1fr) 310px; gap: 12px; align-items: start; }
.td-pf .pr-aside { position: static; top: auto; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.td-pf .pr-main { gap: 0; }
.pfd-center > .pu-page { padding-top: 4px; padding-bottom: 0; }
.pfd-home .pfx-back, .pfd-center .pfs-head .pfx-back { display: none; }
.pfd-activity { display: flex; flex-direction: column; gap: 12px; }
.pfd-acthead { display: flex; align-items: baseline; justify-content: space-between; }
.rk-minicard { padding: 16px; display: flex; flex-direction: column; }
.rk-minihead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rk-minihead .ab-title { font-size: 17px; }
.rk-miniper button { padding: 5px 8px; font-size: 12px; }
.rk-minime { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 6px; padding: 10px 12px; border: 0; border-radius: var(--r-lg); background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rk-minime.off { cursor: default; }
.rk-minime > span { font: 600 12px/1 var(--sans); color: var(--muted); }
.rk-minime b { font: 800 17px/1 var(--mono); }
.rk-minime b small { font: 500 11px/1 var(--sans); color: var(--muted-2); }
.rk-minime em { margin-left: auto; font: 700 14px/1 var(--mono); font-style: normal; }
.rk-minime em.pos { color: var(--gain); } .rk-minime em.neg { color: var(--danger); }
.rk-minime > small { margin-left: auto; font-size: 12px; color: var(--muted-2); }
.rk-minirow.me .rk-mininame { color: var(--accent); }
.rk-minipos.m1 { color: #f5c451; } .rk-minipos.m2 { color: #c9d1d9; } .rk-minipos.m3 { color: #d98c5f; }
.rk-minimore { align-self: flex-start; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1 var(--sans); cursor: pointer; }

/* 23 Eyl (Cihan): grafik tutamagi oklu yuvarlak degil, duz soluk bir cizgi.
   Surukleme sirasinda cizgi imleci izler, ince bir kilavuz yeni alt kenari
   gosterir; grafik birakinca tek sefer boyutlanir (titreme yok). */
.tm-gripdot {
  width: 56px; height: 4px; border: none; border-radius: 10px; padding: 0;
  background: var(--border-strong); opacity: 0.8;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.tm-gripdot::before { content: ""; position: absolute; inset: -9px -14px; }
.tm-grip:hover .tm-gripdot { background: var(--muted); opacity: 1; }
.tm-grip.dragging .tm-gripdot { background: var(--accent); opacity: 1; translate: 0 var(--gripdrag, 0px); }
.tm-grip.dragging::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--accent); opacity: 0.45; translate: 0 var(--gripdrag, 0px); pointer-events: none;
}
body.grip-drag iframe { pointer-events: none !important; }
body.grip-drag, body.grip-drag * { cursor: ns-resize !important; user-select: none; }
/* masa satiri profil satirinin sinif adlarini da tasir (sinavlar ve ortak kurallar); gorunum masa satiri */
.td-list .pfd-row.pfx-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 10px 14px; border-radius: 0; border-top: 1px solid var(--border); }
.td-list .pfd-row.pfx-row:first-child { border-top: 0; }
.td-list .pfd-row .pdl-pct.pfx-val { font-size: 15px; }
/* TOZ (30 Eyl, Cihan: Fomo'daki "Show dust"): 10 sent alti token kirintilari listenin sonunda, iki yani cizgili hap ile acilir */
.toz-ayrac { display: flex; align-items: center; gap: 12px; padding: 16px 14px 18px; }
.toz-ayrac::before, .toz-ayrac::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.toz-btn { flex: 0 0 auto; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--muted-2, #9aa0a6); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.toz-btn:hover { color: var(--foreground, #fff); border-color: rgba(255, 255, 255, 0.22); }
.pfx-row.toz { opacity: 0.6; }

/* 23 Eyl (Cihan): Watchlist sayfasi kalkti; her listenin sekme satirinda en
   solda favori yildizi. Acikken lime, alt cizgi yok (yildizin kendisi yanar). */
.td-tabs .td-fav { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0 2px; }
.td-tabs .td-fav svg { display: block; }
.td-tabs .td-fav.on { color: var(--accent); }
.td-tabs .td-fav.on::after { display: none; }
.td-favempty { padding: 28px 18px; text-align: center; line-height: 1.5; }

/* 23 Eyl (Cihan): tutamak cizgisi cercevenin kenarinda degil, altindaki
   bosluga iner; Perps'te grafik + emir defterinin TOPLAMININ ortasinda. */
.tm-grip .tm-gripdot { top: 8px; }
.tm-grip-term .tm-gripdot { left: 50%; top: 13px; }
.tm-grip.dragging::after { top: 0; }
/* 1 Eki (Cihan: "chart ile your trades arasindaki cubuk iki bolumun arasina sikismis"):
   Perps'te altindaki kart 12 px'te basliyordu, 13 px'teki cizgi kartin ust kenarina
   biniyordu. Kart 26 px asagida baslar; cizgi iki bolumun tam ortasinda kalir. */
.tm-grip-term + .mp-slot { margin-top: 26px; }
/* SEKME SATIRI KURALI (23 Eyl, Cihan: "yildizin solundaki bosluk kadar en sagda
   bosluk birak, bunu kural olarak yaz"). KURAL: masa listesinin sekme satirinda
   ilk ogenin (yildiz) soldaki boslugu = son sekmenin sagdaki boslugu = 14 px.
   Bunu space-between + iki yanda esit kenar payi saglar; sekmeler arasi bosluk
   kalan yere gore esit dagilir, 10 px'in altina inmez (gap = en az aralik).
   Olcum (liste kutusu 280 px, ic alan 250 px, eski Outfit 600 13 px): Perps icerigi
   197 px -> aralik ~13 px; Tokens ~192 px -> ~14 px. Yazi 13 px'ten buyutulurse
   ya da sekme eklenirse bu hesap yeniden yapilir. */
.td-tabs { justify-content: space-between; gap: 10px; padding: 0 14px; }
.td-tabs .td-tab{ font-size: 13px; }
.td-tabs .td-fav { padding: 0; margin-right: 0; }
/* PERPS KATEGORI SEKMELERI (16 Eki, Selcuk: "telefondaki gibi"). Yedi sekme
   280 px'e sigmaz: yildiz sabit, sekmeler yana kayar, sigmayan sagda yarim
   gorunur, kaydirma cubugu gizli. Ustteki 14 px kenar kurali yalniz soldadir;
   sagda kenar payi kayan icerigin sonundadir. Secili sekme ayni lime alt cizgi. */
.td-tabs.td-kay { justify-content: flex-start; gap: 14px; padding: 0 0 0 14px; }
.td-kaylist {
  position: relative; display: flex; align-items: stretch; gap: 18px; flex: 1 1 auto; min-width: 0;
  margin-bottom: -1px; padding-right: 14px; overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain; scrollbar-width: none; user-select: none; -webkit-user-select: none;
}
.td-kaylist::-webkit-scrollbar { display: none; }
.td-kaylist .td-tab.on::after { bottom: 0; }
.td-kaylist.suruk, .td-kaylist.suruk .td-tab { cursor: grabbing; }

/* YUKLENIYOR KARAKTERI (23 Eyl, Cihan: "nerede bir veri gecikecek olursa
   hemen orada karakter gorunsun, oynasin"). Acilis ekraninin (index.html .ob)
   agent'i sayfa icinde; bilesen app/src/app/AgentLoading.tsx. 0,3 sn gecikmeyle
   belirir, hizli gelen veride yanip sonmez. Uc oyun: bak / zipla / oku. */
.agl { --agl-amp: 7px; --agl-hop: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 16px 30px; text-align: center; opacity: 0; animation: agl-in .35s ease .3s forwards; }
.agl-stage { display: flex; flex-direction: column; align-items: center; }
.agl-bot { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #FF6A00; box-shadow: 0 0 28px rgba(255,106,0,.28); transform-origin: 50% 100%; }
/* 28 Kas yobro: .agl-bot turuncu yuz; eski lime parlama lekesi kalkti */
.agl-bot svg { display: block; width: 100%; height: 100%; transform-origin: 50% 60%; }
.agl-eyes, .agl-mouth { transform-box: fill-box; transform-origin: center; }
.agl-shadow { width: 48px; height: 7px; margin-top: 12px; border-radius: 50%; background: rgba(255,106,0,.18); filter: blur(3px); }
.agl-text { margin: 14px 0 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.agl-dots i { display: inline-block; width: 3px; height: 3px; margin-left: 3px; border-radius: 1px; background: currentColor; opacity: .25; animation: agl-dot 1.2s ease-in-out infinite; }
.agl-dots i:nth-child(2) { animation-delay: .15s; }
.agl-dots i:nth-child(3) { animation-delay: .3s; }
.agl-sm { --agl-amp: 3px; --agl-hop: 7px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px 2px; text-align: left; }
.agl-sm .agl-bot { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 16px rgba(255,106,0,.22); }
.agl-sm .agl-shadow { display: none; }
.agl-sm .agl-text { margin: 0; }
/* bak: acilis ekraninin hareketi (saga sola bakar, kirpar, bas egilir) */
.agl-bak .agl-bot { animation: agl-float 2.6s ease-in-out infinite; }
.agl-bak .agl-bot svg { animation: agl-tilt 6s ease-in-out infinite; }
.agl-bak .agl-eyes { animation: agl-look 6s ease-in-out infinite; }
.agl-bak .agl-mouth { animation: agl-mouth 6s ease-in-out infinite; }
.agl-bak .agl-shadow { animation: agl-shadow 2.6s ease-in-out infinite; }
/* zipla: cokup ziplar, tepede gozler yukari ve agiz "o" olur */
.agl-zipla .agl-bot { animation: agl-hop 1.3s cubic-bezier(.4,0,.3,1) infinite; }
.agl-zipla .agl-eyes { animation: agl-hopeyes 1.3s ease-in-out infinite; }
.agl-zipla .agl-mouth { animation: agl-hopmouth 1.3s ease-in-out infinite; }
.agl-zipla .agl-shadow { animation: agl-hopshadow 1.3s cubic-bezier(.4,0,.3,1) infinite; }
/* oku: gozler satir satir tarar, sonra kirpar */
.agl-oku .agl-bot { animation: agl-float 3.4s ease-in-out infinite; }
.agl-oku .agl-eyes { animation: agl-read 4.2s ease-in-out infinite; }
.agl-oku .agl-mouth { animation: agl-readmouth 4.2s ease-in-out infinite; }
.agl-oku .agl-shadow { animation: agl-shadow 3.4s ease-in-out infinite; }
@keyframes agl-in { to { opacity: 1; } }
@keyframes agl-dot { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes agl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--agl-amp) * -1)); } }
@keyframes agl-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.75); opacity: .55; } }
@keyframes agl-look { 0%, 8% { transform: none; } 12%, 30% { transform: translateX(-30px); } 36%, 54% { transform: translateX(28px); } 60% { transform: none; } 64% { transform: scaleY(.1); } 66%, 78% { transform: none; } 80% { transform: scaleY(.1); } 82%, 100% { transform: none; } }
@keyframes agl-tilt { 0%, 8% { transform: none; } 12%, 30% { transform: rotate(-5deg); } 36%, 54% { transform: rotate(5deg); } 60%, 100% { transform: none; } }
@keyframes agl-mouth { 0%, 8%, 60%, 100% { transform: none; } 12%, 30% { transform: translateX(-12px) scaleX(.8); } 36%, 54% { transform: translateX(12px) scaleX(.8); } }
@keyframes agl-hop { 0%, 100% { transform: translateY(0) scale(1.1, .9); } 18% { transform: translateY(0) scale(.94, 1.06); } 45% { transform: translateY(calc(var(--agl-hop) * -1)) scale(1, 1); } 70% { transform: translateY(0) scale(1.12, .88); } 82% { transform: translateY(0) scale(.97, 1.03); } }
@keyframes agl-hopshadow { 0%, 18%, 70%, 100% { transform: scaleX(1); opacity: 1; } 45% { transform: scaleX(.5); opacity: .35; } }
@keyframes agl-hopeyes { 0%, 18%, 72%, 100% { transform: none; } 40%, 50% { transform: translateY(-18px); } }
@keyframes agl-hopmouth { 0%, 18%, 72%, 100% { transform: none; } 40%, 50% { transform: scale(.5, 2.4); } }
@keyframes agl-read { 0% { transform: translate(-26px, -12px); } 20% { transform: translate(26px, -12px); } 24% { transform: translate(-26px, 4px); } 44% { transform: translate(26px, 4px); } 48% { transform: translate(-26px, 20px); } 68% { transform: translate(26px, 20px); } 74% { transform: none; } 78% { transform: scaleY(.1); } 80%, 100% { transform: none; } }
@keyframes agl-readmouth { 0%, 68% { transform: scaleX(.6); } 74%, 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .agl { animation: none; opacity: 1; }
  .agl .agl-bot, .agl .agl-bot svg, .agl .agl-eyes, .agl .agl-mouth, .agl .agl-shadow, .agl-dots i { animation: none; }
  .agl-dots i { opacity: .6; }
}

/* ---------- TOKENS YARISI (23 Eyl, Cihan: "alim gelen 1. siraya gecsin, 4chan kafasi") ----------
   Yaris.tsx: kart FLIP'i JS'te (Web Animations); burada halka, balon, kombo,
   tac ve ustteki canli alim seridi. Sol liste ve telefon listesi etkilenmez. */
.yr-grid { position: relative; }
/* 21 Eki (Cihan: "scroll tekliyor"): kalici will-change kalkti - 200 kartin her biri ayri katmandi;
   FLIP animasyonu kosarken tarayici katmani kendisi acar, bitince kapatir. */
.yr-slot { position: relative; min-width: 0; }
.yr-ring {
  position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1 / 1; translate: -50% -50%;
  border-radius: 10px; border: 3px solid var(--accent); pointer-events: none; z-index: 3;
  animation: yr-ring 1.1s ease-out 0.5s both;
}
.yr-ring::after {
  content: ""; position: absolute; inset: -10%; border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.28), transparent 65%);
}
.td-main .yr-ring { width: 86%; }
.yr-ring.sell { border-color: var(--danger); animation-delay: 0s; animation-duration: 0.8s; }
.yr-ring.sell::after { background: radial-gradient(circle, rgba(255, 77, 109, 0.22), transparent 65%); }
.yr-ring.balina { border-width: 5px; box-shadow: 0 0 28px rgba(255, 106, 0, 0.8); animation-duration: 1.5s; }
@keyframes yr-ring { 0% { opacity: 0; scale: 0.9; } 12% { opacity: 1; } 100% { opacity: 0; scale: 1.5; } }
/* 25 Eyl (Cihan: "fiyat tacin arkasinda kaliyor"): balon %6'dan kalkinca
   yukselirken tacin ustune biniyordu; %30'dan kalkar, tepesi tacin altinda kalir. */
.yr-bal {
  position: absolute; left: 50%; top: 30%; z-index: 4; translate: -50% 0;
  padding: 3px 9px; border-radius: 10px; white-space: nowrap; pointer-events: none;
  font-family: var(--mono); font-size: 12.5px; font-weight: 800; letter-spacing: -0.01em;
  background: var(--accent); color: #000; box-shadow: 0 6px 18px rgba(255, 106, 0, 0.35);
  animation: yr-bal 1.7s cubic-bezier(0.2, 0.9, 0.3, 1) 0.45s both;
}
.yr-bal.sell { background: var(--danger); color: #fff; box-shadow: 0 6px 18px rgba(255, 77, 109, 0.35); animation-delay: 0s; animation-duration: 1.3s; }
.yr-bal.balina { font-size: 15px; padding: 4px 12px; box-shadow: 0 0 26px rgba(255, 106, 0, 0.7); }
@keyframes yr-bal {
  0% { opacity: 0; transform: translateY(16px) scale(0.5); }
  16% { opacity: 1; transform: translateY(0) scale(1.18); }
  28% { transform: translateY(-2px) scale(1); }
  78% { opacity: 1; transform: translateY(-20px) scale(1); }
  100% { opacity: 0; transform: translateY(-34px) scale(0.95); }
}
.yr-kombo {
  position: absolute; left: 4px; top: 4px; z-index: 4; pointer-events: none;
  padding: 2px 7px; border-radius: 10px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 800; color: #000; background: var(--accent);
  animation: yr-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.yr-kombo.ates {
  background: linear-gradient(90deg, #ffd000, #ff6a1f); box-shadow: 0 0 14px rgba(255, 120, 0, 0.6);
  animation: yr-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both, yr-nabiz 0.9s ease-in-out 0.5s infinite;
}
@keyframes yr-pop { 0% { opacity: 0; scale: 0.3; } 100% { opacity: 1; scale: 1; } }
@keyframes yr-nabiz { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }
.yr-tac {
  position: absolute; left: 50%; top: 2px; z-index: 5; translate: -50% -40%; pointer-events: none; line-height: 0;
  color: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 106, 0, 0.75));
  animation: yr-pop 0.4s ease-out both, yr-tac 1.8s ease-in-out 0.4s infinite;
}
@keyframes yr-tac { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-3px) rotate(6deg); } }
.yr-kral .tm-gname { color: var(--accent); }

/* canli alim seridi: yeni alim soldan girer, eskiler saga itilir */
.yr-serit { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; min-width: 0; }
.yr-canli { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--accent); }
.yr-canli i { width: 7px; height: 7px; border-radius: 14px; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: yr-nabiz 1.2s ease-in-out infinite; }
.yr-seritic {
  position: relative; flex: 1 1 auto; min-width: 0; height: 32px; display: flex; align-items: center; gap: 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent);
}
.yr-alim {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 4px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--foreground);
  font-family: var(--mono); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.yr-alim:hover { border-color: rgba(255, 106, 0, 0.6); }
.yr-alim > img, .yr-alim .yr-alimtile { width: 22px; height: 22px; border-radius: 10px; object-fit: cover; font-size: 10px; flex: 0 0 auto; }
.yr-alimusd { color: var(--gain); }
.yr-alimkim { color: var(--muted-2); font-weight: 500; }
.yr-alim.taze { border-color: rgba(255, 106, 0, 0.7); animation: yr-taze 1.4s ease-out; }
.yr-alim.balina { background: rgba(255, 106, 0, 0.12); border-color: rgba(255, 106, 0, 0.5); }
@keyframes yr-taze { 0% { background: rgba(255, 106, 0, 0.35); } 100% { background: var(--surface-2); } }
.yr-bekle { color: var(--muted-2); font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .yr-ring, .yr-bal, .yr-kombo, .yr-tac, .yr-alim.taze, .yr-canli i { animation: none; }
  .yr-ring, .yr-bal { display: none; }
}
/* 23 Eyl (Cihan): kartin ustune gelince mini grafik sola dogru uzar; sag ustte favori yildizi */
.pu-spark { transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), height 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.tm-gcard:hover .pu-spark { width: calc(100% - 16px); height: 32%; }
.tm-gfav {
  position: absolute; right: 6px; top: 6px; z-index: 6; line-height: 0;
  opacity: 0; scale: 0.7; pointer-events: none;
  transition: opacity 0.18s ease, scale 0.22s cubic-bezier(0.3, 1.5, 0.5, 1);
}
/* 21 Eki (Cihan: "scroll tekliyor"): bulanik zemin (backdrop-filter) kalkti; yildiz gorunmezken bile her kart
   icin ayri bulaniklik hesaplaniyordu (Tokens'ta 150+). Zemin biraz koyu, gorunum ayni. */
.tm-gfav .tm-star { margin: 0; padding: 6px; background: rgba(13, 11, 16, 0.62); color: #fff; }
.tm-gfav .tm-star:hover, .tm-gfav .tm-star.on { color: var(--accent); }
.tm-gcard:hover .tm-gfav, .tm-gcard:focus-visible .tm-gfav, .tm-gfav:has(.tm-star.on) { opacity: 1; scale: 1; pointer-events: auto; }
@media (hover: none) { .tm-gfav { display: none; } }
/* 23 Eyl (Cihan): Tokens sol listesinde Bonding satirlari diger sekmelerle ayni boyda */
.td-list .pu-mbmc { font-size: 14.5px; line-height: 19px; }
.td-list .pu-mvol, .td-list .pu-mpct { font-size: 12px; line-height: 16px; }
.td-list .pu-mage { font-size: 11px; line-height: 16px; }
.td-list .pu-mbar { width: 56px; height: 4px; }

/* ---------- YOUR RANK KARTI (23 Eyl, Cihan: "guzel bir kart, paylasilabilir") ---------- */
.rk-yc { position: relative; overflow: hidden; }
.rk-ycbody {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id id" "rank foot";
  align-items: end; gap: 18px 12px; width: 100%; padding: 16px; margin: 0;
  border: 1px solid rgba(255, 106, 0, 0.18); border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 106, 0, 0.10), rgba(255, 106, 0, 0.02) 55%, rgba(13, 11, 16, 0.2));
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.rk-yc.neg .rk-ycbody { border-color: rgba(255, 77, 109, 0.2); background: linear-gradient(160deg, rgba(255, 77, 109, 0.10), rgba(255, 77, 109, 0.02) 55%, rgba(13, 11, 16, 0.2)); }
.rk-ycbody:hover { border-color: rgba(255, 106, 0, 0.45); }
.rk-yc.neg .rk-ycbody:hover { border-color: rgba(255, 77, 109, 0.45); }
.rk-ycglow {
  position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 10px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.22), transparent 65%);
}
.rk-yc.neg .rk-ycglow { background: radial-gradient(circle, rgba(255, 77, 109, 0.2), transparent 65%); }
.rk-ycid { grid-area: id; position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; }
.rk-ycava { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 10px; font-size: 26px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08); }
.rk-ycname { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rk-ycname b { font: 700 17px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-ycname .rz { flex: 0 0 auto; }
.rk-ycrank { grid-area: rank; position: relative; display: flex; align-items: baseline; gap: 6px; }
.rk-ycrank b { font: 800 52px/0.9 var(--sans); letter-spacing: -0.04em; background: linear-gradient(180deg, #ffd6b8, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk-yc.neg .rk-ycrank b { background: linear-gradient(180deg, #ff8a8b, var(--danger)); -webkit-background-clip: text; background-clip: text; }
.rk-ycrank small { font: 500 13px/1 var(--sans); color: var(--muted-2); }
.rk-ycfoot { grid-area: foot; position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.rk-ycfoot b { font: 700 18px/1 var(--mono); }
.rk-ycfoot b.pos { color: var(--gain); }
.rk-ycfoot b.neg { color: var(--danger); }
.rk-ycfoot > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rk-ycfoot .pos { color: var(--gain); }
.rk-ycfoot .neg { color: var(--danger); }
.rk-ycshare {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; margin-top: 10px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--foreground);
  font: 600 13.5px var(--sans); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.rk-ycshare:hover { background: var(--accent); border-color: var(--accent); color: #000; }

/* ---------- PAYLASIM STUDYOSU (23 Eyl, Cihan: "fomo'dan cok daha iyisi") ---------- */
.auth-modal.sst-modal { max-width: 1060px; width: calc(100vw - 32px); padding: 22px 28px 28px; box-sizing: border-box; }
.sst { --sst-a: #ff6a00; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.sst-left { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.sst-tabs { display: flex; gap: 26px; justify-content: center; }
.sst-tabs button { border: 0; background: none; padding: 4px 0; font: 700 21px/1.2 var(--sans); color: var(--muted-2); cursor: pointer; letter-spacing: -0.01em; transition: color 0.2s ease; position: relative; }
.sst-tabs button.on { color: var(--foreground); }
.sst-tabs button.on::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -6px; height: 3px; border-radius: 3px; background: var(--sst-a); box-shadow: 0 0 12px var(--sst-a); }
.sst-stagewrap { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; }
.sst-stage {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative; width: min(420px, 100%, calc((100vh - 300px) * 0.8)); aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; flex: 0 1 auto;
  transform: perspective(1300px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px -30px color-mix(in srgb, var(--sst-a) 45%, transparent), 0 0 60px -20px color-mix(in srgb, var(--sst-a) 30%, transparent);
  background: #06030a; touch-action: pan-y;
}
.sst-canvas { display: block; width: 100%; height: 100%; }
.sst-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.16), transparent 45%); mix-blend-mode: screen; }
.sst-stage:hover .sst-glare { opacity: 1; }
.sst-wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); font: 500 14px/1.4 var(--sans); background: #06030a; }
.sst-rec { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 10px; background: rgba(13, 11, 16, 0.7); color: #fff; font: 700 11px/1 var(--mono); letter-spacing: 0.08em; }
.sst-rec i { width: 8px; height: 8px; border-radius: 14px; background: #ff4d6d; animation: yr-nabiz 0.9s ease-in-out infinite; }
.sst-nav { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--foreground); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.sst-nav:hover { background: var(--sst-a); color: #000; transform: scale(1.06); }
.sst-dots { display: flex; gap: 6px; }
.sst-dots i { width: 6px; height: 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.2); transition: width 0.25s ease, background 0.25s ease; }
.sst-dots i.on { width: 20px; background: var(--sst-a); }
.sst-player { display: flex; align-items: center; gap: 12px; width: min(520px, 100%); }
.sst-play { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 0; background: var(--sst-a); color: #000; cursor: pointer; }
.sst-play:disabled { opacity: 0.5; }
.sst-playlbl { font: 600 13.5px var(--sans); color: var(--foreground); white-space: nowrap; }
.sst-scrub { --p: 0%; flex: 1 1 auto; min-width: 60px; height: 6px; appearance: none; -webkit-appearance: none; border-radius: 14px; cursor: pointer; background: linear-gradient(90deg, var(--sst-a) var(--p), rgba(255, 255, 255, 0.12) var(--p)); }
.sst-scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sst-a) 60%, transparent); }
.sst-scrub::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 14px; background: #fff; }
.sst-speeds { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.sst-speeds button { border: 0; background: none; padding: 5px 9px; border-radius: 10px; font: 700 12px var(--mono); color: var(--muted); cursor: pointer; }
.sst-speeds button.on { background: var(--surface-3); color: var(--sst-a); }
.sst-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding-top: 44px; }
.sst-group { display: flex; flex-direction: column; gap: 9px; }
.sst-label { font: 700 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.sst-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.sst-seg button { border: 0; background: none; padding: 9px 0; border-radius: 8px; font: 600 13.5px var(--sans); color: var(--muted); cursor: pointer; transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
/* SECILI HAL (14 Eki, Cihan: "24h ve Image'in secim hali bozuk gibi"): yuvarlak dugmenin altindaki
   lime cizgi kosede kivriliyordu. Simdi kabartilmis hap: bir ton acik zemin, ust kenarda ince isik,
   altta yumusak golge; vurgu yalniz ikonda (Image / Video). */
.sst-seg button:not(.on):not(:disabled):hover { color: var(--foreground); }
.sst-seg button.on { background: var(--surface-4, #2e2a36); color: var(--foreground); box-shadow: var(--edge), 0 1px 3px rgba(0, 0, 0, 0.45); }
.sst-seg button.on svg { color: var(--sst-a); }
.sst-seg button:focus-visible { outline: 2px solid var(--sst-a); outline-offset: -2px; }
.sst-seg.two { grid-template-columns: 1fr 1fr; }
.sst-seg.two button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.sst-seg.two button svg { width: 16px; height: 16px; }
.sst-seg button:disabled { opacity: 0.5; cursor: default; }
.sst-swatches { display: flex; gap: 10px; }
.sst-sw { width: 30px; height: 30px; border-radius: 10px; border: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), var(--c); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px transparent; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sst-sw:hover { transform: scale(1.1); }
.sst-sw.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c), 0 0 18px var(--c); }
.sst-moods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sst-mood { aspect-ratio: 1; display: grid; place-items: center; padding: 4px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
.sst-mood img { width: 100%; height: auto; }
.sst-mood:hover { transform: translateY(-2px); }
.sst-mood.on { border-color: var(--sst-a); box-shadow: 0 0 0 1px var(--sst-a) inset; }
.sst-input { height: 42px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--foreground); font: 700 14px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.sst-input:focus { outline: none; border-color: var(--sst-a); }
.sst-toggles { display: flex; flex-direction: column; gap: 9px; }
.sst-toggle { display: flex; align-items: center; gap: 9px; font: 500 13.5px var(--sans); color: var(--foreground); cursor: pointer; }
.sst-toggle input { accent-color: var(--sst-a); width: 16px; height: 16px; }
.sst-share { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 6px; padding-top: 4px; }
.sst-act { display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; background: none; padding: 0; color: var(--foreground); font: 600 12px var(--sans); cursor: pointer; }
.sst-act > span {
  position: relative; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.3, 1.5, 0.5, 1), border-color 0.2s ease;
}
.sst-act:hover:not(:disabled) > span { background: var(--sst-a); border-color: var(--sst-a); color: #000; transform: translateY(-3px) scale(1.05); }
.sst-act.x:hover:not(:disabled) > span { background: #fff; border-color: #fff; }
.sst-act.tg:hover:not(:disabled) > span { background: #2aabee; border-color: #2aabee; color: #fff; }
.sst-act:disabled { opacity: 0.45; cursor: default; }
.sst-act.rec > span { background: conic-gradient(#ff4d6d var(--k, 0deg), var(--surface-2) 0); border-color: transparent; }
.sst-act.rec:disabled { opacity: 1; }
.sst-act.rec > span::before { content: ""; position: absolute; inset: 3px; border-radius: 10px; background: var(--surface); }
.sst-act.rec > span > svg { position: relative; color: #ff4d6d; }
.sst-note { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

@media (prefers-reduced-motion: reduce) { .sst-stage { transition: none; transform: none; } }
/* paylasim kapilari (23 Eyl): tablo, profil portfoyu, telefon tablosu */
.rk-sharebar { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.rk-sharebtn, .pfx-share {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--foreground);
  font: 600 13px var(--sans); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.rk-sharebtn:hover, .pfx-share:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.pfx-periodwrap { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* ── PROFIL, UCUNCU HAL (23 Eyl gece, Cihan: "leaderboard sola, pozisyonlar
   saga, en alta uzanan cerceveler; chartin alti ve ustu bastan, sasirt beni").
   Masa: sol Leaderboard (ilk 100) · orta profil · sag pozisyonlar; uc sutun da
   ekran boyunda ve kendi icinde kayar. Orta: kapakli kimlik, eylemler, portfoy
   (tek satir ust + dagilim cubugu), islem karnesi, K/Z takvimi, gunlere
   ayrilmis hareket akisi. ── */
:root { --pf3-c0: var(--accent); --pf3-c1: #5ee7ff; --pf3-c2: #b58cff; --pf3-c3: #ff9f43; }
.td-desk.td-pf3 { grid-template-columns: 290px minmax(0, 1fr) 330px; }
/* 14 Eki (Cihan: "alt kismina biraz daha pay birakalim, tum sekmelerde biraz daha alta kayabilsin"): son kartin
   altinda kaydirma payi 28 -> 96 px (Open, Closed, Post, Stats, Activity; kendi profilin ve baskasinin profili). */
.td-pf3 .td-main { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 0 6px 96px; }
.td-pf3 .td-main::-webkit-scrollbar { display: none; }
.td-pf3 .pfd-center { max-width: 860px; margin: 0 auto; padding: 0; }
.td-pf3 .pfd-center > .pu-page { padding-top: 0; padding-bottom: 0; }
.td-pf3 .pfd-home .pfx-back, .td-pf3 .pfs-head .pfx-back { display: none; }
@media (max-width: 1280px) { .td-desk.td-pf3 { grid-template-columns: 250px minmax(0, 1fr) 290px; } }
/* 23 Eyl (Furkan'in 32 inc ekrani): genis ekranda orta 860 px'te kalip yan
   sutunlar ekran kenarlarina yapisiyordu, arada koca bosluk aciliyordu. Artik
   orta sutun icerigi kadar (en cok 1120 px), yanlar biraz genisler ve uc sutun
   birlikte ortalanir; bosluk yalniz ekranin en kenarinda kalir. 1600 px alti
   (dizustu, 1440'lik ekranlar) hic degismez. */
@media (min-width: 1600px) {
  .td-desk.td-pf3 { grid-template-columns: 310px minmax(0, 1000px) 350px; justify-content: center; }
  .td-pf3 .pfd-center { max-width: 1000px; }
}
@media (min-width: 1920px) {
  .td-desk.td-pf3 { grid-template-columns: 330px minmax(0, 1120px) 370px; }
  .td-pf3 .pfd-center { max-width: 1120px; }
}
.pf3-boardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 16px 4px; flex: 0 0 auto; }
.pf3-boardhead b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.pf3-boardhead span { font: 600 12px/1 var(--mono); color: var(--muted-2); }
.pf3-boardhead em { font-style: normal; }
.pf3-boardhead .pos { color: var(--gain); } .pf3-boardhead .neg { color: var(--danger); }
.pf3-board .td-tabs, .pf3-pos .td-tabs { border-bottom: 1px solid var(--border); }
.pf3-mine { flex: 0 0 auto; border-top: 0; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, var(--accent-soft), transparent 70%); box-shadow: inset 2px 0 0 var(--accent); }
.pf3-mine:hover { background: linear-gradient(90deg, rgba(255,106,0,.18), transparent 70%); }
.pf3-board .rk-row { min-height: 56px; padding: 8px 14px; }

/* kapak + kimlik */
.pf3-cover { position: relative; height: 112px; margin: 12px 0 0; border-radius: 12px; overflow: hidden; background:
  radial-gradient(120% 140% at 12% 0%, rgba(255,106,0,.22), transparent 55%),
  radial-gradient(90% 120% at 100% 100%, rgba(94,231,255,.10), transparent 60%),
  linear-gradient(180deg, #111316, #141118); box-shadow: var(--edge), inset 0 0 0 1px var(--border); }
.pf3-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.11) 1px, transparent 1.2px); background-size: 14px 14px; mask-image: linear-gradient(100deg, #000 10%, transparent 85%); }
.pf3-cover i { position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; border-radius: 10px; border: 1px solid rgba(255,106,0,.18); box-shadow: 0 0 0 28px rgba(255,106,0,.035), 0 0 0 58px rgba(255,106,0,.02); animation: pf3-orbit 18s linear infinite; }
@keyframes pf3-orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pf3-cover i { animation: none; } }
.pf3 .pf3-idrow { position: relative; align-items: flex-end; margin-top: -44px; padding: 0 14px; gap: 16px; }
.pf3 .pf-face.pfx-face { width: 96px; height: 96px; font-size: 46px; border: 0; box-shadow: 0 0 0 5px var(--background), 0 0 0 7px var(--accent), 0 12px 40px rgba(255,106,0,.18); }
.pf3 .pf-face.pfx-face.clickable:hover { box-shadow: 0 0 0 5px var(--background), 0 0 0 7px var(--accent), 0 12px 50px rgba(255,106,0,.35); }
.pf3-who { padding-bottom: 4px; gap: 7px; }
.pf3 .pf-name { font-size: 28px; }
.pf3-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf3-addr, .pf3-rankchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: 600 12px/1 var(--mono); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.pf3-addr:hover { color: var(--foreground); border-color: var(--border-strong); }
.pf3-rankchip { border-color: rgba(255,106,0,.35); background: var(--accent-soft); color: var(--muted); }
.pf3-rankchip b { color: var(--accent); font-weight: 800; }
.pf3-rankchip:hover { border-color: var(--accent); }
.pf3-since { font-size: 12.5px; color: var(--muted-2); }
.pf3 .pf-tools { align-self: flex-end; padding-bottom: 6px; }
.pf3 .pfx-bio { margin: 12px 14px 0; }

/* portfoy: tek satir ust */
.ac .pf3-hero { margin-top: 0; padding: 20px 20px 18px; border-radius: 12px; background: var(--surface); box-shadow: var(--edge); }
.pf3-hero .pfx-top { align-items: flex-end; }
.pf3-eyebrow { display: block; margin-bottom: 8px; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.pf3-change { margin-top: 10px; align-items: center; font-size: 15px; }
.pf3-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 10px; background: var(--surface-2); font: 700 14px/1 var(--sans); }
.pf3-chip.pos { background: var(--gain-soft); } .pf3-chip.neg { background: var(--danger-soft); }
.pf3-chip em { font-style: normal; font-weight: 600; opacity: .8; }
.pf3-change span { font-size: 14px; }
.pf3-periodwrap { flex-direction: row; align-items: center; gap: 8px; }
.pf3-periodwrap .pfx-periods { margin: 0; padding: 3px; border-radius: 8px; background: var(--surface-2); }
.pf3-periodwrap .pfx-periods button { height: 30px; }
.pf3-periodwrap .pfx-periods button.on { background: var(--surface-3); }
.pfx-share.pf3-share { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 8px; }
.pf3-hero .pfx-chart { margin-top: 18px; }

/* dagilim cubugu */
.pf3-alloc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.pf3-allochead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
@keyframes pf3-pulse { 70% { box-shadow: 0 0 0 7px rgba(255,106,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,0,0); } }
.pf3-bar { display: flex; gap: 3px; height: 10px; border-radius: 10px; overflow: hidden; }
.pf3-bar i { flex-basis: 0; min-width: 4px; border-radius: 3px; transition: flex-grow .6s cubic-bezier(.2,.8,.2,1); }
.pf3-bar i.none { background: var(--surface-2); }
.pf3-bar .c0, .pf3-leg i.c0 { background: var(--pf3-c0); }
.pf3-bar .c1, .pf3-leg i.c1 { background: var(--pf3-c1); }
.pf3-bar .c2, .pf3-leg i.c2 { background: var(--pf3-c2); }
.pf3-bar .c3, .pf3-leg i.c3 { background: var(--pf3-c3); }
/* 25 Eyl: parcalar (Cash, Tokens, Perps, Agent) tek satir */
.pfx-cells.pf3-legend { margin-top: 14px; gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pfx-cell.pf3-leg { padding: 2px 12px; gap: 5px; border-radius: 0; background: none; border-left: 1px solid var(--border); }
.pfx-cell.pf3-leg:first-child { border-left: 0; padding-left: 0; }
.pf3-leg span { display: inline-flex; align-items: center; gap: 7px; }
.pf3-leg span i { width: 8px; height: 8px; border-radius: 2px; }
.pf3-leg b { font-size: 16px; }
.pf3-leg small { font: 600 11.5px/1 var(--mono); color: var(--muted-2); }

/* kartlar: karne + takvim + akis */
.pf3-insights { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pf3.pfx { gap: 16px; }
.pf3 .pfx-actions { margin: 4px 0 8px; }
.ac .pf3-card { padding: 18px 20px; border-radius: 12px; background: var(--surface); box-shadow: var(--edge); }
.pf3-cardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pf3-cardhead h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.pf3-cardhead > span { font: 600 12px/1 var(--mono); color: var(--muted-2); }
/* ORTADAKI KART UC BOLUM (30 Eyl, Cihan): Open | Closed | Activity anahtari;
   acik ve kapali satirlar yan sutunun satiri, burada ince cizgiyle ayrilir. */
.pf3-tricard { align-items: center; }
.pf3-tri { display: inline-flex; padding: 3px; border-radius: 8px; }
.pf3-tri button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.pf3-tri button small { font: 600 11.5px/1 var(--mono); color: var(--muted-2); }
.pf3-tri button.on small { color: var(--accent); }
.pf3-cardhead > span em { font-style: normal; }
.pf3-cardhead > span em.pos { color: var(--gain); }
.pf3-cardhead > span em.neg { color: var(--danger); }
.pf3-poslist { display: flex; flex-direction: column; }
/* SATIR DILI (14 Eki, Cihan: "kivrimlar, ustune gelince kare olusuyor, sevmedim"): satir kosesiz,
   ayirici ucu duz ince cizgi; hover'da kutu yok, baslik lime'a doner (secili satir da oyle). */
.pf3-poslist .pfd-row.pfx-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; padding: 12px 2px; border-radius: 0; border-top: 1px solid var(--border); background: none; }
.pf3-poslist .pfd-row.pfx-row:first-child { border-top: 0; }
.pf3-poslist .pfd-row.pfx-row:hover, .pf3-poslist .pfd-row.pfx-row.on { background: none; box-shadow: none; }
.pf3-poslist .pfd-row.pfx-row .pdl-title { transition: color 0.15s ease; }
.pf3-poslist .pfd-row.pfx-row:hover .pdl-title, .pf3-poslist .pfd-row.pfx-row.on .pdl-title { color: var(--accent); }
.pf3-poslist .pfd-row.pfx-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pf3-poslist .pdl-pct.pfx-val { font-size: 15px; }
.pf3-poslist .po-list { margin-top: 10px; }
.pf3-poslist .pf3-more { margin-top: 6px; }
.pf3-statgrid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
.pf3-stat { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 2px 14px; border-left: 1px solid var(--border); }
.pf3-stat:first-child { border-left: 0; padding-left: 0; }
.pf3-stat > span { font: 600 12px/1 var(--sans); color: var(--muted-2); }
.pf3-stat > b, .pf3-ringrow b { font: 800 20px/1.1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf3-stat.big > b { font-size: 26px; }
.pf3-stat small { font-size: 12px; line-height: 1.35; color: var(--muted-2); }
.pf3-stat small.one { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf3-stat small em { font-style: normal; font-weight: 700; }
.pf3-stat .pos, .pf3-cal .pos, .pf3-feed .pos { color: var(--gain); }
.pf3-stat .neg, .pf3-cal .neg, .pf3-feed .neg { color: var(--danger); }
.pf3-ringrow { display: flex; align-items: center; gap: 8px; }
.pf3-ring { width: 26px; height: 26px; transform: rotate(-90deg); flex: 0 0 auto; }
.pf3-ring circle { fill: none; stroke-width: 6; }
.pf3-ring .bg { stroke: var(--surface-3); }
.pf3-ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray .8s ease; }

.pf3-cal { --cal: 15px; }
.pf3-callegend { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1 var(--sans) !important; }
.pf3-callegend i { width: 10px; height: 10px; border-radius: 3px; background: var(--surface-2); }
.pf3-calbody { display: flex; align-items: stretch; gap: 22px; }
.pf3-calgridwrap { flex: 1 1 auto; min-width: 0; }
.pf3-calmonths { display: grid; gap: 4px; height: 16px; margin-bottom: 4px; font: 600 11px/1 var(--sans); color: var(--muted-2); }
.pf3-calmonths span { white-space: nowrap; }
.pf3-calgrid { display: grid; grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 4px; }
.pf3-calgrid i { aspect-ratio: 1; max-height: 22px; }
.pf3-calgrid i, .pf3-callegend i { display: block; border-radius: 4px; background: var(--surface-2); transition: transform .12s ease, box-shadow .12s ease; }
.pf3-calgrid i.fut { background: transparent; box-shadow: inset 0 0 0 1px var(--border); opacity: .5; }
.pf3-calgrid i.flat { background: var(--surface-3); }
.pf3-calgrid i.on { transform: scale(1.25); box-shadow: 0 0 0 2px var(--background), 0 0 0 3px var(--foreground); }
.pf3-calgrid i:not(.fut) { cursor: default; }
.pf3-cal i.p1 { background: rgba(43,214,123,.28); } .pf3-cal i.p2 { background: rgba(43,214,123,.5); }
.pf3-cal i.p3 { background: rgba(43,214,123,.75); } .pf3-cal i.p4 { background: var(--gain); box-shadow: 0 0 10px rgba(43,214,123,.45); }
.pf3-cal i.n1 { background: rgba(255,77,109,.28); } .pf3-cal i.n2 { background: rgba(255,77,109,.5); }
.pf3-cal i.n3 { background: rgba(255,77,109,.75); } .pf3-cal i.n4 { background: var(--danger); box-shadow: 0 0 10px rgba(255,77,109,.4); }
.pf3-calgrid i.on.p4, .pf3-calgrid i.on.n4 { box-shadow: 0 0 0 2px var(--background), 0 0 0 3px var(--foreground); }
.pf3-calside { flex: 0 0 210px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding-left: 22px; border-left: 1px solid var(--border); }
.pf3-calside > span { font: 600 12px/1.2 var(--sans); color: var(--muted-2); }
.pf3-calside > b { font: 800 26px/1.1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pf3-calside > small { font-size: 12.5px; line-height: 1.45; color: var(--muted-2); }
.pf3-calside dl { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 6px 14px; margin: 8px 0 0; font-size: 12.5px; }
.pf3-calside dt { color: var(--muted-2); }
.pf3-calside dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.ac .pf3-activity { margin-top: 0; padding: 18px 20px 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--edge); gap: 0 !important; }
.pf3-activity .pf3-cardhead { margin-bottom: 6px; }
.pf3-feedbar { margin: 0 0 6px; overflow-x: auto; scrollbar-width: none; }
.pf3-feedbar .pu-barfade { display: none; }
.pf3-feedbar::-webkit-scrollbar { display: none; }
.pf3-feedlist { display: flex; flex-direction: column; }
.pf3-dayhead { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; font: 700 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.pf3-dayhead i { flex: 1 1 auto; height: 1px; background: var(--border); }
.pf3-feedrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; margin: 0 -10px; width: calc(100% + 20px); border: 0; border-radius: 10px; background: none; color: var(--foreground); font: inherit; text-align: left; }
.pf3-feedrow.tik { cursor: pointer; transition: background .15s ease; }
.pf3-feedrow.tik:hover { background: var(--surface-2); }
.pf3-feedicon { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.pf3-feedicon .tm-coin { width: 40px; height: 40px; }
.pf3-feedface { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; overflow: hidden; display: grid; place-items: center; font-size: 22px; }
.pf3-feedicon.credit { background: var(--accent-soft); color: var(--accent); }
.pf3-feedicon.withdraw { color: var(--foreground); }
.pf3-feedverb { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 10px; font: 800 12px/1 var(--sans); font-style: normal; box-shadow: 0 0 0 2px var(--surface); }
.pf3-feedverb.open { background: var(--accent); color: #000; }
.pf3-feedverb.close { background: var(--surface-3); color: var(--foreground); }
.pf3-feedmain { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf3-feedtitle { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf3-feedsub { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; color: var(--muted-2); white-space: nowrap; }
.pf3-feedsub > span:first-child { font-family: var(--mono); }
.pf3-feeddetail { overflow: hidden; text-overflow: ellipsis; }
.pf3-feeddetail .ap-txlink { color: var(--muted-2); }
.pf3-by { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: var(--surface-3); color: var(--muted); }
.pf3-by.agent { background: var(--accent-soft); color: var(--accent); }
.pf3-by.liq { background: var(--danger-soft); color: var(--danger); }
.pf3-feedamt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pf3-feedamt b { font: 700 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.pf3-feedamt b.mut { color: var(--foreground); }
.pf3-feedamt small { font: 600 11.5px/1 var(--mono); color: var(--muted-2); }
.pf3-more { align-self: center; margin: 14px 0 6px; height: 34px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--muted); font: 600 13px/1 var(--sans); cursor: pointer; }
.pf3-more:hover { color: var(--foreground); border-color: var(--border-strong); }
.pfs-activity.pf3-feed { margin-top: 8px; }

@media (max-width: 1180px) {
  .pf3-calside { flex-basis: auto; }
  .pf3-statgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .pf3-stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .pf3-calbody { flex-direction: column; gap: 14px; }
  .pf3-calside { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .ac .pf3-hero { padding: 16px 14px 14px; }
  .ac .pf3-card { padding: 16px 14px; }
}

/* ---------- PROFIL BASLIGI YENI (23 Eyl gece, Cihan: "kapak ile isim ic ice girmis") ---------- */
.pf3-cover { height: 150px; }
.pf3 .pf3-idrow { align-items: flex-start; margin-top: -52px; }
/* isim sutunu kapagin ALTINDA baslar (yuz kapaga tasar, yazi tasmaz) */
.pf3 .pf3-who { padding-top: 62px; padding-bottom: 0; min-width: 0; flex: 1 1 auto; }
.pf3 .pf-name { line-height: 1.1; }
/* para kapilari: kimligin saginda uc hap */
.pf3-money { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-top: 66px; }
.pf3-mbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 13px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--foreground); font: 650 14px var(--sans); cursor: pointer;
  box-shadow: none; transition: background .18s ease, border-color .18s ease, transform .18s cubic-bezier(.3,1.5,.5,1), color .18s ease;
}
.pf3-mbtn svg { color: var(--muted); transition: color .18s ease; }
.pf3-mbtn:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.pf3-mbtn:hover:not(:disabled) svg { color: var(--foreground); }
.pf3-mbtn.dep { background: var(--accent); border-color: var(--accent); color: #000; box-shadow: 0 8px 28px -10px rgba(255,106,0,.55); }
.pf3-mbtn.dep svg { color: #000; }
.pf3-mbtn.dep:hover:not(:disabled) { background: #ff9447; border-color: #ff9447; }
.pf3-mbtn:disabled { opacity: .45; cursor: default; }
.pf3-activate { height: 26px; padding: 0 11px; border-radius: 10px; border: 1px solid rgba(255,106,0,.5); background: var(--accent-soft); color: var(--accent); font: 700 12px var(--sans); cursor: pointer; }
.pf3-activate:hover { background: var(--accent); color: #000; }

/* kapak duzenleme: secici kapagin kesmesinden kurtulsun diye kapagin kardesi */
.pf3-coverwrap { position: relative; }
.kp-edit { position: absolute; right: 12px; top: 12px; z-index: 30; }
.kp-editbtn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(13, 11, 16,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: 600 12.5px var(--sans); cursor: pointer; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease, background .2s ease; }
.pf3-coverwrap:hover .kp-editbtn, .kp-editbtn[aria-expanded="true"], .kp-editbtn:focus-visible { opacity: 1; transform: none; }
.kp-editbtn:hover { background: rgba(13, 11, 16,.72); }
@media (hover: none) { .kp-editbtn { opacity: 1; transform: none; } .kp-editbtn span { display: none; } .kp-editbtn { width: 34px; padding: 0; justify-content: center; } }
.kp-pop { position: absolute; right: 0; top: 40px; width: 340px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(14,15,17,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 70px -20px rgba(0,0,0,.8); animation: acm-in .18s cubic-bezier(.2,.9,.3,1); }
.kp-pophead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.kp-pophead b { font: 700 15px var(--sans); }
.kp-pophead span { font-size: 11.5px; color: var(--muted-2); }
.kp-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kp-sw { position: relative; height: 58px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); overflow: hidden; cursor: pointer; padding: 0; display: flex; align-items: flex-end; background-color: #15121a; transition: transform .15s ease, box-shadow .15s ease; }
.kp-sw span { position: relative; z-index: 2; margin: 0 0 6px 8px; font: 700 11px var(--sans); color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.kp-sw:hover { transform: translateY(-2px); }
.kp-sw.on { box-shadow: 0 0 0 2px var(--accent); }
.kp-sw::before, .kp-sw i { pointer-events: none; }
.kp-default .pf3-coverprev { position: absolute; inset: 0; background: radial-gradient(120% 140% at 12% 0%, rgba(255,106,0,.3), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(94,231,255,.12), transparent 60%), linear-gradient(180deg, #111316, #141118); }
.kp-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.kp-upload { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 8px; border: 1px dashed rgba(255,255,255,.2); color: var(--foreground); font: 600 13px var(--sans); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.kp-upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.kp-upload.busy { opacity: .6; pointer-events: none; }
.kp-hint { font-size: 11.5px; color: var(--muted-2); text-align: center; }
.kp-err { margin: 8px 0 0; font-size: 12px; color: var(--danger); }

/* hazir kapaklar (.pf3-cover ya da .kp-sw uzerinde) */
.kp.kp::before, .kp.kp > i { display: none; }
.kp-img { background-size: cover !important; background-position: center !important; }
.kp-aurora { background: radial-gradient(60% 120% at 15% 10%, rgba(255,106,0,.55), transparent 60%), radial-gradient(55% 120% at 55% 0%, rgba(94,231,255,.45), transparent 65%), radial-gradient(60% 130% at 90% 30%, rgba(165,139,255,.5), transparent 65%), linear-gradient(180deg, #06140f, #050507) !important; background-size: 160% 160% !important; animation: kp-akis 16s ease-in-out infinite alternate; }
.kp.kp-grid { background:
  linear-gradient(180deg, transparent 55%, rgba(255,106,0,.35) 56%, transparent 57%),
  repeating-linear-gradient(90deg, rgba(255,106,0,.22) 0 1px, transparent 1px 36px),
  repeating-linear-gradient(0deg, rgba(255,106,0,.16) 0 1px, transparent 1px 22px),
  radial-gradient(80% 60% at 50% 60%, rgba(255,106,0,.18), transparent 70%),
  #040605 !important; }
.kp-sunset { background: radial-gradient(22% 60% at 72% 78%, #ffd36b 0 55%, rgba(255,211,107,0) 57%), linear-gradient(180deg, #2a0b3d 0%, #8a1e5c 45%, #ff6a3d 78%, #ffb35b 100%) !important; }
.kp-ocean { background: repeating-radial-gradient(ellipse at 50% 140%, rgba(94,231,255,.12) 0 2px, transparent 2px 22px), radial-gradient(70% 120% at 20% 0%, rgba(94,231,255,.45), transparent 60%), linear-gradient(180deg, #03243a, #020b16) !important; }
.kp-matrix { background: repeating-linear-gradient(90deg, rgba(43,214,123,.0) 0 14px, rgba(43,214,123,.22) 14px 16px, rgba(43,214,123,0) 16px 30px), linear-gradient(180deg, rgba(43,214,123,.25), transparent 70%), #020604 !important; background-size: 100% 100%, 100% 100%, auto !important; animation: kp-yagmur 6s linear infinite; }
.kp-candy { background: radial-gradient(40% 90% at 15% 20%, rgba(255,95,162,.75), transparent 70%), radial-gradient(40% 90% at 50% 90%, rgba(165,139,255,.75), transparent 70%), radial-gradient(40% 90% at 88% 25%, rgba(94,231,255,.7), transparent 70%), #1a0f24 !important; }
.kp-gold { background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 45%, transparent 55%), linear-gradient(135deg, #5a3a06, #d9a125 40%, #ffe08a 55%, #b97c12 75%, #3d2704) !important; background-size: 250% 100%, 100% 100% !important; animation: kp-parilti 7s ease-in-out infinite; }
.kp-void { background: radial-gradient(1px 1px at 12% 30%, #fff, transparent 60%), radial-gradient(1px 1px at 32% 70%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 58% 22%, #fff, transparent 60%), radial-gradient(1px 1px at 78% 62%, #fff, transparent 60%), radial-gradient(1px 1px at 90% 18%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 45% 48%, #cfc2ff, transparent 60%), radial-gradient(60% 120% at 70% 120%, rgba(165,139,255,.35), transparent 60%), #030305 !important; }
@keyframes kp-akis { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes kp-yagmur { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 150px, 0 0; } }
@keyframes kp-parilti { 0%, 100% { background-position: 100% 0, 0 0; } 50% { background-position: 0% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .kp-aurora, .kp-matrix, .kp-gold { animation: none; } }

/* ---------- AGENT SERIDI (23 Eyl) ---------- */
.ags { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 18px; width: 100%; margin: 14px 0 0; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border); background: radial-gradient(90% 160% at 0% 0%, rgba(255,106,0,.08), transparent 55%), var(--surface); box-shadow: none; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.ags:hover { border-color: rgba(255,106,0,.4); }
.ags-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ags-face { flex: 0 0 auto; filter: drop-shadow(0 6px 16px rgba(255,106,0,.3)); }
.ags-face.uyur { filter: grayscale(.4) brightness(.8); }
.ags.on .ags-eye { animation: ags-kirp 4.5s steps(1) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ags-kirp { 0%, 92%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.15); } }
.ags-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ags-main b { display: flex; align-items: center; gap: 8px; font: 700 15.5px var(--sans); }
.ags-main b em { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.07); color: var(--muted); font: 700 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; font-style: normal; }
.ags-main b em i { width: 6px; height: 6px; border-radius: 14px; background: var(--muted-2); }
.ags-main b em.on { background: var(--accent-soft); color: var(--accent); }
.ags-main b em.on i { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: yr-nabiz 1.4s ease-in-out infinite; }
.ags-plan, .ags-main > span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ags-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ags-cell { display: flex; flex-direction: column; gap: 3px; padding-left: 12px; border-left: 1px solid var(--border); min-width: 0; }
.ags-cell small { font-size: 11.5px; color: var(--muted-2); }
.ags-cell b { font: 700 16px var(--mono); white-space: nowrap; }
.ags-cell b.pos { color: var(--gain); }
.ags-cell b.neg { color: var(--danger); }
.ags-cell i { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ags-last { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; text-align: right; }
.ags-lasttxt { max-width: 100%; font-size: 12.5px; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ags-last time { font-size: 11.5px; color: var(--muted-2); }
.ags-go { font: 700 12.5px var(--sans); color: var(--accent); white-space: nowrap; }
.ags-cta { grid-template-columns: auto minmax(0, 1fr) auto; }

/* ---------- HESAP MENUSU (23 Eyl, Cihan: fomo'daki gibi, daha guzel) ---------- */
.ap-chipwrap { position: relative; display: inline-flex; }
.ap-profilechip.on { opacity: 1; }
.acm {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; width: 330px; padding: 8px;
  border-radius: 12px; border: 1px solid var(--border); background: rgba(13,14,16,.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 90px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.02);
  transform-origin: top right; animation: acm-in .2s cubic-bezier(.2,.9,.3,1);
}
@keyframes acm-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.acm-card { position: relative; display: block; width: 100%; padding: 0 0 12px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--foreground); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.acm-card:hover .acm-who span { color: var(--accent); }
.acm-cover.pf3-cover { display: block; height: 64px; margin: 0; border-radius: 10px 10px 0 0; box-shadow: none; }
.acm-cover.pf3-cover i { width: 160px; height: 160px; right: -30px; top: -50px; }
.acm-id { display: flex; align-items: flex-start; gap: 12px; margin-top: -28px; padding: 0 14px; position: relative; }
.acm-face { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 4px var(--surface-2), 0 0 0 5.5px var(--accent); background: var(--surface-3); font-size: 28px; display: grid; place-items: center; }
.acm-face > * { width: 100%; height: 100%; }
.acm-face img { width: 100%; height: 100%; object-fit: cover; }
.acm-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 33px; }
.acm-who b { display: flex; align-items: center; gap: 6px; font: 700 16px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acm-who span { font: 600 12px var(--sans); color: var(--muted); transition: color .15s ease; }
.acm-addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px 8px; }
.acm-addr button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--muted); font: 600 12px var(--mono); cursor: pointer; }
.acm-addr button:hover { color: var(--foreground); }
.acm-bal { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.acm-bal b { font: 700 15px var(--mono); }
.acm-bal em { font-style: normal; font-size: 11.5px; font-weight: 600; }
.acm-bal em.pos { color: var(--gain); }
.acm-bal em.neg { color: var(--danger); }
.acm-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 2px 0 8px; }
.acm-mbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--foreground); font: 650 12.5px var(--sans); cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.acm-mbtn svg { color: var(--muted); }
.acm-mbtn:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-1px); }
.acm-mbtn.dep { background: var(--accent); border-color: var(--accent); color: #000; }
.acm-mbtn.dep svg { color: #000; }
.acm-mbtn.dep:hover { background: #ff9447; }
.acm-list { display: flex; flex-direction: column; padding-top: 6px; border-top: 1px solid var(--border); }
.acm-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--foreground); font: 600 14px var(--sans); text-align: left; cursor: pointer; transition: background .12s ease; }
.acm-row svg { color: var(--muted); flex: 0 0 auto; }
.acm-row span { flex: 1 1 auto; }
.acm-row:hover { background: var(--surface-2); }
.acm-row:hover svg { color: var(--foreground); }
.acm-row.danger, .acm-row.danger svg { color: #ff7a4d; }
.acm-row.danger:hover { background: rgba(255,122,77,.1); }
.acm-switch { position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--surface-3); transition: background .2s ease; flex: 0 0 auto; }
.acm-switch > i { position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 14px; background: #fff; transition: transform .2s cubic-bezier(.3,1.4,.5,1); }
.acm-switch.on { background: var(--accent); }
.acm-switch.on > i { transform: translateX(14px); background: var(--background); }
.acm-note { margin: 6px 8px 4px; font-size: 12px; color: var(--danger); }

/* profil duzenleme popup (23 Eyl) */
.auth-modal.pfe-modal { max-width: 520px; width: calc(100vw - 32px); box-sizing: border-box; }
.pfx .pf-edit.pfe, .ac .pf-edit.pfe, .pf-edit.pfe { margin: 4px 0 0; padding: 0; border: 0; gap: 18px; }
.pfe .pfx-photo { display: flex; align-items: center; gap: 14px; }
.pfe .pfx-photoprev { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--accent); }
.pfe .pf-avatars { max-height: 190px; overflow-y: auto; }
.pfe-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 4px; }
.pfe-actions .btn { height: 46px; justify-content: center; }
.pfe-sign { text-align: center; }

/* ─────────────────────────────────────────────────────────────────────────
   AGENT ODASI (23 Eyl, Cihan: "baştan yaratalım, şaşırt beni").
   AgentRoom.tsx. Sayfanın kalbi anahtar: kapalıyken agent uyur (zen yüz,
   soluk renk, halkalar durgun), açıkken uyanır (lime ışık, halkalar döner).
   İzin tablosunun orta sütunu anahtarla birlikte canlanır ya da kilitlenir.
   ───────────────────────────────────────────────────────────────────────── */
/* 25 Eyl dördüncü tur (Cihan: "çok yeşil, dengele"): lime yalnız agent'ın
   kendisi, açık anahtar ve tek ana düğmede kalır. Sen ve
   paran (Perps cebi, profildeki renk) leylak; geri kalan nötr. */
.ag2 { --ag-violet: #b58cff; --ag-violet-soft: rgba(181, 140, 255, .14); }
.ag2-main { gap: 16px; }
/* Genel `section { padding: 64px 0; border-bottom }` kuralı (styles.css) oda kutularını ezmesin. */
.ag2 :is(.ag2-perms, .ag2-chat) { padding: 0; }
.ag2 .ag2-perms { border: 0; }
:is(.ag2, .agm) :is(.ag2-perms li, .ag2-sign b, .ag2-send, .ag2-eylem) svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ag2-body { display: inline-block; flex: 0 0 auto; position: relative; }
.ag2-body svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ag2-body .hm-look { translate: calc(var(--lx, 0) * 26px) calc(var(--ly, 0) * 18px); transition: translate .25s ease-out; }
/* 21 Eki: katmanli yuzde (homeAgent.ts katman) bakis HTML kutusunda, birim 480'lik izgaranin yuzdesi (26/18 birim). */
.ag2-body .hm-yuzkat .hm-look { translate: calc(var(--lx, 0) * 5.4167%) calc(var(--ly, 0) * 3.75%); }
.ag2-body.pokable { cursor: pointer; }

/* Sahne */
.ag2-stage { position: relative; overflow: hidden; isolation: isolate; container: ag2stage / inline-size; padding: 16px 20px 16px 22px; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); box-shadow: none; }
.ag2-stage-glow { position: absolute; inset: 0; z-index: -2; background: radial-gradient(34% 70% at 12% 40%, rgba(255, 255, 255, .035), transparent 70%); transition: opacity .6s; }
.ag2-stage.is-on .ag2-stage-glow { background: radial-gradient(30% 95% at 6% 50%, rgba(255, 106, 0, .11), transparent 70%), radial-gradient(42% 140% at 100% 0%, rgba(181, 140, 255, .12), transparent 68%), radial-gradient(30% 90% at 62% 120%, rgba(94, 231, 255, .045), transparent 70%); }
.ag2-stage-rings { position: absolute; z-index: -1; left: 56px; top: 50%; width: 0; height: 0; pointer-events: none; }
.ag2-stage-rings i { position: absolute; left: 0; top: 0; translate: -50% -50%; border-radius: 32%; border: 1px solid rgba(255, 255, 255, .045); transition: border-color .6s; }
.ag2-stage-rings i:nth-child(1) { width: 140px; height: 140px; rotate: 8deg; }
.ag2-stage-rings i:nth-child(2) { width: 200px; height: 200px; rotate: 16deg; }
.ag2-stage-rings i:nth-child(3) { width: 270px; height: 270px; rotate: 24deg; }
.ag2-stage.is-on .ag2-stage-rings i { border-color: rgba(255, 106, 0, .16); animation: ag2-spin 26s linear infinite; }
.ag2-stage.is-on .ag2-stage-rings i:nth-child(2) { border-color: rgba(255, 255, 255, .07); animation-duration: 38s; animation-direction: reverse; }
.ag2-stage.is-on .ag2-stage-rings i:nth-child(3) { border-color: rgba(181, 140, 255, .1); animation-duration: 54s; }
@keyframes ag2-spin { to { rotate: 368deg; } }

.ag2-hero { display: flex; align-items: center; gap: 18px; }
.ag2-hero-agent { position: relative; flex: 0 0 auto; width: 68px; height: 68px; animation: ag2-float 5.5s ease-in-out infinite; }
.ag2-hero-agent .ag2-body { transition: filter .6s ease, scale .4s ease; }
.ag2-stage:not(.is-on):not(.is-guest) .ag2-hero-agent .ag2-body { filter: saturate(.3) brightness(.72); }
.ag2-stage.is-guest .ag2-hero-agent .ag2-body { filter: drop-shadow(0 0 24px rgba(255, 106, 0, .3)); }
.ag2-stage.is-on .ag2-hero-agent .ag2-body { filter: drop-shadow(0 0 22px rgba(255, 106, 0, .26)); }
.ag2-stage.is-thinking .ag2-hero-agent .hm-look { translate: 12px -16px; }
.ag2-stage.is-thinking .ag2-hero-agent .hm-yuzkat .hm-look { translate: 2.5% -3.3333%; }
.ag2-hero-agent .ag2-body.pokable:active { scale: .94; }
.ag2-shadow { position: absolute; left: 22%; right: 22%; bottom: -13px; height: 9px; border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 11, 16, .7), transparent); animation: ag2-shadow 5.5s ease-in-out infinite; }
@keyframes ag2-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes ag2-shadow { 0%, 100% { scale: 1; opacity: .9; } 50% { scale: .82; opacity: .55; } }
.ag2-stage:not(.is-on) .ag2-hero-agent, .ag2-stage:not(.is-on) .ag2-shadow { animation-duration: 9s; }

.ag2-hero-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ag2-hero-copy h1 { margin: 0; font: 800 23px/1.1 var(--sans); letter-spacing: -0.022em; word-spacing: .04em; }
.ag2-says { margin: 0; max-width: 520px; font-size: 14px; line-height: 1.45; color: var(--muted); }
/* Sağ uç: anahtar ve hemen altında imza satırı, ikisi de sağa yaslı. */
.ag2-key { flex: 0 0 auto; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; min-width: 0; }
.ag2-sign { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 300px; text-align: right; }
.ag2-sign b { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--foreground); }
.ag2-sign b svg { width: 13px; height: 13px; color: var(--muted-2); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ag2-sign span { font-size: 12px; line-height: 1.4; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.btn.ag2-connect { flex: 0 0 auto; min-width: 168px; min-height: 48px; font-weight: 700; }

/* Agent'ın cüzdanı: dönen rakamlar + 24 saat hapı. */
@keyframes ag2-wait { to { background-position: -200% 0; } }

/* Anahtar: düğme agent'ın kendi yüzü; kapalıyken uyur, açıkken lime rayda uyanık. */
.ag2-switch { position: relative; flex: 0 0 auto; width: 156px; height: 50px; padding: 0; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-3); cursor: pointer; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .55); transition: background .35s ease, border-color .35s ease, box-shadow .35s ease; -webkit-tap-highlight-color: transparent; }
.ag2-switch:hover:not(:disabled) { border-color: #3d434b; }
.ag2-switch:disabled { opacity: .5; cursor: default; }
.ag2-sw-text { position: absolute; top: 50%; translate: 0 -50%; font: 800 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; transition: opacity .3s ease; pointer-events: none; }
.ag2-sw-text.off { right: 16px; color: var(--muted-2); }
.ag2-sw-text.on { left: 17px; color: #0c0910; opacity: 0; }
.ag2-sw-knob { position: absolute; top: 4px; left: 4px; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: #8e8794; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); transition: transform .5s cubic-bezier(.3, 1.35, .5, 1), background .35s ease; }
.ag2-sw-knob svg { width: 33px; height: 33px; fill: #120f16; transition: fill .35s ease; }
.ag2-switch.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 0, .07), 0 0 22px rgba(255, 106, 0, .16); }
.ag2-switch.on .ag2-sw-text.off { opacity: 0; }
.ag2-switch.on .ag2-sw-text.on { opacity: 1; }
.ag2-switch.on .ag2-sw-knob { transform: translateX(106px); background: #0c0910; }
.ag2-switch.on .ag2-sw-knob svg { fill: var(--accent); }
.ag2-switch.busy .ag2-sw-knob { animation: ag2-knob 1s ease-in-out infinite; }
@keyframes ag2-knob { 50% { scale: .86; } }

/* İzin tablosu */
.ag2-perms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ag2-perm-col { padding: 14px 16px 16px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: none; transition: border-color .45s ease, background .45s ease; }
.ag2-perm-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 13px/1.2 var(--sans); color: var(--muted); }
.ag2-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--muted-2); transition: background .45s; }
.ag2-perm-col.always .ag2-dot { background: var(--foreground); }
.ag2-perm-col.never .ag2-dot { background: var(--danger); }
.ag2-perm-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ag2-perm-col li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.42; color: var(--foreground); transition: color .35s ease; }
.ag2-perm-col li svg { width: 16px; height: 16px; margin-top: 1px; }
.ag2-perm-col.always li svg { color: var(--gain); }
.ag2-perm-col.never li { color: var(--muted); }
.ag2-perm-col.never li svg { color: var(--danger); }
.ag2-perm-col.gated li { color: var(--muted-2); }
.ag2-perm-col.gated li svg { color: var(--muted-2); }
.ag2-perms.is-on .ag2-perm-col.gated { border-color: rgba(255, 106, 0, .38); background: linear-gradient(180deg, rgba(255, 106, 0, .07), transparent 80%), var(--surface); }
.ag2-perms.is-on .ag2-perm-col.gated h3 { color: var(--accent); }
.ag2-perms.is-on .ag2-perm-col.gated .ag2-dot { background: var(--accent); }
.ag2-perms.is-on .ag2-perm-col.gated li { color: var(--foreground); }
.ag2-perms.is-on .ag2-perm-col.gated li svg { color: var(--accent); }
.ag2-perms.is-on .ag2-perm-col.gated li:nth-child(2) { transition-delay: .08s; }
.ag2-perms.is-on .ag2-perm-col.gated li:nth-child(3) { transition-delay: .16s; }

/* Sohbet */
.ag2-chat { border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); box-shadow: none; }
.ag2-chat { display: flex; flex-direction: column; overflow: hidden; }
.ag2-chat-box { height: clamp(360px, calc(100dvh - 382px), 820px); overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; background-image: radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 18px 18px; }
.ag2-chat-box > .agl { margin: auto; }
/* SOHBET KENDİLİĞİNDEN KAYMAZ (1 Eki, AgentRoom.tsx ChatPanel): mesajlar tek
   sütunda (boyu ölçülür); sonda gönderilen sorunun tepeye çıkabilmesi için pay
   (boyu JS'te, kutunun aralığı eksi kenarla geri alınır); aşağıda içerik varsa
   kutunun alt kenarında "en alta in" düğmesi (katlama tutamağının görünüşü). */
.ag2-chat-akis { flex: 0 0 auto; display: flex; flex-direction: column; gap: inherit; }
.ag2-chat-pay { flex: 0 0 auto; height: 0; margin-top: -12px; }
.ag2-dip-yer { position: relative; z-index: 3; flex: 0 0 auto; height: 0; }
.ag2-fold.ag2-dip { position: absolute; left: 50%; bottom: 12px; translate: -50% 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .2s ease, translate .2s ease, color .15s, border-color .15s, background .15s; }
.ag2-fold.ag2-dip.show { opacity: 1; translate: -50% 0; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .ag2-fold.ag2-dip { transition: none; } }
.ag2-chat-empty { margin: auto; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ag2-chat-empty p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ag2-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; animation: ag2-in .28s ease-out both; }
@keyframes ag2-in { from { opacity: 0; translate: 0 6px; } }
.ag2-msg.user { align-self: flex-end; }
.ag2-msg.agent { align-self: flex-start; }
.ag2-msg.card { max-width: 94%; }
/* Öbür kanalda olan (25 Eyl, kanal eşitliği): ortada, küçük ve soluk; balon değil. */
.ag2-chip.quiet { opacity: .72; }
.ag2-msg-bubble { min-width: 0; padding: 10px 14px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.ag2-msg-bubble p { margin: 0; }
/* TELEGRAM'DAKİ BOŞ SATIR (1 Eki, lansman videosunun çekimi): paragraflar 8 px
   ile bitişik görünüyordu; arada artık bir satıra yakın boşluk var (yazıyla büyür). */
.ag2-msg-bubble p + p { margin-top: .95em; }
.ag2-msg.user .ag2-msg-bubble { background: linear-gradient(180deg, rgba(181, 140, 255, .2), rgba(181, 140, 255, .13)); border: 1px solid rgba(181, 140, 255, .3); color: var(--foreground); border-radius: 10px 10px 5px 10px; font-weight: 500; }
/* Art arda agent mesajı: yüz yalnız sonuncuda, üsttekiler yüz genişliğinde boşluk bırakır. */
.ag2-msg-gap { flex: 0 0 26px; }
.ag2-msg.agent.grp .ag2-msg-bubble { border-radius: 10px; }
.ag2-msg.agent.grp { margin-bottom: -6px; }
.ag2-msg.agent .ag2-msg-bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px 10px 10px 5px; }
.ag2-msg.agent.warn .ag2-msg-bubble { border-color: rgba(255, 77, 109, .45); }
/* Agent metni (24 Eyl, app/src/app/agentText.tsx): başlık, madde, tablo ve
   cevabın altındaki sayfa düğmeleri. Telefon uygulaması aynı sınıfları m.css'te çizer. */
.ag2-msg-col { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; max-width: 100%; }
/* Ekipten gelen mesaj (24 Eki, toplu duyuru): balonun ustunde kucuk etiket, kenari markanin rengi. */
.ag2-msg-team { font: 700 11px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin: 0 0 -2px 2px; }
.ag2-msg.agent.team .ag2-msg-bubble { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.ag2-msg:has(.agt-tablo) { max-width: 100%; }
.ag2-msg-bubble > * { margin: 0; }
/* :is(p, …) üstteki `.ag2-msg-bubble p { margin: 0 }` kuralını geçer: liste ve tablodan sonraki paragraf da nefes alır. */
.ag2-msg-bubble > * + :is(p, ul, ol, div) { margin-top: .95em; }
/* Bölüm başlığı ("Last hour", "Risk") Telegram'daki gibi kendi satırında: üstte
   bölümler arası boşluk, altındaki metin hemen başlığın altında. */
.ag2-msg-bubble .agt-h { font-weight: 700; letter-spacing: -0.01em; }
.ag2-msg-bubble > .agt-h + * { margin-top: 3px; }
.ag2-msg-bubble > * + .agt-h { margin-top: 1.15em; }
.ag2-msg-bubble .agt-ul, .ag2-msg-bubble .agt-ol { padding: 0; list-style: none; }
.ag2-msg-bubble .agt-ol { counter-reset: agt; }
.ag2-msg-bubble .agt-ul li, .ag2-msg-bubble .agt-ol li { position: relative; padding-inline-start: 16px; }
.ag2-msg-bubble .agt-ul li + li, .ag2-msg-bubble .agt-ol li + li { margin-top: 5px; }
.ag2-msg-bubble .agt-ul li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .62em; width: 5px; height: 5px; border-radius: 10px; background: var(--muted-2); }
.ag2-msg-bubble .agt-ol li { counter-increment: agt; padding-inline-start: 20px; }
.ag2-msg-bubble .agt-ol li::before { content: counter(agt) "."; position: absolute; inset-inline-start: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.agt-tablo { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: rgba(13, 11, 16, .18); scrollbar-width: thin; }
.agt-tablo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.agt-tablo table { border-collapse: collapse; min-width: 100%; font-size: 13.5px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.agt-tablo th { text-align: start; padding: 8px 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .025); }
.agt-tablo td { padding: 8px 12px; overflow-wrap: normal; vertical-align: top; }
.agt-tablo tbody tr + tr td { border-top: 1px solid var(--border); }
.agt-tablo td:first-child { font-weight: 600; }
.agt-tablo .r { text-align: right; white-space: nowrap; }
/* Token adresi ve bağlantıları (25 Eyl, kanal eşitliği): Telegram'daki ekin aynısı.
   1 Eki: Telegram'daki gibi iki satır; adres kendi satırında, bağlantılar altında
   soluk " · " ile (uzunsa alt satıra geçer). Eskiden üçü tek satırda yan yanaydı. */
.agt-links { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding-inline: 2px; font: 500 12.5px/1.3 var(--sans); }
.agt-ca { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; }
.agt-ca code { font-family: var(--mono); color: var(--foreground); }
.agt-cakopya { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 4px; padding: 2px 7px 2px 6px; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--muted); transition: color .15s, border-color .15s; }
.agt-cakopya em { font-style: normal; font-weight: 600; font-size: 11.5px; }
.agt-ca:hover .agt-cakopya { color: var(--accent); border-color: var(--accent); }
.agt-cakopya.on { color: var(--accent); border-color: var(--accent); }
.agt-linkrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; }
.agt-linksep { color: var(--muted-2); }
.agt-link { color: var(--accent); text-decoration: none; }
.agt-link:hover { text-decoration: underline; }
.agt-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.agt-page { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--foreground); font: 600 12.5px/1.2 var(--sans); cursor: pointer; transition: color .15s, border-color .15s; }
.agt-page:hover { color: var(--accent); border-color: var(--accent); }
.agt-page svg { opacity: .75; }
/* Yüz balona hizalı kalır, altındaki düğme satırına değil (düğme 29 px + aralık 7 px). */
.ag2-msg.agent:has(.agt-pages) > .ag2-body { margin-bottom: 36px; }
.ag2-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.ag2-dots i { width: 6px; height: 6px; border-radius: 10px; background: var(--muted); animation: ag2-dot 1.1s ease-in-out infinite; }
.ag2-dots i:nth-child(2) { animation-delay: .15s; }
.ag2-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ag2-dot { 0%, 60%, 100% { translate: 0 0; opacity: .5; } 30% { translate: 0 -4px; opacity: 1; } }

.ag2-card { min-width: 0; width: min(380px, 100%); padding: 14px; border-radius: 10px 10px 10px 5px; border: 1px solid rgba(255, 106, 0, .28); background: linear-gradient(180deg, rgba(255, 106, 0, .045), transparent 60%), var(--surface-2); }
.ag2-card-head { display: flex; justify-content: space-between; gap: 10px; font: 700 11.5px/1.2 var(--sans); }
.ag2-card-tag { color: var(--accent); letter-spacing: .02em; }
.ag2-card-state { color: var(--muted); font-weight: 600; }
.ag2-card-title { margin: 9px 0 8px; font: 700 16px/1.3 var(--sans); }
.ag2-card-rows { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ag2-card-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.ag2-card-rows dt { color: var(--muted); }
.ag2-card-rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.ag2-card-rows > div.wide dd { text-align: left; font-weight: 500; color: var(--muted); }
.ag2-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
.ag2-card-note { font-size: 12px; color: var(--muted-2); }
.ag2-card.is-done { border-color: rgba(43, 214, 123, .5); background: var(--surface-2); }
/* 4 Kas: yerine yenisi gelen kart soluk (agentSohbet.ts yerineYenisiGelenler). */
.ag2-card.is-replaced { opacity: .5; }
.ag2-card.is-done .ag2-card-state { color: var(--gain); }
.ag2-card:is(.is-cancelled, .is-off, .is-refused) { border-color: var(--border-strong); background: var(--surface-2); opacity: .75; }
.ag2-card.is-uncertain { border-color: rgba(255, 77, 109, .5); }
.ag2-card.is-uncertain .ag2-card-state { color: var(--danger); }
/* Plan kartı kısmen yapıldı (27 Eyl): yapılanlar duruyor, bir kısmı olmadı. */
.ag2-card.is-partial { border-color: rgba(255, 159, 67, .55); background: var(--surface-2); }
.ag2-card.is-partial .ag2-card-state { color: #ff9f43; }
/* Kartin ayrintisi (9 Eki, denetim raporu Paket 5): pay, ucretler, pazar kimligi; varsayilan kapali. */
.agt-carddetails { margin-top: 10px; font-size: 12.5px; }
.agt-carddetails > summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.agt-carddetails > dl { margin: 8px 0 0; display: flex; flex-direction: column; gap: 5px; }
.agt-carddetails > dl > div { display: flex; justify-content: space-between; gap: 12px; }
.agt-carddetails dt { color: var(--muted); flex: 0 0 auto; }
.agt-carddetails dd { margin: 0; min-width: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }

.ag2-suggest { display: flex; gap: 8px; padding: 12px 18px 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--border); }
.ag2-suggest::-webkit-scrollbar { display: none; }
.ag2-chip { flex: 0 0 auto; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: 500 13px/1.2 var(--sans); cursor: pointer; transition: color .15s, border-color .15s; }
.ag2-chip:hover:not(:disabled) { color: var(--foreground); border-color: var(--border-strong); }
.ag2-chip:disabled { opacity: .5; cursor: default; }
/* Önerileri kapatma (27 Eyl, Selcuk): çarpı satırın sağ ucunda sabit (satır yana
   kaysa da görünür); kapanınca yazı kutusunun solundaki küçük düğme geri açar. */
.ag2-suggest-wrap { display: flex; align-items: center; gap: 4px; padding-right: 12px; border-top: 1px solid var(--border); }
.ag2-suggest-wrap > .ag2-suggest { flex: 1 1 auto; min-width: 0; gap: 6px; border-top: 0; }
/* Satır taşınca sağ kenar yumuşakça solar: kesik düğme yerine yana kaydığı anlaşılır. */
.ag2-suggest-wrap > .ag2-suggest { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 28px; }
.ag2-suggest-wrap .ag2-chip { padding: 7px 11px; }
.ag2-suggest-x {
  flex: 0 0 auto; align-self: flex-end; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--muted-2); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.ag2-suggest-x:hover { color: var(--foreground); border-color: var(--border-strong); background: var(--surface-3); }
.ag2-suggest-x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* Kişisel kısayollar (27 Eyl, Selcuk a seçeneği): artı düğmesi çarpının yanında,
   aynı aileden; silme çarpısı yalnız düğmenin üstüne gelince köşede belirir;
   yeni kısayol penceresi artının üstünde küçük bir kart (ekran kararmaz). */
.ag2-suggest-wrap { position: relative; }
.ag2-suggest-add {
  flex: 0 0 auto; align-self: flex-end; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--muted); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.ag2-suggest-add:hover, .ag2-suggest-add[aria-expanded="true"] { color: var(--foreground); border-color: var(--border-strong); background: var(--surface-3); }
.ag2-suggest-add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; }
.ag2-kisa { position: relative; flex: 0 0 auto; display: inline-flex; }
.ag2-kisa-sil {
  position: absolute; top: -6px; right: -6px; z-index: 1; display: grid; place-items: center; width: 18px; height: 18px; padding: 0;
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-3); color: var(--muted); cursor: pointer;
  opacity: 0; transform: scale(.8); transition: opacity .12s ease, transform .12s ease, color .12s ease;
}
.ag2-kisa:hover .ag2-kisa-sil, .ag2-kisa-sil:focus-visible { opacity: 1; transform: none; }
.ag2-kisa-sil:hover { color: var(--foreground); border-color: #3a3f46; }
.ag2-kisa-sil svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.ag2-kisa-pop {
  position: absolute; right: 12px; bottom: calc(100% + 8px); z-index: 6; width: 300px;
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  border: 1px solid var(--border-strong); border-radius: var(--r-2xl); background: var(--surface-2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .8); animation: fade-up 120ms ease both;
}
.ag2-kisa-pop b { font: 600 14px/1.2 var(--sans); color: var(--foreground); }
.ag2-kisa-pop textarea {
  width: 100%; resize: none; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--foreground); font: 400 14px/1.45 var(--sans);
}
.ag2-kisa-pop textarea:focus { outline: none; border-color: rgba(181, 140, 255, .5); }
.ag2-kisa-pop textarea::placeholder { color: var(--muted-2); }
.ag2-kisa-pop-alt { display: flex; align-items: center; gap: 8px; }
.ag2-kisa-pop-alt small { margin-right: auto; font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .ag2-kisa-pop { animation: none; } .ag2-kisa-sil { transition: none; } }
.ag2-compose.tek { border-top: 1px solid var(--border); padding-top: 14px; }
/* Isilti: kapsulun icinde, oneri satirini (geri bildirim + temizle) acar. */
.ag2-suggest-on {
  flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 14px; background: transparent; color: var(--muted); cursor: pointer;
  transition: color .18s, background .18s, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.ag2-suggest-on:hover { color: var(--accent); background: var(--surface-3); transform: rotate(-12deg) scale(1.06); }
.ag2-suggest-on:focus-visible { outline: 2px solid rgba(181, 140, 255, .6); outline-offset: 1px; }
.ag2-suggest-on svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.agm .ag2-suggest-wrap { padding-right: 8px; }
.agm .ag2-suggest-wrap .ag2-chip { padding: 6px 11px; }
/* KAPSUL (17 Kas): isilti + yazi + tek eylem dugmesi tek govdede. */
.ag2-compose { display: block; padding: 12px 18px 16px; }
.ag2-kapsul {
  position: relative; display: flex; align-items: flex-end; gap: 4px; padding: 5px;
  border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface-2);
  transition: border-color .2s, box-shadow .25s, background .2s;
}
.ag2-kapsul:hover { border-color: #3a3f46; }
.ag2-kapsul:focus-within { border-color: rgba(181, 140, 255, .45); background: #1e1a23; box-shadow: 0 0 0 3px rgba(181, 140, 255, .08), 0 14px 34px -16px rgba(0, 0, 0, .7); }
.ag2-kapsul textarea {
  flex: 1 1 auto; min-width: 0; min-height: 40px; max-height: 140px; resize: none; align-self: center;
  padding: 10px 8px 10px 10px; border: 0; border-radius: 0; background: transparent; color: var(--foreground);
  font: 400 15px/1.35 var(--sans); field-sizing: content;
}
.ag2-kapsul .ag2-suggest-on + textarea { padding-left: 2px; }
.ag2-kapsul textarea:focus { outline: none; }
.ag2-kapsul textarea::placeholder { color: var(--muted-2); }

/* Tek eylem: bosken "Konus" (lime, canli dalga), yazi gelince gonder oku. */
.ag2-eylem {
  --yay: cubic-bezier(.34, 1.4, .64, 1);
  position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  height: 40px; min-width: 40px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; isolation: isolate;
  background: var(--foreground); color: #0c0910; cursor: pointer; font: 600 14px/1 var(--sans); letter-spacing: -.01em;
  transition: padding .35s var(--yay), background .25s, box-shadow .3s, transform .15s, opacity .2s;
}
.ag2-eylem:focus-visible { outline: 2px solid rgba(181, 140, 255, .7); outline-offset: 2px; }
.ag2-eylem:active:not(:disabled) { transform: scale(.94); }
.ag2-eylem:disabled { background: var(--surface-3); color: var(--muted-2); cursor: default; }
.ag2-eylem > span { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--yay), opacity .22s, transform .35s var(--yay), margin .35s var(--yay); }
.ag2-eylem-ok { max-width: 40px; width: 40px; height: 40px; }
.ag2-eylem-ok svg { width: 20px; height: 20px; stroke-width: 2.4; }
.ag2-eylem:hover:not(:disabled) .ag2-eylem-ok svg { transform: translateX(2px); transition: transform .2s; }
.ag2-eylem-dalga, .ag2-eylem-yazi { max-width: 0; opacity: 0; }
.ag2-eylem-dalga { gap: 2.5px; height: 18px; transform: scale(.4); }
.ag2-eylem-dalga i { display: block; width: 3px; height: 100%; border-radius: 3px; background: currentColor; transform: scaleY(.3); }

.ag2-eylem.konus {
  padding: 0 17px 0 15px; background: var(--accent); color: #0c0910;
  box-shadow: 0 0 0 1px rgba(255, 106, 0, .5), 0 8px 24px -8px rgba(255, 106, 0, .55);
}
.ag2-eylem.konus:hover:not(:disabled) { box-shadow: 0 0 0 1px rgba(255, 106, 0, .8), 0 10px 32px -6px rgba(255, 106, 0, .7); }
.ag2-eylem.konus .ag2-eylem-ok { max-width: 0; width: 0; opacity: 0; transform: rotate(-90deg) scale(.4); }
.ag2-eylem.konus .ag2-eylem-dalga { max-width: 30px; opacity: 1; transform: none; }
.ag2-eylem.konus .ag2-eylem-yazi { max-width: 140px; opacity: 1; margin-left: 9px; }
.ag2-eylem.konus .ag2-eylem-dalga i { animation: ag2-dalga 1.5s ease-in-out infinite; }
.ag2-eylem.konus .ag2-eylem-dalga i:nth-child(1) { animation-delay: -.2s; --tepe: .55; }
.ag2-eylem.konus .ag2-eylem-dalga i:nth-child(2) { animation-delay: -.65s; --tepe: .9; }
.ag2-eylem.konus .ag2-eylem-dalga i:nth-child(3) { animation-delay: -.4s; --tepe: 1; }
.ag2-eylem.konus .ag2-eylem-dalga i:nth-child(4) { animation-delay: -.9s; --tepe: .75; }
.ag2-eylem.konus .ag2-eylem-dalga i:nth-child(5) { animation-delay: -.1s; --tepe: .5; }
.ag2-eylem.konus:hover:not(:disabled) .ag2-eylem-dalga i { animation-duration: .7s; }
/* Parilti: lime kapsulun ustunden ara ara gecen isik (canli oldugunu soyler). */
.ag2-eylem.konus::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0; animation: ag2-parilti 5s ease-in-out 1.2s infinite;
}
.ag2-eylem.konus:disabled { background: var(--accent); color: #0c0910; opacity: .4; box-shadow: none; }
.ag2-eylem.konus:disabled .ag2-eylem-dalga i, .ag2-eylem.konus:disabled::after { animation-play-state: paused; }
/* Dar pencere: yalniz dalga, yuvarlak. */
.ag2-eylem.dar.konus { padding: 0; width: 40px; }
.ag2-eylem.dar.konus .ag2-eylem-yazi { max-width: 0; opacity: 0; margin: 0; }
@keyframes ag2-dalga { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(var(--tepe, .8)); } }
@keyframes ag2-parilti { 0%, 70% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) {
  .ag2-eylem, .ag2-eylem > span, .ag2-suggest-on { transition: none; }
  .ag2-eylem.konus .ag2-eylem-dalga i { animation: none; transform: scaleY(var(--tepe, .6)); }
  .ag2-eylem.konus::after { animation: none; display: none; }
}

.ag2-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.ag2-link { padding: 6px 4px; border: 0; background: none; color: var(--foreground); font: 600 13.5px/1.2 var(--sans); cursor: pointer; }
.ag2-link:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.ag2-link.danger { color: var(--danger); padding-left: 0; }
.ag2-link:disabled { opacity: .5; cursor: default; }
.btn.ag2-danger { background: var(--danger); border-color: var(--danger); color: #0c0910; }
.btn.ag2-danger:hover { background: #f0405f; border-color: #f0405f; color: #0c0910; }

/* Sağ sütun. İşlem izni çerçevesiz (25 Eyl, Cihan: "sağ taraf iç içe girmiş"):
   kartların altında sakin bir not gibi durur. */
.ag2-wallet { padding: 6px 20px 0; border: 0; }

.ag2-wallet .ab-title { font-size: 14.5px; }
:is(.ag2, .agm) .pos { color: var(--gain); }
:is(.ag2, .agm) .neg { color: var(--danger); }
.ag2-wallet p { margin: 6px 0 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted-2); }
/* Remove permission yumuşak kırmızı (27 Eyl, Selcuk b seçeneği): kritik olduğu
   anlaşılır ama göze batmaz; üstüne gelince tam kırmızı. Onay penceresi zaten kırmızı düğmeli. */
.ag2-wallet .ag2-link.danger { font-size: 13px; font-weight: 500; color: rgba(255, 77, 109, .72); }
.ag2-wallet .ag2-link.danger:hover:not(:disabled) { color: var(--danger); }
.ag2-sheet-face { display: flex; justify-content: center; margin: 2px 0 10px; }

/* Learn more mor değil (27 Eyl): küçük bağlantılar gri, altı çizili. */
.ag2-more { margin-left: 2px; padding: 2px 0; border: 0; background: none; color: var(--muted); font: 500 12.5px/1.2 var(--sans); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; cursor: pointer; }
.ag2-more:hover { color: var(--foreground); text-decoration-color: currentColor; }
.ag2-perms-modal .ag2-perms { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0; border: 0; }

/* Sağ sütun dar (310 px). 25 Eyl: biraz nefes (Cihan: "sıkışık"). */
.ag2-aside .ag2-hint { margin-top: 16px; line-height: 1.55; }

/* Orta sütun daralınca (1280 px altı pencere) imza satırı sahnenin altına
   iner, anahtar başlığın sağında kalır; çok darda anahtar da alta iner. */
@container ag2stage (max-width: 700px) {
  .ag2-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "face copy key" "sign sign sign"; gap: 10px 18px; align-items: center; }
  .ag2-key { display: contents; }
  .ag2-hero-agent { grid-area: face; }
  .ag2-hero-copy { grid-area: copy; }
  .ag2-key > :is(.ag2-switch, .ag2-connect) { grid-area: key; }
  .ag2-key > .ag2-sign { grid-area: sign; justify-self: end; max-width: none; }
}
@container ag2stage (max-width: 540px) {
  .ag2-hero { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "face copy" "key key"; column-gap: 14px; }
  .ag2-key { display: flex; grid-area: key; flex-flow: row-reverse wrap; justify-content: space-between; align-items: center; gap: 10px 14px; margin: 0; }
  .ag2-key > .ag2-sign { align-items: flex-start; text-align: left; }
  .ag2-sign b { justify-content: flex-start; }
  .ag2-hero-copy h1 { font-size: 19px; }
}
/* Sahne bu genişliklerde uzar; sohbet ekrana sığsın diye payı büyür. */
@media (max-width: 1340px) { .ag2-chat-box { height: clamp(360px, calc(100dvh - 402px), 820px); } }
@media (max-width: 1178px) { .ag2-chat-box { height: clamp(320px, calc(100dvh - 470px), 820px); } }
/* SOHBET BOYU SABİT (27 Eyl, Selcuk: "öneriler kapanınca sohbet yukarı çekiliyor;
   aşağıya sabit kalsın, boşalan yer konuşmalara gitsin"). Yazı alanı olan sohbette
   kutunun toplam boyu sabittir (konuşma alanının eski boyu + öneri satırı + yazı
   kutusu); konuşma alanı kalan yeri doldurur. Öneri satırı kapanınca alt kenar
   kıpırdamaz, konuşmalar uzar. */
.ag2-main { --ag2-kutu: clamp(360px, calc(100dvh - 382px), 820px); }
@media (max-width: 1340px) { .ag2-main { --ag2-kutu: clamp(360px, calc(100dvh - 402px), 820px); } }
@media (max-width: 1178px) { .ag2-main { --ag2-kutu: clamp(320px, calc(100dvh - 470px), 820px); } }
.ag2-main .ag2-chat.has-compose { height: calc(var(--ag2-kutu) + 122px + var(--ag2-ince, 0px)); }
.ag2-main .ag2-chat.has-compose > .ag2-chat-box { flex: 1 1 0; height: auto; min-height: 0; }
.ag2-main .ag2-chat.has-compose > :not(.ag2-chat-box) { flex-shrink: 0; }
/* SAHNE İNCE ŞERİT (27 Eyl, Selcuk b seçeneği): sohbete ilk mesaj yazılınca sahne
   tek satıra iner (yüz, başlık, bakiye, anahtar); imza satırı gizlenir. Boşalan
   yer --ag2-ince ile sohbete geçer (AgentRoom ölçer), sohbetin alt kenarı sabit.
   Açık sahnenin alt kenarında küçük bir katlama tutamağı, şeritte açma oku. */
.ag2-fold {
  display: grid; place-items: center; width: 34px; height: 22px; padding: 0;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--muted-2); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.ag2-fold:hover { color: var(--foreground); border-color: var(--border-strong); background: var(--surface-3); }
.ag2-fold svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ag2-stage > .ag2-fold { position: absolute; left: 50%; bottom: 7px; translate: -50% 0; z-index: 2; }
.ag2-fold.ac { width: 30px; height: 30px; flex: 0 0 auto; }
.ag2-stage.is-ince { padding: 9px 12px 9px 14px; }
.ag2-stage.is-ince :is(.ag2-stage-rings, .ag2-shadow, .ag2-sign) { display: none; }
.ag2-stage.is-ince .ag2-hero { display: flex; align-items: center; gap: 12px; }
.ag2-stage.is-ince .ag2-hero-agent { width: 34px; height: 34px; animation: none; }
.ag2-stage.is-ince .ag2-hero-copy { flex-direction: row; align-items: center; gap: 12px; }
.ag2-stage.is-ince .ag2-hero-copy h1 { font-size: 16px; }
.ag2-stage.is-ince .ag2-says { font-size: 13px; }
.ag2-stage.is-ince .ag2-key { display: flex; flex-direction: row; align-items: center; gap: 10px; margin-left: auto; }
.ag2-stage.is-ince .ag2-switch { width: 122px; height: 36px; border-radius: 8px; }
.ag2-stage.is-ince .ag2-sw-knob { width: 28px; height: 28px; top: 3px; left: 3px; border-radius: 6px; }
.ag2-stage.is-ince .ag2-sw-knob svg { width: 23px; height: 23px; }
.ag2-stage.is-ince .ag2-switch.on .ag2-sw-knob { transform: translateX(86px); }
.ag2-stage.is-ince .ag2-sw-text { font-size: 10.5px; }
.ag2-stage.is-ince .ag2-sw-text.on { left: 13px; }
.ag2-stage.is-ince .ag2-sw-text.off { right: 12px; }
@media (max-width: 1279px) {
  .ag2-perms { grid-template-columns: minmax(0, 1fr); }
  .ag2-hero { gap: 16px; }
  .ag2-hero-copy h1 { font-size: 21px; }
}


/* TELEGRAM KARTI (25 Eyl, Cihan: "baştan tasarla, logo, daha az yazı, daha çok
   harekete geçirici"). Agent.tsx AgentConnect. Telegram'ın kendi mavisi yalnız
   bu kartta; bağlı değilken iki balonluk önizleme, kod çıkınca altı kutu. */
.tgc { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 16px; padding: 20px; box-shadow: var(--edge); }
.tgc-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(80% 70% at 0% 0%, rgba(42, 171, 238, .15), transparent 62%), radial-gradient(60% 50% at 100% 100%, rgba(42, 171, 238, .06), transparent 70%); }
.tgc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tgc-mark { position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 8px 22px -6px rgba(29, 147, 210, .55); }
.tgc-logo { display: block; }
.tgc-plane { transform-box: view-box; transform-origin: 12px 12px; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); animation: tgc-fly 1s .25s cubic-bezier(.3, 1.2, .4, 1) backwards; }
.tgc:hover .tgc-plane { transform: translate(1.3px, -1.3px) rotate(-5deg); }
@keyframes tgc-fly { 0% { transform: translate(-7px, 7px) scale(.5); opacity: 0; } 65% { transform: translate(1.6px, -1.6px); opacity: 1; } }
.tgc-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tgc-title b { display: flex; align-items: center; gap: 8px; font: 800 16.5px/1.2 var(--sans); letter-spacing: -0.01em; }
.tgc-title small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.tgc-title em { font-style: normal; font-weight: 600; color: var(--foreground); }
.tgc-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; letter-spacing: 0; border-radius: 10px; background: var(--gain-soft); color: var(--gain); font: 700 11.5px/1 var(--sans); }
/* Nokta durağan (27 Eyl): sürekli yanıp sönen gösterge gözü içerikten çalıyordu. */
.tgc-pill i { width: 7px; height: 7px; border-radius: 10px; background: currentColor; }
@keyframes tgc-ping { 0% { box-shadow: 0 0 0 0 rgba(43, 214, 123, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(43, 214, 123, 0); } }

.btn.tgc-btn { width: 100%; min-height: 48px; gap: 9px; border: 0; border-radius: 10px; background: linear-gradient(180deg, #37bbfe, #1d93d2); color: #fff; font-size: 14.5px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(29, 147, 210, .9), inset 0 1px 0 rgba(255, 255, 255, .28); transition: transform .15s ease, filter .15s ease; }
.btn.tgc-btn:hover:not(:disabled) { background: linear-gradient(180deg, #45c2ff, #2299d8); color: #fff; transform: translateY(-1px); }
.btn.tgc-btn:active:not(:disabled) { transform: translateY(0); filter: brightness(.95); }
.btn.tgc-btn:disabled { opacity: .6; }
.tgc-btnplane { width: 17px; height: 15px; flex: 0 0 auto; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.btn.tgc-btn:hover .tgc-btnplane { transform: translate(2px, -2px); }
.btn.tgc-btn.ghost { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--foreground); box-shadow: none; }
.btn.tgc-btn.ghost:hover { background: var(--surface-3); color: var(--foreground); }
/* Bağlıyken Open in Telegram ikincil adım (27 Eyl sadelik turu): koyu düğme, mavi
   yalnız uçakta. */
.btn.tgc-btn.quiet { min-height: 42px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--foreground); box-shadow: none; }
.btn.tgc-btn.quiet:hover:not(:disabled) { background: var(--surface-3); color: var(--foreground); }
.btn.tgc-btn.quiet .tgc-btnplane { color: #37bbfe; }
.tgc.is-linked .tgc-glow { opacity: .45; }
.tgc-note { margin: -6px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted-2); text-align: center; }
.tgc-err { margin: -4px 0 0; }

/* Bağlı değilken: ne işe yaradığını gösteren iki balon (Telegram sohbeti gibi). */
.tgc-preview { pointer-events: none; user-select: none; display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 14px 14px, rgba(13, 11, 16, .25); }
.tgc-preview span { max-width: 84%; padding: 7px 11px; font-size: 12.5px; line-height: 1.35; border-radius: 10px; animation: tgc-bubble .45s cubic-bezier(.3, 1.3, .5, 1) backwards; }
.tgc-preview .me { align-self: flex-end; border-bottom-right-radius: 5px; background: linear-gradient(180deg, #2ea6ea, #1e8fcf); color: #fff; animation-delay: .35s; }
.tgc-preview .bot { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--surface-3); color: var(--foreground); animation-delay: 1s; }
.tgc-preview .bot i { display: block; margin-top: 7px; padding: 5px 0; border-radius: 6px; background: rgba(255, 255, 255, .07); color: #6cc9ff; font-style: normal; font-weight: 700; text-align: center; }
@keyframes tgc-bubble { from { opacity: 0; transform: translateY(8px) scale(.94); } }

/* Kod: altı kutu, dokununca kopyalanır. */
.tgc-code { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 2px 0 0; border: 0; background: none; color: var(--foreground); cursor: pointer; }
.tgc-code span { width: 30px; height: 42px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-2); font: 800 20px/1 var(--sans); font-variant-numeric: tabular-nums; transition: border-color .15s; animation: tgc-digit .4s cubic-bezier(.3, 1.3, .5, 1) backwards; }
/* 27 Eyl (L31): kod 10 karakter; beşli iki grup, arada boşluk. */
.tgc-code span:nth-child(5) { margin-right: 8px; }
.tgc-code:hover span { border-color: rgba(55, 187, 254, .55); }
.tgc-code em { flex-basis: 100%; margin-top: 4px; font-style: normal; font-size: 11.5px; color: var(--muted-2); text-align: center; }
.tgc-code em.on { color: var(--gain); }
@keyframes tgc-digit { from { opacity: 0; transform: translateY(10px); } }
.tgc-wait { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin: -6px 0 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tgc-wait > i { width: 6px; height: 6px; border-radius: 10px; background: #37bbfe; animation: tgc-blink 1.2s ease-in-out infinite; }
@keyframes tgc-blink { 50% { opacity: .25; } }
.tgc-link { margin-left: 2px; padding: 0; border: 0; background: none; color: #6cc9ff; font: 600 12px/1 var(--sans); cursor: pointer; }
.tgc-link:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.tgc-link:disabled { opacity: .5; cursor: default; }

/* Kod ekrandayken bağ kurulunca: logonun çevresinde yeşil halka, rozet zıplar. */
.tgc.is-cheer .tgc-mark::after { content: ""; position: absolute; inset: -3px; border-radius: 10px; border: 2px solid var(--gain); animation: tgc-ring 1.3s ease-out both; }
@keyframes tgc-ring { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.6); } }
.tgc.is-cheer .tgc-pill { animation: tgc-pop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes tgc-pop { from { opacity: 0; transform: scale(.5); } }

@media (prefers-reduced-motion: reduce) {
  .tgc-plane, .tgc-pill i, .tgc-preview span, .tgc-code span, .tgc-wait > i, .tgc.is-cheer .tgc-mark::after, .tgc.is-cheer .tgc-pill { animation: none !important; }
  .ag2-hero-agent, .ag2-shadow, .ag2-stage-rings i, .ag2-msg, .ag2-dots i, .ag2-switch .ag2-sw-knob { animation: none !important; }
  .ag2-sw-knob { transition: none; }
}

/* ── PROFIL, DORDUNCU TUR (23 Eyl gece, Cihan) ──
   hesap menusu hizasi, kimlik satiri orani, kucuk para kapilari, kapak kalemi,
   yeni duzenleme penceresi (kaymaz), para pencereleri, agent seridi, kapanmis
   pozisyon etiketi. */
.acm-id { align-items: flex-end; }
.acm-who { padding: 0 0 6px; gap: 3px; }
.acm-card { padding-bottom: 14px; }

.pf3 .pf3-idrow { align-items: flex-end; margin-top: -24px; gap: 18px; }
.pf3 .pf3-who { padding: 0 0 10px; gap: 8px; }
.pf3 .pf-name { font-size: 30px; line-height: 1.05; }
.pf3-meta { gap: 10px; }
.pf3-trades { font-size: 13.5px; color: var(--muted-2); }
.pf3-trades b { color: var(--foreground); font-weight: 700; font-variant-numeric: tabular-nums; }
.pf3-dot { width: 3px; height: 3px; border-radius: 14px; background: var(--muted-2); opacity: .7; }
.pf3-since { font-size: 13.5px; }
.pf3-money { margin: 0 0 14px; gap: 6px; align-self: flex-end; }
.pf3-mbtn { height: 34px; padding: 0 12px 0 10px; gap: 6px; border-radius: 8px; font: 650 13px var(--sans); }
.pf3-mbtn.dep { box-shadow: 0 6px 20px -10px rgba(255,106,0,.6); }
.pf3-coverpen { position: absolute; right: 12px; bottom: 12px; z-index: 5; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: rgba(22,24,28,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.pf3-coverpen:hover { background: rgba(40,43,48,.92); transform: scale(1.05); }

/* duzenleme penceresi: tek ekran, kaymaz */
.auth-modal.pfe2-modal { max-width: 520px; max-height: none; overflow: visible; padding-bottom: 18px; }
.pfe2 { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.pfe2-cover.pf3-cover { position: relative; height: 120px; margin: 0 0 30px; border-radius: 10px; overflow: visible; }
.pfe2-cover.pf3-cover::before { border-radius: 10px; }
.pfe2-cover.pf3-cover > i { display: none; }
.pfe2-coverup { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; background: rgba(13, 11, 16,.6); backdrop-filter: blur(8px); color: #fff; font: 600 12.5px var(--sans); cursor: pointer; }
.pfe2-coverup:hover { background: rgba(13, 11, 16,.8); }
.pfe2-face { position: absolute; left: 16px; bottom: -30px; width: 76px; height: 76px; border-radius: 10px; background: var(--surface-3); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5.5px var(--accent); display: grid; place-items: center; font-size: 36px; }
.pfe2-face > .face-img, .pfe2-face > img, .pfe2-face > span { width: 100%; height: 100%; border-radius: 10px; overflow: hidden; object-fit: cover; }
.pfe2-faceup { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: #000; box-shadow: 0 0 0 3px var(--surface); cursor: pointer; }
.pfe2-row { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pfe2-label { font: 600 12px var(--sans); color: var(--muted-2); }
.pfe2-label small { font-weight: 500; }
.pfe2-covers { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.pfe2-sw { position: relative; height: 30px; margin: 0; border-radius: 6px; border: 0; padding: 0; cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08) !important; }
.pfe2-sw.pf3-cover { height: 30px; margin: 0; }
.pfe2-sw.pf3-cover > i, .pfe2-sw::before { display: none; }
.pfe2-sw.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.pfe2-name { height: 42px; }
.pfe2-chars { display: flex; gap: 6px; overflow-x: auto; padding: 3px 2px 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.pfe2-char { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; overflow: hidden; scroll-snap-align: start; transition: transform .12s ease, border-color .12s ease; }
.pfe2-char img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfe2-char:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.pfe2-char.on { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.pfe2-rmphoto { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--muted); font: 600 12px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pfe2-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--foreground); font: 600 13.5px var(--sans); cursor: pointer; }
.pfe2-err { margin: 0; }
.pfe2-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.pfe2-actions .btn { height: 44px; justify-content: center; }

/* para pencereleri */
.auth-modal.pfm-modal { max-width: 480px; width: calc(100vw - 32px); box-sizing: border-box; }
.pfm-modal .tr { margin-top: 4px; }

/* agent seridi: dagilimin altinda */

/* kapanmis pozisyon */
.pp-closedtag { align-self: flex-start; padding: 2px 8px; border-radius: 5px; background: var(--surface-3); color: var(--muted); font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; font-style: normal; }
.pp-actions > .pp-act:only-child { grid-column: 1 / -1; flex: 1 1 100%; width: 100%; }
.pf3 .pf3-idrow { margin-bottom: 6px; }
/* duzenleme penceresi, ikinci hal (23 Eyl gece, Cihan): baslik yok, carpi kapagin
   sag ust kosesinde, hazir kapaklar kapagin ustunde, ad resmin hemen altinda,
   karakterler uc sira. */
.auth-modal.pfe2-modal { padding-top: 16px; }
.pfe2-modal > .auth-head { display: none; }
.pfe2-cover.pf3-cover { height: 150px; margin-bottom: 34px; }
.pfe2-x { position: absolute; right: 10px; top: 10px; z-index: 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(13, 11, 16,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; cursor: pointer; }
.pfe2-x:hover { background: rgba(13, 11, 16,.8); }
.pfe2-cover .pfe2-covers { position: absolute; left: 10px; top: 10px; right: 52px; z-index: 3; display: flex; flex-wrap: wrap; gap: 5px; padding: 5px; border-radius: 8px; background: rgba(13, 11, 16,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); width: max-content; max-width: calc(100% - 62px); }
.pfe2-cover .pfe2-sw, .pfe2-cover .pfe2-sw.pf3-cover { flex: 0 0 auto; width: 34px; height: 24px; border-radius: 5px; }
.pfe2-cover .pfe2-sw.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.pfe2-swup { display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.pfe2-swup:hover { background: rgba(255,255,255,.22); }
.pfe2-name { height: 42px; margin-top: 2px; }
.pfe2-chars { display: grid; grid-template-rows: repeat(3, 44px); grid-auto-flow: column; grid-auto-columns: 44px; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 3px 2px 8px; }
.pfe2-char { width: 44px; height: 44px; }

/* ── POZISYON KARTI, IKINCI HAL (23 Eyl gece, Cihan) ── */
.pp2 { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 20px 22px 20px; border-radius: 14px; background: linear-gradient(180deg, #111316, var(--surface)); box-shadow: var(--edge), inset 0 0 0 1px var(--border); isolation: isolate; }
.pp2-glow { position: absolute; z-index: -1; right: -80px; top: -120px; width: 360px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,106,0,.14), transparent); pointer-events: none; }
.pp2.pos .pp2-glow { background: radial-gradient(closest-side, rgba(43,214,123,.2), transparent); }
.pp2.neg .pp2-glow { background: radial-gradient(closest-side, rgba(255,77,109,.18), transparent); }
.pp2-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp2-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.pp2-side { font-style: normal; padding: 4px 8px; border-radius: 6px; font: 700 11px/1 var(--sans); letter-spacing: .04em; }
.pp2-side.long { color: var(--gain); background: var(--gain-soft); }
.pp2-side.short { color: var(--danger); background: var(--danger-soft); }
/* Uzun ad baslik satirini iki satira bolmesin. */
.pp2-eyebrow { min-width: 0; white-space: nowrap; }
.pp2-eyebrow .pp2-side { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 5 Kas (Cihan): kaldirac rozeti ("5x long") hic kisilmaz. */
.pp2-eyebrow .pp2-side:first-child { flex-shrink: 0; overflow: visible; }
.pp2-share { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); color: var(--foreground); font: 600 12.5px var(--sans); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.pp2-share:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #000; }
.pp2-share:disabled { opacity: .4; cursor: default; }
.pp2-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pp2-value, .pp2-pnl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pp2-value b { font: 800 40px/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp2-value small { font: 500 13.5px var(--sans); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 5 Kas (Cihan): perps "Size $x · Margin $y" kucuk ve hep tek satirda sigar; yazi boyu satir genisligi / harf sayisi
   (--pp2-sn, PositionPage.tsx perpAlt), K/Z sutunu icin ~120px payla. */
.pp2-main { container-type: inline-size; }
.pp2 .pp2-value small.pp2-sizesub { font-size: min(12px, calc((100cqi - 120px) / (var(--pp2-sn, 30) * 0.56))); overflow: visible; }
.pp2-pnl { align-items: flex-end; text-align: right; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.04); }
/* 5 Kas (Cihan): kar/zarar yuzdesinin kirmizi-yesil cercevesi kalkti; yalniz yazi rengi. */
.pp2 .pp2-pnl, .pp2 .pp2-pnl.pos, .pp2 .pp2-pnl.neg { background: none; padding: 0; border-radius: 0; }
.pp2-pnl b { font: 800 24px/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp2-pnl small { font: 700 12.5px var(--mono); white-space: nowrap; }
.pp2-pnl.pos b, .pp2-pnl.pos small { color: var(--gain); }
.pp2-pnl.neg b, .pp2-pnl.neg small { color: var(--danger); }
/* 8 Eki (Cihan): buyuk deger acilisin ustundeyse hep yesil, altindaysa hep kirmizi */
.pp2.pos .pp2-value b { color: var(--gain); }
.pp2.neg .pp2-value b { color: var(--danger); }
.pp-txhead { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pp2-move { display: flex; flex-direction: column; gap: 8px; }
.pp2-track { position: relative; height: 6px; border-radius: 10px; background: var(--surface-3); }
.pp2-fill { position: absolute; top: 0; bottom: 0; border-radius: 10px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.pp2-fill.pos { background: linear-gradient(90deg, rgba(43,214,123,.25), var(--gain)); }
.pp2-fill.neg { background: linear-gradient(270deg, rgba(255,77,109,.25), var(--danger)); }
.pp2-entry { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--foreground); opacity: .6; }
.pp2-now { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 14px; background: var(--foreground); box-shadow: 0 0 0 3px #111316; }
.pp2-now.pos { background: var(--gain); box-shadow: 0 0 0 3px #111316, 0 0 12px rgba(43,214,123,.6); }
.pp2-now.neg { background: var(--danger); box-shadow: 0 0 0 3px #111316, 0 0 12px rgba(255,77,109,.55); }
/* 5 Kas (Cihan): Liq / Entry / Now tek satir, rakam ne kadar buyuk olursa olsun ucu de sigar: yazi boyu
   kart genisligi / toplam harf (--pp2-mn, PositionPage.tsx), ust sinir 12px. */
.pp2-move { container-type: inline-size; }
.pp2-movelbl { --pp2-fit: calc((100cqi - 12px) / (var(--pp2-mn, 40) * 0.64)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 6px; white-space: nowrap; font: 600 min(11px, var(--pp2-fit)) var(--mono); color: var(--muted-2); }
.pp2-movelbl > span:first-child { justify-self: start; }
.pp2-movelbl > span.c { justify-self: center; }
.pp2-movelbl > span.r { justify-self: end; grid-column: 3; }
.pp2-movelbl .pos { color: var(--gain); } .pp2-movelbl .neg { color: var(--danger); } .pp2-movelbl .liq { color: var(--danger); }
/* 16 Eki: cubuk likidasyona gore; dolgunun koyu ucu noktanin oldugu tarafta, likidasyon ucu kirmizi bolge (telefondaki m-tpc-bar ile ayni). */
.pp2-fill.pos.sol { background: linear-gradient(270deg, rgba(43,214,123,.25), var(--gain)); }
.pp2-fill.neg:not(.sol) { background: linear-gradient(90deg, rgba(255,77,109,.25), var(--danger)); }
.pp2-track.dz-left { background: linear-gradient(90deg, rgba(255,77,109,.35) 0%, rgba(255,77,109,.08) 18%, var(--surface-3) 30%); }
.pp2-track.dz-right { background: linear-gradient(270deg, rgba(255,77,109,.35) 0%, rgba(255,77,109,.08) 18%, var(--surface-3) 30%); }
.pp2-cells { display: grid; grid-template-columns: repeat(var(--pp2-n, 3), minmax(0, 1fr)); padding: 14px 0 0; border-top: 1px solid var(--border); }
.pp2-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0 12px; border-left: 1px solid var(--border); }
.pp2-cell:first-child { padding-left: 0; border-left: 0; }
.pp2-cell i { font: 600 11.5px var(--sans); color: var(--muted-2); font-style: normal; }
.pp2-cell b { font: 700 15.5px var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Likidasyon hucresi (1 Eki): fiyat kirmiziya yakin sicak tonda, yaninda uzaklik. */
.pp2-cell.liq b { color: var(--red, #ff4d6d); }
.pp2-liqd { margin-left: 6px; font: 600 11px var(--sans); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.pp2-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp2-btn { height: 50px; border-radius: 10px; font: 700 15px var(--sans); cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.pp2-btn:active { transform: scale(.98); }
.pp2-btn.buy { border: 0; background: var(--accent); color: #000; box-shadow: 0 10px 30px -12px rgba(255,106,0,.6); }
.pp2-btn.buy:hover { background: #ff9447; transform: translateY(-1px); }
.pp2-btn.sell { border: 1px solid rgba(255,77,109,.4); background: rgba(255,77,109,.06); color: var(--danger); }
.pp2-btn.sell:hover:not(:disabled) { background: var(--danger); border-color: var(--danger); color: #fff; }
.pp2-btn:disabled { opacity: .4; cursor: default; transform: none; }
.pp2-actions > .pp2-btn:only-child { grid-column: 1 / -1; }
.pp-tx { padding-bottom: 24px; }

/* duzenleme penceresi, ucuncu hal: carpi yok, kapak secenekleri kapagin sag altinda, kapak biraz uzun */
.pfe2-cover.pf3-cover { height: 176px; }
.pfe2-cover .pfe2-covers { top: auto; left: auto; right: 10px; bottom: 10px; }
.auth-modal.pfe2-modal { padding-top: 20px; }
/* 23 Eyl gece (Cihan: "leaderboard share popup'i kayiyor, ortadakileri kucult"):
   masaustunde kart, sekmeler, yan panel ve dugmeler bir tik kucuk; pencere
   ekran boyuna sigar. */
.auth-modal.sst-modal { max-width: 980px; padding: 16px 24px 20px; }
.sst { gap: 28px; }
.sst-left { gap: 10px; }
.sst-tabs button { font-size: 17px; }
.sst-stage { width: min(360px, 100%, calc((100vh - 250px) * 0.8)); border-radius: 12px; }
.sst-nav { width: 42px; height: 42px; }
.sst-player { width: min(440px, 100%); }
.sst-play { width: 34px; height: 34px; }
.sst-side { gap: 14px; padding-top: 30px; }
.sst-group { gap: 7px; }
.sst-seg button { padding: 7px 0; font-size: 13px; }
.sst-sw { width: 26px; height: 26px; }
.sst-moods { grid-template-columns: repeat(8, 1fr); gap: 5px; }
.sst-mood { border-radius: 8px; padding: 3px; }
.sst-input { height: 36px; }
.sst-toggles { gap: 7px; }
.sst-toggle { font-size: 13px; }
.sst-share { gap: 10px 6px; }
.sst-act > span { width: 46px; height: 46px; }
.sst-act { font-size: 11.5px; gap: 5px; }
.ac section.pp2 { padding: 20px 22px; }
@media (max-width: 900px) {
  .ac section.pp2 { padding: 18px 16px; }
}
/* 23 Eyl gece (Cihan): hazir kapaklar kapak cercevesinin ALTINDA (yuzun saginda) */
.pfe2-covers.pfe2-coversalt { position: static; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin: -4px 0 0; padding: 0 0 0 104px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.pfe2-coversalt .pfe2-sw, .pfe2-coversalt .pfe2-sw.pf3-cover { flex: 0 0 auto; width: 44px; height: 30px; margin: 0; border-radius: 6px; }
.pfe2-coversalt .pfe2-sw.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.pfe2-coversalt .pfe2-swup { background: var(--surface-3); color: var(--foreground); }
.pfe2-coversalt .pfe2-swup:hover { background: var(--border-strong); }
.pfe2-cover.pf3-cover { margin-bottom: 0; }
.pfe2-cover + .pfe2-covers + .pfe2-name { margin-top: 2px; }

/* hesap menusu: kapak kartin tamamini doldurur (23 Eyl gece, Cihan: "yarim gorunmus") */
.acm-card { background: #141118; padding-top: 64px; }
.acm-cover.pf3-cover { position: absolute; inset: 0; height: auto; border-radius: 10px; box-shadow: inset 0 -70px 60px -20px rgba(0,0,0,.65); }
.acm-id { z-index: 1; }
.acm-who b { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.acm-who span { color: rgba(255,255,255,.75); }

/* pozisyon karti: Share belirgin (23 Eyl gece, Cihan: "cok belli olmuyor") */
.pp2-share { height: 34px; padding: 0 14px; border-color: rgba(255,106,0,.45); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.pp2-share:hover:not(:disabled) { box-shadow: 0 8px 24px -10px rgba(255,106,0,.6); }

/* ── POZİSYON GRAFİĞİN ALTINDA (24 Eyl, Cihan: "pozisyon sayfasına gerek yok,
   Pair'in chartının altına koyarız; çerçeve biraz daha kısa, en altta
   'N transactions' ve aşağı ok"). MarketPosition.tsx; kart PositionPage'in
   pp2'si, .pp2-sm kısa hali: değer | giriş→şimdi şeridi | K/Z tek satırda,
   hücreler ve düğmeler tek satırda, en altta işlem listesi. ── */
.mp-slot { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 4px; }
.mp-slot:empty { display: none; }
.pp2 .pp-tx { gap: 0; padding: 0; margin: 0 -22px -20px; padding: 0 22px; border-top: 1px solid var(--border); }
.pp2 .pp-txhead { padding: 14px 0; font-size: 15px; }
.pp2 .pp-txlist { max-height: 420px; padding-bottom: 8px; }
.pp2.pp2-sm { gap: 12px; padding: 14px 18px 0; border-radius: 12px; }
.pp2-sm .pp-tx { margin: 0 -18px; padding: 0 18px; }
.pp2-sm .pp-txhead { padding: 12px 0; font-size: 14px; }
.pp2-sm .pp2-glow { width: 300px; height: 200px; top: -120px; }
.pp2-sm .pp2-eyebrow { font-size: 11px; }
.pp2-sm .pp2-share { height: 28px; padding: 0 12px; font-size: 12px; }
.pp2-sm .pp2-main { align-items: center; gap: 22px; }
.pp2-sm .pp2-value { flex: 0 0 auto; gap: 4px; }
.pp2-sm .pp2-value b { font-size: 28px; }
.pp2-sm .pp2-value small { font-size: 12.5px; }
.pp2-sm .pp2-move { flex: 1 1 auto; min-width: 120px; gap: 7px; }
.pp2-sm .pp2-movelbl { font-size: min(11px, var(--pp2-fit)); }
.pp2-sm .pp2-pnl { flex: 0 0 auto; margin-left: auto; gap: 4px; padding: 0; border-radius: 0; }
.pp2-sm .pp2-pnl b { font-size: 18px; }
.pp2-sm .pp2-pnl small { font-size: 11.5px; }
.pp2-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 0 2px; border-top: 1px solid var(--border); }
/* 14 Eki (Cihan: "butonlarin ustundekileri tekrar butonlarin soluna"): taban 100 px kalir ki
   hucreler dugmelerle ayni satira sigsin; bos kalan yerin hepsini hucreler alir (flex-grow). */
.pp2-sm .pp2-cells { flex: 1 1 calc(var(--pp2-n, 3) * 100px); min-width: 0; padding: 0; border-top: 0; }
.pp2-sm .pp2-cell { gap: 4px; }
.pp2-sm .pp2-cell i { font-size: 11px; }
.pp2-sm .pp2-cell b { font-size: 14px; }
/* 14 Eki (Cihan: "Close digerleriyle ayni boyda"): dugmeler esit genislikte, en genisi kadar. */
.pp2-sm .pp2-actions { flex: 0 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-left: auto; }
.pp2-sm .pp2-btn { height: 38px; padding: 0 18px; border-radius: 8px; font-size: 13.5px; white-space: nowrap; }
.pp2-sm .pp2-btn.buy { box-shadow: none; }
/* SADE DUZEN (25 Eki, Cihan: token sayfasindaki kart pozisyon penceresindeki gibi; PositionPage `sade`,
   telefonda .m-tpc.sade): zemin parlamasi yok, ustte ince yon rengi cizgisi; deger hep beyaz, rakamlar
   ince (650); sonuc hapsiz, yuzde gri ve ok yon renginde; noktali cizginin altinda Invested | Avg. entry. */
.pp2.pp2-sade .pp2-glow { display: none; }
.pp2.pp2-sade::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--muted-2), transparent); opacity: .4; pointer-events: none; }
.pp2.pp2-sade.pos::after { background: linear-gradient(90deg, transparent, var(--gain), transparent); opacity: .55; }
.pp2.pp2-sade.neg::after { background: linear-gradient(90deg, transparent, var(--danger), transparent); opacity: .55; }
.pp2.pp2-sade .pp2-main { align-items: flex-start; }
.pp2.pp2-sade .pp2-value { gap: 5px; }
.pp2.pp2-sade .pp2-value b { color: var(--foreground); font: 650 24px/1.15 var(--sans); letter-spacing: -0.02em; }
.pp2.pp2-sade .pp2-value small { font-size: 14px; }
.pp2.pp2-sade .pp2-pnl { gap: 5px; padding: 0; border-radius: 0; background: none; }
.pp2.pp2-sade .pp2-pnl b { font: 650 24px/1.15 var(--sans); letter-spacing: -0.02em; }
.pp2.pp2-sade .pp2-pnl small { color: var(--muted-2); font: 500 14px var(--sans); font-variant-numeric: tabular-nums; }
.pp2.pp2-sade .pp2-pnl small i { margin-right: 5px; font-style: normal; font-size: .72em; vertical-align: .1em; }
.pp2.pp2-sade .pp2-pnl small i.pos { color: var(--gain); }
.pp2.pp2-sade .pp2-pnl small i.neg { color: var(--danger); }
.pp2-dots { display: block; height: 0; border-top: 2px dotted rgba(255, 255, 255, .12); }
.pp2.pp2-sade .pp2-foot { padding-top: 0; border-top: 0; }
.pp2-sadealt { flex: 1 1 280px; display: flex; justify-content: space-between; gap: 16px; min-width: 0; color: var(--muted-2); font: 500 13.5px var(--sans); white-space: nowrap; }
.pp2-sadealt b { margin-left: 6px; color: var(--foreground); font: 600 15px var(--sans); font-variant-numeric: tabular-nums; }
/* 27 Eki: .pp2 dikey flex; pp2-sadealt'in 280px tabani burada yukseklik olup karti uzatiyordu. */
.pp2-gercek { flex: 0 0 auto; margin-top: 10px; }
/* işlem satırı (ikinci ekran görüntüsü): solda fiil + tarih, sağda tutar + adet */
.mp-tx { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; }
.mp-tx + .mp-tx { border-top: 1px solid rgba(255,255,255,.04); }
.mp-txl, .mp-txr { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mp-txr { align-items: flex-end; text-align: right; }
.mp-txl b { font: 700 14.5px var(--sans); }
.mp-txl b.pos { color: var(--gain); }
.mp-txl b.neg { color: var(--danger); }
.mp-txr b { font: 700 14.5px var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-txr b i { font-style: normal; margin-right: 1px; }
.mp-txr b i.pos { color: var(--gain); }
.mp-txr b i.neg { color: var(--danger); }
.mp-txl small, .mp-txr small { font: 500 12px var(--sans); color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-txr small em { font-style: normal; }
.mp-txr small em.pos { color: var(--gain); }
.mp-txr small em.neg { color: var(--danger); }
.mp-txwho { margin-left: 7px; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.06); color: var(--muted); font: 600 10px var(--sans); font-style: normal; vertical-align: 2px; }

/* Hesap menusu karti (24 Eyl, Cihan): adin altinda cuzdan adresi, bakiye adin sagina */
.acm-card:hover .acm-who span { color: inherit; }
.acm-id { align-items: flex-end; }
.acm-who { flex: 1 1 auto; align-items: flex-start; }
/* 14 Eki (Cihan): adres kalkti; ad ve bakiye profil resminin dikey ortasinda */
.acm-card .acm-id { align-items: center; }
.acm-card .acm-who { padding: 0; }
.acm-id .acm-bal { padding-bottom: 0; }
.acm-addrbtn { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; margin-top: 3px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(13, 11, 16,.35); color: var(--muted); font: 600 12px var(--mono); cursor: pointer; }
.acm-addrbtn:hover { color: var(--foreground); border-color: rgba(255,255,255,.3); }
.acm-id .acm-bal { flex: 0 0 auto; padding-bottom: 6px; }
/* 24 Eyl (Cihan): "N transactions" oku yazinin hemen saginda; liste ic kutuda
   kaymaz (fare listenin ustundeyken sayfa kaymiyordu, yarim acik gorunuyordu) */
.pp-txhead { justify-content: flex-start; gap: 6px; }
.pp-txhead .pp-txchev { flex: 0 0 auto; }
.pp-txlist, .pp2 .pp-txlist { max-height: none; overflow: visible; }

/* ---------- BILDIRIMLER (24 Eyl, app/Bildirimler.tsx): zil, acilir liste, sag ustte kayan kart ---------- */
.bld-wrap { position: relative; display: inline-flex; }
.bld-zil { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--foreground); box-shadow: var(--edge); cursor: pointer; transition: background .15s ease; }
.bld-zil:hover, .bld-zil.on { background: var(--surface-3); }
/* 4 Kas (Cihan: "can yuvarlagin merkezinde olsun, biraz altinda"): zilin cizimi 24'luk kutuda 5,5-22 arasinda (orta 13,75),
   gozle 1,4 px asagi duruyordu; tam ortaya alinir. */
.bld-zil > svg { transform: translateY(-1.4px); }
.bld-rozet { position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 14px; background: var(--accent); color: #000; font: 800 11px/18px var(--sans); text-align: center; box-shadow: 0 0 0 2.5px var(--background); animation: bld-pop .4s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes bld-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.bld-tile { flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--surface-3); color: var(--muted); }
.bld-tile.iyi { background: rgba(255,106,0,.12); color: var(--accent); }
.bld-tile.kotu { background: rgba(255,77,109,.14); color: var(--danger); }
.bld-tile.uyari { background: rgba(251,191,36,.14); color: #fbbf24; }
.bld-tile.agent { background: var(--accent); color: #000; }
.bld-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; text-align: left; }
.bld-txt b { font: 700 14px/1.25 var(--sans); color: var(--foreground); }
.bld-txt span { font: 500 12.5px/1.4 var(--sans); color: var(--muted); }
.bld-txt em { font-style: normal; font-size: 12px; color: #ff4d6d; }

.bld-pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; width: 380px; max-height: min(600px, calc(100vh - 90px));
  display: flex; flex-direction: column; padding: 6px 6px 8px;
  border-radius: 12px; border: 1px solid var(--border); background: rgba(13,14,16,.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 90px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.02);
  transform-origin: top right; animation: acm-in .2s cubic-bezier(.2,.9,.3,1);
}
.bld-head { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px 4px 12px; }
.bld-head b { flex: 1 1 auto; font: 800 16px var(--sans); }
.bld-ic { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.bld-ic:hover { color: var(--foreground); background: var(--surface-3); }
.bld-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 2px; }
.bld-group { padding: 12px 12px 4px; font: 700 11.5px var(--sans); color: var(--muted-2); letter-spacing: .02em; }
.bld-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; cursor: pointer; transition: background .12s ease; }
.bld-row:hover { background: var(--surface-2); }
.bld-row .bld-txt span { color: var(--muted-2); }
.bld-row.new .bld-txt span { color: var(--muted); }
.bld-side { flex: 0 0 auto; display: grid; justify-items: end; gap: 8px; padding-top: 2px; }
.bld-side time { font: 600 11.5px var(--sans); color: var(--muted-2); }
.bld-dot { width: 8px; height: 8px; border-radius: 14px; background: var(--accent); box-shadow: 0 0 10px rgba(255,106,0,.35); }
.bld-push { display: flex; align-items: center; gap: 12px; margin: 2px 4px 6px; padding: 12px; border-radius: 10px; background: linear-gradient(135deg, rgba(255,106,0,.10), rgba(255,106,0,.03)); }
.bld-pushic { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: #000; }
.bld-pushbtn { flex: 0 0 auto; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--accent); color: #000; font: 800 13px var(--sans); cursor: pointer; }
.bld-pushbtn:hover { background: #ff9447; }
.bld-pushbtn:disabled { opacity: .6; }
.bld-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 30px 30px; text-align: center; }
.bld-emptyic { width: 48px; height: 48px; margin-bottom: 4px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--muted-2); }
.bld-empty b { font: 800 15px var(--sans); }
.bld-empty span { font: 500 12.5px/1.45 var(--sans); color: var(--muted-2); max-width: 260px; }
.bld-skel { display: grid; gap: 14px; padding: 12px; }
.bld-skel i { display: block; height: 40px; border-radius: 8px; background: var(--surface-2); animation: bld-pulse 1.6s ease-in-out infinite; }
@keyframes bld-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.bld-set { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--foreground); text-align: left; cursor: pointer; }
.bld-set:hover { background: var(--surface-2); }
.bld-set:disabled { opacity: .55; cursor: default; }
.bld-set .bld-link { flex: 0 0 auto; font: 600 13px var(--sans); color: var(--accent); }
.bld-set > span { flex: 1 1 auto; display: grid; gap: 2px; }
.bld-set b { font: 600 14px var(--sans); }
.bld-set small { font: 500 12px var(--sans); color: var(--muted-2); }
.bld-test { display: block; margin: 14px auto 6px; height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--foreground); font: 700 13px var(--sans); cursor: pointer; box-shadow: var(--edge); }
.bld-test:hover { background: var(--surface-3); }
.bld-not { margin: 4px 12px 6px; font: 500 12px var(--sans); color: var(--muted); text-align: center; }

.bld-kartlar { position: fixed; z-index: 120; top: 76px; right: 20px; width: 360px; display: grid; gap: 10px; pointer-events: none; }
.bld-kart {
  pointer-events: auto; position: relative; display: flex; align-items: flex-start;
  border-radius: 12px; background: rgba(24,26,30,.86);
  backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 18px 50px rgba(0,0,0,.55);
  animation: bld-in .45s cubic-bezier(.34,1.56,.64,1) both; transition: transform .24s ease, opacity .24s ease;
}
.bld-kart.out { transform: translateX(120%); opacity: 0; }
@keyframes bld-in { from { transform: translateX(110%); opacity: .3; } to { transform: none; opacity: 1; } }
.bld-kartgo { flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding: 12px 34px 12px 12px; border: 0; background: none; cursor: pointer; }
.bld-kartx { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 14px; background: rgba(255,255,255,.06); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s ease; }
.bld-kart:hover .bld-kartx { opacity: 1; }
@media (max-width: 700px) { .bld-pop { position: fixed; left: 12px; right: 12px; width: auto; top: 70px; } .bld-kartlar { left: 12px; right: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .bld-kart { animation: none; } }

/* ---------- PERPS BILETI SL/TP (25 Eyl, Cihan: "mobilde stop loss kurduk, web'e de ekleyelim") ----------
   Limit | Market'in saginda "+ SL/TP"; basinca Drop paneli (telefon SlTpSheet'inin ikizi). */
.pt-sltpbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; cursor: pointer;
  border: 1px dashed var(--border); border-radius: var(--r-2xl); background: none;
  font: 600 13px var(--sans); color: var(--muted); white-space: nowrap; transition: border-color .15s ease, color .15s ease;
}
.pt-sltpbtn:hover { border-color: var(--accent); color: var(--accent); }
.pt-sltpbtn.set { border-style: solid; border-color: rgba(255,255,255,.14); color: var(--text); padding: 0 10px; }
.pt-sltpbtn i { font-style: normal; font-variant-numeric: tabular-nums; font-size: 12px; }
.pt-sltpbtn i.sl { color: var(--danger); }
.pt-sltpbtn i.tp { color: var(--gain); }
.pt-sltpbtn em { font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 5px; }
.pt-sltpbtn em.long { background: rgba(43, 214, 123, .16); color: var(--gain); }
.pt-sltpbtn em.short { background: rgba(255, 77, 109, .16); color: var(--danger); }
.pt-sltpbtn:disabled { opacity: .6; cursor: default; }
.pt-sltp { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.pt-sltp h4 { margin: 0; font: 700 15px var(--sans); color: var(--text); }
.pt-sltp > p { margin: -6px 0 0; font: 500 12.5px var(--sans); color: var(--muted); }
.pt-sltpyon { align-self: stretch; }
.pt-sltpyon .pt-type { flex: 1 1 0; }
.pt-sltprow { display: grid; grid-template-columns: 1fr 86px; grid-template-areas: "lbl lbl" "px pct" "hint clr"; gap: 6px 8px; align-items: center; }
.pt-sltprow > span { grid-area: lbl; font: 700 12px var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.pt-sltprow.sl > span { color: var(--danger); }
.pt-sltprow.tp > span { color: var(--gain); }
.pt-sltprow > .ap-input { grid-area: px; min-width: 0; }
.pt-sltppct { grid-area: pct; display: flex; align-items: center; gap: 4px; padding: 0 10px; min-height: 40px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--background); }
.pt-sltppct input { width: 100%; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font: 600 13px var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.pt-sltppct i { font-style: normal; color: var(--muted); font-size: 12px; }
.pt-sltprow small { grid-area: hint; font: 500 12px var(--sans); color: var(--muted); }
.pt-sltprow small.bad { color: var(--danger); }
.pt-sltprow small b.down { color: var(--danger); }
.pt-sltprow small b.up { color: var(--gain); }
.pt-sltpclear { grid-area: clr; justify-self: end; border: 0; background: none; cursor: pointer; font: 600 12px var(--sans); color: var(--muted); }
.pt-sltpclear:hover { color: var(--text); }
.pt-sltpquick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pt-sltpquick button { min-height: 30px; border: 1px solid var(--border); border-radius: var(--r-xl); background: none; cursor: pointer; font: 600 12px var(--sans); color: var(--gain); }
.pt-sltpquick button:hover { border-color: var(--gain); }
.pt-sltpsave { min-height: 42px; border: 0; border-radius: var(--r-xl); background: var(--accent); color: #000; font: 700 14px var(--sans); cursor: pointer; }
.pt-sltpsave:disabled { opacity: .45; cursor: default; }
.pt-sltpnote { font: 500 11.5px var(--sans); color: var(--muted-2); line-height: 1.4; }

/* AGENT AKISI (25 Eyl, Cihan: "bu kisim karisik, bastan yarat"): masaustu Agent sayfasinin sol
   sutunu, app/src/app/AgentAkis.tsx. Gun basliklari yapisir; satir = resim +
   durum rozeti, baslik / kisa ayrinti, sagda renkli sonuc + saat; satira
   tiklayinca agent'in tam cumlesi satirin yanindaki kutuda acilir (.aak-pop).
   Cizgi yok, satirlar bosluktan ayrilir. */
.aak { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.aak-head { flex: 0 0 auto; border-bottom: 1px solid var(--border); }
.aak-head h2 { margin: 0; padding: 16px 16px 0; font: 700 15px/1.2 var(--sans); letter-spacing: -0.01em; color: var(--foreground); }
.aak-tabs.td-tabs { border-bottom: 0; }
.aak-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 12px; }
.aak-day {
  position: sticky; top: 0; z-index: 2;
  padding: 14px 16px 6px; background: var(--surface);
  font: 600 11px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2);
}
.aak-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 11px; align-items: center;
  width: 100%; padding: 9px 16px; border: 0; background: none; text-align: left; cursor: pointer;
  font-family: var(--sans); color: inherit; transition: background .15s ease;
}
.aak-row:hover, .aak-row.open { background: var(--surface-2); }
.aak-art { position: relative; width: 36px; height: 36px; }
.aak-art .tm-coin, .aak-you, .aak-face { width: 36px; height: 36px; border-radius: 10px; }
.aak-you { display: grid; place-items: center; background: var(--surface-3); color: var(--foreground); }
.aak-face { display: block; }
.aak-badge {
  position: absolute; right: -3px; bottom: -3px; z-index: 1;
  display: grid; place-items: center; width: 16px; height: 16px; border-radius: 10px;
  box-shadow: 0 0 0 2px var(--surface); color: #000;
}
.aak-row:hover .aak-badge, .aak-row.open .aak-badge { box-shadow: 0 0 0 2px var(--surface-2); }
.aak-badge svg { display: block; }
.aak-badge.b-open { background: var(--accent); }
.aak-badge.b-up { background: var(--gain); }
.aak-badge.b-down, .aak-badge.b-fail { background: var(--danger); color: #fff; }
.aak-badge.b-ask, .aak-badge.b-warn { background: var(--gold); }
.aak-badge.b-wait, .aak-badge.b-ok { background: #2e2a36; color: var(--foreground); }
.aak-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aak-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.aak-title b { min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aak-title em { flex: 0 0 auto; padding: 1px 5px; border-radius: 10px; background: var(--surface-3); font: 600 10.5px/1.3 var(--sans); color: var(--muted); }
.aak-sub { font-size: 12px; line-height: 1.3; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aak-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.aak-amt { font: 700 13.5px/1.25 var(--sans); font-variant-numeric: tabular-nums; color: var(--foreground); white-space: nowrap; }
.aak-amt.up { color: var(--gain); }
.aak-amt.down { color: var(--danger); }
.aak-side time { font: 500 11.5px/1.3 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted-2); white-space: nowrap; }
/* SATIR KUTUSU (27 Eyl, Selcuk: "bu yazinin bu sekilde olmasini begenmedim;
   kucuk bir ekran acilsin, ekrani karartmadan, herhangi bir yere tiklayinca
   kapansin"). Eskiden tam cumle satirin icinde gri bir paragrafti. Simdi
   satirin saginda yuzen kucuk kart: baslik + zaman, altinda her cumle kendi
   satirinda; ilk cumle (ne oldu) parlak, gerisi sakin; tutarlar kalin. */
.aak-pop {
  position: fixed; z-index: 50;
  padding: 14px 16px 15px; border: 1px solid var(--border-strong); border-radius: var(--r-2xl);
  background: var(--surface-2); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .8);
  font-family: var(--sans); color: var(--muted); cursor: default;
  animation: aak-pop-alt 140ms ease-out both;
}
.aak-pop.yan { animation-name: aak-pop-yan; }
.aak-popok {
  position: absolute; left: -6px; width: 10px; height: 10px;
  background: var(--surface-2); border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
  transform: translateY(-50%) rotate(45deg);
}
.aak-pophead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.aak-poptitle { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aak-poptitle b { font: 600 14.5px/1.3 var(--sans); letter-spacing: -0.01em; color: var(--foreground); }
.aak-poptitle span { font: 500 11.5px/1.3 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted-2); }
.aak-popbody {
  display: flex; flex-direction: column; gap: 9px;
  max-height: min(360px, calc(100vh - 110px)); overflow-y: auto; user-select: text;
}
.aak-popbody p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.aak-popbody p:first-child { color: var(--foreground); }
.aak-num { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--foreground); white-space: nowrap; }
.aak-num.up { color: var(--gain); }
.aak-num.down { color: var(--danger); }
@keyframes aak-pop-yan { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
@keyframes aak-pop-alt { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aak-pop { animation: none; } }
.aak-empty { margin: 0; padding: 28px 18px; font-size: 13px; line-height: 1.5; color: var(--muted-2); }

/* BEKLEYENLER (30 Eyl, Cihan: "agent'a verdigim, tetiklenene kadar hafizasinda
   kalan emirleri gorebilecegim bir yer"): Activity sutununun tepesinde, akis
   satirlarinin dilinde ince bir kart. Olacaklar gecmisin ustunde; logonun
   kosesinde saat (emir) ya da zil (alarm), sagda tetige uzaklik. Satira
   tiklayinca yandaki kutu: anlatim, seviye / simdi / boyut / bitis, iptal.
   app/src/app/Bekleyenler.tsx, veri app/src/bekleyenler.ts. */
.bk {
  margin: 12px 10px 4px; padding: 2px 0 6px; border: 0; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 106, 0, .05), rgba(255, 106, 0, .012) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, .13);
}
.bk-head { display: flex; align-items: center; gap: 7px; padding: 10px 14px 4px; font: 600 11px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); cursor: default; }
.bk-head em { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font: 700 11px/1 var(--sans); font-style: normal; letter-spacing: 0; }
.bk-live { width: 7px; height: 7px; border-radius: 14px; background: var(--accent); animation: bk-live 2.4s ease-out infinite; }
@keyframes bk-live { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, .45); } 70%, 100% { box-shadow: 0 0 0 6px rgba(255, 106, 0, 0); } }
.bk-row.aak-row { width: calc(100% - 8px); margin: 0 4px; padding: 8px 10px; border-radius: 8px; }
.bk-row.aak-row:hover, .bk-row.aak-row.open { background: rgba(255, 255, 255, .045); }
.bk .aak-badge { box-shadow: 0 0 0 2px #0f1110; }
.bk-pop .aak-badge { box-shadow: 0 0 0 2px var(--surface-2); }
.aak-badge.b-bell { background: var(--gold); color: #000; }
.bk-tag { font-weight: 700; }
.bk-tag.pos { color: var(--gain); }
.bk-tag.neg { color: var(--danger); }
.bk-tag.alert { color: var(--gold); }
.bk-yon { display: inline-block; margin-right: 3px; vertical-align: -1px; color: var(--muted); }
.bk-dist { font: 600 12px/1.25 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.bk-dist.now { color: var(--accent); }
.bk-dist.quiet { font-weight: 500; color: var(--muted-2); }
.bk-more { display: block; margin: 2px 14px 2px; padding: 5px 0; border: 0; background: none; color: var(--accent); font: 600 12px/1.2 var(--sans); cursor: pointer; }
.bk-more:hover { color: var(--accent-strong); }
.bk-note { margin: 4px 14px 4px; font-size: 12px; line-height: 1.4; color: var(--gain); }
.bk-pop { padding: 14px 16px 14px; }
.bk-pophead { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.bk-pophead .aak-poptitle b { font-size: 15px; }
.bk-pophead .aak-poptitle b .bk-tag { font: inherit; font-weight: 700; }
.bk-cumle { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--foreground); }
.bk-facts { display: grid; gap: 8px; margin: 0 0 12px; padding: 11px 12px; border-radius: 8px; background: rgba(13, 11, 16, .28); box-shadow: inset 0 0 0 1px var(--border); }
.bk-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bk-facts dt { font-size: 12.5px; color: var(--muted-2); }
.bk-facts dd { margin: 0; font: 600 12.5px/1.3 var(--sans); font-variant-numeric: tabular-nums; color: var(--foreground); text-align: right; }
.bk-facts dd em { font-style: normal; font-weight: 500; color: var(--muted); }
.bk-facts dd em.now { color: var(--accent); }
.bk-warn { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--gold); }
.bk-err { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--danger); }
.bk-actions { display: flex; justify-content: flex-end; gap: 8px; }
.bk-actions .btn.sm { min-height: 36px; }
.btn.bk-cancel { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn.bk-cancel:hover { background: rgba(255, 77, 109, .24); border-color: transparent; color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .bk-live { animation: none; } }

/* TELEGRAM'LA AYNI SUNUM (25 Eyl gece, keeper agent2/sunum.ts): fiyat kartı, grafik,
   pano, liste kartları, onay kartı ve makbuz Telegram'daki PNG'nin aynısı;
   altında altyazı ve kartın kendi düğmeleri (Telegram'daki satır içi klavye). */
.agt-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Sohbet görselleri 380 px (27 Eyl, Selçuk: "resimler biraz büyük geliyor");
   altındaki düğmeler görselle aynı genişlikte. Görselsiz onay kartı da 380 px (18 Eki: kenarlar hizalı). */
.agt-img { margin: 0; display: flex; flex-direction: column; gap: 6px; max-width: min(380px, 100%); }
.agt-img img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); opacity: 0; transition: opacity .18s ease; }
/* BOŞ KUTU YOK (1 Eki, lansman videosunun çekimi): görsel inene kadar yerinde
   gri çerçeve duruyordu (fiyat kartı, onay kartının içi, makbuz). Yer en ve boyla
   baştan ayrılır (zıplama yok); görsel inene kadar görünmez, inince kısa bir
   solmayla gelir (agentText.tsx HazirGorsel, img.agt-hazir). Görseli inmemiş
   figür ve görselli onay kartı bütünüyle görünmez kalır (altyazı ve düğmeler
   boşluğun altında durmasın); görsel hiç inmezse 3 sn sonra yine görünür. */
.agt-img img.agt-hazir { opacity: 1; }
.agt-img, .ag2-card.has-img { transition: opacity .18s ease; }
.agt-img:has(> img:not(.agt-hazir)), .ag2-card.has-img:has(.agt-cardimg > img:not(.agt-hazir)) { opacity: 0; animation: agt-gorsel-gec 0s linear 3s forwards; }
@keyframes agt-gorsel-gec { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .agt-img, .agt-img img, .ag2-card.has-img { transition: none; } }
.agt-img figcaption { font: 400 13.5px/1.45 var(--sans); color: var(--foreground); }
.agt-img figcaption p { margin: 0; }
/* ALTYAZI CEVAP GİBİ (9 Kas, Selçuk, Robinhood Chain demosu): makbuzun altındaki Guard notu madde, kalın ve başlıkla
   çizilir; paragraf, liste ve başlık arası boşluk balondakiyle aynı. "YoBro Guard" başlığı markanın renginde. */
.agt-img figcaption > * { margin: 0; }
.agt-img figcaption > * + :is(p, ul, ol, div) { margin-top: .95em; }
.agt-img figcaption .agt-h { font-weight: 700; letter-spacing: -0.01em; }
.agt-img figcaption > .agt-h + * { margin-top: 4px; }
.agt-img figcaption > * + .agt-h { margin-top: 1.15em; }
.agt-img figcaption .agt-ul, .agt-img figcaption .agt-ol { padding: 0; list-style: none; }
.agt-img figcaption .agt-ul li { position: relative; padding-inline-start: 16px; }
.agt-img figcaption .agt-ul li + li { margin-top: 5px; }
.agt-img figcaption .agt-ul li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .62em; width: 5px; height: 5px; border-radius: 10px; background: var(--muted-2); }
.agt-h.agt-guard { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.agt-keys { display: flex; flex-direction: column; gap: 6px; max-width: min(380px, 100%); }
.agt-keyrow { display: flex; gap: 6px; }
.agt-key { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--foreground); font: 600 12.5px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: color .15s, border-color .15s; overflow-wrap: anywhere; }
.agt-key:hover { color: var(--accent); border-color: var(--accent); }
.agt-key:disabled { opacity: .55; cursor: default; }
.ag2-card.has-img .agt-cardimg { max-width: 100%; }
/* Kart görselli başlık (27 Eyl, ikinci tur; Selçuk: "hala bozuk"): etiketler dış
   çizgiye yakın, görselden belirgin ayrık. Üst iç boşluk 8 px, etiketle görsel arası
   12 px; sağ alttaki agent penceresi de aynı (bu kural .agm .ag2-card'dan SONRA
   gelmeli, özgüllük eşit). */
.ag2-card.has-img { padding-top: 8px; }
.ag2-card.has-img .ag2-card-head { margin: 0 0 12px; }
/* AYNI ÖLÇEK (18 Eki, Selçuk: "kareler arasında boyut uyuşmazlığı var"): onay kartının görseli 360 px'lik çerçevenin
   iç boşluğunda ~330 px'e iniyor, hemen altındaki makbuz ve fiyat kartı 380 px çiziliyordu; ikisi aynı 760 px'lik PNG
   olduğu için kart yüzde 13 küçük görünüyordu. Görselli çerçeve görsel 380 px kalacak kadar geniş: 380 + 2 x 14 iç boşluk
   + 2 x 1 çizgi. Sağ alttaki pencerede iç boşluk 12 px (.agm .ag2-card). */
.ag2-card.has-img { width: min(410px, 100%); }
.agm .ag2-card.has-img { width: min(406px, 100%); }

/* GRAFIK CANLILIGI (ChartFx, 27 Eyl; Cihan PumpFun videosu): parcacik tuvali + solda
   islem seridi. Grafigin ustunde, dokunma/fare grafige gecer. Serit yukari dogru solar;
   yeni satir soldan parlayarak girer, balina islemi iri, isikli ve hafif zeminli. */
/* 25 Eki (Cihan: "alim yerleri chartin ustunde ama soldaki akan trades'in arkasinda olacak"): katman sirasi
   grafik < islem damgalari (.idm-katman 3) < akan islemler (4); telefonda karartma ve tarih (6) yine en ustte.
   Seride dokunma yok (pointer-events: none): damgaya dokunus alttan gecer. */
.cfx { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.cfx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Seridin arkasindaki siyah golge (28 Eyl, Selcuk: rakamlar arkadaki mumlarla karisiyordu).
   Yeri ve boyu ChartFx'te olculur; sagdaki 56 px erime payi GOLGE_KUYRUK ile ayni. */
.cfx-golge {
  position: absolute; left: 0; bottom: 0; width: 0; height: 0;
  background: linear-gradient(to right, rgba(13, 11, 16, 0.9) 0, rgba(13, 11, 16, 0.8) calc(100% - 56px), rgba(13, 11, 16, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px); mask-image: linear-gradient(to bottom, transparent 0, #000 48px);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.25s ease;
}
/* Serit ve golge yerine oturana kadar gorunmez (28 Eyl: once grafigin altinda cizilip
   sonra yerine atliyordu); ChartFx ilk olcumde .yerli ekler, ikisi birlikte belirir. */
.cfx-serit { transition: opacity 0.25s ease; }
.cfx:not(.yerli) .cfx-serit, .cfx:not(.yerli) .cfx-golge { opacity: 0; transition: none; }
.cfx-serit {
  position: absolute; left: 10px; bottom: 30px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; overflow: hidden;
  padding: 8px 12px 2px 6px; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 55%); mask-image: linear-gradient(to bottom, transparent 0, #000 55%);
}
.cfx.masa .cfx-serit { left: 16px; bottom: 40px; gap: 3px; }
.cfx-row {
  display: flex; align-items: center; gap: 5px; padding: 0 5px; margin-left: -5px; border-radius: 5px;
  font-family: var(--mono, inherit); font-size: 11px; font-weight: 700; line-height: 14px;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75); transition: opacity 0.6s ease;
}
.cfx.masa .cfx-row { font-size: 12px; line-height: 16px; }
.cfx-row i { font-style: normal; font-size: 0.72em; }
.cfx-row.b { color: var(--gain); }
.cfx-row.s { color: var(--danger); }
.cfx-row.w { font-size: 13px; line-height: 17px; background: color-mix(in srgb, currentColor 13%, transparent); text-shadow: 0 0 10px currentColor, 0 1px 3px rgba(0, 0, 0, 0.75); }
.cfx.masa .cfx-row.w { font-size: 14px; line-height: 19px; }
.cfx-row.n { animation: cfx-gir 0.6s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes cfx-gir {
  0% { opacity: 0; transform: translateX(-12px) scale(0.8); filter: brightness(2.4); }
  40% { filter: brightness(1.9); }
  100% { filter: none; }
}
@media (prefers-reduced-motion: reduce) { .cfx-row.n { animation: none; } .cfx-golge { transition: none; } }
/* WEBDE YALNIZ RAKAMLAR AKAR (1 Eki, Cihan: "burda sadece rakamlar aksin, karanlik golgeyi
   kaldiralim; hem perps hem tokens web sekmesinde, mobilde ayni kalabilir"): masaustu grafiginde
   seridin arkasindaki siyah golge ve balina satirinin renkli zemini yok. Rakam mumlarin ustunde
   kendi ince siyah hareleriyle okunur; balina islemi yine iri ve isikli. Telefon (m.css) aynen. */
.cfx.masa .cfx-golge { display: none; }
.cfx.masa .cfx-row { text-shadow: 0 0 2px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 9px rgba(0, 0, 0, 0.55); }
.cfx.masa .cfx-row.w { background: none; text-shadow: 0 0 2px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 12px currentColor; }

/* BEKLEYEN EMIRLER (29 Eyl, tarama 4, O45): profil ve token sayfasinda stop,
   kar al ve tetikli giris satirlari, iptal dugmesiyle (app/PendingOrders.tsx). */
.po-list { margin: 10px 12px 12px; padding: 10px 12px; border-radius: var(--r-xl); background: var(--surface-2); box-shadow: var(--edge), inset 0 0 0 1px var(--border); }
.po-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; font: 700 12.5px/1.2 var(--sans); color: var(--muted); }
.po-head small { font-weight: 600; color: var(--muted-2); }
.po-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.po-row:first-of-type { border-top: 0; }
.po-tag { flex: none; padding: 3px 7px; border-radius: 10px; font: 700 11px/1.1 var(--sans); background: var(--surface-3); }
.po-tag.pos { color: var(--gain); }
.po-tag.neg { color: var(--danger); }
.po-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.po-mid b { font: 600 13px/1.3 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-mid small { font: 500 12px/1.35 var(--mono); color: var(--muted); }
.po-uyari { display: block; font-style: normal; color: var(--danger); font-family: var(--sans); }
/* Token sayfasinda "Cancel all" (3 Kas): basligin sagi; ilk dokunusta altinda kirmizi uyari. */
.po-head .po-hepsi { margin-left: auto; align-self: center; }
.po-hepsi-uyari { margin: 2px 0 6px; font: 600 12px/1.35 var(--sans); color: var(--danger); }
.po-not { margin: 6px 0 0; font-size: 12.5px; }
.po-not.pos { color: var(--gain); }
.po-not.neg { color: var(--danger); }

/* ═══ TAKIP (30 Eyl, Cihan: "herkes birbirini takip edebilsin; profilde Following ve Followers") ═══ */
.rk-acts { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 8px; }
.rk-acts .rk-send { margin-left: 0; }
.rk-send.ghost { background: var(--surface-2); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border); }
.rk-send.ghost:hover { background: var(--surface-3); }
.rk-follow { margin-top: 4px; }
.fl-btnwrap { position: relative; display: inline-flex; }
.fl-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; min-width: 124px; justify-content: center; padding: 0 18px 0 15px; border-radius: 10px; background: var(--accent, #ff6a00); color: #000; font: 800 14px var(--sans); cursor: pointer; box-shadow: 0 8px 24px rgba(255, 106, 0, .18); transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.fl-btn:hover { transform: translateY(-1px); }
.fl-btn.on { background: transparent; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border-strong, #35303d); }
.fl-btn.on svg { color: var(--accent, #ff6a00); }
.fl-btn .fl-off { display: none; }
.fl-btn.on:hover { color: var(--danger, #ff4d6d); box-shadow: inset 0 0 0 1px rgba(255, 77, 109, .45); background: rgba(255, 77, 109, .08); transform: none; }
.fl-btn.on:hover svg { color: var(--danger, #ff4d6d); }
.fl-btn.on:hover .fl-on { display: none; }
.fl-btn.on:hover .fl-off { display: inline; }
.fl-err { position: absolute; top: calc(100% + 6px); right: 0; white-space: nowrap; font: 600 12px var(--sans); color: var(--danger, #ff4d6d); }
.fl-counts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.fl-counts > button { display: inline-flex; align-items: baseline; gap: 5px; padding: 0; background: none; border: 0; cursor: pointer; font: 500 13.5px var(--sans); color: var(--muted-2); }
.fl-counts > button b { font-weight: 800; font-size: 14.5px; color: var(--foreground); font-variant-numeric: tabular-nums; }
.fl-counts > button:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
.fl-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 14px; font: 700 11.5px var(--sans); color: var(--muted); background: rgba(255, 255, 255, .07); }
.fl-list { display: flex; flex-direction: column; max-height: min(520px, 70vh); }
.fl-tabs { display: flex; border-bottom: 1px solid var(--border); flex: none; }
.fl-tabs button { flex: 1 1 0; height: 46px; background: none; border: 0; cursor: pointer; font: 700 14px var(--sans); color: var(--muted-2); box-shadow: inset 0 -2px 0 transparent; transition: color .15s ease, box-shadow .15s ease; }
.fl-tabs button small { font-size: 12px; font-weight: 700; color: var(--muted-2); margin-left: 3px; font-variant-numeric: tabular-nums; }
.fl-tabs button.on { color: var(--foreground); box-shadow: inset 0 -2px 0 var(--accent, #ff6a00); }
.fl-rows { overflow-y: auto; padding: 6px 8px 8px; }
.fl-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.fl-row:hover { background: var(--surface-2); }
.fl-who { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 11px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; }
.fl-face { flex: none; width: 38px; height: 38px; border-radius: 10px; overflow: hidden; object-fit: cover; background: var(--surface-3); font-size: 21px; line-height: 38px; text-align: center; }
.fl-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fl-id b { display: flex; align-items: center; gap: 5px; font: 700 14px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-id b .lb-you { font-style: normal; font-size: 11px; }
.fl-id small { font: 500 12px var(--sans); color: var(--muted-2); }
.fl-pill { flex: none; height: 30px; min-width: 88px; padding: 0 13px; border-radius: 14px; border: 0; cursor: pointer; background: var(--accent, #ff6a00); color: #000; font: 800 12.5px var(--sans); transition: background .2s ease, color .2s ease; }
.fl-pill.on { background: transparent; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border-strong, #35303d); }
.fl-skel { display: block; height: 46px; margin: 6px 8px; border-radius: 8px; }
.fl-empty { padding: 26px 16px; text-align: center; font: 500 13.5px var(--sans); color: var(--muted-2); }
.pf3-follow { gap: 14px; }
.rk-trader { position: relative; overflow: hidden; isolation: isolate; }
.rk-tcover { position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, #000 55%, #000 100%); mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, #000 55%, #000 100%); }
.rk-tcover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 12%, rgba(12,13,15,.55) 60%, rgba(12,13,15,.25)); }
.rk-traderava { box-shadow: 0 0 0 3px rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.45); }
/* ── GRAFIKTEKI ISLEM DAMGALARI (30 Eyl, Cihan: "B ve S'ler yerine profil resmi, ustune basinca
   detay, kucuk bir popup ama cok kaliteli"). Bilesen app/src/app/IslemDamgalari.tsx; web
   (app.css) ve telefon (m.css) ayni blogu tasir. Damga: islem fiyatinda nokta + sap + yuz;
   alis/long acilisi altta, satis/kapanis ustte. Kart: body'ye tasinir, damgayi izler. ── */
/* overflow clip (hidden degil): hidden katman kaydirilabilir bir kutu olur ve masaustunde damgaya
   basinca tarayici odaklanan dugmeyi gostermek icin katmani kaydiriyordu; tik iframe'e dusuyordu. */
.idm-katman { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; overflow: clip; }
.idm-damga {
  position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; margin: 0; border: 0; background: none;
  pointer-events: none; will-change: transform; -webkit-tap-highlight-color: transparent; outline: none;
  --c: var(--gain); --ring: var(--gain);
}
/* sitenin genel basinca-kucul kurali (button:active { scale: .97 }) konumu da olcekleyip damgayi
   kaydiriyordu (tik bosa dusuyordu): damga kendisi olceklenmez, basinca yalniz yuz sikisir. */
button.idm-damga, button.idm-damga:not(:disabled):active { scale: none; transition: none; }
.idm-damga:active .idm-yuz { scale: 0.9; }
.idm-damga.sat { --c: var(--danger); --ring: var(--danger); }
.idm-damga.karma { --c: #e9eaec; --ring: conic-gradient(from -90deg, var(--gain) 0 50%, var(--danger) 50% 100%); }
.idm-pin {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 1.5px var(--background), 0 0 10px var(--c);
}
.idm-sap { position: absolute; left: -0.5px; width: 1px; height: 8px; opacity: 0.85; }
.idm-damga.alt .idm-sap { top: 3px; background: linear-gradient(to bottom, var(--c), transparent); }
.idm-damga.ust .idm-sap { bottom: 3px; background: linear-gradient(to top, var(--c), transparent); }
.idm-yuz {
  position: absolute; left: -12px; width: 24px; height: 24px; box-sizing: border-box; padding: 2px; border-radius: 50%;
  background: var(--ring); pointer-events: auto; cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s cubic-bezier(.2, 1.4, .4, 1), scale 0.12s ease, box-shadow 0.2s ease;
  animation: idm-in 0.45s cubic-bezier(.2, 1.35, .4, 1) backwards;
}
.idm-damga.alt .idm-yuz { top: 10px; transform-origin: 50% -10px; }
.idm-damga.ust .idm-yuz { bottom: 10px; transform-origin: 50% calc(100% + 10px); }
.idm-yuz .idm-img {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  box-sizing: border-box; border-radius: 50%; border: 1.5px solid #15121a; object-fit: cover;
  background: #25212c; font-size: 11px; line-height: 1; overflow: hidden;
}
.idm-yuz .idm-bos { background: radial-gradient(circle at 50% 38%, #3a3f46 0 28%, transparent 29%), radial-gradient(circle at 50% 110%, #3a3f46 0 45%, #25212c 46%); }
@media (hover: hover) {
  .idm-damga:hover { z-index: 2; }
  .idm-damga:hover .idm-yuz { transform: scale(1.16); }
}
.idm-damga.on { z-index: 3; }
.idm-damga.on .idm-yuz { transform: scale(1.2); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.7); }
.idm-damga.on .idm-yuz::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid var(--c);
  animation: idm-hale 1.6s ease-out infinite; pointer-events: none;
}
.idm-damga.karma.on .idm-yuz::before { border-color: rgba(255, 255, 255, 0.7); }
.idm-adet {
  position: absolute; left: 5px; min-width: 15px; height: 15px; padding: 0 4px; box-sizing: border-box; border-radius: 14px;
  font: 800 9px/15px var(--sans, inherit); font-variant-numeric: tabular-nums; text-align: center; color: #15121a;
  background: #fff; box-shadow: 0 0 0 1.5px #15121a, 0 2px 6px rgba(0, 0, 0, 0.5); pointer-events: none;
  animation: idm-in 0.45s 0.08s cubic-bezier(.2, 1.35, .4, 1) backwards;
}
.idm-damga.alt .idm-adet { top: 6px; }
.idm-damga.ust .idm-adet { bottom: 24px; }
/* daha once gorunmus islemin damgasi (yakinlasinca birlesip ayrilan) animasyonsuz yerine konur */
.idm-damga.gordu .idm-yuz, .idm-damga.gordu .idm-adet { animation: none; }
@keyframes idm-in { from { transform: scale(0.2); opacity: 0; } }
/* LEJANT ZEMINI (25 Eki, Cihan: "gmgn'dekinin aynisi"): TradingView'in yazi arkasi kutulari (GMGN'de de ayni). Balonlar
   iframe'in ustunde cizildigi icin kutunun arkasina gecemez; yalniz o kutularda kararir (maske katmanlari TVChart
   camMaskesi'nden gelir), yazi okunur kalir. Parcanin arkasindaki yuz tiklanmaz: lejant dugmeleri
   (goz, ayar) calisir. */
.tv-pane.camli .idm-katman {
  -webkit-mask-image: var(--cam-maske); mask-image: var(--cam-maske);
  -webkit-mask-size: var(--cam-boyut); mask-size: var(--cam-boyut);
  -webkit-mask-position: var(--cam-yer); mask-position: var(--cam-yer);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: var(--cam-birlesim-wk); mask-composite: var(--cam-birlesim);
}
.idm-damga.camda .idm-yuz { pointer-events: none; }
@keyframes idm-hale { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }

/* KART */
.idm-kart {
  position: fixed; left: 0; top: 0; z-index: 10050; width: 268px; max-width: calc(100vw - 20px);
  pointer-events: auto; font-family: var(--sans, inherit); color: #f2f3f5; --ok-x: 50%;
  --c: var(--gain); --c-soft: rgba(43, 214, 123, 0.16);
}
.idm-kart.sat { --c: var(--danger); --c-soft: rgba(255, 77, 109, 0.16); }
.idm-kart.karma { --c: #e9eaec; --c-soft: rgba(255, 255, 255, 0.08); }
.idm-ic {
  position: relative; overflow: hidden; border-radius: 12px; padding: 12px 12px 8px;
  display: flex; flex-direction: column; max-height: var(--idm-max, 70vh); box-sizing: border-box;
  background: linear-gradient(180deg, rgba(30, 32, 37, 0.96) 0%, rgba(15, 16, 19, 0.97) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.7), 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  transform-origin: var(--ok-x) calc(100% + 8px);
  animation: idm-kart-in 0.32s cubic-bezier(.16, 1.2, .3, 1) both;
}
.idm-kart[data-yer="alt"] .idm-ic { transform-origin: var(--ok-x) -8px; }
/* ok: kartin damgaya bakan kenarinda */
.idm-kart::after {
  content: ""; position: absolute; left: var(--ok-x); width: 12px; height: 12px; margin-left: -6px;
  background: rgb(16, 17, 20); transform: rotate(45deg); border-radius: 2px;
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.06); animation: idm-ok-in 0.32s cubic-bezier(.16, 1.2, .3, 1) both;
}
.idm-kart[data-yer="ust"]::after { bottom: -5px; }
.idm-kart[data-yer="alt"]::after { top: -5px; background: rgb(30, 32, 37); box-shadow: -1px -1px 0 rgba(255, 255, 255, 0.08); }
.idm-isik {
  position: absolute; inset: 0 0 auto 0; height: 110px; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, var(--c-soft), transparent 62%);
}
.idm-isik::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: 0.55;
  animation: idm-tarama 0.9s 0.1s cubic-bezier(.3, .7, .2, 1) both;
}
.idm-bas { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.idm-bas-yuz {
  flex: 0 0 auto; width: 36px; height: 36px; box-sizing: border-box; padding: 2px; border-radius: 50%;
  background: var(--gain); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.idm-bas-yuz.sat { background: var(--danger); }
.idm-bas-yuz.karma { background: conic-gradient(from -90deg, var(--gain) 0 50%, var(--danger) 50% 100%); }
.idm-bas-yuz .idm-img {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing: border-box;
  border-radius: 50%; border: 2px solid #111215; object-fit: cover; background: #25212c; font-size: 15px; overflow: hidden;
}
.idm-bas-ad { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.idm-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 7px;
  border-radius: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
  color: var(--gain); background: rgba(43, 214, 123, 0.13); box-shadow: inset 0 0 0 1px rgba(43, 214, 123, 0.28);
}
.idm-pill.sat { color: var(--danger); background: rgba(255, 77, 109, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.3); }
.idm-coklu { font-size: 14px; font-weight: 700; }
.idm-bas-ad small { font-size: 11px; color: rgba(235, 237, 240, 0.5); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idm-bas-ad small i { font-style: normal; margin: 0 5px; opacity: 0.6; }
.idm-x {
  flex: 0 0 auto; align-self: flex-start; display: grid; place-items: center; width: 26px; height: 26px; margin: -2px -2px 0 0;
  border: 0; border-radius: 50%; padding: 0; cursor: pointer; color: rgba(235, 237, 240, 0.55);
  background: rgba(255, 255, 255, 0.06); transition: background 0.15s, color 0.15s;
}
.idm-x:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.idm-hero {
  position: relative; display: flex; flex-direction: column; gap: 2px; margin: 12px 0 6px; padding: 10px 12px;
  border-radius: 8px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.idm-hero span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(235, 237, 240, 0.45); }
.idm-hero b {
  font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  animation: idm-rakam 0.5s 0.06s cubic-bezier(.2, 1, .3, 1) both;
}
.idm-hero.pos b { color: var(--gain); text-shadow: 0 0 22px rgba(43, 214, 123, 0.35); }
.idm-hero.neg b { color: var(--danger); text-shadow: 0 0 22px rgba(255, 77, 109, 0.35); }
.idm-rows { margin: 0; padding: 0 2px; }
.idm-rows > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0;
  font-size: 12.5px; border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: idm-satir-in 0.36s cubic-bezier(.2, 1, .3, 1) both;
}
.idm-rows > div:first-child { border-top: 0; }
.idm-rows > div:nth-child(2) { animation-delay: 0.03s; }
.idm-rows > div:nth-child(3) { animation-delay: 0.06s; }
.idm-rows > div:nth-child(4) { animation-delay: 0.09s; }
.idm-rows > div:nth-child(5) { animation-delay: 0.12s; }
.idm-rows dt { color: rgba(235, 237, 240, 0.5); font-weight: 500; }
.idm-rows dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.idm-rows dd small { margin-left: 6px; font-size: 11px; font-weight: 500; color: rgba(235, 237, 240, 0.45); }
.idm-rows .kim dd { padding: 1px 8px; border-radius: 14px; font-size: 11.5px; background: rgba(255, 255, 255, 0.07); }
.idm-rows .kim.agent dd { color: var(--accent); background: rgba(255, 106, 0, 0.1); }
.idm-rows .kim.liq dd { color: var(--danger); background: rgba(255, 77, 109, 0.12); }
.idm-liste { list-style: none; margin: 10px -4px 0; padding: 0; max-height: 300px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.idm-liste::-webkit-scrollbar { display: none; }
.idm-liste li { border-radius: 8px; transition: background 0.15s; animation: idm-satir-in 0.36s cubic-bezier(.2, 1, .3, 1) both; }
.idm-liste li + li { margin-top: 2px; }
.idm-liste li.acik { background: rgba(255, 255, 255, 0.04); }
.idm-satir {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border: 0; border-radius: 8px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
@media (hover: hover) { .idm-satir:hover { background: rgba(255, 255, 255, 0.05); } }
.idm-nokta { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--gain); box-shadow: 0 0 8px rgba(43, 214, 123, 0.6); }
.idm-nokta.sat { background: var(--danger); box-shadow: 0 0 8px rgba(255, 77, 109, 0.6); }
.idm-satir-ad { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.idm-satir-ad b { font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.idm-satir-ad small { font-size: 10.5px; color: rgba(235, 237, 240, 0.45); font-variant-numeric: tabular-nums; }
.idm-satir-deger { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.idm-satir-deger.pos { color: var(--gain); }
.idm-satir-deger.neg { color: var(--danger); }
.idm-ok { flex: 0 0 auto; color: rgba(235, 237, 240, 0.4); transition: transform 0.2s; }
.idm-liste li.acik .idm-ok { transform: rotate(180deg); }
.idm-satir-ic { padding: 0 8px 4px 25px; }
@keyframes idm-kart-in { from { opacity: 0; transform: translateY(6px) scale(0.9); filter: blur(3px); } }
@keyframes idm-ok-in { from { opacity: 0; } }
@keyframes idm-tarama { from { transform: scaleX(0); opacity: 0; } }
@keyframes idm-rakam { from { opacity: 0; transform: translateY(6px); letter-spacing: 0.06em; } }
@keyframes idm-satir-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .idm-yuz, .idm-adet, .idm-ic, .idm-kart::after, .idm-isik::before, .idm-hero b, .idm-rows > div, .idm-liste li { animation: none; }
  .idm-damga.on .idm-yuz::before { animation: none; opacity: 0; }
}

/* ── FOMO YORUMLARI GRAFIKTE (25 Eki, Cihan: "fomo yorumlarini chartin ustunde gorelim, ustune gelince yorum
   ciksin; bu kadar kalabalik olmasina gerek yok"). Bilesen app/src/app/YorumDamgalari.tsx; islem damgasinin
   kabugunu (.idm-damga, .idm-kart) kullanir. Halka notr (yorum islem degil), yuzun sag altinda Fomo isareti;
   kart: Fomo basligi + yorum listesi. Web (app.css) ve telefon (m.css) ayni blogu tasir. ── */
.idm-damga.yrm { --c: #e9eaec; --ring: linear-gradient(160deg, #f5f6f7, #8d9198); }
.yrm-rozet {
  position: absolute; left: 4px; bottom: 7px; width: 12px; height: 12px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px #15121a; pointer-events: none;
  animation: idm-in 0.45s 0.05s cubic-bezier(.2, 1.35, .4, 1) backwards;
}
.idm-damga.yrm.gordu .yrm-rozet { animation: none; }
.idm-damga.yrm.manifesto { --c: #f2c94c; --ring: linear-gradient(160deg, #ffe48a, #c08a1e); }
.yrm-man { font-style: normal; padding: 1px 6px; border-radius: 14px; font-size: 10px; font-weight: 800; color: #f2c94c; background: rgba(242, 201, 76, 0.12); }
.idm-damga.alt .yrm-rozet { bottom: auto; top: 25px; }
/* 25 Eki (Cihan: "beyaz yuvarlaktaki sayilari kaldir, isaretledigi nokta ve cizgiyi kaldir, gerek yok; chartin hemen
   ustune degil bir tik yukarisina"): butun damgalarda (Your trades, YoBro traders, Fomo, GMGN) fiyat noktasi, sap ve
   kume sayisi yok; yuz her zaman fiyatin 10 px ustunde (alis da). Kart ve kumeleme aynen. */
.idm-pin, .idm-sap, .idm-adet { display: none; }
.idm-damga.alt .idm-yuz, .idm-damga.ust .idm-yuz { top: auto; bottom: 10px; transform-origin: 50% calc(100% + 10px); }
.idm-damga.alt .yrm-rozet, .idm-damga.ust .yrm-rozet { top: auto; bottom: 7px; }
/* 25 Eki aksam (Cihan: "profil resimlerinin cevresindeki beyazlik cok kalin, inceltelim"): damga ve yorum halkasi
   2 px -> 1 px, ic koyu kenar 1,5 -> 1 px. */
.idm-yuz { padding: 1px; }
.idm-yuz .idm-img { border-width: 1px; }
.yrm-yuz { padding: 1px; }
.yrm-yuz .idm-img { border-width: 1.5px; }
.idm-kart.yrm { --c: #e9eaec; --c-soft: rgba(255, 255, 255, 0.07); }
.yrm-ust { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: rgba(235, 237, 240, 0.7); }
.yrm-ust span { flex: 1 1 auto; min-width: 0; }
.yrm-logo { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.yrm-ust .idm-x { margin: -4px -4px 0 0; }
.yrm-liste { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 6px -12px 0; padding: 0 12px 4px; }
.yrm-yorum { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); animation: idm-satir-in 0.36s cubic-bezier(.2, 1, .3, 1) both; }
.yrm-yorum:first-child { border-top: 0; padding-top: 4px; }
.yrm-bas { display: flex; align-items: center; gap: 9px; }
.yrm-yuz { flex: 0 0 auto; width: 32px; height: 32px; box-sizing: border-box; padding: 1.5px; border-radius: 50%; background: linear-gradient(160deg, #f5f6f7, #8d9198); }
.yrm-yuz .idm-img {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing: border-box;
  border-radius: 50%; border: 2px solid #111215; object-fit: cover; background: #25212c; overflow: hidden;
  font-size: 13px; font-weight: 800; color: #e9eaec;
}
.idm-damga.yrm .idm-yuz .idm-img { font-weight: 800; color: #e9eaec; }
.yrm-ad { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yrm-ad b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yrm-ad small { font-size: 11px; color: rgba(235, 237, 240, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yrm-ad small i { font-style: normal; margin: 0 5px; opacity: 0.6; }
.yrm-dev { font-style: normal; padding: 1px 6px; border-radius: 14px; font-size: 10px; font-weight: 800; color: var(--accent); background: rgba(255, 106, 0, 0.1); }
.yrm-metin { margin: 8px 0 0; font-size: 13.5px; line-height: 1.42; color: #f2f3f5; white-space: pre-wrap; overflow-wrap: anywhere; }
.yrm-alt { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(235, 237, 240, 0.5); }
.yrm-alt b { color: #f2f3f5; font-weight: 700; }
.yrm-alt .pos { color: var(--gain); font-weight: 700; }
.yrm-alt .neg { color: var(--danger); font-weight: 700; }
.yrm-begeni { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .yrm-rozet, .yrm-yorum { animation: none; } }

/* ── TERS ÇEVİR (30 Eyl, Cihan: "Add margin'in yanına reverse"). Onay penceresinde eski yön ->
   yeni yön: eski çip söner, yeni çip nabız gibi parlar, oklar gidip gelir. app/src/app/Reverse.tsx ── */
.rv-flip {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0;
  padding: 16px 12px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--border) inset;
}
.rv-side {
  display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 10px;
  font-size: 14.5px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.rv-side.long { color: var(--gain); background: rgba(43, 214, 123, 0.12); box-shadow: inset 0 0 0 1px rgba(43, 214, 123, 0.3); }
.rv-side.short { color: var(--danger); background: rgba(255, 77, 109, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.32); }
.rv-side.eski { opacity: 0.5; scale: 0.94; }
.rv-side.yeni { animation: rv-yeni 2s ease-in-out infinite; }
.rv-side.yeni.long { --rv-c: rgba(43, 214, 123, 0.35); }
.rv-side.yeni.short { --rv-c: rgba(255, 77, 109, 0.38); }
.rv-ok { display: grid; place-items: center; }
.rv-ok svg { display: block; overflow: visible; }
.rv-ok path { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rv-ok .u { stroke: var(--foreground); animation: rv-sag 2s ease-in-out infinite; }
.rv-ok .a { stroke: var(--muted-2, #76707c); animation: rv-sol 2s ease-in-out infinite; }
@keyframes rv-yeni { 0%, 100% { box-shadow: inset 0 0 0 1px var(--rv-c), 0 0 0 0 transparent; } 50% { box-shadow: inset 0 0 0 1px var(--rv-c), 0 0 18px 2px var(--rv-c); } }
@keyframes rv-sag { 0%, 100% { transform: translateX(-1.5px); } 50% { transform: translateX(2px); } }
@keyframes rv-sol { 0%, 100% { transform: translateX(1.5px); } 50% { transform: translateX(-2px); } }
@media (prefers-reduced-motion: reduce) { .rv-side.yeni, .rv-ok .u, .rv-ok .a { animation: none; } }
/* pozisyon kartinda uc dugme: Add margin | Reverse | Close position */
.pp2-actions.uc { grid-template-columns: 1fr 1fr 1fr; }
.pp2-btn.rev {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04); color: var(--foreground);
}
.pp2-btn.rev:hover:not(:disabled) { background: rgba(255, 255, 255, 0.09); border-color: #3b4047; transform: translateY(-1px); }
.pp2-btn.rev svg { transition: transform 0.4s cubic-bezier(.2, 1.3, .4, 1); }
.pp2-btn.rev:hover:not(:disabled) svg { transform: rotate(180deg); }

/* ── HOLDERS: 100 SATIR + HARITADA HER KUTUDA YUZDE (30 Eyl, Cihan) ──
   Kisaltma satiri listenin sonunda tek dugme; haritada yazi kutunun boyuna gore
   kuculur (kap birimi), kucuk kutuda ortalanir. */
.hd-kisalt td { padding: 12px 0; }
.hd-kisalt-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: 600 12.5px var(--sans); cursor: pointer; }
.hd-kisalt-btn:hover { border-color: var(--border-strong); color: var(--foreground); }
.hd-blok { container-type: size; }
.hd-blok b { font-size: clamp(9px, min(20cqw, 36cqh), 14px); line-height: 1.1; white-space: nowrap; }
.hd-blok.kucuk { padding: 4px 6px; }

/* ── PROFIL KIMLIK KARTI (30 Eyl + 1 Eki, Cihan: "profilin ustu asiri daginik"; "bu kisim cok gereksiz
   uzun ve simetrik degil") ── ProfileHead.tsx: kendi profilin ve baskasinin sayfasi ayni kart.
   Tek eksen: kapak ust bolumun tamaminda arka plan; solda yuz + ad + etiketler, sagda dugmeler, ucu
   ayni yatay cizgide ortalanir. Altta dort hucreli sayi seridi. Eski halin (~400 px) yarisi boyunda.
   `.ac section` padding/border'i ezdigi icin secici section.ph. */
section.ph { position: relative; margin: 12px 0 0; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 40px 80px -50px rgba(0,0,0,.9); overflow: hidden; isolation: isolate; container-type: inline-size; }
/* 9 Kas (Cihan: "sol taraf sorunlu"): bio dugmelerle ayni satirda 230 px'e sikisip 5 satira iniyordu. Artik iki satir:
   ustte ad + bio sag kenara kadar genis, altta dugmeler saga yasli; yuz iki satirin ortasinda. Sag dolgu 14 px:
   Follow'un sag boslugu Paylas'inkiyle (14 px + cerceve) esit. */
.ph-head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 22px; row-gap: 12px; padding: 50px 14px 50px 26px; }
/* 9 Kas (Cihan: "yazi ve profil resminin ustundeki bosluk ile altindaki bosluk esit olsun"): yuz + yazi blogu kartin
   dikey ortasinda (ust = alt = 50 px); dugmeler akistan cikti, sag alt kosede (Paylas'in sag ust kosesinin aynasi, 14 px).
   Alt dolgu 50 px = dugme 32 + kose 14 + 4: dugmeler bio'nun son satirina hicbir zaman binmez. */
.ph-head:not(:has(.ph-acts)) { padding-top: 30px; padding-bottom: 30px; }
.ph .ph-cover.pf3-cover { position: absolute; inset: 0; z-index: 0; height: auto; margin: 0; border-radius: 0; box-shadow: none; }
/* kapak canli kalir; ad tarafi (sol) ve alt kenar koyulasir ki yazi her kapakta okunsun */
.ph-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(90deg, rgba(12,13,15,.74) 0%, rgba(12,13,15,.46) 30%, rgba(12,13,15,.12) 62%, rgba(12,13,15,0) 100%),
  linear-gradient(180deg, rgba(12,13,15,0) 45%, rgba(12,13,15,.5) 100%); }
.ph-face, .ph-id, .ph-acts { position: relative; z-index: 2; }

.ph-face { grid-column: 1; grid-row: 1; align-self: center; flex: 0 0 auto; display: grid; place-items: center; width: 84px; height: 84px; padding: 5px; border: 0; border-radius: 10px; background: conic-gradient(from 200deg, rgba(255,255,255,.5), rgba(255,255,255,.1), rgba(255,255,255,.5)); box-shadow: 0 18px 44px -16px rgba(0,0,0,.9); }
@property --ph-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ph-mine .ph-face { background: conic-gradient(from var(--ph-a), var(--accent), #5ee7ff, #a58bff, #ff5fa2, var(--accent)); box-shadow: 0 16px 50px -14px rgba(255,106,0,.45); }
.ph-mine .ph-face::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; filter: blur(14px); opacity: .45; z-index: -1; }
.ph-gold .ph-face { background: conic-gradient(from 0deg, #ffe08a, #d9a125, #fff1c2, #b97c12, #ffe08a); }
.ph-yobroteam .ph-face { background: conic-gradient(from 0deg, #ffa86a, #ad4800, #ffe4d0, #d65900, #ffa86a); }
@media (prefers-reduced-motion: no-preference) { .ph-mine .ph-face, .ph-mine .ph-face::before { animation: ph-ring 9s linear infinite; } }
@keyframes ph-ring { to { --ph-a: 360deg; } }
.ph-face.clickable { cursor: pointer; }
.ph-face.clickable::after { content: ""; position: absolute; inset: 7px; border-radius: 10px; background: rgba(13, 11, 16,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / 22px no-repeat; opacity: 0; transition: opacity .18s ease; }
.ph-face.clickable:hover::after, .ph-face.clickable:focus-visible::after { opacity: 1; }
.ph-facein { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 10px; overflow: hidden; object-fit: cover; background: var(--surface-3); box-shadow: 0 0 0 3px var(--surface); font-size: 38px; line-height: 1; }
img.ph-facein { display: block; }

.ph-id { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding-right: 40px; } /* sag ustteki Paylas'in altina girmesin */
.ph-name { display: flex; align-items: center; gap: 7px; max-width: 100%; margin: 0; min-width: 0; font: 800 20px/1.1 var(--sans); letter-spacing: -.025em; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.ph-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-noname { color: var(--muted); }
.ph-pen { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; margin-left: 2px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(10,11,13,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--muted); cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease; }
.ph-pen:hover { color: #fff; background: rgba(10,11,13,.7); border-color: rgba(255,255,255,.26); transform: rotate(-8deg); }
.ph-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ph-tags:empty { display: none; }
.ph-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(10,11,13,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--muted); font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; }
button.ph-tag { cursor: pointer; transition: color .15s ease, border-color .15s ease; }
button.ph-tag:hover { color: var(--foreground); border-color: rgba(255,255,255,.24); }
.ph-tag.done { color: var(--gain); border-color: rgba(43,214,123,.4); }
.ph-tag.fy { color: var(--accent); border-color: rgba(255,106,0,.3); background: rgba(22,28,4,.6); }
.ph-tag.rank { color: var(--gold); border-color: rgba(251,191,36,.38); background: rgba(34,24,4,.6); font-weight: 700; }
.ph-id .pf3-activate { height: 26px; }
/* 23 Eki (Selcuk, Bilibili profili): bio iki satirda "..." ile kesiliyordu; sunucu zaten 160 karakterle
   sinirli (BIO_MAX), telefondaki gibi tamami gorunur, uzun kelime/link satiri tasirmaz. */
.ph-bio { margin: 0; max-width: 56ch; color: rgba(255,255,255,.72); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }

/* 8 Kas (Cihan: "ortada bos bos duruyorlar, cizginin biraz ustune"): dugmeler kapagin altina oturur,
   alt seridin cizgisinden ~16 px yukarida (kapak dolgusu 28 px, -12 px ile yaklasir). */
.ph-acts { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
/* Paylas: kapagin sag ust kosesi, alt dugmelerden kucuk ve sakin (8 Kas, Cihan) */
.ph .ph-btn.ph-sharetop { position: absolute; top: 14px; right: 14px; z-index: 3; width: 28px; height: 28px; border-radius: 6px; }
.ph .ph-btn.ph-sharetop svg { width: 13px; height: 13px; }
/* 9 Kas (Cihan: "yazi cok buyuk ... butonlari da biraz kucultelim"): ad 23 px, bio 13 px, alttaki dugmeler 36 px, Paylas 32 px;
   yuz yalniz ad + bio satirinin ortasina hizali (kendi profilinde alt satir bos kalinca yuz yazinin altina kayiyordu). */
.ph-name > svg.rz { width: 15px; height: 15px; }
.ph-acts .ph-btn { height: 32px; padding: 0 12px 0 10px; border-radius: 8px; font-size: 12.5px; gap: 6px; }
.ph-acts .ph-btn.icon { width: 32px; padding: 0; }
.ph-acts .ph-btn svg { width: 14px; height: 14px; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px 0 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(10,11,13,.55); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: var(--foreground); font: 700 14px var(--sans); letter-spacing: -.005em; cursor: pointer; box-shadow: none; white-space: nowrap; transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s cubic-bezier(.3,1.5,.5,1); }
.ph-btn svg { flex: 0 0 auto; color: rgba(255,255,255,.72); transition: color .18s ease, transform .3s cubic-bezier(.2,1.4,.4,1); }
.ph-btn.icon { width: 42px; padding: 0; }
.ph-btn:hover:not(:disabled) { background: rgba(22,24,28,.78); border-color: rgba(255,255,255,.26); transform: translateY(-1px); }
.ph-btn:hover:not(:disabled) svg { color: var(--foreground); }
button.ph-btn:not(:disabled):active { scale: none; transform: translateY(0) scale(.97); }
.ph-btn:disabled { opacity: .45; cursor: default; }
.ph-btn.lime { background: var(--accent); border-color: var(--accent); color: #06030a; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 10px 30px -12px rgba(255,106,0,.75), inset 0 1px 0 rgba(255,255,255,.45); }
.ph-btn.lime svg { color: #06030a; }
.ph-btn.lime:hover:not(:disabled) { background: #ff9447; border-color: #ff9447; box-shadow: 0 14px 36px -12px rgba(255,106,0,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.ph-btn.lime:hover:not(:disabled) svg { color: #06030a; }
.ph-btn.send:hover:not(:disabled) svg { transform: translate(2px, -2px); }
.ph-followwrap { position: relative; display: inline-flex; }
.ph-follow { min-width: 100px; }
.ph-follow .ph-foff { display: none; }
.ph-follow.on { color: var(--foreground); }
.ph-follow.on svg { color: var(--accent); }
.ph-follow.on:hover:not(:disabled) { background: rgba(60,12,13,.72); border-color: rgba(255,77,109,.5); color: var(--danger); }
.ph-follow.on:hover:not(:disabled) svg { color: var(--danger); }
.ph-follow.on:hover:not(:disabled) .ph-fon { display: none; }
.ph-follow.on:hover:not(:disabled) .ph-foff { display: inline; }
.ph-follow.on .ph-fchk { stroke-dasharray: 12; animation: ph-chk .45s ease-out both; }
@keyframes ph-chk { from { stroke-dashoffset: 12; } to { stroke-dashoffset: 0; } }
/* para kapilari grubu (erisilebilir ad "Wallet actions", pf3-mbtn sinifi sinavda aranir) kartin duzenine uyar */
.ph-acts .pf3-money { display: flex; align-items: center; gap: 8px; margin: 0; align-self: auto; }

.ph-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); background: var(--surface); }
.ph-stat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding: 15px 26px 16px; border: 0; background: none; color: var(--foreground); font: inherit; text-align: left; }
.ph-stat + .ph-stat::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--border); }
.ph-stat b { font: 800 20px/1 var(--sans); letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .15s ease; }
.ph-stat span { font: 500 12.5px/1 var(--sans); color: var(--muted-2); }
.ph-stat.link { cursor: pointer; transition: background .15s ease; }
.ph-stat.link:hover { background: rgba(255,255,255,.03); }
.ph-stat.link:hover b { color: var(--accent); }
button.ph-stat:not(:disabled):active { scale: none; }
/* dar orta sutunda (kucuk dizustu) ikincil dugmeler yalniz simge, yuz kuculur */
@container (max-width: 700px) {
  .ph-acts .ph-btn:not(.lime):not(.ph-follow):not(.icon) { width: 32px; padding: 0; }
  .ph-acts .ph-btn:not(.lime):not(.ph-follow):not(.icon) > span { display: none; }
  .ph-head { column-gap: 18px; padding-left: 22px; }
  .ph-face { width: 76px; height: 76px; }
  .ph-facein { font-size: 34px; }
  .ph-name { font-size: 19px; }
  .ph-stat { padding: 14px 18px 15px; }
  .ph-stat b { font-size: 18px; }
}
@container (max-width: 520px) {
  .ph-head, .ph-head:not(:has(.ph-acts)) { row-gap: 14px; padding-top: 24px; padding-bottom: 18px; }
  .ph-acts { position: static; grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: flex-start; }
}

/* sol sutun basligi (baskasinin sayfasi): oku ile Leaderboard'a donus */
.td-backhead { align-items: center; padding: 10px 14px 2px 8px; }
.td-backbtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; margin: 0; padding: 0 12px 0 8px; border: 0; border-radius: 8px; background: none; color: var(--foreground); font: inherit; cursor: pointer; transition: background .15s ease; }
.td-backbtn svg { color: var(--muted); transition: transform .2s ease, color .2s ease; }
.td-backbtn:hover { background: var(--surface-2); }
.td-backbtn:hover svg { color: var(--foreground); transform: translateX(-2px); }

/* ── BASKASININ PROFILI, TAM SAYFA (30 Eyl): donem sirasi seridi ── */
.tp-ranks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tp-rank { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 16px 15px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); box-shadow: none; }
.tp-rank.off { background: transparent; }
.tp-rankh { font: 600 12px/1 var(--sans); color: var(--muted-2); }
.tp-ranknet { font: 800 20px/1 var(--sans); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.tp-ranknet.pos { color: var(--gain); } .tp-ranknet.neg { color: var(--danger); }
.tp-rankbar { display: block; height: 4px; border-radius: 14px; background: var(--surface-3); overflow: hidden; }
.tp-rankbar i { display: block; height: 100%; border-radius: inherit; background: var(--muted-2); }
.tp-rankbar i.pos { background: var(--gain); } .tp-rankbar i.neg { background: var(--danger); }
.tp-ranksub { font: 500 12.5px/1.2 var(--sans); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-ranksub em { font-style: normal; font-weight: 800; color: var(--foreground); }
.tp-ranknone { font-size: 12.5px; color: var(--muted-2); padding: 6px 0 2px; }
.tp-static { cursor: default; }
@media (max-width: 1180px) { .tp-ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* GRAFIK AYARLARI (1 Eki, Cihan: "chart ayarlari; buy/sell ve isaretleri kapatip acabilsin").
   GrafikAyar.tsx: cark grafik alt satirinda, pencere govdede (TV cubugu tasani keser).
   Ayni kurallar telefonda m.css'te. */
.gy-btn { position: relative; }
/* DISPLAY PENCERESI (25 Eki, Cihan: "GMGN'deki gibi bir popup; onlarinki cok karisik, bizimki sade"): masaustu
   TradingView basliginda "Display" dugmesi; Markers (Your trades, YoBro traders, Fomo comments, All) ve Chart
   (Buys & sells, Alerts) onay kutulu izgara. Telefon ayni ayarlari grafik ayarlarinda gy-row satirlariyla tasir. */
.tv-pill.gy-metin { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 0 10px; font: 600 13px var(--sans); }
.gy-metin .gy-ok { transition: transform 0.18s ease; }
.gy-btn.on .gy-ok { transform: rotate(180deg); }
.gy-metin .gy-dot { top: 4px; right: 2px; }
.gy-pop.gy-gorunum { width: min(360px, calc(100vw - 24px)); padding: 12px 12px 10px; }
.gy-bolum { padding: 4px 6px 6px; font: 700 13px var(--sans); color: var(--foreground); }
.gy-kutular + .gy-bolum { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.gy-kutular { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.gy-kutu {
  display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 8px; border: 0; border-radius: 8px;
  background: none; color: var(--foreground); font: 500 13.5px var(--sans); text-align: left; cursor: pointer; transition: background 0.15s ease;
}
.gy-kutu:hover { background: var(--surface-2); }
.gy-tik {
  flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; box-sizing: border-box; border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px var(--border-strong); color: #15121a; transition: background 0.15s ease, box-shadow 0.15s ease;
}
.gy-tik svg { opacity: 0; transform: scale(0.6); transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.gy-tik.on { background: var(--foreground); box-shadow: none; }
.gy-tik.on svg { opacity: 1; transform: none; }
.gy-dot { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 14px; background: var(--accent); box-shadow: 0 0 0 2px var(--background); }
.gy-scrim { position: fixed; inset: 0; z-index: 90; padding: 0; border: 0; background: none; cursor: default; }
.gy-pop {
  position: fixed; z-index: 91; width: min(300px, calc(100vw - 24px)); box-sizing: border-box;
  padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
  animation: gy-in 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes gy-in { from { opacity: 0; transform: translateY(4px) scale(0.98); } to { opacity: 1; transform: none; } }
.gy-title { padding: 2px 4px 8px; font: 600 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.gy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  padding: 10px 8px; border: 0; border-radius: 8px; background: none; color: var(--foreground);
  text-align: left; cursor: pointer; transition: background 0.15s ease;
}
.gy-row + .gy-row { margin-top: 2px; }
.gy-row:hover { background: var(--surface-2); }
button.gy-row:not(:disabled):active { scale: none; }
.gy-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gy-txt b { font: 600 13.5px var(--sans); }
.gy-txt small { font: 500 11.5px var(--sans); color: var(--muted-2); line-height: 1.35; }
.gy-sw { position: relative; flex: 0 0 auto; width: 36px; height: 21px; border-radius: 14px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); transition: background 0.2s ease, box-shadow 0.2s ease; }
.gy-sw i { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 14px; background: var(--muted-2); transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease; }
.gy-sw.on { background: var(--accent); box-shadow: none; }
.gy-sw.on i { transform: translateX(15px); background: #15121a; }
@media (prefers-reduced-motion: reduce) { .gy-pop { animation: none; } .gy-sw i { transition: none; } }
/* ALTTAN ACILAN GRAFIK AYARLARI (14 Eki, Cihan: "popup alttan fiyakali bir sekilde acilsin") +
   Price / Market cap secimi (GrafikAyar.tsx alttan, olcek). */
.gy-scrim.gy-alt { z-index: 300; background: rgba(13, 11, 16, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: gy-karar 220ms ease both; }
.gy-scrim.gy-alt.cik { animation: gy-ac 220ms ease both; }
.gy-pop.gy-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 301; width: auto; max-width: 560px; margin: 0 auto;
  padding: 8px 14px calc(env(safe-area-inset-bottom, 0px) + 18px); border-radius: 14px 14px 0 0;
  border: 0; border-top: 1px solid var(--border-strong); background: var(--surface);
  box-shadow: 0 -24px 60px -12px rgba(0, 0, 0, 0.8);
  animation: gy-yukari 420ms cubic-bezier(0.32, 1.25, 0.5, 1) both;
}
.gy-pop.gy-sheet.cik { animation: gy-asagi 220ms cubic-bezier(0.4, 0, 1, 1) both; }
.gy-grab { display: block; width: 38px; height: 5px; margin: 0 auto 12px; border-radius: 14px; background: var(--surface-4, #33373d); }
.gy-sheet .gy-title { padding: 0 6px 12px; }
@keyframes gy-yukari { from { transform: translateY(100%); } to { transform: none; } }
@keyframes gy-asagi { from { transform: none; } to { transform: translateY(100%); } }
@keyframes gy-karar { from { opacity: 0; } to { opacity: 1; } }
@keyframes gy-ac { from { opacity: 1; } to { opacity: 0; } }
.gy-olcek { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 8px; padding: 4px; border-radius: 10px; background: var(--surface-2); }
.gy-olcek button { height: 38px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.gy-olcek button.on { background: var(--surface-4, #33373d); color: var(--foreground); }
/* 11 Kas: dis yorum esigi (GrafikAyar EsikSecici), dort secenek */
.gy-olcek.gy-esik { grid-template-columns: repeat(4, 1fr); }
.gy-olcek.gy-esik button { font-size: 13px; }
.gy-gorunum .gy-olcek.gy-esik { margin: 0 0 4px; border-radius: 8px; }
.gy-gorunum .gy-olcek.gy-esik button { height: 32px; border-radius: 6px; }
.gy-esik-baslik { padding-top: 10px; }
@media (prefers-reduced-motion: reduce) { .gy-pop.gy-sheet, .gy-pop.gy-sheet.cik, .gy-scrim.gy-alt { animation: none; } }

/* MAX SLIPPAGE AYARI (14 Eki; KaymaAyari.tsx). Bilet satirina dokununca acilan kucuk pencere:
   hazir secenekler ve elle deger. Telefon esi m.css'te. */
.ky-trig { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
button.ky-trig:not(:disabled):active { scale: none; }
.ky-trig .ky-ikon { color: var(--muted-2); transition: color 0.15s ease; }
.ky-trig:hover .ky-ikon, .ky-trig.on .ky-ikon, .ky-trig:focus-visible .ky-ikon { color: var(--accent); }
.ky-trig:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.ky-scrim { position: fixed; inset: 0; z-index: 90; padding: 0; border: 0; background: none; cursor: default; }
.ky-pop {
  position: fixed; z-index: 91; width: min(300px, calc(100vw - 24px)); box-sizing: border-box;
  padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
  animation: gy-in 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ky-title { padding: 2px 4px 10px; font: 600 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.ky-hazir { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ky-chip { height: 34px; padding: 0; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--foreground); font: 600 13px var(--sans); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.ky-chip:hover { background: var(--surface-3); }
.ky-chip.on, .ky-chip.on:hover { background: var(--accent); color: #15121a; }
.ky-elle { display: flex; align-items: center; gap: 8px; margin-top: 8px; height: 38px; padding: 0 12px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px transparent; cursor: text; transition: box-shadow 0.15s ease; }
.ky-elle:focus-within { box-shadow: inset 0 0 0 1px var(--border-strong); }
.ky-elle.on { box-shadow: inset 0 0 0 1px var(--accent); }
.ky-elle.hata { box-shadow: inset 0 0 0 1px var(--danger); }
.ky-elle span { font: 500 12.5px var(--sans); color: var(--muted); }
.ky-elle input { flex: 1 1 auto; min-width: 0; padding: 0; border: 0; background: none; outline: none; color: var(--foreground); font: 600 13.5px var(--sans); text-align: right; }
.ky-elle input::placeholder { color: var(--muted-2); }
.ky-elle i { font: 600 13px var(--sans); font-style: normal; color: var(--muted); }
.ky-not { margin: 10px 4px 0; font: 500 11.5px var(--sans); line-height: 1.4; color: var(--muted-2); }
.ky-not.hata { color: var(--danger); }
.ky-not.bilgi { margin-top: 6px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ky-pop { animation: none; } }

/* BILDIRIM PENCERESI IKI BOLUM (13 Eki, Cihan; telefonla ayni): baslikta iki sekme
   (Notifications / Alerts); Alerts satirinda sagda silme. */
.bld-tabs { flex: 1 1 auto; display: flex; align-items: center; gap: 4px; min-width: 0; }
.bld-tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted-2); font: 800 15px var(--sans); cursor: pointer; transition: color .12s ease, background .12s ease; }
.bld-tab:hover { color: var(--foreground); }
.bld-tab.on { color: var(--foreground); background: var(--surface-2); }
.bld-tab i { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 14px; background: var(--surface-3); color: var(--muted); font: 700 11px var(--sans); font-style: normal; }
.bld-tab.on i { background: var(--accent); color: #000; }
.bld-row.bld-alrow { align-items: center; cursor: default; }
.bld-row.bld-alrow.busy { opacity: .45; }
.bld-row.bld-alrow.duz { cursor: pointer; }
.bld-alrow .bld-txt em { font-style: normal; font-weight: 700; font-size: inherit; }
.bld-alrow .bld-txt em.up { color: var(--gain); }
.bld-alrow .bld-txt em.down { color: var(--danger); }
.bld-alx { flex: 0 0 auto; background: none; }
.bld-alx:disabled { cursor: default; }

/* GRAFIKTEN FIYAT ALARMI (12 Eki, Cihan: "can ikonu; basinca alarm kurma ekrani").
   GrafikAlarm.tsx: can grafik alt satirinda mum/cizgi dugmesinin solunda, pencere govdede.
   Ayni kurallar telefonda m.css'te (orada alttan pencere ve tus takimi). */
.ga-btn.dolu { color: var(--accent); }
.auth-modal.ga-modal { position: relative; max-width: 400px; padding: 22px 24px 20px; }
/* Pencerenin kendi basligi yok: govdenin ilk satiri zaten "<ad> alert" der; yalniz kapatma kalir. */
.auth-modal.ga-modal .auth-head { position: absolute; top: 10px; right: 10px; margin: 0; padding: 0; }
.auth-modal.ga-modal .auth-x { margin: 0; }
.auth-modal.ga-modal .auth-head .tag { display: none; }
.ga-head { padding-right: 34px; }
.ga { display: flex; flex-direction: column; gap: 14px; }
.ga-head { display: flex; align-items: center; gap: 12px; }
.ga-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ga-id b { font: 600 15px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-id span { font: 500 12.5px var(--sans); color: var(--muted-2); }
.ga-amount { text-align: center; padding-top: 4px; }
.ga-field { display: flex; align-items: baseline; justify-content: center; gap: 3px; cursor: text; }
.ga-field span { font: 700 24px var(--sans); color: var(--muted-2); }
.ga-field input {
  min-width: 1ch; max-width: 100%; border: 0; outline: 0; padding: 0; background: transparent; color: var(--foreground);
  font: 800 40px var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; caret-color: var(--accent);
}
.ga-field input::placeholder { color: var(--muted-3); }
.ga-yon { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; min-height: 22px; }
.ga-fark { font: 500 12.5px var(--sans); color: var(--muted); }
.ga-chart { position: relative; height: 96px; margin: 0 6px 0 0; }
.ga-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ga-chip { height: 32px; padding: 0; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); font: 600 12px var(--sans); cursor: pointer; }
.ga-chip:hover:not(:disabled) { background: var(--surface-3); }
.ga .ga-save { height: 46px; border-radius: 10px; border: 0; background: var(--accent); color: #000; font: 700 14.5px var(--sans); cursor: pointer; }
.ga .ga-save:disabled { opacity: 0.4; cursor: default; }
.ga .ga-err { margin: 0; font: 500 12.5px var(--sans); color: var(--danger); text-align: center; }
.ga .ga-note { margin: 0; font: 500 12px var(--sans); color: var(--muted-2); text-align: center; }
.ga-ok { font: 500 12px var(--sans); }
.ga-link { padding: 0; border: 0; background: transparent; font: 600 12px var(--sans); color: var(--accent); cursor: pointer; }
.ga-link:disabled { opacity: 0.5; cursor: default; }
.ga-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translateX(-50%); padding: 10px 16px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--foreground); font: 600 13px var(--sans);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.ga-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ga-line { fill: none; stroke: var(--gain); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ga-area { fill: var(--gain); opacity: 0.07; stroke: none; }
.ga-target { fill: none; stroke: var(--muted-3); stroke-width: 1; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.ga-chart.up .ga-target { stroke: var(--gain); }
.ga-chart.down .ga-target { stroke: var(--danger); }
.ga-dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 14px; background: var(--gain); box-shadow: 0 0 0 3px rgba(43, 214, 123, 0.18); }
.ga-tag { position: absolute; left: 0; transform: translateY(-50%); padding: 2px 7px; border-radius: 14px; font-size: 11px; font-weight: 700; line-height: 1.3; color: #15121a; background: var(--muted); white-space: nowrap; }
.ga-chart.up .ga-tag { background: var(--gain); }
.ga-chart.down .ga-tag { background: var(--danger); }
.ga-span { position: absolute; right: 0; bottom: 0; font-size: 11px; font-weight: 600; color: var(--muted-2); }
.ga-badge { padding: 3px 8px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.ga-badge.up { color: var(--gain); background: rgba(43, 214, 123, 0.14); }
.ga-badge.down { color: var(--danger); background: rgba(255, 77, 109, 0.14); }
.ga-chip.up { color: var(--gain); }
.ga-chip.down { color: var(--danger); }
.ga-chip:disabled { opacity: 0.4; }
.ga-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); }
.ga-ok svg { color: var(--gain); }
.ga-kanal { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ga-kanalrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
/* Alarm penceresi "Notify me on" (14 Eki, Cihan): Telegram ve YoBro app, solunda tik kutusu. */
.ga-kanalrow { align-items: center; }
.ga-kanalbas { font-size: 12.5px; font-weight: 500; color: var(--muted-2); }
.ga-tik { display: inline-flex; align-items: center; gap: 7px; padding: 4px 2px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; }
.ga-tik i { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--muted-3); color: #15121a; transition: background 0.15s ease, box-shadow 0.15s ease; }
.ga-tik.on { color: var(--foreground); }
.ga-tik.on i { background: var(--accent); box-shadow: none; }
.ga-tik em { font-style: normal; font-weight: 700; color: var(--accent); }
.ga-tik:disabled { opacity: 0.55; cursor: default; }
/* Alarm penceresinde Telegram baglama (15 Eki, Cihan: Link agent sayfasina gitmez, burada baglanir). */
.ga-tgbag { align-self: stretch; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ga-tgbag .btn.tgc-btn { min-height: 42px; font-size: 13.5px; border-radius: 8px; }
.ga-tgbag .tgc-code { gap: 4px; }
.ga-tgbag .tgc-code span { width: 24px; height: 34px; font-size: 15px; border-radius: 6px; }
.ga-tgbag .tgc-code span:nth-child(5) { margin-right: 6px; }
.ga-tgbag .tgc-wait { margin: 0; }

/* KAPAK KIRPMA (1 Eki, Cihan: "kapak resmini alana sigdirmak istiyorum, duzenleme kismi yok").
   KapakKirp.tsx kendi kokunde acilir; ayni kurallar web/app.css ve m.css'te. */
.kk-scrim {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(13, 11, 16, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: kk-fade 180ms ease both;
}
@keyframes kk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kk-up { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.kk-box {
  width: min(600px, 100%); box-sizing: border-box; padding: 18px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  animation: kk-up 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  font-family: var(--sans); color: var(--foreground);
}
.kk-head { display: flex; flex-direction: column; gap: 4px; margin: 2px 2px 14px; }
.kk-head b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.kk-head small { font-size: 12.5px; font-weight: 500; color: var(--muted-2); }
.kk-frame {
  position: relative; width: 100%; aspect-ratio: 3 / 1; overflow: hidden; border-radius: 10px;
  background: var(--surface-2); cursor: grab; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  box-shadow: 0 0 0 1px var(--border-strong);
}
.kk-frame.drag { cursor: grabbing; }
.kk-frame img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; will-change: transform; }
/* surukleme sirasinda uclu kilavuz cizgileri */
.kk-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s ease;
  background:
    linear-gradient(to right, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
  box-shadow: inset 0 0 0 1.5px rgba(255, 106, 0, 0.55);
  border-radius: inherit;
}
.kk-frame.drag .kk-grid { opacity: 1; }
.kk-zoom { display: flex; align-items: center; gap: 10px; margin: 16px 2px 0; }
.kk-zoom button {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--foreground); cursor: pointer; transition: border-color 0.15s ease, opacity 0.15s ease;
}
.kk-zoom button:hover:not(:disabled) { border-color: var(--accent); }
.kk-zoom button:disabled { opacity: 0.35; cursor: default; }
.kk-zoom input[type="range"] {
  flex: 1 1 auto; min-width: 0; height: 22px; margin: 0; background: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.kk-zoom input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 14px;
  background: linear-gradient(to right, var(--accent) var(--kk-fill, 0%), var(--surface-4, #2e2a36) var(--kk-fill, 0%));
}
.kk-zoom input[type="range"]::-moz-range-track { height: 4px; border-radius: 14px; background: var(--surface-4, #2e2a36); }
.kk-zoom input[type="range"]::-moz-range-progress { height: 4px; border-radius: 14px; background: var(--accent); }
.kk-zoom input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 14px;
  background: var(--foreground); border: 0; box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.kk-zoom input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 14px; background: var(--foreground); border: 0;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.kk-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 18px; }
.kk-btn { height: 46px; border-radius: 10px; border: 1px solid var(--border-strong); font: 700 15px var(--sans); cursor: pointer; transition: filter 0.15s ease, background 0.15s ease; }
.kk-btn.ghost { background: var(--surface-2); color: var(--foreground); }
.kk-btn.ghost:hover { background: var(--surface-3); }
.kk-btn.go { background: var(--accent); border-color: var(--accent); color: #15121a; }
.kk-btn.go:hover:not(:disabled) { filter: brightness(1.06); }
.kk-btn:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 520px) {
  .kk-scrim { align-items: flex-end; padding: 0; }
  .kk-box { width: 100%; border-radius: 14px 14px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-bottom: 0; }
  .kk-frame { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { .kk-scrim, .kk-box { animation: none; } }

/* 1 Eki (Cihan: "rakamlar gelince arama sola kayiyor"): kutular aramayla
   bosluk paylasmaz (arama zaten sola yaslaniyor), genislikleri sabit tabanli;
   rakam gelince ya da degisince arama yerinden oynamaz. */
.ap-tiles { margin-left: 0; }
.ap-tile { min-width: 150px; }
.mp-txlev { margin-left: 7px; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.08); color: var(--foreground); font: 700 10.5px var(--sans); font-style: normal; vertical-align: 2px; }
.mp-txnone { color: var(--muted-3, var(--muted)); }

/* ═══ KAPALI POZISYON PENCERESI (1 Eki, Cihan: "closed'da satira basinca webde dogrudan
   genis bir popup"; Fomo'nun ekran goruntusu). Ustte sahibi + Share / Follow; solda pazarin
   grafigi islem damgalariyla; sagda Buy / Sell, sonuc karti ve butun islemler. ═══ */
.kpz-scrim { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(13, 11, 16, 0.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: overlay-in 180ms ease both; }
.kpz { position: relative; display: flex; flex-direction: column; width: min(1240px, 100%); height: min(860px, 100%); border-radius: 14px; background: #141118; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 120px rgba(0, 0, 0, 0.7); overflow: hidden; animation: fade-up 160ms ease both; outline: none; }
.kpz-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 12px 22px; }
.kpz-who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 10px 4px 4px; border: 0; border-radius: 10px; background: none; color: var(--foreground); font: 700 17px var(--sans); cursor: pointer; transition: background 0.15s ease; }
.kpz-who:hover { background: rgba(255, 255, 255, 0.05); }
.kpz-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
/* 25 Eki: altin rozet adin hemen saginda (liderlikteki gibi 5 px) */
.kpz-who .rz { flex: 0 0 auto; margin-left: -5px; }
.kpz-face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex: 0 0 auto; font-size: 20px; background: var(--surface-2); }
.kpz-chev { flex: 0 0 auto; transform: rotate(180deg); color: var(--muted-2); }
.kpz-topr { display: inline-flex; align-items: center; gap: 10px; }
.kpz-share { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--surface-2); box-shadow: var(--edge), inset 0 0 0 1px var(--border); color: var(--foreground); font: 700 14px var(--sans); cursor: pointer; transition: background 0.15s ease; }
.kpz-share:not(:disabled):hover { background: var(--surface-3); }
.kpz-share:disabled { opacity: 0.5; cursor: default; }
.kpz-topr .ph-btn { height: 40px; }
.kpz-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--foreground); font-size: 24px; line-height: 1; cursor: pointer; }
.kpz-x:hover { background: rgba(255, 255, 255, 0.12); }
.kpz-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; padding: 6px 24px 24px; }
.kpz-left { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 0; }
.kpz-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.kpz-coin { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; }
.kpz-coin .tm-coin.lg { width: 54px; height: 54px; }
.kpz-id { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.kpz-symrow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.kpz-sym { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; color: var(--foreground); cursor: pointer; }
.kpz-sym b { font: 800 24px var(--sans); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpz-sym:hover .kpz-chev { color: var(--foreground); }
.kpz-addr { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 0; border: 0; background: none; color: var(--muted-2); font: 600 13px var(--mono); cursor: pointer; }
.kpz-addr:hover { color: var(--foreground); }
.kpz-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpz-closed, .kpz-badge { font-style: normal; padding: 4px 10px; border-radius: 6px; font: 700 12.5px var(--sans); }
.kpz-closed { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.kpz-badge { font-weight: 800; }
.kpz-badge.long { background: var(--gain-soft); color: var(--gain); }
.kpz-badge.short { background: var(--danger-soft); color: var(--danger); }
.kpz-badge.agent { background: var(--accent-soft); color: var(--accent); }
.kpz-px { margin-left: auto; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.kpz-px b { font: 800 24px var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpz-px small { font: 700 13.5px var(--sans); font-variant-numeric: tabular-nums; }
.kpz-px small em { margin-left: 3px; font-style: normal; font-weight: 600; color: var(--muted-2); }
.kpz-px .pos { color: var(--gain); }
.kpz-px .neg { color: var(--danger); }
.kpz-pxskel { display: inline-block; width: 120px; height: 22px; border-radius: 5px; vertical-align: middle; }
.kpz-chart { position: relative; flex: 1 1 auto; min-height: 340px; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.kpz-chartwait, .kpz-chartempty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted-2); font: 600 14px var(--sans); }
.kpz-right { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.kpz-ctas { flex: 0 0 auto; display: flex; gap: 10px; }
.kpz-cta { flex: 1 1 0; height: 54px; border: 0; border-radius: 10px; font: 800 17px var(--sans); cursor: pointer; transition: filter 0.15s ease, transform 0.15s ease; }
.kpz-cta.buy { background: rgba(43, 214, 123, 0.16); color: var(--gain); box-shadow: inset 0 0 0 1px rgba(43, 214, 123, 0.22); }
.kpz-cta.sell { background: rgba(255, 77, 109, 0.15); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.22); }
.kpz-cta:hover { filter: brightness(1.25); }
.kpz-res { flex: 0 0 auto; position: relative; padding: 16px 18px; border-radius: 12px; background: linear-gradient(180deg, #121417, #15121a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.kpz-res::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--muted-2), transparent); opacity: 0.4; }
.kpz-res.pos::after { background: linear-gradient(90deg, transparent, var(--gain), transparent); opacity: 0.55; }
.kpz-res.neg::after { background: linear-gradient(90deg, transparent, var(--danger), transparent); opacity: 0.55; }
/* TP/SL (17 Kas, Cihan: "pozisyon acildiktan sonra tp sl ekleyemiyor muyuz ... web de de ekleyelim"; PozisyonTpSlWeb.tsx):
   sonuc kartinin alt seridi, yalniz sahibin acik pozisyonunda. Basinca biletteki SL/TP kutusu dugmenin hizasinda acilir. */
.kpz-tpsl { margin: 14px -18px -16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.kpz-tpslbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; border: 0; border-radius: 0 0 12px 12px; background: rgba(255, 255, 255, 0.03); color: var(--foreground); font: 800 14px var(--sans); cursor: pointer; transition: background 0.15s ease; }
.kpz-tpslbtn:hover { background: rgba(255, 255, 255, 0.07); }
.kpz-tpslbtn i { padding: 2px 7px; border-radius: 6px; font: 800 11.5px var(--sans); font-style: normal; }
.kpz-tpslbtn i.tp { color: var(--gain); background: rgba(43, 214, 123, 0.14); }
.kpz-tpslbtn i.sl { color: var(--danger); background: rgba(255, 77, 109, 0.14); }
.kpz-tpslnot { display: block; padding: 10px 18px 0; font: 600 12.5px var(--sans); color: var(--muted-2); text-align: center; }
.kpz-tpslnot.ok { color: var(--gain); }
.kpz-tpslnot.err { color: var(--danger); }
/* Birden cok pozisyonda (her alim kendi pozisyonu) hangisinin SL/TP'si: kutunun ustunde yatay secim. */
.kpz-tpslhedef { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.kpz-tpslhedef button { flex: 0 0 auto; display: grid; gap: 2px; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); text-align: left; cursor: pointer; }
.kpz-tpslhedef button b { font: 800 13px var(--sans); color: var(--foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpz-tpslhedef button small { font: 700 11.5px var(--sans); color: var(--muted-2); }
.kpz-tpslhedef button.on { box-shadow: inset 0 0 0 1.5px var(--accent); }
/* Pencerenin ustunde acilan kutu (Drop: tm-scrim 72 / tm-pick 73) pencerenin (kpz-scrim 140) altinda kalmasin. */
body:has(.kpz-scrim) .tm-scrim { z-index: 150; }
body:has(.kpz-scrim) .tm-pick { z-index: 151; }
.kpz-reslbl { display: flex; align-items: center; gap: 8px; min-height: 24px; color: var(--muted-2); font: 600 13px var(--sans); }
.kpz-reslbl em { font-style: normal; font-weight: 700; color: var(--muted); }
/* 25 Eki (Cihan; telefonla ayni, Fomo gibi): solda deger (her zaman beyaz) ve adet, sagda sonuc (arti
   yesil, eksi kirmizi) ve yuzde (ok yon renginde, sayi gri). Rakamlar eskisinden ince ve kucuk. */
.kpz-resrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 10px; }
.kpz-res > .kpz-resrow:first-child { margin-top: 0; }
.kpz-resl, .kpz-resr { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.kpz-resr { flex: 0 0 auto; align-items: flex-end; text-align: right; }
.kpz-resrow b { min-width: 0; color: var(--foreground); font: 650 20px var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpz-resr b.pos { color: var(--gain); }
.kpz-resr b.neg { color: var(--danger); }
.kpz-resrow small { color: var(--muted-2); font: 500 13px var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpz-resr small i { margin-right: 5px; font-style: normal; font-size: 0.72em; vertical-align: 0.1em; }
.kpz-resr small i.pos { color: var(--gain); }
.kpz-resr small i.neg { color: var(--danger); }
.kpz-dots { display: block; height: 0; margin: 14px 0 12px; border-top: 2px dotted rgba(255, 255, 255, 0.12); }
.kpz-avg { display: flex; justify-content: space-between; gap: 10px; color: var(--muted-2); font: 500 12.5px var(--sans); }
/* 4 Kas (Cihan): acik perps'te uc hucre (Margin | Entry price | Liq. price): etiket ustte, rakam altta. */
.kpz-avg.uc span { display: flex; flex-direction: column; gap: 3px; }
.kpz-avg.uc span:nth-child(2) { align-items: center; }
.kpz-avg.uc span:last-child { align-items: flex-end; }
.kpz-avg.uc b { margin-left: 0; }
/* 4 Kas: perps rozeti buyuklugun saginda, kucuk */
.kpz-badge.sm { padding: 2px 7px; border-radius: 5px; font-size: 11.5px; }
.kpz-resl small { display: flex; align-items: center; gap: 8px; }
/* 26 Eki: kacirilan kazanc satiri (If you held / Missed|Saved) */
.kpz-kacir { margin-top: 8px; }
/* 27 Eki (Selcuk): acik tokenin bu turdaki kismi satislari (Realized) ve elde kalanla toplami (Total). */
.kpz-gercek { margin-top: 8px; }
.kpz-gercek b.pos, .pp2-gercek b.pos { color: var(--gain); }
.kpz-gercek b.neg, .pp2-gercek b.neg { color: var(--danger); }
.kpz-kacir.kacirdin span:last-child b { color: var(--danger); }
.kpz-kacir.kurtardin span:last-child b { color: var(--gain); }
.kpz-avg b { margin-left: 6px; color: var(--foreground); font: 600 14px var(--sans); font-variant-numeric: tabular-nums; }
.kpz-txhead { flex: 0 0 auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 2px 0; color: var(--muted-2); font: 600 13.5px var(--sans); white-space: nowrap; }
.kpz-txhead b { color: var(--foreground); font: 700 16px var(--sans); }
.kpz-txhead em { margin-right: 10px; font-style: normal; font-weight: 700; }
.kpz-txhead em.pos { color: var(--gain); }
.kpz-txhead em.neg { color: var(--danger); }
.kpz-txlist { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-right: -10px; padding: 0 10px 0 2px; overscroll-behavior: contain; }
@media (max-width: 1180px) { .kpz-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; } .kpz-resrow b { font-size: 18px; } }
/* GRAFIGIN ALTI (27 Eki, Cihan; Fomo gibi, KapaliPozisyon.tsx): grafik kisalir, sol sutun kayar; altinda sahibin bu
   konudaki postlari (yuzler ince cizgiyle bagli), post yoksa tokenin About karti. */
.kpz-left.altli { overflow-y: auto; overscroll-behavior: contain; margin-right: -12px; padding-right: 12px; scrollbar-width: thin; }
.kpz-left.altli .kpz-chart { flex: 0 0 360px; min-height: 360px; }
.kpz-left.altli > .ab-card { flex: 0 0 auto; }
.kpz-posts { flex: 0 0 auto; display: flex; flex-direction: column; margin: 0; padding: 2px 4px 0; list-style: none; }
.kpz-post { position: relative; display: flex; gap: 12px; padding: 8px 0 16px; }
.kpz-post:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 54px; bottom: -6px; width: 2px; border-radius: 1px; background: var(--border-strong); opacity: 0.7; pointer-events: none; }
.kpz-postface { flex: 0 0 auto; align-self: flex-start; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; transition: box-shadow 0.15s ease; }
.kpz-postface:hover { box-shadow: 0 0 0 2px var(--accent-soft); }
.kpz-postbody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kpz-posttop { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 22px; }
.kpz-posttop b { min-width: 0; color: var(--foreground); font: 700 15px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpz-posttop time { flex: 0 0 auto; margin-left: 4px; color: var(--muted-2); font: 500 13px var(--sans); white-space: nowrap; }
.kpz-post .pst-text { font-size: 15.5px; }
/* BITMIS TURUN TEKRARI (17 Eki, Selcuk: "kocaman alan tasarimsiz; o an kazandigimiz grafik, kactan girdik,
   kacla sonuclandi"; TurTekrari.tsx): ustte sonuc ve tur, ortada turun cizgisi (hedefin ustu yesil, alti
   kirmizi, alis damgasi), altta dort kutu. Telefonda ayni siniflar m.css'te kucuk olcekle. */
.tt { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 20px 20px 18px 22px; background: radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, 0.045), transparent 70%); }
/* Kapali satir rozeti (1 Eki, Cihan: "S L falan olmasin, mobildeki gibi"): yon + kaldirac adin yaninda. */
.kpz-rtag { display: inline-block; margin-left: 7px; padding: 2px 6px; border-radius: 5px; font: 800 10.5px/1.3 var(--sans); font-style: normal; letter-spacing: 0.01em; vertical-align: 2px; white-space: nowrap; }
.kpz-rtag.long { background: var(--gain-soft); color: var(--gain); }
.kpz-rtag.short { background: var(--danger-soft); color: var(--danger); }
.kpz-rtag.agent { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* ARAMA HEP ORTADA (8 Eki, Cihan: "search bar her zaman ortada olsun, giris yapildiginda da
   yapilmadan once de"): ust cubuk uc sutun; sol ve sag esit (1fr), arama tam ortada. Sol daralirsa
   bolumler eskisi gibi yana kayar; sag (bakiye + hesap) hic ezilmez, aramanin ustune binmez. */
/* 15 Eki (Cihan: "Agent search'un altina girmesin; oyle olacaksa search'u saga kaydir"): sol da hic ezilmez
   (max-content); yer yetmezse arama saga kayar, daha da dar ekranda kendisi kisalir. */
.ap-top { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr); gap: 16px; }
.ap-topsol { display: flex; align-items: center; min-width: 0; }
.ap-topsag { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ap-top .ap-topsearchwrap.only-desk { width: clamp(220px, 26vw, 440px); max-width: 100%; min-width: 0; flex: none; margin: 0; }
/* 21 Eki (Cihan: "search market kismini biraz daraltalim %25 civarinda ve ortalayalim yani sag ve
   solunda esit miktarda bosluk kalsin"): arama %25 dar (220-440 -> 165-330 px) ve sol menu ile sag
   kutular ARASINDA tam ortada - iki yanindaki bosluk esit. Sol ve sag sutun icerigi kadar, arama
   ortadaki sutunun ortasinda; dar ekranda yine kendisi kisalir. */
.ap-top { grid-template-columns: max-content minmax(0, 1fr) max-content; }
.ap-top .ap-topsearchwrap.only-desk { width: clamp(165px, 19.5vw, 330px); justify-self: center; }
.ap-topsag .ap-tiles, .ap-topsag .ap-wallet { margin-left: 0; }
/* 8 Eki (Cihan: "deposit ve 108.41 cerceveleri biraz genis, daraltalim; rakam buyurse genislesin"):
   kutular sabit 150 px tabanli degil, iceriklerinin boyunda. Arama ortada sabit oldugu icin rakam
   degisince yerinden oynamaz. */
.ap-topsag .ap-tile { min-width: 0; width: max-content; padding: 5px 11px; }
/* DAR PENCERE (26 Kas, Cihan: "ekrani kucult, o sekilde de guzel olsun"). 901-1280 px arasinda sol menu ile sag kutular
   toplami pencereden genisti: ortadaki sutun sifira iniyor, arama kutusunun buyuteci ve kisayol rozeti menunun ustune
   biniyor ("$YOBRO" kesiliyordu), sag taraf ekranin disina tasiyordu (govde yana kaymadigi icin profile ulasilamiyordu).
   Kural ayni: sol menu hic ezilmez, hicbir baglanti kaybolmaz; yer daraldikca
   (1) ARAMA kendi genisligine gore sadelesir (kap sorgusu): 228 px'in altinda kisayol rozeti kalkar, 150'nin altinda
       yazi kalkip buyutec + rozet kalir (1280 px'teki eski gorunum), 96'nin altinda kutu yalniz buyutec olan kare
       dugmeye doner (tiklayinca yine arama penceresi acilir); ortadaki sutun 40 px'in altina inmez;
   (2) giris yapilmis cubukta (.girisli, Shell.tsx) sag taraf kademe kademe hafifler: profil adi (yuz kalir), logonun
       yazisi (isaret kalir) ve menu araliklari, en darda total kutusu (cash + Deposit kalir). */
.ap-top { grid-template-columns: max-content minmax(40px, 1fr) max-content; }
.ap-top .ap-topsearchwrap.only-desk { min-width: 40px; container: ustarama / inline-size; }
@container ustarama (min-width: 150px) and (max-width: 227px) {
  .ap-topsearch kbd { display: none; }
  .ap-topsearch input { padding-right: 12px; }
}
@container ustarama (max-width: 149px) {
  .ap-topsearch input::placeholder { color: transparent; }
  .ap-topsearch input { padding: 10px 60px 10px 34px; cursor: pointer; }
}
@container ustarama (max-width: 95px) {
  .ap-topsearch kbd { display: none; }
  .ap-topsearch { width: 40px; margin: 0 auto; }
  .ap-topsearch input { width: 40px; height: 40px; padding: 0; cursor: pointer; }
  .ap-topsearch input::placeholder { color: transparent; }
  .ap-topsearchico { left: 50%; transform: translate(-50%, -50%); }
}
@media (max-width: 1279px) {
  .ap-top.girisli .ap-chipname { display: none !important; }
}
@media (max-width: 1199px) {
  .ap-top.girisli .ap-desklockup { display: none; }
  .ap-top.girisli .ap-desklogo.only-desk { margin-right: 8px; }
  .ap-top.girisli .ap-deskitem { padding: 6px 8px; }
}
@media (max-width: 1079px) {
  .ap-top.girisli { gap: 12px; }
  .ap-top.girisli .ap-desknav.only-desk { gap: 0; }
  .ap-top.girisli .ap-deskitem { padding: 6px 7px; font-size: 14.5px; }
  .ap-top.girisli .ap-topsag { gap: 8px; }
  .ap-top.girisli .ap-tiles { gap: 6px; }
  .ap-top.girisli .ap-topsag .ap-tile { padding: 5px 9px; }
}
@media (max-width: 1019px) {
  .ap-top.girisli .ap-tile + .ap-tile { display: none; }
}
@media (max-width: 959px) {
  .ap-top:not(.girisli) .ap-deskitem { padding: 6px 8px; }
}

/* SIRALAMA YENI DUZEN (8 Eki, Cihan; telefondakiyle ayni): listenin ustunde Friends / Leaderboard,
   senin satirin donem sekmelerinin altinda yesilsiz, 1-2-3 arma (app/rozetler.tsx), sagda ustte beyaz bakiye
   altta sonuc. Kursu (ilk uc) masaustunde ustte kalir; orada da bakiye ustte, sonuc altta. */
.rk-view { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.rk-view button { position: relative; height: 50px; padding: 0 8px; border: 0; background: none; cursor: pointer; color: var(--muted-2); font: 700 15px/1 var(--sans); letter-spacing: -0.01em; white-space: nowrap; transition: color 0.2s ease; }
.rk-view button:hover, .rk-view button.on { color: var(--foreground); }
.rk-view button.on::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.rk-row { grid-template-columns: 32px 34px minmax(0, 1fr) auto; }
.rk-arma { display: grid; place-items: center; height: 32px; }
.rk-podmedal { position: absolute; top: 12px; left: 12px; line-height: 0; }
.rk-row.rk-me { flex: 0 0 auto; width: calc(100% - 20px); margin: 8px 10px 6px; border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.rk-row.rk-me:hover { background: var(--surface-3); }
.pf3-mine, .pf3-mine:hover { background: var(--surface-2); box-shadow: none; }
.rk-val { display: grid; justify-items: end; gap: 4px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rk-val b { font: 700 14px/1 var(--mono); color: var(--foreground); }
.rk-val em { font: 600 12.5px/1 var(--mono); font-style: normal; }
.rk-val em.pos { color: var(--gain); }
.rk-val em.neg { color: var(--danger); }
.rk-val.lg b { font-size: 15px; }
.rk-val.lg em { font-size: 13px; }
.rk-podbal { font: 800 22px/1.1 var(--mono); color: var(--foreground); font-variant-numeric: tabular-nums; }
.rk-step.p1 .rk-podbal { font-size: 26px; }
.rk-podnet.alt, .rk-step.p1 .rk-podnet.alt { font-size: 15px; font-weight: 700; }


/* SIRA ARMALARI (8 Eki, Cihan: app/rozetler.tsx): arma kendi icinde boyali SVG; Top 100 hapi
   koyu zemin + lime kenar gecisi, yazi beyazdan lime'a; ara ara ince bir parilti gecer. */
.rz-arma { display: block; flex: none; overflow: visible; }
/* Top 100: arma hapin icinde, dikey ortada; disari tasmaz */
.rz-t100 .rz-arma { overflow: hidden; }
.rz-t100 { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px 0 4px; box-sizing: border-box; border-radius: 10px; overflow: hidden; border: 1px solid transparent;
  background: linear-gradient(180deg, #12160a, #0a0c06) padding-box, linear-gradient(100deg, rgba(255, 141, 60, 0.75), rgba(255, 106, 0, 0.18) 55%, rgba(255, 106, 0, 0.45)) border-box;
  box-shadow: 0 0 16px rgba(255, 106, 0, 0.12); vertical-align: middle; }
.rz-t100 b { font: 800 11.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; background: linear-gradient(180deg, #ffffff, #ffa86a 50%, #e66000); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rz-t100::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.2) 50%, transparent 65%); transform: translateX(-130%); animation: rz-parilti 5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes rz-parilti { 0%, 62% { transform: translateX(-130%); } 88%, 100% { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .rz-t100::after { display: none; } }
/* 1-2-3 profil rozeti: Top 100 hapiyla ayni kalip, kenar ve yazi kadrajin tonunda (15 Eki: 1 lime =
   Top 100 hapinin kendisi, 2 kemik beyazi, 3 oniks; eski altin/gumus/bronz kalkti). Kare karo hapin
   yuvarlak ucuna degmesin diye solda 5 px. */
.rz-sira { padding-left: 5px; }
.rz-t100 .kd-hale { display: none; }
.rz-sira.m2 { background: linear-gradient(180deg, #131414, #0a0a0b) padding-box, linear-gradient(100deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.16) 55%, rgba(255, 255, 255, 0.42)) border-box; box-shadow: 0 0 16px rgba(255, 255, 255, 0.08); }
.rz-sira.m2 b { background-image: linear-gradient(180deg, #ffffff, #f6f5f1 50%, #b9b2bf); }
.rz-sira.m3 { background: linear-gradient(180deg, #1a1720, #09090a) padding-box, linear-gradient(100deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.2)) border-box; box-shadow: none; }
.rz-sira.m3 b { background-image: linear-gradient(180deg, #ffffff, #e2e2de 50%, #9a9a96); }
/* KADRAJ (15 Eki, app/rozetler.tsx): ilk gorunuste koseler disaridan iceri kilitlenir (odak); 1'de
   ara ara cam isigi gecer, isik ortadayken kadraj bir an iceri nefes alir. */
.kd-kose { animation: kd-odak 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.rz-kadraj.m2 .kd-kose { animation-delay: 0.08s; }
.rz-kadraj.m3 .kd-kose { animation-delay: 0.16s; }
.rz-kadraj.m1 .kd-kose { animation: kd-odak 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both, kd-nefes 6s ease-in-out 1.8s infinite; }
.kd-isik { transform: translateX(-34px); animation: kd-isik 6s ease-in-out 1.2s infinite; }
@keyframes kd-odak { from { transform: translate(-2.6px, -2.6px); opacity: 0; } }
@keyframes kd-nefes { 0%, 66%, 100% { transform: none; } 74% { transform: translate(0.9px, 0.9px); } 82% { transform: none; } }
@keyframes kd-isik { 0%, 62% { transform: translateX(-34px); } 88%, 100% { transform: translateX(46px); } }
@media (prefers-reduced-motion: reduce) { .kd-kose { animation: none; } .kd-isik { display: none; } }
/* 21 Eki (Cihan: "her sayfasi webde scroll yapilirken fps sorunu var"): 1 numara KATMANLI (rozetler.tsx).
   Koseler ayri dis <svg>, cam isigi HTML seridi; hareketleri ekran karti oynatir. Olculer 40'lik cizimin
   yuzdesi: odak 2,6 = %6,5, nefes 0,9 = %2,25; isik kutusu (1,1,38,38 r 9,5) = %2,5 / %95 / %25, serit
   (2,-12, 9x64) kutuya gore, donme merkezi (20,20) = seridin %200 %50'si, kayma -34 / 46 = seridin
   -%377,78 / %511,11'i. Sure ve gecikmeler eskisiyle ayni. */
.rz-katli { position: relative; width: var(--kd); height: var(--kd); }
.rz-katli > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rz-katli .kd-kosekat { animation: kd-odak-kat 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both, kd-nefes-kat 6s ease-in-out 1.8s infinite; }
.rz-katli .kd-isikkutu { position: absolute; left: 2.5%; top: 2.5%; width: 95%; height: 95%; border-radius: 25%; overflow: hidden; pointer-events: none; }
.rz-katli .kd-isikserit {
  position: absolute; left: 2.6316%; top: -34.2105%; width: 23.6842%; height: 168.4211%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  transform-origin: 200% 50%; rotate: 24deg; transform: translateX(-377.78%);
  animation: kd-isik-kat 6s ease-in-out 1.2s infinite;
}
@keyframes kd-odak-kat { from { transform: translate(-6.5%, -6.5%); opacity: 0; } }
@keyframes kd-nefes-kat { 0%, 66%, 100% { transform: none; } 74% { transform: translate(2.25%, 2.25%); } 82% { transform: none; } }
@keyframes kd-isik-kat { 0%, 62% { transform: translateX(-377.78%); } 88%, 100% { transform: translateX(511.11%); } }
@media (prefers-reduced-motion: reduce) { .rz-katli .kd-kosekat { animation: none; } .rz-katli .kd-isikkutu { display: none; } }
/* acik pozisyon penceresi (8 Eki): "Open" etiketi lime */
.kpz-closed.open { background: var(--accent-soft); color: var(--accent); }


/* ═══ 9 EKI: TELEFONDA YAPILANLARIN MASAUSTU KARSILIGI (Cihan: "hepsini webde de uygun sekilde") ═══ */
/* kapak secmemis hesap: duz siyah, nokta deseni ve lime halka yok */
.pf3-cover.bos::before, .pf3-cover.bos i { display: none; }

/* KIMLIK KARTI: "Follows you" adin saginda, "Add a bio", yuzun kosesinde lime kalem; altta tek serit:
   solda Following / Followers + ortak takip yuzleri, sagda ince bilgi satiri (sira, trade, katilim). */
.ph-fy { flex: 0 0 auto; display: inline-flex; align-items: center; height: 24px; margin-left: 4px; padding: 0 9px; border-radius: 6px; border: 1px solid rgba(255,106,0,.3); background: rgba(22,28,4,.6); color: var(--accent); font: 700 12px/1 var(--sans); letter-spacing: 0; text-shadow: none; white-space: nowrap; }
.ph-addbio { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--accent); font: 700 14px var(--sans); cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.ph-addbio i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 14px; border: 1.2px dashed rgba(255,106,0,.55); background: rgba(255,106,0,.08); }
.ph-addbio:hover { color: #ff9447; }
.ph-faceedit { position: absolute; right: 6px; bottom: 8px; z-index: 3; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 14px; background: var(--accent); color: #000; box-shadow: 0 0 0 3px #15121a; font-style: normal; transition: transform .2s cubic-bezier(.2,1.4,.4,1); }
.ph-face.clickable:hover .ph-faceedit { transform: rotate(-10deg) scale(1.06); }
.ph-foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 26px 15px; border-top: 1px solid var(--border); background: var(--surface); }
.ph-follows { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.ph-fc { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: 500 14.5px var(--sans); color: var(--muted-2); cursor: pointer; transition: color .15s ease; }
.ph-fc b { font-weight: 800; color: var(--foreground); font-variant-numeric: tabular-nums; }
button.ph-fc:hover { color: var(--foreground); }
span.ph-fc { cursor: default; }
.ph-mutual { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: 500 14.5px var(--sans); color: var(--muted-2); cursor: pointer; transition: color .15s ease; }
.ph-mutual:hover { color: var(--foreground); }
.ph-mfaces { display: inline-flex; align-items: center; }
.ph-mface { display: inline-block; width: 22px; height: 22px; border-radius: 14px; overflow: hidden; object-fit: cover; background: var(--surface-3); box-shadow: 0 0 0 2px var(--surface); font-size: 12px; line-height: 22px; text-align: center; }
.face-img.ph-mface { border-radius: 10px; }
.ph-mface + .ph-mface { margin-left: -7px; }
.ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font: 500 13.5px var(--sans); color: var(--muted-2); }
.ph-mi { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ph-mi svg { flex: none; color: rgba(255,255,255,.34); }
.ph-meta .rz-t100 { height: auto; gap: 5px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.ph-meta .rz-t100::after { display: none; }
.ph-meta .rz-t100 .rz-arma { width: 17px; height: 18px; overflow: visible; }
.ph-meta .rz-sira .rz-arma { width: 17px; height: 17px; }
.ph-meta .rz-t100 b { font-size: 13.5px; font-weight: 800; letter-spacing: 0; text-transform: none; white-space: nowrap; }
@container (max-width: 700px) { .ph-foot { padding: 13px 22px 14px; } }

/* TAKIP PENCERESI (telefonda tam sayfa): genis pencere, uc sekme (Followers / Following / Mutual) */
.auth-modal.fl-modal { max-width: 560px; height: min(720px, 86vh); display: flex; flex-direction: column; padding: 22px 0 0; overflow: hidden; }
.fl-modal > .auth-head { padding: 0 22px 6px 24px; margin-bottom: 0; }
.fl-modal .fl-list { flex: 1 1 auto; min-height: 0; max-height: none; }
.fl-modal .fl-rows { padding: 8px 14px 14px; }
.fl-modal .fl-row { padding: 8px 10px; }

/* EDIT PROFILE (telefonla ayni duzen): kapak + kalem / cop kutusu, kenarda yuz + kalem, ad, bio, giris
   yolu, leaderboard, Save; seciciler pencerenin icinde alttan acilir */
.auth-modal.pfe3-modal { position: relative; max-width: 540px; width: calc(100vw - 32px); max-height: 92vh; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pfe3-modal > .auth-head { display: none; }
.pfe3 { position: relative; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.pfe3-cover.pf3-cover { flex: none; height: 170px; margin: 0; border-radius: 0; background-color: var(--background); }
.pfe3-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(13, 11, 16,.42), rgba(13, 11, 16,0) 58%); }
.pfe3-cover.bos::after { display: none; }
.pfe3-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 0 22px; }
.pfe3-bar b { font: 700 16px var(--sans); color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.pfe3-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 14px; background: rgba(16,18,22,.55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); transition: background .15s ease; }
.pfe3-x:hover { background: rgba(30,32,38,.8); }
.pfe3-ctools { position: absolute; right: 16px; bottom: 14px; z-index: 2; display: flex; gap: 10px; }
.pfe3-cbtn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 14px; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.pfe3-cbtn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pfe3-cbtn.edit { background: var(--accent); color: #000; box-shadow: 0 0 0 2.5px var(--background), 0 6px 16px rgba(0,0,0,.45); }
.pfe3-cbtn.del { background: rgba(16,18,22,.62); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 0 0 2.5px var(--background), inset 0 0 0 .5px rgba(255,255,255,.22), 0 6px 16px rgba(0,0,0,.45); }
.pfe3-face { position: relative; z-index: 2; flex: none; align-self: flex-start; width: 96px; height: 96px; margin: -48px 0 0 24px; padding: 5px; border: 0; border-radius: 14px; cursor: pointer; background: conic-gradient(from 200deg, var(--accent), #5ee7ff, #a58bff, #ff5fa2, var(--accent)); box-shadow: 0 12px 34px rgba(0,0,0,.55); transition: transform .15s ease; }
.pfe3-face:hover { transform: scale(1.02); }
.pfe3-faceimg { display: block; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: #15121a; box-shadow: 0 0 0 3px var(--surface); }
.pfe3-faceimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pfe3-facech { display: block; width: 100%; height: 100%; font-size: 44px; line-height: 86px; text-align: center; }
.pfe3-faceedit { position: absolute; right: 3px; bottom: 5px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 14px; background: var(--accent); color: #000; box-shadow: 0 0 0 2.5px var(--surface); font-style: normal; }
.pfe3-form { display: grid; gap: 16px; padding: 20px 24px 24px; }
.pfe3-field { display: grid; gap: 7px; }
.pfe3-lbl { padding-left: 2px; font: 600 12.5px var(--sans); color: var(--muted-2); }
.pfe3-input { font-size: 15px; padding: 12px 14px; }
.pfe3-biobox { position: relative; display: block; }
.pfe3-bio { display: block; min-height: 92px; padding-bottom: 26px; line-height: 1.45; resize: none; }
.pfe3-count { position: absolute; right: 12px; bottom: 9px; font: 700 11.5px var(--sans); color: rgba(255,255,255,.34); font-variant-numeric: tabular-nums; pointer-events: none; }
.pfe3-count.near { color: var(--gold); }
.pfe3-card { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2); color: var(--foreground); text-align: left; font: 600 14.5px var(--sans); }
.pfe3-gic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--surface-3); color: var(--foreground); }
.pfe3-gic.google { background: #fff; }
.pfe3-gic.x { background: var(--background); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.pfe3-gtxt { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.pfe3-gtxt b { font-weight: 600; }
.pfe3-gtxt small { font: 400 13px var(--sans); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfe3-gok { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-style: normal; }
.pfe3-toggle { cursor: pointer; transition: border-color .15s ease; }
.pfe3-toggle:hover { border-color: var(--border-strong, rgba(255,255,255,.18)); }
.pfe3-toggle > svg { flex: none; color: var(--gold); }
.pfe3-toggle > span { flex: 1 1 auto; }
.pfe3-err { margin: 0; }
.pfe3-save { height: 50px; border: 0; border-radius: var(--r-xl); background: var(--accent); color: #06030a; font: 800 15.5px var(--sans); cursor: pointer; box-shadow: 0 10px 30px -12px rgba(255,106,0,.7), inset 0 1px 0 rgba(255,255,255,.45); transition: background .15s ease, transform .15s ease; }
.pfe3-save:hover:not(:disabled) { background: #ff9447; transform: translateY(-1px); }
.pfe3-save:disabled { opacity: .55; cursor: default; }
.pfe3-pickwrap { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(13, 11, 16,.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: overlay-in .18s ease both; }
.pfe3-pick { display: flex; flex-direction: column; gap: 14px; max-height: 86%; padding: 10px 20px 20px; border-radius: 12px 12px 0 0; background: #0f1012; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 -20px 50px rgba(0,0,0,.6); animation: pfe3-up .26s cubic-bezier(.2,.9,.3,1) both; }
@keyframes pfe3-up { from { transform: translateY(40px); opacity: 0; } }
.pfe3-handle { align-self: center; width: 40px; height: 5px; border-radius: 14px; background: var(--surface-3); }
.pfe3-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; overflow-y: auto; }
.pfe3-cov { position: relative; aspect-ratio: 2 / 1; display: flex; align-items: flex-end; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background-color: #15121a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .15s ease; }
.pfe3-cov:hover { transform: translateY(-1px); }
.pfe3-cov span { position: relative; z-index: 1; margin: 0 0 7px 9px; font: 700 12px var(--sans); color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.pfe3-cov.on { box-shadow: 0 0 0 2px var(--accent); }
.pfe3-cov i { position: absolute; top: 7px; right: 7px; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 14px; background: var(--accent); color: #000; font-style: normal; }
.pfe3-chars { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 8px; overflow-y: auto; padding: 3px; }
.pfe3-char { display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); transition: transform .15s ease; }
.pfe3-char:hover { transform: scale(1.06); }
.pfe3-char img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.pfe3-char.on { box-shadow: 0 0 0 2.5px var(--accent); }
.pfe3-pickacts { display: flex; gap: 10px; }
.pfe3-upload { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: var(--r-xl); background: var(--surface-2); border: 1px solid var(--border); color: var(--foreground); font: 700 15px var(--sans); cursor: pointer; transition: background .15s ease; }
.pfe3-upload:hover { background: var(--surface-3); }
.pfe3-trash { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: var(--r-xl); border: 1px solid rgba(255,77,109,.3); background: var(--danger-soft); color: var(--danger); cursor: pointer; transition: background .15s ease; }
.pfe3-trash:hover { background: rgba(255,77,109,.22); }

/* ARAMA: kisi satiri (9 Eki, Cihan, telefonla ayni "People") */
.cp-face { display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: cover; font-size: 21px; line-height: 40px; text-align: center; }
.cp-person .cp-end .cp-sub { color: var(--muted-2); font-size: 12.5px; }
.cp-person .cp-line { display: flex; align-items: center; gap: 5px; }

/* LISTE OKUNAKLILIGI (9 Eki, Cihan, telefonla ayni: "yazilari biraz buyutup inceltelim, logolar biraz
   buyusun"): masanin sol listeleri (Tokens, Perps, Leaderboard) ve arama; ad 14,5/600-700 -> 15,5/600,
   alt satir 12 -> 13 ince, fiyat 14,5/700 -> 15,5/600, logolar 36-38 -> 42. */
.td-list .pu-mrow { grid-template-columns: 42px minmax(0, 1fr) auto; min-height: 64px; }
.td-list .pu-mrow > img, .td-list .pu-mrow > .tm-lpwrap > :first-child, .td-list .pu-mtile { width: 42px; height: 42px; }
.td-list .pu-msymtext { font-size: 15.5px; font-weight: 600; line-height: 20px; }
.td-list .pu-mpx { font-size: 15.5px; font-weight: 600; line-height: 20px; }
.td-list .pu-mcap { font-size: 13px; line-height: 17px; font-weight: 400; color: #a3a39f; }
.td-list .pu-mmc .tm-chg { font-size: 13px; line-height: 17px; font-weight: 500; }
.td-list .tm-card { min-height: 64px; }
.td-list .tm-card .tm-coin.lg { width: 42px; height: 42px; }
.td-list .tm-cardsym { font-size: 15.5px; font-weight: 600; }
.td-list .tm-cardpx { font-size: 15.5px; font-weight: 600; }
.td-list .tm-cardname { font-size: 13px; font-weight: 400; color: #a3a39f; }
.td-list .tm-card .tm-chg { font-size: 13px; font-weight: 500; }
/* 15 Eki (Cihan: "bunlar cok yakinlar webde"): sira sutunu 22 px idi, 1-2-3 rozeti (32 px) tasip yuze
   yapisiyordu; sutun 40 px, rozet ortada, yuzle arasi 14 px. */
.rk-row { grid-template-columns: 40px 40px minmax(0, 1fr) auto; min-height: 66px; }
.rk-ava { width: 40px; height: 40px; font-size: 21px; }
.rk-name b { font-size: 15.5px; font-weight: 600; }
.rk-net { font-size: 15px; font-weight: 600; }
/* 25 Eki (Cihan: "soldaki numaralar ve 1-2-3 cok yer kapliyor; resim, isim ve yazilar kuculsun, sikisik
   gorunuyor"): liste satiri (Leaderboard sol listesi + profildeki kutu) sikilasti. Sira sutunu 40 -> 24 px
   (1-2-3 rozeti 22 px, RkSira), yuz 40 -> 30 px, isim 15,5 -> 13,5 px, alt satir 12 -> 11,5 px, tutarlar 13/12 px.
   Buyuk tablo (.rk-brow) ve podyum aynen. */
.rk-row { grid-template-columns: 24px 30px minmax(0, 1fr) auto; gap: 10px; min-height: 54px; }
.rk-row .rk-arma { height: 18px; }
/* ikinci tur (ayni gun, "sayilari azcik sola"): rozet 18 px, sira 4 px solda; yuz ve ad yerinde. */
.rk-row .rk-pos { font-size: 12px; transform: translateX(-4px); }
/* 25 Eki (Cihan: "rozetler kullanici isminden uzak, boslugu yarisi kadar"; web): ad ile onay rozeti arasi 10 -> 5 px
   (rk-name gap 5 + .rz margin 5 ust uste biniyordu). Telefon aynen. */
.rk-name .rz { margin-left: 0; }
.rk-row .rk-ava { width: 30px; height: 30px; font-size: 16px; }
.rk-row .rk-name b { font-size: 13.5px; }
.rk-row .pdl-sub { font-size: 11.5px; line-height: 15px; }
.rk-row .rk-val { gap: 3px; }
.rk-row .rk-val b { font-size: 13px; }
.rk-row .rk-val em { font-size: 12px; }
.cp-name { font-size: 15.5px; font-weight: 600; }
.cp-sub { font-size: 13px; font-weight: 400; color: #a3a39f; }
.cp-end b { font-size: 15.5px; font-weight: 600; }
.cp-art { width: 44px; height: 44px; }

/* BILDIRIMLER: liste kayinca basligin altinda ince cizgi + cok hafif golge (telefonla ayni) */
.bld-head { position: relative; z-index: 2; }
.bld-head::before, .bld-head::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.bld-head::before { bottom: 0; height: 1px; background: rgba(255,255,255,.09); }
.bld-head::after { top: 100%; height: 12px; background: linear-gradient(180deg, rgba(13, 11, 16,.32), rgba(13, 11, 16,0)); }
.bld-head.kaydi::before, .bld-head.kaydi::after { opacity: 1; }

/* GRAFIK SURELERI (telefonla ayni: "az sure varsa uzamasinlar, saga yasli; sureler arttikca sola dogru
   genisler"): haplar yazisi kadar, grup sagda; surelerle cizgi/ayar simgeleri arasinda ince cizgi */
/* 14 Eki: sureler kayan seritte (.mum-serit); sigmadiginda serit kayar, haplar daralmaz. */
.tv-bar.tv-bottom.tv-ranges { justify-content: flex-end; gap: 4px; }
.tv-bar.tv-bottom.tv-ranges .tv-pill { flex: 0 0 auto; min-width: 0; padding: 6px 10px; }
.tv-bar.tv-bottom.tv-ranges .tv-sep { display: none; }
.tv-bar.tv-bottom.tv-ranges .tv-grow { display: block; flex: none; width: 1px; height: 14px; margin: 0 4px; background: var(--border); }

/* ── ODULLER / DAVET, MASAUSTU (10 Eki 2026, Cihan: "arkadasini davet et, Fomo ne yapiyorsa aynisi") ──
   app/RewardsPage.tsx, /profile/rewards: profil masasinin orta sutununda tam alt sayfa. Telefonla
   (m/screens/Rewards.tsx) ayni icerik; karti profil kartinin (section.ph) dilinde. Dar orta sutunda
   (700 alti) toplam ile davet karti ve iki alt kart alt alta. */
/* profil kartindaki cam "Rewards": hediye lime. 700 altinda Withdraw / Transfer gibi yalniz simge;
   dugmeler kendi satirina inince (520 alti, yer bol) yazisi geri gelir. */
.ph-btn.ph-rewards svg { color: var(--accent); }
.ph-btn.ph-rewards:hover:not(:disabled) svg { color: var(--accent); transform: rotate(-10deg) scale(1.08); }
@container (max-width: 520px) {
  .ph .ph-acts .ph-btn.ph-rewards:not(.lime):not(.ph-follow):not(.icon) { width: auto; padding: 0 12px 0 10px; }
  .ph .ph-acts .ph-btn.ph-rewards:not(.lime):not(.ph-follow):not(.icon) > span { display: inline; }
}

.rw { container-type: inline-size; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 2px 0 32px; }
.rw-top { display: flex; align-items: center; margin-top: 8px; }
.rw-back { display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-left: -8px; padding: 0 12px 0 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 14px var(--sans); cursor: pointer; transition: background .15s ease, color .15s ease; }
.rw-back:hover { background: var(--surface-2); color: var(--foreground); }
.rw-back svg { transition: transform .2s ease; }
.rw-back:hover svg { transform: translateX(-2px); }
.rw-title { margin: 0 0 2px; font: 800 36px/1.05 var(--sans); letter-spacing: -.03em; color: var(--foreground); }

/* toplam + davet karti */
.rw-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 28px; padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 40px 80px -50px rgba(0,0,0,.9); overflow: hidden; isolation: isolate; animation: fade-up .45s cubic-bezier(.22,1,.36,1) both; }
.rw-glow { position: absolute; z-index: -1; left: -12%; top: -70%; width: 72%; height: 220%; background: radial-gradient(closest-side, rgba(255,106,0,.13), rgba(255,106,0,.03) 60%, transparent); pointer-events: none; }
.rw-sum { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.rw-lbl { font: 600 13.5px/1 var(--sans); color: var(--muted-2); }
.rw-big { display: flex; align-items: baseline; max-width: 100%; font: 800 54px/1 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--foreground); }
.rw-cents { color: var(--muted-3, #635d69); letter-spacing: -.03em; }
.rw-bigskel { display: block; width: 180px; height: 50px; border-radius: 8px; }
.rw-week { font: 700 15px/1.2 var(--sans); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.rw-week.on { color: var(--accent); }
.rw-weekskel { display: block; width: 130px; height: 16px; border-radius: 5px; }

.rw-invite { min-width: 0; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 140% at 100% 100%, rgba(255,106,0,.07), transparent 60%), #08090a; box-shadow: inset 0 0 0 1px rgba(255,106,0,.22), 0 24px 50px -30px rgba(255,106,0,.5); }
.rw-band { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 16px; background: var(--accent); color: #06030a; overflow: hidden; }
.rw-band::before { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0)); pointer-events: none; }
.rw-band::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: rw-sheen 2.6s cubic-bezier(.22,1,.36,1) .6s 1 both; pointer-events: none; }
@keyframes rw-sheen { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(360%, 0, 0); } }
.rw-band svg { position: relative; flex: 0 0 auto; }
.rw-band b { position: relative; min-width: 0; font: 800 15px/1.2 var(--sans); letter-spacing: -.01em; }
/* yan yana halde (genis) baglanti kendi satirinda, Copy + Share altta ikiye bolunmus; alt alta halde tek satir */
.rw-linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 12px 12px 16px; }
.rw-linkrow .rw-btn { flex: 1 1 0; }
.rw-link { flex: 1 1 100%; min-width: 0; display: flex; align-items: center; height: 42px; padding: 0; border: 0; background: none; color: var(--foreground); font: 500 17px var(--sans); letter-spacing: -.01em; text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; }
.rw-link span { flex: 0 0 auto; color: var(--muted-2); }
.rw-link b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 800; transition: color .15s ease; }
.rw-link:hover:not(:disabled) b, .rw-link.done b { color: var(--accent); }
button.rw-link:not(:disabled):active { scale: none; }
.rw-linkskel { display: block; width: 180px; height: 18px; border-radius: 5px; }
.rw-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 16px 0 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.04); color: var(--foreground); font: 700 14px var(--sans); letter-spacing: -.005em; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: none; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s cubic-bezier(.3,1.5,.5,1); }
.rw-btn svg { flex: 0 0 auto; }
.rw-btn:hover:not(:disabled) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.26); transform: translateY(-1px); }
.rw-btn:disabled { opacity: .45; cursor: default; }
.rw-btn.lime { background: var(--accent); border-color: var(--accent); color: #06030a; box-shadow: 0 10px 30px -12px rgba(255,106,0,.75), inset 0 1px 0 rgba(255,255,255,.45); }
.rw-btn.lime:hover:not(:disabled) { background: #ff9447; border-color: #ff9447; box-shadow: 0 14px 36px -12px rgba(255,106,0,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.rw-copy { min-width: 100px; }
.rw-copy.done svg { animation: rw-pop .35s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes rw-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }

/* sayi kartlari (+ seni davet eden) */
/* 10 Eki 2026: Referrals · Holder rewards · Sent to wallet · Invited by; genis sutunda dort (davet eden yoksa
   uc) yan yana, darda 2x2 (uc kartta sonuncusu tam satir) */
.rw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; animation: fade-up .45s cubic-bezier(.22,1,.36,1) .05s both; }
.rw-stats.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rw-stats.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rw-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; padding: 18px 20px 19px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: none; color: var(--foreground); font: inherit; text-align: left; }
.rw-statl { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); color: var(--muted); white-space: nowrap; }
.rw-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font: 800 11.5px/1 var(--sans); font-style: normal; }
.rw-stat > b { max-width: 100%; font: 700 26px/1.05 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-statskel { display: block; width: 92px; height: 26px; border-radius: 6px; }
.rw-stat small { max-width: 100%; font: 500 13px/1.3 var(--sans); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-stat small.on { color: var(--accent); font-weight: 600; }
.rw-stat small em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
/* holder rewards: YOBRO parasi + baslik + ok; dokununca sitenin Rewards kaydi. Alt yazi iki satira kadar. */
button.rw-holder { cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .18s cubic-bezier(.3,1.5,.5,1); }
button.rw-holder:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
button.rw-holder:not(:disabled):active { scale: none; transform: translateY(0) scale(.98); }
.rw-holder .rw-statl { gap: 7px; width: 100%; }
.rw-coin { flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 10px; background: #0d0d0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.rw-coin img { display: block; width: 11px; height: 11px; }
.rw-statgo { margin-left: auto; color: var(--muted-2); transform: rotate(180deg); transition: color .15s ease, translate .2s ease; }
button.rw-holder:hover .rw-statgo { color: var(--foreground); translate: 2px 0; }
.rw-holder small, .rw-by small { white-space: normal; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rw-stat small em.on { color: var(--accent); }
button.rw-by { cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .18s cubic-bezier(.3,1.5,.5,1); }
button.rw-by:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
button.rw-by:not(:disabled):active { scale: none; transform: translateY(0) scale(.98); }
.rw-bywho { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.rw-byface { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 10px; overflow: hidden; object-fit: cover; background: var(--surface-3); font-size: 16px; line-height: 28px; text-align: center; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px rgba(255,106,0,.55); }
.face-img.rw-byface { border-radius: 10px; }
.rw-bywho b { min-width: 0; font: 700 21px/1.1 var(--sans); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* arkadaslar + nasil isler */
.rw-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; animation: fade-up .45s cubic-bezier(.22,1,.36,1) .1s both; }
.rw-card { min-width: 0; padding: 20px 22px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: none; }
.rw-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font: 800 18px/1.2 var(--sans); letter-spacing: -.015em; color: var(--foreground); }
.rw-h small { font: 700 13px/1 var(--sans); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.rw-flist { display: flex; flex-direction: column; max-height: 520px; margin: 0 -10px; overflow-y: auto; }
.rw-friend { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }
.rw-friend:hover { background: var(--surface-2); }
button.rw-friend:not(:disabled):active { scale: .99; }
.rw-fface { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; overflow: hidden; object-fit: cover; background: var(--surface-3); font-size: 21px; line-height: 38px; text-align: center; }
.face-img.rw-fface { border-radius: 10px; }
.rw-fmid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rw-fmid b { font: 600 15px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-fmid b.rw-noname { color: var(--muted); }
.rw-fmid small { font: 500 12.5px/1.2 var(--sans); color: var(--muted-2); }
.rw-famt { flex: 0 0 auto; font: 700 15px/1 var(--sans); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.rw-famt.on { color: var(--accent); }
.rw-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 12px 14px; text-align: center; }
.rw-art { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,106,0,.07); color: rgba(255,106,0,.6); box-shadow: inset 0 0 0 1px rgba(255,106,0,.16), 0 0 40px rgba(255,106,0,.08); }
@media (prefers-reduced-motion: no-preference) { .rw-art svg { animation: rw-float 3.6s ease-in-out infinite; } }
@keyframes rw-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(3deg); } }
.rw-empty p { max-width: 340px; margin: 0; font: 400 14.5px/1.55 var(--sans); color: var(--muted); }
.rw-steps { list-style: none; display: flex; flex-direction: column; margin: 14px 0 0; padding: 0; }
.rw-steps li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.rw-steps li:last-child { padding-bottom: 0; }
.rw-steps li::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, rgba(255,106,0,.45), rgba(255,106,0,.06)); }
.rw-steps li:last-child::before { display: none; }
.rw-steps i { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #06030a; font: 800 13px/1 var(--sans); font-style: normal; box-shadow: 0 0 18px rgba(255,106,0,.25); }
.rw-steps span { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 4px; }
.rw-steps b { font: 700 15px/1.3 var(--sans); color: var(--foreground); }
.rw-steps small { font: 400 13.5px/1.5 var(--sans); color: var(--muted-2); }
.rw-fine { margin: 20px 0 0; font: 400 12px/1.5 var(--sans); color: var(--muted-2); opacity: .8; }
.rw-checkline { margin: -4px 0 0; font: 500 13px/1.4 var(--sans); color: var(--muted-2); }
/* LIDER ODULU satiri (3 Kas): telefondaki m-rw-sent satirinin web karsiligi, sayi kartlarinin hemen altinda. */
.rw-lead { display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: none; animation: fade-up .45s cubic-bezier(.22,1,.36,1) .07s both; }
.rw-leadic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.rw-leadl { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.rw-leadl b { font: 700 15px/1.2 var(--sans); color: var(--foreground); }
.rw-leadl small { font: 500 13px/1.3 var(--sans); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-leadv { flex: none; font: 700 22px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rw-checkline a { color: var(--accent); font-weight: 600; }
.rw-checkline a:hover { text-decoration: underline; }
.rw-fail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: center; }
.rw-fail b { font: 700 16px/1.3 var(--sans); }
.rw-fail span { font: 400 14px/1.5 var(--sans); color: var(--muted-2); }
.rw-fail .rw-btn { margin-top: 6px; }
@container (max-width: 760px) {
  .rw-stats, .rw-stats.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-stats.n3 > :last-child { grid-column: 1 / -1; }
}
@container (min-width: 761px) {
  .rw-stats:not(.n3) .rw-stat { padding: 16px 16px 17px; }
  .rw-stats:not(.n3) .rw-stat > b { font-size: 24px; }
}
@container (max-width: 700px) {
  .rw-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px; }
  .rw-big { font-size: 46px; }
  .rw-cols { grid-template-columns: minmax(0, 1fr); }
  .rw-linkrow { flex-wrap: nowrap; padding: 10px 10px 10px 16px; }
  .rw-link { flex: 1 1 auto; }
  .rw-linkrow .rw-btn { flex: 0 0 auto; }
}
@container (max-width: 460px) {
  .rw-linkrow { flex-wrap: wrap; padding: 6px 12px 12px 16px; }
  .rw-link { flex: 1 1 100%; }
  .rw-linkrow .rw-btn { flex: 1 1 0; }
}

/* ── YOUR YOBRO, MASAUSTU (17 Eki 2026, Selcuk: "profilin altinda YOBRO, sayfanin adi Your YOBRO") ──
   app/YourYobroPage.tsx, /profile/yobro: Rewards gibi profil masasinin orta sutununda tam sayfa ve
   ayni kart dili (.rw-*). Durum karti asagida (18 Eki A secenegi). */
.ph-btn.ph-yobro img { flex: 0 0 auto; display: block; width: 16px; height: 16px; }
.yo-sample { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); font: 500 13.5px/1.45 var(--sans); }
.yo-sample b { flex: 0 0 auto; padding: 2px 8px; border-radius: 5px; background: rgba(255,255,255,.08); color: var(--foreground); font: 800 11px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
/* DURUM KARTI, A SECENEGI (18 Eki, Selcuk: "A ok ama arkadan gelen isiklar da olsun"): profildeki bakiye
   kartinin dili. Ustte buyuk YOBRO isareti + ad ve sagda Buy / Sell; ortada buyuk sayi; altinda deger,
   ortalama maliyet, kar/zarar; en altta ince cizgiyle ayrilmis uc sakin kutu (siradaki tur, sayilan, kalan
   sure). Ballon/hap yok; sari yalniz Buy dugmesinde ve arkadaki isikta. */
.yo .yo-hero { position: relative; display: grid; padding: 28px 28px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 40px 80px -50px rgba(0,0,0,.9); overflow: hidden; isolation: isolate; animation: fade-up .45s cubic-bezier(.22,1,.36,1) both; }
.yo-hero::after { content: ""; position: absolute; z-index: -1; right: -18%; bottom: -60%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(255,106,0,.06), transparent); pointer-events: none; }
.yo-loading { display: flex; justify-content: center; min-height: 180px; padding: 28px; }
.yo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.yo-id { display: flex; align-items: center; gap: 12px; }
.yo-id img { display: block; flex: 0 0 auto; width: 30px; height: 30px; }
.yo-id b { font: 700 16px/1.2 var(--sans); letter-spacing: -.01em; }
.yo-big { display: flex; align-items: baseline; gap: 10px; max-width: 100%; margin-top: 18px; font: 800 60px/1 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--foreground); }
.yo-big small { font: 700 20px/1 var(--sans); letter-spacing: 0; color: var(--muted-3); }
.yo-usd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 12px; font: 500 15px/1.3 var(--sans); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.yo-usd .val { color: var(--foreground); font-weight: 600; }
.yo-usd .up { color: var(--gain); }
.yo-usd .down { color: var(--danger); }
.yo-acts { display: flex; gap: 8px; }
.yo-acts .rw-btn { min-width: 96px; }
.yo-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid var(--border); }
.yo-cells > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 0 22px; }
.yo-cells > div + div { padding-left: 22px; border-left: 1px solid var(--border); }
.yo-cells span { font: 600 13px/1.2 var(--sans); color: var(--muted-2); }
.yo-cells b { font: 600 17px/1.2 var(--sans); color: var(--foreground); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yo-cells .wide { grid-column: 1 / -1; gap: 12px; }
.yo-cells .wide p { margin: 0; font: 500 15px/1.45 var(--sans); color: var(--muted); }
.yo-cells .wide p b { font: inherit; font-weight: 700; color: var(--foreground); }
/* CARPAN SATIRI (30 Eki): uc hucrenin altinda tam satir, ayrac ustte. */
.yo-cells > .wide.carpan { padding: 14px 0 16px; border-left: 0; border-top: 1px solid var(--border); }
.yo-bar { height: 6px; max-width: 460px; border-radius: 14px; background: var(--surface-3); overflow: hidden; }
.yo-bar i { display: block; height: 100%; border-radius: 14px; background: var(--accent); }
/* HIC YOBRO'SI OLMAYAN (18 Eki, Selcuk): sifirli kartlar yerine karsilama karti; ayni isikli kart, buyuk isaret,
   kisa aciklama, Buy YOBRO + How it works, altta uc adim (durum kartinin uc kutusuyla ayni cizgi). */
.yo-ilk-top { display: flex; align-items: flex-start; gap: 18px; }
.yo-ilk-top img { display: block; flex: 0 0 auto; width: 44px; height: 44px; margin-top: 2px; }
.yo-ilk-top h2 { margin: 0; font: 800 30px/1.1 var(--sans); letter-spacing: -.03em; color: var(--foreground); text-wrap: balance; }
.yo-ilk-top p { max-width: 520px; margin: 10px 0 0; font: 400 15.5px/1.55 var(--sans); color: var(--muted); }
.yo-ilk-acts { margin-top: 22px; padding-left: 62px; }
ol.yo-ilk-steps { list-style: none; margin: 26px 0 0; padding: 0; }
.yo-ilk-steps > li { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 0 22px; }
.yo-ilk-steps > li + li { padding-left: 22px; border-left: 1px solid var(--border); }
.yo-ilk-steps small { font: 400 13.5px/1.45 var(--sans); color: var(--muted-2); }
/* UC KUTU (21 Eki 2026, Selcuk Oneri 1'i secti): ustte iki kutu (toplam + son 7 gun, son odul + siradaki
   tur), altta tam genislikte siradaki odeme: "$0.31 of $0.50" solda, esige ilerleme cubugu sagda, yuzde
   cubugun dolu ucunun ustunde (uclarda kutudan tasmaz, satira yukseklik eklemez); dar kapta cubuk sayinin
   altina iner, satir arasi yuzdeye yer birakir. */
.yo-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; animation: fade-up .45s cubic-bezier(.22,1,.36,1) .05s both; }
.yo-stats .rw-stat small { white-space: normal; text-wrap: pretty; }
/* soz obekleri ("in the last 7 days", "next round 16:07") butun olarak alt satira iner, kutudan genisse kendi icinde sarar */
.yo-stats .rw-stat small > span { display: inline-block; max-width: 100%; }
/* ODULLE YOBRO ALIMI DUGMESI (29 Eki 2026, app/YobroOtoAlim.tsx): durum kartinin altinda tek satir anahtar,
   Trade alerts anahtariyla ayni boy ve renk; altinda son alimin tek cumlesi. */
.yo-oto { display: grid; gap: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: none; overflow: hidden; animation: fade-up .45s cubic-bezier(.22,1,.36,1) .03s both; }
.yo-oto-row { display: flex; align-items: center; gap: 18px; width: 100%; padding: 16px 20px; border: 0; background: none; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }
.yo-oto-row:hover:not(:disabled) { background: var(--surface-2); }
.yo-oto-row:disabled { cursor: default; }
.yo-oto-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.yo-oto-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.yo-oto-txt b { font: 700 15.5px/1.25 var(--sans); }
.yo-oto-txt small { font: 500 13.5px/1.4 var(--sans); color: var(--muted-2); text-wrap: pretty; }
.yo-oto-sw { flex: 0 0 auto; position: relative; width: 50px; height: 30px; border-radius: 14px; background: var(--surface-3); transition: background .25s ease; }
.yo-oto-sw > i { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.yo-oto-sw.on { background: var(--accent); }
.yo-oto-sw.on > i { transform: translateX(20px); }
.yo-oto-last, .yo-oto-err { margin: 0; padding: 12px 20px 14px; border-top: 1px solid var(--border); font: 500 13.5px/1.4 var(--sans); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.yo-oto-last b { font-weight: 700; color: var(--foreground); }
.yo-oto-last.off { color: var(--muted); }
.yo-oto-err { color: var(--danger); }
.yo-pay { grid-column: 1 / -1; }
.yo-pay-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 30px 36px; width: 100%; }
.yo-pay-sum { flex: 0 0 auto; font: 700 26px/1.05 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--foreground); }
.yo-pay-sum span { font-weight: 600; color: var(--muted-2); }
.yo-pay-track { position: relative; flex: 1 1 240px; min-width: 0; }
.yo-pay-pct { position: absolute; bottom: calc(100% + 7px); font: 700 12px/1 var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.yo-pay-bar { display: block; height: 12px; margin-bottom: 4px; border-radius: 14px; background: var(--surface-3); overflow: hidden; }
.yo-pay-bar i { display: block; height: 100%; border-radius: 14px; background: var(--accent); }
.yo-cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.yo-h { justify-content: space-between; }
.yo-list { display: flex; flex-direction: column; margin: 0 -10px; }
.yo-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 10px; border-radius: 8px; color: var(--foreground); text-decoration: none; transition: background .15s ease; }
a.yo-row:hover { background: var(--surface-2); }
.yo-ric { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); color: var(--accent); font: 800 13px/1 var(--sans); font-style: normal; }
.yo-rmid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.yo-rmid b { font: 600 14.5px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yo-rmid small { font: 500 12.5px/1.2 var(--sans); color: var(--muted-2); }
.yo-ramt { flex: 0 0 auto; font: 700 15px/1 var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.yo-more { display: block; width: 100%; height: 38px; margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; background: none; color: var(--muted); font: 600 13.5px var(--sans); cursor: pointer; transition: background .15s ease, color .15s ease; }
.yo-more:hover { background: var(--surface-2); color: var(--foreground); }
.yo-empty { margin: 8px 0 4px; font: 400 14px/1.5 var(--sans); color: var(--muted-2); }
.yo-links { display: flex; flex-wrap: wrap; gap: 8px; animation: fade-up .45s cubic-bezier(.22,1,.36,1) .12s both; }
.yo-links a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--foreground); font: 600 13.5px var(--sans); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.yo-links a:hover { background: var(--surface-2); border-color: var(--border-strong); }
.yo-links a svg { color: var(--muted-2); transform: rotate(180deg); }
.yo-fine { margin-top: 2px; }
@container (max-width: 700px) {
  .yo .yo-hero { padding: 24px 24px 0; }
  .yo-ilk-acts { padding-left: 0; }
  .yo-ilk-steps > li + li { padding-left: 16px; }
  .yo-big { font-size: 48px; }
  .yo-cells > div + div { padding-left: 16px; }
  .yo-cols { grid-template-columns: minmax(0, 1fr); }
}

/* YOUR YOBRO: SON 30 GUN GRAFIGI (app/YobroBars.tsx; masaustu ve telefon ayni dosyayi yukler).
   Her gunun ustune gelince (telefonda dokununca) tarih ve tutar cubugun ustunde. */
.yob { display: grid; gap: 8px; }
.yob-bars { position: relative; display: flex; align-items: flex-end; gap: 3px; padding-top: 44px; box-sizing: content-box; outline: none; cursor: crosshair; touch-action: pan-y; }
.yob-bars:focus-visible { box-shadow: 0 0 0 2px rgba(255,106,0,.5); border-radius: 6px; }
.yob-bars > i { flex: 1 1 0; min-width: 0; height: 3px; border-radius: 3px 3px 1px 1px; background: rgba(255,106,0,.55); transition: background .12s ease, opacity .12s ease; }
.yob-bars > i.z { background: var(--surface-3); }
.yob-bars > i.on { background: var(--accent); box-shadow: 0 0 10px rgba(255,106,0,.45); }
.yob-bars > i.z.on { background: var(--muted-3); box-shadow: none; }
.yob-bars > i.dim { opacity: .45; }
.yob-tip { position: absolute; top: 0; z-index: 2; display: grid; gap: 2px; padding: 6px 10px; border-radius: 8px; background: #15121a; border: 1px solid var(--border-strong); box-shadow: 0 10px 24px rgba(0,0,0,.55); transform: translateX(-50%); white-space: nowrap; pointer-events: none; }
.yob-tip.start { transform: translateX(-14%); }
.yob-tip.end { transform: translateX(-86%); }
.yob-tip small { font: 500 11.5px/1.2 var(--sans); color: var(--muted-2); }
.yob-tip b { font: 700 14px/1.2 var(--sans); color: var(--foreground); font-variant-numeric: tabular-nums; }
.yob-axis { display: flex; justify-content: space-between; font: 500 11.5px/1 var(--sans); color: var(--muted-3); }

/* YOUR YOBRO SERIDI (app/YourYobroSerit.tsx): YOBRO token sayfasinda pozisyon kartinin altinda tek satir;
   hesap menusundeki "Your YOBRO" satirinin isareti. */
.acm-row .acm-yobro { flex: 0 0 auto; display: block; width: 16px; height: 16px; }
.yos { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(255,106,0,.22); border-radius: 10px; background: radial-gradient(120% 140% at 0% 0%, rgba(255,106,0,.07), transparent 60%), var(--surface); color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.yos:hover { border-color: rgba(255,106,0,.4); }
.yos-coin { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 14px; background: #0d0d0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-style: normal; }
.yos-coin img { display: block; width: 15px; height: 15px; }
.yos-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.yos-mid b { font: 700 14.5px/1.2 var(--sans); }
.yos-mid small { font: 500 12.5px/1.3 var(--sans); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yos-go { flex: 0 0 auto; color: var(--muted-2); }

/* giris penceresi davet satiri (SignIn.tsx DavetSatiri): davet edenin yuzu + "X invited you" */
.si-davet { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 18px; padding: 6px 14px 6px 6px; border-radius: 10px; background: rgba(255,106,0,.07); box-shadow: inset 0 0 0 1px rgba(255,106,0,.16); }
.si-davet-face { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; overflow: hidden; object-fit: cover; background: var(--surface-3); font-size: 18px; line-height: 32px; text-align: center; }
.face-img.si-davet-face { border-radius: 10px; }
.si-davet > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.si-davet b { font: 700 13.5px/1.25 var(--sans); color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-davet small { font: 400 12px/1.3 var(--sans); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* POST LISTESI, MASAUSTU (13 Eki, Kalan Isler 71; telefondaki .m-post2 duzeninin esi):
   kisi basina tek satir (ad + ortalama giris | pozisyon degeri + yuzde), uc satir metin +
   "Read more", altta begeni, "N older" ve zaman. Yazma kutusu burada yok: pozisyon
   kartinin sol altindaki "+ Add Post" (.pp2-addpost) yazma penceresini acar. */
/* POST FILTRESI (23 Eki, Cihan; telefondaki .m-pf* penceresinin esi): sag ustteki Size | Latest anahtari
   kalkti. Post sekmesinde filtre simgesi (secim varsayilandan farkliysa lime nokta); secili sekmeye
   yeniden tiklayinca pencere acilir: siralama, pozisyon durumu, en kucuk pozisyon. */
.pst-tab { display: inline-flex; align-items: center; gap: 7px; }
.pst-tabfilt { position: relative; width: 16px; height: 16px; display: grid; place-items: center; color: var(--muted-3, #6b7178); transition: color 0.2s ease; }
.on .pst-tabfilt, [aria-selected="true"] .pst-tabfilt { color: var(--foreground); }
.pst-tabfilt.set::after { content: ""; position: absolute; top: -3px; right: -4px; width: 7px; height: 7px; border-radius: 14px; background: var(--accent); box-shadow: 0 0 0 2px var(--background, #000), 0 0 8px var(--accent-glow, rgba(255, 106, 0, 0.35)); }
.auth-modal.pst-fmodal { position: relative; max-width: 440px; }
.pst-freset { position: absolute; top: 33px; right: 72px; padding: 4px 6px; border: 0; background: none; color: var(--accent); font: 700 14px var(--sans); cursor: pointer; }
.pst-fbody { display: grid; gap: 22px; }
.pst-fbody section { display: block; padding: 0; border: 0; }
.pst-fbody h4 { margin: 0 0 10px; font: 700 14px var(--sans); color: var(--muted); }
.pst-fsort { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pst-fsort button, .pst-fseg button, .pst-fmin button {
  border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); font: 700 14px var(--sans); white-space: nowrap; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.pst-fsort button:hover, .pst-fseg button:hover, .pst-fmin button:hover { color: var(--foreground); }
.pst-fsort button { display: grid; justify-items: center; gap: 7px; padding: 14px 6px 12px; border-radius: 10px; }
.pst-fsort svg { color: var(--muted-2); transition: color 0.2s ease, transform 0.3s ease; }
.pst-fseg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.pst-fseg button { height: 38px; border-radius: 8px; background: transparent; box-shadow: none; }
.pst-fmin { display: flex; gap: 8px; }
.pst-fmin button { flex: 1 1 0; min-width: 0; height: 42px; padding: 0 6px; border-radius: 8px; }
.pst-fsort button.on, .pst-fmin button.on { background: var(--accent-soft); color: var(--foreground); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pst-fsort button.on svg { color: var(--accent); transform: scale(1.12); }
.pst-fseg button.on { background: var(--surface-4, #2e2a36); color: var(--foreground); }
.pst-fcustom { display: flex; align-items: center; gap: 6px; height: 48px; margin-top: 10px; padding: 0 16px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); transition: box-shadow 0.2s ease; }
.pst-fcustom:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pst-fcustom span { font: 700 16px var(--sans); color: var(--muted-2); }
.pst-fcustom input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--foreground); caret-color: var(--accent); font: 600 16px var(--sans); }
.pst-fcustom input::placeholder { color: var(--muted-3, #6b7178); font-weight: 500; }
.pst-fgo { height: 52px; border: 0; border-radius: 10px; background: var(--accent); color: #000; font: 800 15px var(--sans); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, filter 0.2s ease; }
.pst-fgo:hover:not(:disabled) { filter: brightness(1.06); }
.pst-fgo:disabled { background: var(--surface-3); color: var(--muted-2); cursor: default; }
.pst-none { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0; }
.pst-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pst { display: flex; gap: 12px; padding: 16px 2px 10px; border-top: 1px solid var(--border); }
.pst-list > .pst:first-child { border-top: none; padding-top: 6px; }
.pst-ava { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; font-size: 22px; line-height: 40px; text-align: center; background: var(--surface-2); }
.pst-ava.face-img { width: 40px; height: 40px; object-fit: cover; }
.pst-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; }
.pst-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 40px; }
.pst-who { flex: 1 1 auto; min-width: 0; min-height: 40px; display: grid; gap: 3px; align-content: center; }
.pst-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
/* YUZ VE AD PROFILE GIDER (23 Eki, Cihan): dugme gorunmez, hover'da ad lime'a doner. */
.pst-avabtn { flex: 0 0 auto; align-self: flex-start; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.pst-avabtn:hover { box-shadow: 0 0 0 2px var(--accent-soft); }
.pst-namebtn { max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pst-namebtn b { transition: color 0.15s ease; }
.pst-namebtn:hover b { color: var(--accent); }
.pst-name b { font: 700 15px/1.2 var(--sans); letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-who small { font: 500 12.5px/1.2 var(--sans); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-val { flex: 0 0 auto; min-height: 40px; display: grid; gap: 3px; justify-items: end; align-content: center; }
.pst-val b { font: 700 15px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.pst-val em { font: 600 12.5px/1.2 var(--sans); font-style: normal; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.pst-val em.pos { color: var(--gain); }
.pst-val em.neg { color: var(--danger); }
.pst-val.closed b { color: var(--muted); }
.pst-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--foreground); white-space: pre-wrap; overflow-wrap: anywhere; }
/* 25 Eki: Post metnindeki baglanti (PostMetni). */
.pst-text .post-bag { color: var(--accent, #ff6a00); text-decoration: none; overflow-wrap: anywhere; }
.pst-text .post-bag:hover { text-decoration: underline; }
/* 21 Kas (Cihan: "alt satira inip 3 nokta koymayalim"): line-clamp yok; boy app/src/app/postKirpma.ts'ten (max-height). */
.pst-text.clamp { overflow: hidden; }
.pst-more { justify-self: start; padding: 2px 0; border: none; background: none; color: var(--accent); font: 700 13.5px/1.3 var(--sans); cursor: pointer; }
/* 21 Kas (Cihan): "Read more" ile Translate ayni satirda, telefondaki .m-postalt gibi. */
.pst-alt { justify-self: start; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; }
.pst-alt .pcv { margin-top: 0; min-width: 0; }
.pst-acts { display: flex; align-items: center; gap: 16px; min-height: 30px; color: var(--muted-2); }
.pst-acts .nt-like { margin-top: 0; align-self: center; }
.pst-older { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: none; background: none; color: var(--muted-2); font: 600 12.5px/1 var(--sans); cursor: pointer; }
.pst-older:hover { color: var(--foreground); }
.pst-acts time { margin-left: auto; font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.pst-thlist .pst-share { margin-left: auto; }
/* Begeni kalbi (14 Eki, Cihan: "canli olsun"): begenince sicrar ve hafif isir; yalniz tiklamada. */
.pst .nt-like.on svg { filter: drop-shadow(0 0 4px rgba(255, 77, 109, 0.45)); }
.pst .nt-like.pop svg { animation: pst-kalp 0.55s cubic-bezier(0.17, 0.89, 0.32, 1.28) both; }
@keyframes pst-kalp { 0% { transform: scale(0.4); } 45% { transform: scale(1.32); } 72% { transform: scale(0.9); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pst .nt-like.pop svg { animation: none; } }
/* "N older" penceresi: ustte pozisyon karti, altinda o kisinin butun postlari. */
.auth-modal.pst-modal { max-width: 560px; width: calc(100vw - 32px); box-sizing: border-box; }
.pst-thread { display: flex; flex-direction: column; gap: 10px; }
.pst-thpos { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.pst-thposl { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.pst-thposl small { font: 500 12.5px/1.2 var(--sans); color: var(--muted-2); }
.pst-thposl b { font: 700 15.5px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-thposr { flex: 0 0 auto; display: grid; gap: 3px; justify-items: end; }
.pst-thposr b { font: 700 15.5px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.pst-thposr em { font: 600 12.5px/1.2 var(--sans); font-style: normal; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.pst-thpos.pos .pst-thposr em { color: var(--gain); }
.pst-thpos.neg .pst-thposr em { color: var(--danger); }
.pst-thlist { max-height: min(52vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.pst-thhead { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 24px; }
.pst-thhead b { font: 700 15px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-thhead time { flex: 0 0 auto; margin-left: auto; font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.pst-thshare { align-self: flex-start; }
/* 15 Eki (Cihan: "mobilde post kisminda kart cikiyor ama webde yok"): post satiri telefon gibi. Ad solda,
   zaman sagda; metnin altinda sahibin pozisyon karti (telefon .m-ppk ile ayni dil); altta begeni / older / Share. */
.pst2 .pst-top { align-items: center; }
.pst2 .pst-top > time { flex: 0 0 auto; font-size: 12.5px; color: var(--muted-2); white-space: nowrap; }
.pst2 .pst-body { gap: 8px; }
/* 21 Eki (Cihan: "bu cerceveyi genisletelim, webde kotu durmus"): 560 px tavani kalkti, kart postun tam genisligi. */
.pst-ppk { position: relative; overflow: hidden; display: grid; gap: 12px; margin-top: 4px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.pst-ppk::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110% 120% at 100% 0%, var(--pk-isik, transparent), transparent 62%); }
.pst-ppk.pos { --pk-isik: rgba(43, 214, 123, 0.12); }
.pst-ppk.neg { --pk-isik: rgba(255, 77, 109, 0.11); }
.pst-ppk.closed { --pk-isik: transparent; }
.pst-ppkrow { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.pst-ppkrow .tm-coin.lg { flex: 0 0 auto; width: 38px; height: 38px; }
.pst-ppkl { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.pst-ppkr { flex: 0 0 auto; display: grid; gap: 4px; justify-items: end; }
.pst-ppk small { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 19px; overflow: hidden; font: 600 12.5px/1.2 var(--sans); color: var(--muted-2); white-space: nowrap; }
.pst-ppklive { width: 7px; height: 7px; border-radius: 14px; background: var(--accent); box-shadow: 0 0 8px rgba(255, 106, 0, 0.6); animation: pst-ppklive 2.2s ease-in-out infinite; }
@keyframes pst-ppklive { 50% { opacity: 0.4; } } /* 25 Eki: yalniz saydamlik; golge her karede yeniden boyanmasin */
@media (prefers-reduced-motion: reduce) { .pst-ppklive { animation: none; } }
.pst-ppkclosed, .pst-ppkside, .pst-ppkpct { flex: 0 0 auto; font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: 0.01em; padding: 2px 7px; border-radius: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pst-ppkclosed { background: var(--surface-3); color: var(--muted); }
.pst-ppkside.long { background: var(--gain-soft); color: var(--gain); }
.pst-ppkside.short { background: var(--danger-soft); color: var(--danger); }
.pst-ppkpct { background: var(--surface-3); color: var(--muted); }
.pst-ppk.pos .pst-ppkpct { background: var(--gain-soft); color: var(--gain); }
.pst-ppk.neg .pst-ppkpct { background: var(--danger-soft); color: var(--danger); }
.pst-ppkl b, .pst-ppkr b { font: 700 18px/1.2 var(--sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-ppk.closed .pst-ppkl b, .pst-ppkr b { color: var(--muted); }
.pst-ppk.pos .pst-ppkr b { color: var(--gain); }
.pst-ppk.neg .pst-ppkr b { color: var(--danger); }
.pst-ppkmeta { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px; color: var(--muted-2); white-space: nowrap; }
.pst-ppkmeta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pst-ppkmeta b { margin-left: 3px; font-weight: 700; color: var(--foreground); font-variant-numeric: tabular-nums; }

/* CEVAPLAR (23 Eki, Cihan: "post altina cevap; yorum ve tuttugu miktar karti cevapta da olsun"; telefon
   m.css .m-rp* ile ayni dil). Satirda balon + sayi, cevap varsa altinda cevaplayanlarin yuzleri ust uste ve
   "View N replies". Pencere: ustte post, ince ayiricida cevap sayisi, cevaplar yuzlerden inen ince cizgiyle
   bagli, altta yapiskan yazma satiri (kendi yuzun, buyuyen yazi alani, lime gonder). */
.pst-reply svg { flex: 0 0 auto; }
.pst-reply:hover { color: var(--foreground); }
.pst-rpprev { justify-self: start; display: inline-flex; align-items: center; gap: 9px; margin-top: -2px; padding: 3px 10px 3px 1px; border: 0; border-radius: 14px; background: none; color: var(--muted); font: 700 13px/1 var(--sans); cursor: pointer; transition: color 0.15s ease; }
.pst-rpprev:hover { color: var(--accent); }
.pst-rpfaces { display: inline-flex; align-items: center; }
.pst-rpfaces > * + * { margin-left: -7px; }
.pst-rpface { display: block; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 10px; object-fit: cover; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 2px var(--surface); font-size: 13px; line-height: 22px; text-align: center; }

.auth-modal.pst-rpmodal { display: flex; flex-direction: column; max-width: 600px; width: calc(100vw - 32px); height: min(86vh, 860px); max-height: none; padding: 22px 0 0; overflow: hidden; box-sizing: border-box; }
.pst-rpmodal .auth-head { flex: 0 0 auto; margin: 0; padding: 0 24px 8px; }
.pst-rpbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 20px; scrollbar-width: thin; }
.pst.pst-rproot { border-top: 0; padding: 4px 2px 14px; }
.pst-rptext { font-size: 15.5px; }
.pst-rproot .pst-top > time { flex: 0 0 auto; font-size: 12.5px; color: var(--muted-2); white-space: nowrap; }
.pst-rpsep { display: flex; align-items: center; gap: 12px; margin: 2px 0 2px; font: 700 12.5px/1 var(--sans); color: var(--muted-2); }
.pst-rpsep::before, .pst-rpsep::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border); }
.pst-rpnote { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--muted-2); }
.pst-rplist .pst { border-top: 0; }
.pst.pst-rpitem { position: relative; gap: 11px; margin: 2px -10px 0; padding: 14px 10px 6px; border-radius: 10px; transition: background 0.25s ease, box-shadow 0.25s ease; }
.pst.pst-rpitem.on { background: rgba(255, 106, 0, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.16); }
.pst-rplist > .pst.pst-rpitem:first-child { padding-top: 14px; }
/* 23 Eki (Cihan: "cizgilerin birlesim yerleri bozuk"): parcalar ust uste biner; renk saydamsiz tek ton, birlesim gorunmez. */
.pst-rpitem:not(:last-child)::before { content: ""; position: absolute; left: 26px; top: 56px; bottom: -10px; width: 2px; border-radius: 2px 2px 0 0; background: #222428; pointer-events: none; }
.pst-ava.pst-rpava { width: 34px; height: 34px; font-size: 19px; line-height: 34px; }
.pst-rpitem .pst-body { gap: 6px; }
.pst-rpitem .pst-thhead .pst-namebtn { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pst-rpitem .pst-ppk { gap: 10px; padding: 12px 14px; border-radius: 10px; }
.pst-rpitem .pst-ppkl b, .pst-rpitem .pst-ppkr b { font-size: 16px; }
.pst-rpitem .pst-ppkmeta { padding-top: 9px; font-size: 12.5px; }
/* IC ICE CEVAP (23 Eki, Cihan; telefon m.css .m-rpitem.ic ile ayni): bir cevaba verilen cevap onun altinda
   iceride, soldaki ana cizgiden kivrilan dirsekle bagli; ana cizgi alttaki cevaplara devam eder. */
.pst.pst-rpitem.ic { margin-left: 30px; padding-top: 12px; }
.pst-ava.pst-rpava { flex: 0 0 auto; }
.pst-rpitem.ic .pst-ava.pst-rpava { width: 30px; height: 30px; font-size: 17px; line-height: 30px; }
.pst-rpitem.ic::after { content: ""; position: absolute; left: -14px; top: -8px; width: 22px; height: 33px; border-left: 2px solid #222428; border-bottom: 2px solid #222428; border-bottom-left-radius: 10px; pointer-events: none; }
.pst-rpitem.ic:not(:last-child)::before { left: -14px; top: 0; border-radius: 0; }
.pst-rpitem.ic .pst-text { font-size: 14px; }
.pst-rpitem.ic .pst-ppkl b, .pst-rpitem.ic .pst-ppkr b { font-size: 15px; }
.pst-rpkime { margin-top: -2px; font-size: 12.5px; color: var(--muted-2); }
.pst-rpkime b { font-weight: 700; color: var(--accent); }
.pst-rpauthor { flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.01em; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }
.pst-rpempty { margin: 0; padding: 28px 0 8px; text-align: center; font-size: 14px; color: var(--muted-2); }

.pst-rpfoot { flex: 0 0 auto; display: grid; gap: 8px; padding: 14px 24px 18px; border-top: 1px solid var(--border); background: var(--surface); }
.pst-rperr { margin: 0; font-size: 13px; line-height: 1.4; color: var(--danger); }
.pst-rpto { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted-2); }
.pst-rpto span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pst-rpto b { color: var(--accent); font-weight: 700; }
.pst-rpto button { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; background: var(--surface-3); color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.pst-rpto button:hover { color: var(--foreground); }
.pst-rpin { display: flex; align-items: flex-end; gap: 10px; }
.pst-rpme { flex: 0 0 auto; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 10px; object-fit: cover; overflow: hidden; background: var(--surface-2); font-size: 19px; line-height: 34px; text-align: center; }
.pst-rpin textarea { flex: 1 1 auto; min-width: 0; min-height: 42px; max-height: 150px; padding: 11px 16px; border: 0; border-radius: 12px; outline: none; resize: none; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--foreground); caret-color: var(--accent); font: 500 14.5px/1.4 var(--sans); box-sizing: border-box; transition: box-shadow 0.2s ease; }
.pst-rpin textarea:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pst-rpin textarea::placeholder { color: var(--muted-3, #6b7178); }
.pst-rpsend { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; background: var(--accent); color: #000; cursor: pointer; box-shadow: 0 6px 18px rgba(255, 106, 0, 0.2); transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, filter 0.2s ease; }
.pst-rpsend:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.pst-rpsend:disabled { background: var(--surface-3); color: var(--muted-2); box-shadow: none; cursor: default; }
.pst-rpspin { width: 16px; height: 16px; border-radius: 14px; border: 2.4px solid rgba(255, 255, 255, 0.16); border-top-color: var(--muted); animation: pst-rpspin 0.7s linear infinite; }
@keyframes pst-rpspin { to { transform: rotate(360deg); } }
.pst-rpcount { justify-self: end; font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.pst-rplock { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.pst-rplock i { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-3); color: var(--muted); }
.pst-rplock span { display: grid; gap: 2px; min-width: 0; }
.pst-rplock b { font: 700 14px/1.3 var(--sans); }
.pst-rplock small { font-size: 12.5px; color: var(--muted-2); }
.pst-rpsign { height: 46px; border: 0; border-radius: 10px; background: var(--accent); color: #000; font: 800 15px var(--sans); cursor: pointer; transition: filter 0.2s ease; }
.pst-rpsign:hover { filter: brightness(1.06); }
@media (prefers-reduced-motion: reduce) { .pst-rpspin { animation-duration: 1.6s; } }

/* 15 Eki (Cihan, Perps alt kismi: "scroll yapildiginda biraz daha alta kaysin"): pazar sayfalarinin
   sonunda nefes payi; son satir ekranin dibine yapisik kalmaz. */
.td-perp .td-main { padding-bottom: 120px; }
.td-desk:not(.td-perp) .td-main > .tm-term > .tm-termmain { padding-bottom: 120px; }
/* 24 Eki (Cihan: "bu alttaki bosluga gerek yok artik"): token sayfasi sekme cercevesiyle (.mt-kutu) biter; cerceve
   kendi icinde kayar, altinda 120 px'lik nefes payi bos alan olarak kaliyordu. Perps'te pay aynen. */
.td-desk:not(.td-perp) .td-main > .tm-term > .tm-termmain:has(.mt-kutu) { padding-bottom: 0; }
/* 25 Eki (Cihan: "sol bolumle sag en alta bak, sag taraf daha kisa"): sol token listesi ekranin 12 px ustunde
   biter (.td-list margin), orta sutunun alt payi 20 px idi; cerceve 8 px kisa kaliyordu. Pay listeninkiyle esit. */
.td-desk.td-birlikte .td-main:has(.mt-kutu) { padding-bottom: 12px; }

/* 15 Eki (Cihan: "bu sayfa bizim platforma hic yakismamis, mobilde cok daha guzel"): Perps kapatma onayi
   telefondaki kapatma penceresinin dilinde (PositionPage kapatSoru). */
.auth-modal.pcx-modal { position: relative; max-width: 420px; padding: 26px 26px 22px; overflow: hidden; }
.auth-modal.pcx-modal .auth-head { position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0; padding: 0; }
.auth-modal.pcx-modal .auth-head .tag { display: none; }
.pcx { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; }
.pcx-glow { position: absolute; left: 50%; top: -90px; width: 360px; height: 220px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, rgba(255, 77, 109, 0.16), transparent); }
.pcx-logo { position: relative; display: grid; place-items: center; margin-top: 4px; }
.pcx-logo .tm-coin.lg { width: 56px; height: 56px; font-size: 18px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.9); }
.pcx-title { position: relative; margin: 0; font: 800 24px/1.2 var(--sans); letter-spacing: -0.02em; }
.pcx-sub { position: relative; margin: -6px 0 2px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.pcx-sub b { color: var(--foreground); font-weight: 700; font-variant-numeric: tabular-nums; }
.pcx-est { position: relative; justify-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; color: var(--muted); text-align: left; }
.pcx-estv { display: grid; justify-items: end; gap: 2px; }
.pcx-estv b { font: 800 22px/1.15 var(--sans); color: var(--foreground); font-variant-numeric: tabular-nums; }
.pcx-estv em { font: 700 12.5px/1.2 var(--sans); font-style: normal; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.pcx.pos .pcx-estv b, .pcx.pos .pcx-estv em { color: var(--gain); }
.pcx.neg .pcx-estv b, .pcx.neg .pcx-estv em { color: var(--danger); }
.pcx-go { position: relative; justify-self: stretch; height: 54px; margin-top: 2px; border: none; border-radius: 10px; background: linear-gradient(180deg, #f0405f, #d62f4e); color: #fff; font: 800 16.5px/1 var(--sans); letter-spacing: -0.005em; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 10px 22px -8px rgba(0, 0, 0, 0.9); transition: filter 0.15s ease, transform 0.1s ease; }
@media (hover: hover) { .pcx-go:hover { filter: brightness(1.08); } }
.pcx-go:active { transform: scale(0.985); }
.pcx-go:focus-visible { outline: 2px solid var(--danger); outline-offset: 3px; }
.pcx-note { position: relative; margin: -4px 0 0; font-size: 12.5px; color: var(--muted-2); }
/* KAPATMA YUZDESI (5 Kas, Cihan: telefondaki CloseSheet gibi 25% / 50% / 75% / All). */
.pcx-pcts { position: relative; justify-self: stretch; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.pcx-pcts button { height: 38px; border: none; border-radius: 8px; background: transparent; color: var(--muted); font: 700 14px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
@media (hover: hover) { .pcx-pcts button:hover:not(.on) { color: var(--foreground); } }
.pcx-pcts button.on { background: var(--surface-3); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border-strong, var(--border)); }
.pcx-pcts button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* ADD MARGIN, TELEFONDAKI DIL (5 Kas, Cihan): .pcx iskeleti; buyuk tutar kutusu, cerceveli satirlar, lime dugme. */
.pcx.pam .pcx-glow { background: radial-gradient(closest-side, rgba(255, 106, 0, 0.10), transparent); }
.pam-amt { position: relative; justify-self: stretch; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px 12px 12px 16px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); cursor: text; }
.pam-amt:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
.pam-amt > span { flex: 0 0 auto; color: var(--muted); font: 700 22px/1 var(--sans); }
.pam-amt input { flex: 1 1 auto; width: 100%; min-width: 0; background: transparent; border: 0; outline: none; color: var(--foreground); font: 800 26px/1.2 var(--sans); font-variant-numeric: tabular-nums; text-align: left; }
.pam-amt input::placeholder { color: var(--muted-2); }
.pam-max { flex: 0 0 auto; border: 0; border-radius: 10px; padding: 8px 14px; background: var(--surface-3); color: var(--foreground); font: 700 13px/1 var(--sans); cursor: pointer; }
@media (hover: hover) { .pam-max:hover:not(:disabled) { filter: brightness(1.15); } }
.pam-rows { position: relative; justify-self: stretch; padding: 2px 16px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); text-align: left; }
.pam-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 12px 0; font-size: 14px; color: var(--muted); }
.pam-rows > div + div { border-top: 1px solid var(--border); }
.pam-rows > div > span { flex: 0 0 auto; }
.pam-rows b { min-width: 0; font-size: 15px; font-weight: 700; color: var(--foreground); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pam-rows b i { font-style: normal; color: var(--muted-2); margin: 0 6px; }
.pam-rows b em { font-style: normal; color: var(--accent); }
.pam-warn { position: relative; justify-self: stretch; margin: -4px 0 0; color: var(--danger); font-size: 13px; line-height: 1.45; text-align: left; }
.pcx-go.pam-go { background: var(--accent); color: #000; box-shadow: 0 10px 30px -6px rgba(255, 106, 0, 0.28); }
.pcx-go.pam-go:focus-visible { outline-color: var(--accent); }
.pcx-go:disabled { background: var(--surface-3); color: var(--muted-2); box-shadow: none; cursor: default; filter: none; transform: none; }
/* Pozisyon kartinin sol altindaki "+ Add Post" (telefondaki .m-addpost ile ayni dil). */
/* 14 Eki (Cihan: "Add Post cercevenin disinda altta olmali"): dugme kartin altinda, telefondaki gibi kart kenarindan 4px iceride. */
.pp2-addpost { margin-left: 4px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 2px 6px 2px 0; border: none; background: none; color: var(--accent); font: 700 13.5px/1 var(--sans); cursor: pointer; }
.pp2-addpost i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 10px; border: 1.5px dashed rgba(255, 106, 0, 0.6); background: rgba(255, 106, 0, 0.07); }
.pp2-addpost:hover { filter: brightness(1.12); }

/* PARA KAPILARI PORTFOY KARTINDA (14 Eki, Cihan: "Rewards haric sagindaki 3 tanesini
   kaldiralim, Where it sits'in altina alalim, orantisiz olmasin"): kartin dibinde
   lejantla ayni genislikte uc esit kolon; Deposit lime, digerleri koyu. */
.pf3-money.pf3-heroact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-self: stretch; width: 100%; margin: 24px 0 0; }
.pf3-heroact .pf3-mbtn { justify-content: center; height: 46px; padding: 0 14px; gap: 9px; border-radius: 10px; font: 700 14.5px var(--sans); }
.pf3-heroact .pf3-mbtn:not(.dep) { background: var(--surface-2); }
.pf3-heroact .pf3-mbtn:not(.dep):hover:not(:disabled) { background: var(--surface-3); }

/* ---------- PROFIL 14 Eki (Cihan: "ust kismi mobile benzetebilir misin, chart ve ust yazilar mobilde daha
   guzel; chartin icindeki noktalar chart kisminin tamamina yayilmis"; "mobildeki gibi Open, Closed, Post,
   Status olsun"). Kendi profilin ve baskasinin profili ayni. ---------- */
/* Bakiye + egri tek parca (telefon .m-pfblock): noktali zemin ve hafif yesil/kirmizi renk kartin ustunden
   egrinin altina kadar butun bloga yayilir, kenarlarda erir; egrinin kendi nokta katmani gizli. */
.ac .pf3-hero { --pf4-px: 20px; --pf4-pt: 20px; }
@media (max-width: 900px) { .ac .pf3-hero { --pf4-px: 14px; --pf4-pt: 16px; } }
.pf4-block { position: relative; isolation: isolate; margin: calc(-1 * var(--pf4-pt, 20px)) calc(-1 * var(--pf4-px, 20px)) 0; padding: var(--pf4-pt, 20px) var(--pf4-px, 20px) 0; border-radius: 12px 12px 0 0; --pf-tint: rgba(43, 214, 123, 0.065); }
.pf4-block.neg { --pf-tint: rgba(255, 77, 109, 0.065); }
.pf4-block::before, .pf4-block::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -10px; z-index: -1; pointer-events: none; border-radius: inherit; }
.pf4-block::before {
  background: radial-gradient(circle at center, color-mix(in srgb, var(--foreground) 10%, transparent) 1px, transparent 1.4px) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 84%, transparent);
  mask-composite: intersect;
}
.pf4-block::after { background: radial-gradient(closest-side at 50% 60%, var(--pf-tint), transparent); transition: background 0.4s ease; }
.pf4-block .pfx-top { align-items: flex-start; }
/* tutar: kalin degil, kuruslar ayni boyda soluk (telefon m-hbalv + m-hcents) */
.pf4-block .pfx-total { font: 650 36px/1 var(--sans); letter-spacing: -0.03em; }
.pf4-block .pfx-total small { font-size: 1em; font-weight: 650; color: var(--muted-2); opacity: 0.72; letter-spacing: -0.02em; }
/* altinda tek satir: renkli degisim + donem (hap yok) */
.pf4-block .pf4-change { margin-top: 9px; display: flex; align-items: center; gap: 7px; }
.pf4-block .pf4-change b { font: 650 14.5px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.pf4-block .pf4-change b.pos { color: var(--gain); }
.pf4-block .pf4-change b.neg { color: var(--danger); }
.pf4-block .pf4-change span { font: 500 14px/1 var(--sans); color: var(--muted-2); font-variant-numeric: tabular-nums; }
/* donem anahtari sade yazi, secili olan yumusak hap; paylas cercevesiz simge */
.pf4-block .pf3-periodwrap { gap: 4px; }
.pf4-block .pf3-periodwrap .pfx-periods { padding: 0; gap: 2px; background: none; box-shadow: none; }
.pf4-block .pf3-periodwrap .pfx-periods button { height: 28px; min-width: 40px; padding: 0 10px; border-radius: 10px; font: 700 12.5px/1 var(--sans); color: var(--muted-2); }
.pf4-block .pf3-periodwrap .pfx-periods button:hover { color: var(--foreground); }
.pf4-block .pf3-periodwrap .pfx-periods button.on { background: var(--surface-3); color: var(--foreground); }
.pf4-block .pfx-share.pf3-share { width: 32px; height: 32px; border: none; border-radius: 10px; background: none; box-shadow: none; color: var(--muted-2); }
.pf4-block .pfx-share.pf3-share:hover { background: var(--surface-2); color: var(--foreground); }
/* egri kartin iki kenarina uzanir; ince cizgi, ucta nefes alan nokta (telefon m-pfdot) */
.pf4-block .pfx-chart { height: 200px; margin: 24px calc(-1 * var(--pf4-px, 20px)) 0; }
.pf4-block .pfx-chart::before { display: none; }
.pf4-block .pfx-chart .pfx-line { stroke-width: 2.8; }
.pf4-block .pfx-chart .pfx-line.dim { opacity: 0.22; }
.pf4-block .pfx-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 0 0 4px rgba(43, 214, 123, 0.2), 0 0 16px rgba(43, 214, 123, 0.55); }
.pf4-block .pfx-dot.neg { box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.2), 0 0 16px rgba(255, 77, 109, 0.55); }
.pf4-block .pfx-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 1.5px solid rgba(43, 214, 123, 0.7); animation: pf4-nefes 2.4s ease-out infinite; }
.pf4-block .pfx-dot.neg::after { border-color: rgba(255, 77, 109, 0.7); }
.pf4-block .pfx-dot.still::after { display: none; }
@keyframes pf4-nefes { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pf4-block .pfx-dot::after { animation: none; display: none; } }
.pf4-block .pfx-cursor { top: 0; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--foreground) 32%, transparent) 18%, color-mix(in srgb, var(--foreground) 32%, transparent) 82%, transparent); }
.pf4-block .pfx-cursorlabel { top: -6px; background: var(--surface-3); }
.pf4-block .pfx-emptytext { bottom: 10px; }

/* SEKMELER (telefon m-pftabs): alti cizgili, secili sekmenin altinda lime cizgi, Open'da lime sayi */
.pf4-tabs { display: flex; margin: 2px 0 -6px; border-bottom: 1px solid var(--border); }
.pf4-tabs button { position: relative; flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 12px; border: none; background: none; font: 700 16px/1 var(--sans); color: var(--muted-2); cursor: pointer; transition: color 0.2s ease; }
.pf4-tabs button:hover { color: var(--foreground); }
.pf4-tabs button.on { color: var(--foreground); }
.pf4-tabs button::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform 0.25s ease; }
.pf4-tabs button.on::after { transform: scaleX(1); }
.pf4-tabs button small { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font: 700 11.5px/1 var(--mono); }
.ac .pf3-activity.pf4-card { padding-top: 8px; }

/* POST AKISI: token sayfasindaki post satiri; satira tiklayinca pozisyon penceresi */
.pf4-posts > .pst:first-child { border-top: none; }
/* 14 Eki (Cihan): post satirinda da kutu yok; kosesiz satir, hover'da ad lime'a doner. */
.pf4-post { cursor: pointer; border-radius: 0; transition: opacity 0.2s ease; padding-left: 2px; padding-right: 2px; }
.pf4-post .pst-name b { transition: color 0.15s ease; }
.pf4-post:hover .pst-name b { color: var(--accent); }
.pf4-post.busy { opacity: 0.6; }
.pf4-post .pst-text, .pf4-post .pst-more { cursor: auto; }
.pf4-konu { justify-self: start; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 28px; margin-top: -2px; padding: 0 11px 0 4px; border: none; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--foreground); font: 700 13px/1 var(--sans); cursor: pointer; transition: background 0.18s ease; }
.pf4-konu:hover { background: var(--surface-3); }
.pf4-konu span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf4-konu .tm-coin, .pf4-konu img { width: 20px; height: 20px; font-size: 10px; }

/* 14 Eki (Cihan): Deposit'in ustune gelince simge beyaza donmesin, yazi gibi siyah kalsin */
.pf3-mbtn.dep:hover:not(:disabled) svg { color: #000; }

/* ALARM PENCERESININ MINI GRAFIGI YUKLENIRKEN (15 Eki, Cihan: "grafik gec geliyor, yerlesim kayiyor"):
   grafigin yeri hep ayni boyda durur (GrafikAlarm.tsx MiniGrafik); okunurken ortada akan ince sinus. */
.ga-chart.ga-bos { display: grid; place-items: center; }
.ga-chart .ga-dalga { position: static; inset: auto; width: 48px; height: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.ga-dalga path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: ga-dalga 1.1s linear infinite; }
@keyframes ga-dalga { from { transform: translateX(0); } to { transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) { .ga-dalga path { animation: none; } }

/* EKIP KUTUSU (24 Eki, Cihan: Team etiketi, Post listesinin basinda sabit; yalniz ekip yazar) */
.ekp-card { display: grid; gap: 8px; width: 100%; margin: 4px 0 10px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 140%); color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.18s ease, background 0.18s ease; }
.ekp-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 140%); }
.ekp-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ekp-tag { flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; padding: 2px 7px; border-radius: 5px; background: var(--accent); color: #15121a; }
.ekp-who time { font-size: 12.5px; font-weight: 500; color: var(--muted-2); white-space: nowrap; }
.ekp-dot { font-style: normal; color: var(--muted-2); }
.ekp-sag { display: inline-flex; align-items: center; margin-left: auto; padding-left: 8px; }
.ekp-who { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.ekp-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ekp-ava { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; }
.ekp-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.ekp-more { font-size: 13px; font-weight: 700; color: var(--accent); }
.ekp-modal .pst-thhead .ekp-tag { margin-left: 2px; }
.ekp-item + .ekp-item { border-top: 1px solid var(--border); }
/* 2 Kas (Selcuk: telefondaki kuculme webde de; telefon m.css 31 Eki ile ayni): ekip seridi; duyuru varsa iki satir,
   yoksa tek satirlik basvuru ("Team · Building $SYM? · Claim tag"). */
.ekp-card.ekp-serit { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 14px; border-radius: 8px; }
.ekp-card.ekp-serit > svg { flex: 0 0 auto; color: var(--muted-2); }
.ekp-satir { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 14px; line-height: 20px; }
.ekp-satir .ekp-tag { display: inline-block; margin-right: 7px; vertical-align: 1px; }
.ekp-satir b { font-weight: 700; }
.ekp-satir time { font-size: 13px; color: var(--muted-2); }
.ekp-card.ekp-serit.ekp-bos { padding: 6px 12px; gap: 8px; }
.ekp-serit.ekp-bos .ekp-tag { opacity: 0.85; }
.ekp-soru { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.ekp-serit .ekp-more { flex: 0 0 auto; font-weight: 600; }

/* ── HESAPLAR PENCERESI (24 Eki 2026, Cihan: profil resmine uc basis, ayni karmadan hesaplar).
   Bilesen app/src/app/HesapPenceresi.tsx; web (app.css) ve telefon (m.css) ayni blogu tasir. ── */
.auth-modal.hs-modal { max-width: 400px; padding: 22px 22px 20px; }
.hs { display: grid; gap: 12px; }
.hs-sheet .hs { padding: 6px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.hs-list { display: grid; gap: 4px; max-height: min(56vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.hs-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--foreground); text-align: left; cursor: pointer; transition: background 0.15s ease; }
.hs-row:hover { background: var(--surface-2); }
.hs-row:active { transform: scale(0.99); }
.hs-row.on { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.hs-face { flex: none; width: 42px; height: 42px; border-radius: 10px; overflow: hidden; object-fit: cover; background: var(--surface-3); font-size: 23px; line-height: 42px; text-align: center; }
.hs-ghost { display: inline-block; }
.hs-mid { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.hs-name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-ad { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Islem sayisi rozetin saginda, biraz bosluklu (26 Eki, Cihan): yalniz sayi. */
.hs-trades { flex: none; margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.hs-sub { font: 500 12px/1.2 var(--mono, ui-monospace, monospace); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 10px; background: var(--accent); color: #000; }
.hs-add { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px; border: 1px dashed var(--border-strong); border-radius: 10px; background: none; color: var(--foreground); font-size: 14.5px; font-weight: 700; cursor: pointer; }
.hs-add:hover:not(:disabled) { border-color: var(--accent); }
.hs-add:disabled { opacity: 0.55; cursor: default; }
.hs-addplus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 10px; background: var(--accent); color: #000; font-size: 18px; font-weight: 800; line-height: 1; }
.hs-addn { margin-left: auto; font: 500 12px/1 var(--mono, ui-monospace, monospace); color: var(--muted-2); }
.hs-note { margin: 0; font-size: 12.5px; color: var(--muted-2); text-align: center; }
.hs-err { color: var(--danger); }

/* 25 Eki (Cihan: "chartin altindaki soluk gri cizgiyi kaldir; chartin en alt cizgisinin ustune gelince
   yukari-asagi ok ciksin, oradan tutup uzatip kisaltayim"): tutamak gorunmez. Cercevenin alt kenari
   boyunca ince bir serit (kenarin 6 px ustu, 5 px alti) tutma yeridir; ustune gelince imlec yukari-asagi
   oka doner. Surukleme aynen (useBoxHeight): kilavuz cizgi yeni alt kenari gosterir, birakinca boyutlanir.
   Token ve Perps masasi ayni tutamak; ikisinde de tutamak cercevenin hemen altinda. */
.tm-grip .tm-gripdot { display: none; }
.tm-grip::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 11px; cursor: ns-resize; }
.tm-grip.dragging::after { top: -1px; }
/* 25 Eki (Cihan: "chartin altinda bir tik fazla bosluk var, yarisi kadar olsa yeter"): Token'da grafigin
   altinda 48 px vardi (tutamak, bos pozisyon yuvasi ve sonraki kutu izgarada uc ayri 16 px bosluk).
   Grafik + tutamak tek kutu; altinda 8 px + izgaranin 16 px'i = 24 px. Pozisyon yoksa bos yuva bosluk
   yemez; pozisyon karti varsa o da grafigin 24 px altinda baslar. Dar ekranda tutamak yok, pay da yok. */
.tm-grafikkap { min-width: 0; }
.tm-grafikkap > .tm-grip { margin-bottom: 8px; }
.tm-grafikkap + .only-desk:has(> .mp-slot:empty) { display: none !important; }
.tm-grafikkap + .only-desk > .mp-slot { margin-top: 0; }

/* 25 Eki (Cihan, web token pozisyon karti: "Share'i transactions satirinin sagina alalim, sol ustteki
   Your positions yazisini kaldir"): kartin ust satiri yok; Share islem satirinin sag ucunda. */
.pp-txrow { display: flex; align-items: center; gap: 12px; }
.pp-txrow .pp-txhead { flex: 1 1 auto; width: auto; min-width: 0; }
.pp-txrow .pp2-share { flex: 0 0 auto; }
/* ust satir kalkinca deger kartin kenarina yapismasin: ust bosluk yan bosluk kadar */
.pp2.pp2-sm.pp2-sade { padding-top: 18px; }

/* 25 Eki (Cihan: "soldaki cerceve uzun, sagdaki kisa kalmis; sagdakini de soldaki kadar uzat"): Agent
   sayfasinda sohbet kutusunun boyu ekrandan sabit bir payla hesaplaniyordu (100dvh - 382px); ustteki
   sahne karti girise / genislige gore farkli boyda oldugu icin alt kenar soldaki listeyle tutmuyordu.
   Artik sohbet kalan yeri doldurur: alt kenari listenin alt kenariyla ayni (ikisi de ekranin 12 px
   ustunde). Sahne inceltilince bosalan yer yine sohbete gecer, alt kenar kipirdamaz. Kucuk ekranda
   sohbet en az 482 px (eski en kucuk boy); sigmazsa sutun eskisi gibi kayar. */
.td-ag .td-main { display: flex; flex-direction: column; padding-bottom: 12px; }
.td-ag .td-main > .pr-term { flex: 1 0 auto; align-items: stretch; }
.td-ag .ag2-main > :last-child { flex: 1 0 auto; display: flex; flex-direction: column; }
.td-ag .ag2-main .ag2-chat { flex: 1 0 auto; height: auto; min-height: 482px; }
.td-ag .ag2-main .ag2-chat > .ag2-chat-box { flex: 1 1 0; height: auto; min-height: 0; }

/* ─────────────────────────── feed (25 Eki, app/pages/Feed.tsx) ───────────────────────────
   Ust cubuktaki bolumler aynen; ortada akis (en cok 660 px), sagda yapiskan iki kart. Satir telefonun Feed'iyle
   ayni dil: yuz, ad, renkli etiket (Buy / Sell / Long / Short / Post), zaman; altinda buyuk konu logosu + sembol +
   tutar ve islem anindaki MC. Dar ekranda yan kartlar akisin altina iner. */
.fd { display: grid; grid-template-columns: minmax(0, 660px) 340px; justify-content: center; gap: 32px; padding: 20px 24px 48px; }
.fd-main { min-width: 0; }
.fd-head { position: sticky; top: var(--topbar); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 0; background: var(--background); border-bottom: 1px solid var(--border); }
.fd-tabs { display: flex; gap: 28px; }
.fd-tabs button { position: relative; height: 50px; padding: 0 2px; border: 0; background: none; color: var(--muted-2); font: 700 18px/1 var(--sans); letter-spacing: -0.01em; cursor: pointer; transition: color 0.15s ease; }
.fd-tabs button:hover { color: var(--foreground); }
.fd-tabs button.on { color: var(--foreground); }
.fd-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
/* SOCIAL'DA YENI POST NOKTASI (20 Kas, Cihan: "social'in hemen saginda kirmizi bir nokta yanip sonsun"; app/akis.ts
   useSocialYeni): yazinin hemen saginda, sekme araligina tasar (sekmeler kaymaz). Yalniz saydamlik canlanir. */
.fd-tabnokta { position: absolute; left: calc(100% + 3px); top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: fd-socnokta 1.1s ease-in-out infinite; pointer-events: none; }
@keyframes fd-socnokta { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@media (prefers-reduced-motion: reduce) { .fd-tabnokta { animation: none; } }
.fd-filt { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--border) inset; }
.fd-filt button { height: 30px; padding: 0 13px; border: 0; border-radius: 10px; background: none; color: var(--muted-2); font: 600 12.5px/1 var(--sans); cursor: pointer; transition: color 0.15s ease, background 0.15s ease; }
.fd-filt button:hover { color: var(--foreground); }
.fd-filt button.on { color: var(--foreground); background: var(--surface-3); }
.fd-empty { margin: 0; padding: 56px 16px; text-align: center; color: var(--muted-2); font: 500 14px/1.5 var(--sans); }
.fd-empty p { margin: 0 0 14px; }
.fd-cta { height: 38px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: #000; font: 700 14px/1 var(--sans); cursor: pointer; }
.fd-list { list-style: none; margin: 0; padding: 0; }
/* 8 Kas (Cihan: Feed satir cizgileri daha soluk). */
.fd-item { display: flex; gap: 14px; padding: 18px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); cursor: pointer; transition: background 0.15s ease; }
.fd-item:hover { background: var(--surface); }
.fd-item.nolink { cursor: default; }
.fd-avabtn { flex: 0 0 auto; align-self: flex-start; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; transition: box-shadow 0.15s ease; }
.fd-avabtn:hover { box-shadow: 0 0 0 2px var(--accent-soft); }
.fd-ava { display: block; width: 44px; height: 44px; border-radius: 10px; font-size: 24px; line-height: 44px; text-align: center; background: var(--surface-2); }
.fd-ava.face-img { object-fit: cover; }
.fd-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 10px; }
.fd-top { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 26px; }
.fd-name { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 0; border: 0; background: none; color: var(--foreground); cursor: pointer; }
.fd-name b { font: 700 16px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-name:hover b { color: var(--accent); }
.fd-tag { flex: 0 0 auto; display: inline-flex; align-items: center; height: 23px; padding: 0 8px; border-radius: 6px; font: 700 13px/1 var(--sans); }
.fd-tag.al { color: var(--gain); background: rgba(43, 214, 123, 0.14); }
.fd-tag.sat { color: #ff6a3d; background: rgba(255, 106, 61, 0.14); }
.fd-tag.notr { color: var(--muted); background: var(--surface-3); }
.fd-tag.post { color: var(--accent); background: var(--accent-soft); }
.fd-top time { flex: 0 0 auto; font: 500 13.5px/1 var(--sans); color: var(--muted-2); white-space: nowrap; }
.fd-line { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fd-line.sm { gap: 9px; }
.fd-txt { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; row-gap: 2px; font: 500 16px/1.3 var(--sans); }
.fd-sym { font-weight: 700; color: var(--foreground); text-decoration: underline dotted var(--muted-2); text-decoration-thickness: 2px; text-underline-offset: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-line.sm .fd-sym { font-size: 14.5px; }
.fd-item:hover .fd-sym { text-decoration-color: var(--accent); }
.fd-ek { font-size: 14px; font-weight: 700; }
.fd-ek.al { color: var(--gain); }
.fd-ek.sat { color: #ff6a3d; }
.fd-usd { font-weight: 600; color: var(--foreground); font-variant-numeric: tabular-nums; }
.fd-mc { color: var(--muted-2); font-size: 15px; }
.fd-post { margin: 0; font: 400 15px/1.5 var(--sans); color: var(--foreground); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.fd-acts { display: flex; align-items: center; gap: 18px; color: var(--muted-2); font: 700 13px/1 var(--sans); }
.fd-acts span { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.fd-side { position: sticky; top: calc(var(--topbar) + 20px); align-self: start; display: grid; gap: 16px; }
.fd-card { padding: 16px 16px 12px; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); }
/* 5 Kas (Cihan: "bu kisimdaki her seyi cerceveler dahil %7 kucult"): sag kartlar (Most traded, Top traders) yazi, logo,
   bosluk, kenar ve kose dahil %7 kucuk; kart sutunun genisligini doldurmaya devam eder. */
.fd-side > .fd-card { zoom: 0.93; }
/* FEED POZISYON SATIRI (7 Kas, Cihan: "pozisyon kartlari gercekten cok buyuk ... fomodaki gibi"; app/FeedPozSatiri.tsx):
   ad satirinin altinda logo, son deger, (▲ %) ve acik pozisyonda canli nokta; altinda mesaj, onun altinda gorsel. */
.fd-poz { display: flex; align-items: center; gap: 8px; min-width: 0; font: 500 15px/1.2 var(--sans); white-space: nowrap; }
.fd-pozsym, .fd-pozusd { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--foreground); }
.fd-pozusd { flex: 0 1 auto; font-variant-numeric: tabular-nums; letter-spacing: -0.005em; }
/* 26 Kas (Cihan: "isim yazsin"): sembol tutarin onunde hep yazar; uzun ad kisalir, tutar kisalmaz. */
.fd-pozsym { flex: 0 1 auto; font-weight: 700; }
.fd-pozsym + .fd-pozusd { flex-shrink: 0; }
.fd-pozpct { flex: 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted-2); }
.fd-pozpct.pos { color: var(--gain); }
.fd-pozpct.neg { color: var(--danger); }
.fd-pozpar { font-weight: 500; color: var(--muted-3); }
.fd-pozok { display: inline-block; margin: 0 3px 0 1px; font-size: 0.7em; vertical-align: 0.12em; }
.fd-pozyon { flex: 0 0 auto; font-style: normal; font-size: 0.86em; font-weight: 650; }
.fd-pozyon.long { color: var(--gain); }
.fd-pozyon.short { color: var(--danger); }
.fd-pozcanli { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 14px; background: var(--accent); box-shadow: 0 0 8px rgba(255, 106, 0, 0.6); animation: pst-ppklive 2.2s ease-in-out infinite; }
.fd-pozkapali { flex: 0 0 auto; font-style: normal; font-size: 0.82em; font-weight: 600; color: var(--muted-3); }
/* cevapta pozisyon yokken satir yok; yalniz gozcu (ekrana yaklasinca okuma), izgaraya bosluk katmaz */
.fd-pozgoz { position: absolute; width: 0; height: 0; pointer-events: none; }
.fd-poz .tm-coin.sm { flex: 0 0 auto; width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) { .fd-pozcanli { animation: none; } }
.fd-cardtitle { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; font: 700 15px/1.2 var(--sans); letter-spacing: -0.01em; }
.fd-cardtitle small { font: 600 12px/1 var(--sans); color: var(--muted-2); }
.fd-cardempty { margin: 6px 0 4px; color: var(--muted-2); font: 500 13px/1.45 var(--sans); }
.fd-rank { list-style: none; margin: 0 -8px; padding: 0; }
.fd-rank button { display: grid; grid-template-columns: 16px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: background 0.15s ease; }
.fd-rank button:hover { background: var(--surface-2); }
.fd-rank .tm-coin.sm, .fd-rankava { width: 30px; height: 30px; }
.fd-rankava { display: block; border-radius: 10px; font-size: 18px; line-height: 30px; text-align: center; background: var(--surface-2); }
.fd-rankava.face-img { object-fit: cover; }
.fd-rankno { font: 700 12.5px/1 var(--sans); color: var(--muted-2); text-align: center; }
.fd-rankname { min-width: 0; display: grid; gap: 3px; }
.fd-rankname b { display: flex; align-items: center; min-width: 0; font: 700 14px/1.2 var(--sans); white-space: nowrap; }
/* 9 Kas (Cihan): Top traders'ta da adin saginda rozet (Founder / ekip); ad kisalir, rozet kesilmez. */
.fd-rankname b > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fd-rankname b .rz { flex: 0 0 auto; }
.fd-rankname small { font: 500 12px/1 var(--sans); color: var(--muted-2); }
.fd-rankval { font: 700 13.5px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--foreground); }
.fd-rankval.pos { color: var(--gain); }
.fd-rankval.neg { color: var(--danger); }
.fd-more { width: 100%; height: 36px; margin-top: 8px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); font: 600 13px/1 var(--sans); cursor: pointer; transition: color 0.15s ease, background 0.15s ease; }
.fd-more:hover { color: var(--foreground); background: var(--surface-3); }
@media (max-width: 1100px) {
  .fd { grid-template-columns: minmax(0, 660px); }
  .fd-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .fd { padding: 8px 12px 40px; }
  .fd-head { flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
  .fd-item { padding: 16px 4px; }
}
/* Feed masada (25 Eki, Cihan: "solda en son hangi sayfadaysa onun listesi"): sol liste son bolumun (Tokens, Perps,
   Agent, Leaderboard), ortada akis, sagda kartlar. Masa sayfasi kaymaz; orta alan (.td-main, td-birlikte) kayar,
   sekme seridi ve sag kartlar onun icinde yapisik. */
.td-main > .fd { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); justify-content: stretch; gap: 24px; padding: 0 8px 24px; }
.td-birlikte .td-main:has(> .fd) { padding-top: 0; }
.td-main > .fd .fd-head { top: 0; padding-top: 6px; }
.td-main > .fd .fd-side { top: 12px; margin-top: 12px; }
@media (max-width: 1280px) {
  .td-main > .fd { grid-template-columns: minmax(0, 1fr); }
  .td-main > .fd .fd-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
/* FOUNDER CHAT (Feed'in Chat sekmesi, 26 Kas; Cihan: "web tamamen facia, ekrani kucultunce de guzel olsun"). Sohbet
   bir akis degil, bir pencere: sutun ekranin boyunu doldurur, sayfa kaymaz, yalniz sohbetin ici kayar; yazma satiri hep
   gorunur. Eskiden boy sabit bir hesapti (100dvh - ust cubuk - 40) ve sekme seridini saymiyordu: yazma satiri ekranin
   altinda kaliyordu. Sag kartlar yan yana sigmayinca sohbetin altina dusmez, gizlenir (sohbet boyu alir). */
.fd.chatte { height: calc(100vh - var(--topbar)); height: calc(100dvh - var(--topbar)); padding-bottom: 16px; grid-template-rows: minmax(0, 1fr); }
.fd.chatte .fd-main { display: flex; flex-direction: column; min-height: 0; }
.fd.chatte .fd-head { position: static; flex: 0 0 auto; margin-bottom: 12px; }
.fd.chatte .fd-side { max-height: 100%; overflow-y: auto; scrollbar-width: none; }
.td-main > .fd.chatte { height: 100%; padding-bottom: 0; }
@media (max-width: 1100px) { .fd.chatte .fd-side { display: none; } }
@media (max-width: 1280px) { .td-main > .fd.chatte .fd-side { display: none; } }
@media (max-width: 640px) { .fd.chatte { padding-bottom: 8px; } .fd.chatte .fd-head { margin-bottom: 8px; } }
.fd-item.busy { opacity: 0.6; }
.fd-konu { display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; padding: 0; border: 0; background: none; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; }
.fd-line.sm .fd-konu { gap: 9px; }
.fd-konu:hover .fd-sym { color: var(--accent); }
.fd-line .fd-mc { flex: 0 0 auto; }
/* Feed post dugmeleri (25 Eki): profilin post satirindaki kalp / cevap / paylas. */
.fd-pacts { margin-top: -2px; }
/* 26 Kas aksam (Cihan: "share ve 3 nokta like ve reply'in saginda olsun, sag tarafta olmasinlar"): Share saga yaslanmaz. */
/* ISLEM DUGMELERI (26 Kas; app pages/Feed.tsx islemEylemleri): islem satirinin altindaki kalp / Reply / Share post
   satirinin dugmeleriyle AYNI siniflari kullanir (.pst-acts.fd-pacts); ayri stil yok (26 Kas aksam, Cihan: "pozisyonlarin
   altindaki daha zayif, aynisini yapalim postlarin altindakiler gibi"; ilk surumun soluk .fd-iacts stili kalkti). */
/* Feed konusmasi (25 Eki, Cihan'in ornegi): post basinda "ad · on <konu> · zaman" (zaman sagda). */
.fd-on { flex: 0 0 auto; font: 500 13.5px/1 var(--sans); color: var(--muted-2); }
.fd-topkonu { gap: 6px; }
.fd-topkonu .tm-coin.sm { width: 20px; height: 20px; }
.fd-topkonu .fd-sym { font-size: 14px; text-decoration: none; }
.fd-top time.sag { margin-left: auto; }
/* KONUSMA SERIDI (26 Kas, Cihan: "cevap geldikce alta dogru uzuyor, o uzamalari kaldiralim; tek ana yazi kalsin";
   app/KonusmaSeridi.tsx): postun altinda TEK satir, kac cevap gelirse gelsin ayni boyda. Solda yazanlarin yuzleri (en
   yeni onde), en yeni cevabin sahibi ve metninin basi (tasan kisim uc noktayla biter), sagda zamani ve ok. Yeni cevap
   dusunce satirin ici asagidan kayarak degisir, serit bir an lime isir. 25-28 Eki'nin alt alta dizilimi kalkti.
   Zemin saydam degil: yuzlerin halkasi ayni rengi (--kn-zemin) kullanir, ust uste binen yuzler temiz kesilir. */
.fd-kn { --kn-zemin: var(--surface); position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; height: 38px; margin-top: 2px; padding: 0 10px 0 9px; border: 0; border-radius: 8px; background: var(--kn-zemin); color: var(--muted); font: 500 14px/1 var(--sans); text-align: left; cursor: pointer; overflow: hidden; transition: background 0.15s ease, color 0.15s ease; }
.fd-item:hover .fd-kn { --kn-zemin: var(--surface-2); }
.fd-item .fd-kn:hover { --kn-zemin: var(--surface-3); color: var(--foreground); }
.fd-kn-yuzler { flex: 0 0 auto; display: inline-flex; align-items: center; }
.fd-kn-yuz { position: relative; display: block; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 10px; overflow: hidden; background: var(--surface-3); box-shadow: 0 0 0 2px var(--kn-zemin); font-size: 13px; line-height: 22px; text-align: center; transition: box-shadow 0.15s ease; }
.fd-kn-yuz.face-img { object-fit: cover; }
.fd-kn-yuz + .fd-kn-yuz { margin-left: -7px; }
.fd-kn-yuz:nth-child(1) { z-index: 3; }
.fd-kn-yuz:nth-child(2) { z-index: 2; }
.fd-kn-yuz:nth-child(3) { z-index: 1; }
.fd-kn-soz { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 7px; line-height: 1.35; white-space: nowrap; }
.fd-kn-soz > b { flex: 0 0 auto; max-width: 42%; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: var(--foreground); }
.fd-kn-soz > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fd-kn-soz .oem { width: 1.2em; height: 1.2em; vertical-align: -0.26em; }
.fd-kn time { flex: 0 0 auto; font: 500 12.5px/1 var(--sans); color: var(--muted-2); white-space: nowrap; }
.fd-kn-ok { flex: 0 0 auto; margin-left: -4px; color: var(--muted-3); transition: transform 0.15s ease, color 0.15s ease; }
.fd-kn:hover .fd-kn-ok { color: var(--accent); transform: translateX(2px); }
.fd-kn-soz.yeni { animation: fd-kn-gel 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fd-kn-isik { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 106, 0, 0.18), rgba(255, 106, 0, 0)); pointer-events: none; animation: fd-kn-isik 1.5s ease-out forwards; }
@keyframes fd-kn-gel { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes fd-kn-isik { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fd-kn-soz.yeni { animation: none; } .fd-kn-isik { display: none; } }
/* EKIP CEVABI (27 Kas, Selcuk: "takimdan geliyorsa full acik gozuksun"; KonusmaSeridi EkipSeridi): serit tek satir
   degil; ust satir yuz, ad, muhur, zaman; metin uc satira kadar, "more" yerinde acar; altta sonraki cevap sayisi.
   Solda ince lime cizgi ekibin cevabi oldugunu soyler. */
.fd-kn.fd-kn-ekip { flex-direction: column; align-items: stretch; gap: 6px; height: auto; padding: 10px 12px 10px 12px; box-shadow: inset 2px 0 0 rgba(255, 106, 0, 0.55); line-height: 1.45; }
.fd-kn-ekip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fd-kn-ust { display: flex; align-items: center; gap: 7px; min-width: 0; }
.fd-kn-ust > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--foreground); }
.fd-kn-ekip .fd-kn-ok { margin-left: auto; }
.fd-kn-ekip:hover .fd-kn-ok { color: var(--accent); transform: translateX(2px); }
.fd-kn-metin { margin: 0; color: var(--foreground); font: 400 14px/1.45 var(--sans); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fd-kn-metin.acik { display: block; -webkit-line-clamp: unset; overflow: visible; white-space: pre-line; }
.fd-kn-metin .oem { width: 1.2em; height: 1.2em; vertical-align: -0.26em; }
.fd-kn-metin.yeni { animation: fd-kn-gel 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fd-kn-alt { display: flex; align-items: center; gap: 12px; font: 500 13px/1.2 var(--sans); }
.fd-kn-more { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.fd-kn-more:hover { text-decoration: underline; }
.fd-kn-sonra { color: var(--muted-2); }
@media (prefers-reduced-motion: reduce) { .fd-kn-metin.yeni { animation: none; } }
/* ODAK CEVABI (26 Kas): seritten acilan cevaplar penceresi o cevapta acilir; cevap bir an lime durur, sonra soner. */
.pst.pst-rpitem.odak { animation: pst-rpodak 2.4s ease-out both; }
@keyframes pst-rpodak { 0%, 40% { background: rgba(255, 106, 0, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.2); } 100% { background: rgba(255, 106, 0, 0); box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .pst.pst-rpitem.odak { animation: none; } }
.fd-post.acik { display: block; -webkit-line-clamp: unset; overflow: visible; }
.fd-postmore { justify-self: start; margin-top: -6px; padding: 2px 0; border: 0; background: none; color: var(--accent); font: 700 14px/1.3 var(--sans); cursor: pointer; }
.fd-postmore:hover { text-decoration: underline; }
/* KASA KAYDIRICISI webde (28 Eki, Selcuk: "webde B olsun"): telefondaki KasaKaydirici, bilet olculerinde; yuzde topun icinde (22 Kas). */
.tm-tick .m-kasak { margin: 2px 0 0; padding: 0 12px; } /* 22 Kas: buyuk top Max'ta panelin kenarina degmesin */
.tm-tick .m-kasakiz { position: relative; height: 40px; touch-action: none; cursor: pointer; outline: none; }
.tm-tick .m-kasakiz::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 4px; border-radius: 2px; background: var(--surface-3, #25212c); }
.tm-tick .m-kasakdolu { position: absolute; left: 0; top: 18px; height: 4px; border-radius: 2px; background: var(--accent); }
.tm-tick .m-kasakdurak { position: absolute; top: 16px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--surface-4, #2e2a36); box-shadow: 0 0 0 2px var(--surface, #15121a); }
.tm-tick .m-kasakdurak.on { background: var(--accent); }
/* 22 Kas (Cihan: "yesil yuvarlagin icine % degeri, %100 bile sigsin"): top 38 px, yuzde icinde; alttaki yazi kalkti. */
.tm-tick .m-kasaktop { position: absolute; top: 1px; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 2px 8px rgba(0, 0, 0, 0.5); }
.tm-tick .m-kasakiz:focus-visible .m-kasaktop { box-shadow: 0 0 0 4px var(--accent-glow, var(--accent-soft)); }
.tm-tick .m-kasakyazi { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted-3, #635d69); margin: 0 -4px; }
.tm-tick .m-kasak.bos .m-kasaktop { opacity: 0.45; top: 10px; width: 20px; height: 20px; margin-left: -10px; } /* girissiz: yazisiz kucuk top (22 Kas) */
.tm-tick .m-kasaktop b { font: 800 10px/1 var(--sans); letter-spacing: -0.03em; color: #06030a; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
/* FIYAT ETKISI SATIRI (22 Kas, Cihan: "uyari yazilarini kaldir, sadece Price impact yazip degeri yazalim"): RH / Solana /
   Elysium masaustu biletinde adet cipinin altinda, ortali, kutusuz. %2 ustu altin, tavan asilinca kirmizi. */
.ap-etki { margin: -6px 0 0; text-align: center; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--gold, #fbbf24); font-variant-numeric: tabular-nums; }
.ap-etki.danger { color: var(--danger); }
/* HIZLI ALIM TUTARLARI (28 Eki, HizliTutarlar.tsx): kutu sag tikla yazilir hale gelir; herkese bir kez ipucu. */
.tm-pctrow.hz { position: relative; grid-auto-columns: minmax(0, 1fr); }
.hz > button { -webkit-touch-callout: none; user-select: none; }
.tm-pctrow .hz-girdi { padding: 8px 4px; }
.hz-girdi { display: flex; align-items: center; justify-content: center; gap: 1px; cursor: text; box-shadow: inset 0 0 0 1px var(--accent); background: var(--surface-2); }
.hz-girdi i { padding: 0; background: none; font: inherit; font-style: normal; letter-spacing: 0; text-transform: none; color: var(--muted-2); }
.hz-girdi input { min-width: 0; padding: 0; border: 0; background: none; outline: none; color: inherit; font: inherit; text-align: left; }
.hz-ipucu { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% + 8px); padding: 9px 12px 9px 14px; border: 1px solid rgba(255, 106, 0, 0.35); border-radius: 10px; background: var(--surface, #15121a); box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.8); color: var(--foreground); font: 500 13px/1.3 var(--sans); text-align: left; cursor: pointer; animation: hz-ipucu-in 220ms ease-out both; }
.hz-ipucu::after { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; margin: -5px 0 0 -5px; transform: rotate(45deg); background: var(--surface, #15121a); border-right: 1px solid rgba(255, 106, 0, 0.35); border-bottom: 1px solid rgba(255, 106, 0, 0.35); }
.hz-ipucu b { color: var(--accent); font-weight: 700; margin-right: 4px; }
.hz-ipucu i { font-style: normal; font-weight: 700; color: var(--accent); white-space: nowrap; }
@keyframes hz-ipucu-in { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* SIRALAMA FILTRESI (28 Eki, Cihan: "Friends ve Leaderboard'in sol kosesine filtre iconumuz; basinca 24h 7d
   vs. icine girsin, siralama: kazanc / bakiye / trade sayisi"). Solda filtre hapi secili donemi de yazar
   (sekme satiri kalkti, yer kazanildi); kazanc disi siralamada lime nokta. Pencerede ustte secime gore canli
   ilk uc; listede secilen olcu one cikar, satirlar yeni yerine akar (RankDesk FLIP). */
.rk-viewbar { flex: 0 0 auto; display: flex; align-items: stretch; border-bottom: 1px solid var(--border); }
.rk-viewbar .rk-view { flex: 1 1 auto; border-bottom: 0; }
.rk-filt { position: relative; flex: 0 0 auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 32px; margin: 0 2px 0 12px; padding: 0 10px 0 9px; border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); cursor: pointer; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.rk-filt span { font: 700 12px/1 var(--mono); color: var(--accent); letter-spacing: 0.01em; }
.rk-filt:hover { color: var(--foreground); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); }
.rk-filt svg { transition: transform .3s cubic-bezier(.2,.85,.25,1); }
.rk-filt:hover svg { transform: scaleX(1.15); }
.rk-filt.set::after { content: ""; position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 14px; background: var(--accent); box-shadow: 0 0 0 2px var(--background, #000), 0 0 8px var(--accent-glow, rgba(255, 106, 0, 0.35)); }
.rk-viewbar .rk-view button { height: 46px; padding: 0 6px; font-size: 13px; }
/* 28 Eki (Cihan: "Leaderboard ve Friends, All kismini biraz kucult; cok buyuk ve sikisik"): sekme yazisi 15 -> 13,
   hap 32 -> 26 px, simge 16 -> 13 */
.rk-viewbar .rk-filt { height: 26px; gap: 5px; margin: 0 0 0 10px; padding: 0 8px 0 7px; }
.rk-viewbar .rk-filt svg { width: 13px; height: 13px; }
.rk-viewbar .rk-filt span { font-size: 10.5px; }
.rk-viewbar .rk-filt.set::after { width: 7px; height: 7px; }

/* secilen olcu satirda one cikar */
.rk-by-trades .rk-row .pdl-sub { color: var(--foreground); font-weight: 700; }
.rk-by-trades .rk-val { opacity: .62; }
.rk-by-balance .rk-val em { opacity: .55; }
.rk-by-balance .rk-val b { font-size: 15px; }

/* pencere: canli kursu */
.rk-fmodal .pst-fbody { gap: 20px; }
.rk-fpod { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; min-height: 150px; padding: 18px 12px 14px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft, rgba(255, 106, 0, .10)), transparent 62%), var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.rk-fpod::before { content: ""; position: absolute; left: 50%; top: -40px; width: 160px; height: 120px; transform: translateX(-50%); border-radius: 50%; background: var(--accent-glow, rgba(255, 106, 0, .35)); filter: blur(46px); opacity: .45; pointer-events: none; }
.rk-fpodskel { grid-column: 1 / -1; display: block; height: 116px; border-radius: 10px; }
.rk-fpodbos { grid-column: 1 / -1; align-self: center; margin: 0; text-align: center; color: var(--muted); font: 500 13px/1.4 var(--sans); }
.rk-fstep { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 0; animation: rk-fpop .46s cubic-bezier(.2,.9,.25,1.25) both; }
.rk-fstep.p1 { animation-delay: 0s; }
.rk-fstep.p2 { animation-delay: .06s; }
.rk-fstep.p3 { animation-delay: .12s; }
.rk-fstep.bos { height: 1px; }
.rk-fava { position: relative; line-height: 0; }
.rk-favimg { width: 46px; height: 46px; border-radius: 10px; font-size: 24px; display: grid; place-items: center; object-fit: cover; background: var(--surface-3); box-shadow: 0 0 0 2px var(--surface-4, #2e2a36); }
.rk-fstep.p1 .rk-favimg { width: 62px; height: 62px; font-size: 32px; box-shadow: 0 0 0 3px var(--accent), 0 0 22px var(--accent-glow, rgba(255, 106, 0, .35)); }
.rk-fava i { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 14px; background: var(--surface-4, #2e2a36); color: var(--foreground); font: 800 10.5px/1 var(--mono); font-style: normal; box-shadow: 0 0 0 2px var(--surface-2); }
.rk-fstep.p1 .rk-fava i { background: var(--accent); color: #000; }
.rk-fname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px/1.2 var(--sans); color: var(--foreground); }
.rk-fval { font: 700 12.5px/1 var(--mono); font-style: normal; color: var(--foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-fval.pos { color: var(--gain); }
.rk-fval.neg { color: var(--danger); }
.rk-fstep.p1 .rk-fval { font-size: 14px; }
.rk-fper { grid-template-columns: repeat(4, 1fr); }
@keyframes rk-fpop { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rk-fstep { animation: none; } }

/* SOL TOKEN LISTESI %15 KUCUK (29 Eki, Cihan: "bu bolumdeki herseyi %25-30 kucult"; %27 canlida
   "cok kucuk" oldu: "%27 degil de %15 yapalim"): masanin Tokens listesi (Crypto/Trending/New/Bonding)
   satiri 64 -> 54 px, logo 42 -> 36, launchpad rozeti 20 -> 17, sembol + fiyat 15,5 -> 13, MC + yuzde
   13 -> 11, yas 11 -> 9,5, Bonding MC 14,5 -> 12,5, Vol/yuzde 12 -> 10, cubuk 56 -> 48.
   Yan kenar 14 px kalir (sekme satirindaki yildizla ayni hiza). Perps/Leaderboard listeleri ayni kalir. */
.td-list .pu-mrow { grid-template-columns: 36px minmax(0, 1fr) auto; min-height: 54px; padding: 8px 14px; gap: 9px; }
.td-list .pu-mrow > img, .td-list .pu-mrow > .tm-lpwrap > :first-child, .td-list .pu-mtile { width: 36px; height: 36px; }
.td-list .pu-mtile { font-size: 13px; }
.td-list .pu-mrow .tm-lpwrap > img.tm-lpbadge { max-width: 17px; }
.td-list .pu-mid { gap: 2px; }
.td-list .pu-msym { gap: 5px; }
.td-list .pu-msymtext, .td-list .pu-mpx { font-size: 13px; line-height: 17px; }
.td-list .pu-mbmc { font-size: 12.5px; line-height: 17px; }
.td-list .pu-mcap, .td-list .pu-mmc .tm-chg { font-size: 11px; line-height: 14px; }
.td-list .pu-mvol, .td-list .pu-mpct { font-size: 10px; line-height: 14px; }
.td-list .pu-mage { font-size: 9.5px; line-height: 14px; gap: 2px; }
.td-list .pu-mage svg { width: 9.5px; height: 9.5px; }
.td-list .pu-mlive { font-size: 7.5px; line-height: 12px; }
.td-list .pu-mbar { width: 48px; height: 3.5px; }
.td-list .pu-mrow.pos-held > img:not(.tm-lpbadge), .td-list .pu-mrow.pos-held > .pu-mtile, .td-list .pu-mrow.pos-held > .tm-lpwrap > :first-child {
  box-shadow: 0 0 0 1.5px rgba(255, 106, 0, 0.9), 0 0 14px 3px rgba(255, 106, 0, 0.4);
}

/* TOKEN BASLIGI + SOL LISTELER (31 Eki, Cihan ekran gorseliyle): masaustu geri oku ve CA cipi kalkti;
   ismin saginda yalniz kopyala ikonu (.th-copy). Token logosu 48 -> 54 px (kart yuksekligi ayni kalir,
   80 px). Yas (filiz + 1w) isim ve ciplerle ayni dikey ortada. Sol listelerin logolari esit: Tokens
   36 -> 38 (%7 istegi; tam piksel), Perps 42 -> 38. */
.th-top > .tm-logo { width: 54px; height: 54px; font-size: 17px; }
.th-copy {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 4px; padding: 0;
  border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; vertical-align: -3px;
}
.th-copy:hover { color: var(--foreground); background: var(--surface-2); }
.th-copy svg { width: 15px; height: 15px; }
.th-copy + .pu-age { margin-left: 3px; }
/* isim satiri flex: ikon + 26 px rozetler satir yuksekligini itip karti 80 -> 84 px buyutuyordu (olculdu). */
.th-name .tm-heroname { display: flex; align-items: center; line-height: 26px; }
.th-subrow .tm-herosym { display: inline-flex; align-items: center; }
.th-subrow .pu-age { vertical-align: 0; line-height: 1; }
.td-list .pu-mrow { grid-template-columns: 38px minmax(0, 1fr) auto; }
.td-list .pu-mrow > img, .td-list .pu-mrow > .tm-lpwrap > :first-child, .td-list .pu-mtile { width: 38px; height: 38px; }
.td-list .pu-mrow .tm-lpwrap > img.tm-lpbadge { max-width: 18px; }
.td-list .tm-card .tm-coin.lg { width: 38px; height: 38px; }

/* SOL LISTELERIN YAZILARI TEK BOY (31 Eki, Cihan: "tokens kismindaki yazilari %10 buyutelim, sonra onun boyu neyse
   aynisini perps sekmesine de uygula"). Tokens: ust satir (sembol/ad, fiyat) 13 -> 14,3 px; alt satir (MC,
   yuzde, hacim) 11 -> 12,1 px; yas 9,5 -> 10,5. Perps (15,5/13 idi) ayni iki boya
   iner; Perps satiri da Tokens gibi 54 px. */
.td-list .pu-msymtext, .td-list .pu-mpx { font-size: 14.3px; line-height: 19px; }
.td-list .pu-mbmc { font-size: 13.75px; line-height: 19px; }
.td-list .pu-mcap, .td-list .pu-mmc .tm-chg { font-size: 12.1px; line-height: 15.5px; }
.td-list .pu-mvol, .td-list .pu-mpct { font-size: 11px; line-height: 15.5px; }
.td-list .pu-mage { font-size: 10.5px; line-height: 15.5px; }
.td-list .pu-mage svg { width: 10.5px; height: 10.5px; }
.td-list .pu-mlive { font-size: 8.25px; line-height: 13px; }
.td-list .tm-card { min-height: 54px; padding: 8px 14px; gap: 9px; }
.td-list .tm-cardsym, .td-list .tm-cardpx { font-size: 14.3px; line-height: 19px; }
.td-list .tm-cardname, .td-list .tm-card .tm-chg { font-size: 12.1px; line-height: 15.5px; }

/* STOCKS SEKMESI (31 Eki, hisse plani Faz 1): listenin ustunde ABD borsasinin durumu; satirda MC yerine sirket adi ve hacim. */
.pu-borsa { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px 8px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); }
.pu-borsa i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.pu-borsa.acik i { background: var(--gain); }
.pu-mcap.pu-hisseadi { font-family: var(--sans); overflow: hidden; text-overflow: ellipsis; }

/* HISSE SAYFASI (31 Eki, hisse plani Faz 1; app/HisseYolu.tsx): bilette "Own it / Leverage", borsa satiri ve
   kapaliyken tek cumle; basliktaki borsa rozeti. */
.hy { display: grid; gap: 8px; margin-bottom: 12px; }
.hy-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-xl); background: var(--surface-2); }
.hy-seg > * { min-height: 34px; display: grid; place-items: center; border-radius: var(--r-lg); font-size: 13px; font-weight: 700; color: var(--muted); }
.hy-seg .hy-on { background: var(--accent); color: #0b0d00; }
.hy-seg button { border: 0; background: none; cursor: pointer; font-family: var(--sans); }
.hy-seg button:hover:not(:disabled) { color: var(--foreground); background: var(--surface-3); }
.hy-seg button:disabled { cursor: default; opacity: 0.5; }
.hy-borsa { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12.5px; color: var(--muted); }
.hy-borsa i, .hy-rozet i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.hy-borsa.acik i, .hy-rozet.acik i { background: var(--gain); }
.hy-not { margin: 0; padding: 9px 11px; border-radius: var(--r-lg); background: var(--gold-soft); border: 1px solid rgba(251, 191, 36, 0.3); font-size: 12.5px; line-height: 1.45; color: var(--foreground); }
.hy-rozet { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 10px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* LEADERBOARD UC SEKME + DONEM SATIRI (1 Kas, Cihan; telefonla ayni): Traders / Positions / Friends, altinda solda
   24h 7d 30d All, sagda yuvarlak filtre. Positions: en karli pozisyonlar, satirda sira+yuz+ad+Follow, altinda kart. */
.rk-ust { flex: 0 0 auto; border-bottom: 1px solid var(--border); }
.rk-ust .rk-view3 { grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.rk-ust .rk-view3 button { height: 46px; padding: 0 4px; font-size: 13.5px; }
.rk-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.rk-alt .rk-per { flex: 1 1 auto; max-width: 240px; }
.rk-alt .rk-filt.rk-filtyuv { width: 34px; height: 34px; margin: 0; padding: 0; justify-content: center; border-radius: 10px; }
.rk-filt.rk-filtyuv.set::after { content: ""; position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 14px; background: var(--accent); box-shadow: 0 0 0 2px var(--bg, #000); }
.rk-pozlar { display: block; }
.rk-poz { padding: 12px 14px 14px; border-bottom: 1px solid var(--border); }
.rk-pozust { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rk-pozkim { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
.rk-pozkim .rk-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 1 Kas (Cihan): Follow cam cerceve + beyaz yazi; takip edilen kiside hic cikmaz. */
.rk-takip { flex: 0 0 auto; height: 26px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: #fff; font: 800 12px/1 var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(12px) saturate(1.8); backdrop-filter: blur(12px) saturate(1.8); box-shadow: inset 0 0 0 0.75px rgba(255, 255, 255, 0.26), 0 4px 14px rgba(0, 0, 0, 0.22); transition: background .2s ease, transform .15s ease; }
.rk-takip:hover { background: rgba(255, 255, 255, 0.1); }
.rk-takip:active { transform: scale(.95); }
.rk-takip:disabled { opacity: .6; cursor: default; }
.rk-pozkart { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
/* donem (4) ve Positions filtresi (4-5 secenek): sutun sayisi secenek kadar */
.rk-alt .rk-per, .rk-fmodal .pst-fseg { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.rk-alt .rk-per button { height: 30px; font: 700 12.5px/1 var(--sans); }

/* MASAUSTU SIRALAMA UST KISMI (1 Kas, Cihan: "sureler kucuk solda, sagda kucuk filtre, kullanicinin kendisi hafif
   kivrimli kenarla ustte; Traders / Positions / Friends biraz kucuk, sikisik olmuslar"). */
.rk-ust { border-bottom: 1px solid var(--border); }
.rk-ust .rk-view3 { border-bottom: 1px solid var(--border); }
.rk-ust .rk-view3 button { height: 44px; padding: 0 2px; font-size: 12.5px; letter-spacing: 0; }
.rk-ust .rk-view3 button.on::after { left: 22%; right: 22%; height: 2.5px; }
.rk-alt { padding: 10px 12px; gap: 8px; }
.rk-alt .rk-per {
  flex: 0 0 auto; max-width: none; display: inline-grid; gap: 2px; padding: 3px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--border);
}
.rk-alt .rk-per button { height: 26px; min-width: 38px; padding: 0 9px; border-radius: 10px; font: 700 11.5px/1 var(--sans); color: var(--muted-2); }
.rk-alt .rk-per button:hover { color: var(--foreground); }
.rk-alt .rk-per button.on { background: var(--surface-3); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border-strong); }
.rk-alt .rk-filt.rk-filtyuv { width: 30px; height: 30px; background: rgba(255, 255, 255, 0.04); }
.rk-alt .rk-filtyuv svg { width: 14px; height: 14px; }
/* Kendi satirin: listenin ustunde, hafif kivrimli kart, ince lime kenar. */
.rk-row.rk-me, .rk-row.pf3-mine {
  width: calc(100% - 24px); margin: 10px 12px 8px; padding: 8px 12px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(255, 255, 255, 0.02) 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.22), 0 8px 22px rgba(0, 0, 0, 0.25);
}
.rk-row.rk-me:hover, .rk-row.pf3-mine:hover { background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(255, 255, 255, 0.04) 60%); }
.rk-row.rk-me + .td-rows .rk-row:first-child, .rk-row.pf3-mine + .td-rows .rk-row:first-child { border-top: 0; }
/* filtre solda, sureler sagda (1 Kas, Cihan; telefonla ayni) */
.rk-alt { flex-direction: row-reverse; }

/* TOKEN EMIR PLANI (4 Kas 2026, Selcuk; app/src/app/OrdersPanel.tsx). Buy dugmesinin altindaki Orders paneli:
   3 alim, 4 kar al, 2 stop. Alim lime (basilan), kar al yesil (yukselen), stop kirmizi; satirlar bilet kutulariyla ayni. */
.op-panel { display: grid; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #08090a; }
.op-sec { display: grid; gap: 6px; }
.op-sech { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.op-sech b { font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.op-sech small { font-size: 11.5px; color: var(--muted-2); }
.op-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.op-tp .op-dot { background: var(--gain); }
.op-sl .op-dot { background: var(--danger); }
.op-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: center; padding: 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.op-row.nomc { grid-template-columns: minmax(0, 1fr); }
.op-r2 { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 52px 20px; gap: 6px; align-items: center; }
.op-f small { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-right: 4px; }
.op-head span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.op-f { display: flex; align-items: center; gap: 2px; min-width: 0; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.op-f:focus-within { border-color: var(--accent); }
.op-f em { font-style: normal; color: var(--muted-2); font-size: 12.5px; }
.op-f i { font-style: normal; color: var(--muted-2); font-size: 11px; font-weight: 700; margin-left: 2px; }
.op-f input { all: unset; width: 100%; min-width: 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--foreground); }
.op-f input::placeholder { color: var(--muted-3, #635d69); font-weight: 500; }
.op-away { font-size: 12px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted-2); }
.op-away.dn { color: var(--danger); }
.op-away.up { color: var(--gain); }
.op-x { all: unset; cursor: pointer; color: var(--muted-2); text-align: center; font-size: 15px; }
.op-x:hover { color: var(--foreground); }
.op-add { all: unset; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--accent); padding: 2px 0; justify-self: start; }
.op-full { font-size: 12px; color: var(--muted-2); }
.op-rule { margin: 0; font-size: 12px; color: var(--muted-2); }
.op-err { margin: 0; font-size: 12.5px; color: var(--danger); }
.op-sum { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--border-strong); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.op-sum div { display: flex; justify-content: space-between; color: var(--muted); }
.op-sum b { color: var(--foreground); }
.op-krow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 42px 20px; gap: 6px; align-items: center; }
.op-krow .op-alt { grid-column: 1 / -1; margin-top: -2px; font-size: 11.5px; color: var(--muted-2); padding-left: 2px; }
.op-birim { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--background); justify-self: end; }
.op-birim button { all: unset; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); padding: 3px 10px; border-radius: 6px; }
.op-birim button.on { background: var(--accent-soft); color: var(--accent); }
.op-confirm { display: grid; gap: 10px; padding: 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: none; }
.op-confirm b { font-size: 14px; }
.op-confirm ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.op-cbtns { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.op-back { all: unset; cursor: pointer; text-align: center; border-radius: 10px; min-height: 50px; display: grid; place-items: center; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--foreground); }

/* Emir plani grubu (4 Kas): plana ait emirler basligin altinda, sol cizgiyle. */
.po-tag.plan { color: var(--accent); background: var(--accent-soft); }
.po-plan { display: grid; border-left: 2px solid var(--accent-soft); padding-left: 8px; margin: 2px 0; }
.po-planhead .po-mid small { color: var(--muted-2); }
/* Tutar / pay kutusu (4 Kas): sabit birim isareti, ok ile hazir secenekler + Custom. */
.op-v { position: relative; }
.op-v input { text-align: right; }
.op-v em:first-child ~ input { text-align: left; }
.op-yuzde { margin-left: 1px; }
.op-ok { all: unset; cursor: pointer; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 5px; color: var(--muted-2); background: var(--surface-3); }
.op-v.acik .op-ok { color: var(--accent); }
.op-menuarka { position: fixed; inset: 0; z-index: 40; }
.op-menu { position: absolute; z-index: 41; top: calc(100% + 4px); right: 0; min-width: 120px; display: grid; gap: 2px; padding: 5px; border-radius: 8px; background: var(--surface-3); box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 0 1px var(--border-strong); }
.op-menu button { all: unset; cursor: pointer; padding: 7px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--foreground); font-variant-numeric: tabular-nums; }
.op-menu button:hover { background: var(--surface-2); }
.op-menu button.on { background: var(--accent-soft); color: var(--accent); }
.op-menu .op-custom { color: var(--muted); border-top: 1px solid var(--border); border-radius: 0 0 6px 6px; }

/* POZISYON KARTI SAG RAYDA (4 Kas, Cihan: "buy more ve close tuslarini kaldir; perps ve tokens
   sayfalarinda bu kismi About kisminin ustune koyalim, oraya sigsin, bir cerceve ile"). PositionCard `ray`:
   biletin altinda, About karti gibi cerceveli (surface + ince kenar); dugme satiri yok;
   dar sutunda deger ve sonuc ustte, giris->simdi seridi altinda tam genislik, perps hucreleri 2x2. */
.mp-slot.mp-ray { margin: 0; gap: 10px; }
.mp-ray .pp2.pp2-ray { gap: 12px; padding: 16px 16px 0; border-radius: var(--r-2xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.mp-ray .pp2-ray .pp-tx { margin: 0 -16px; padding: 0 16px; }
.mp-ray .pp2-ray .pp-txhead { padding: 11px 0; font-size: 13.5px; }
.mp-ray .pp2-ray .pp2-share { height: 28px; padding: 0 2px; gap: 7px; font-size: 13px; border: 0; border-radius: 6px; background: none; box-shadow: none; }
/* 4 Kas (Cihan: "share butonunun cercevesini kaldir, iconu biraz buyut"): cercevesiz, simge 14 -> 18 px. */
.mp-ray .pp2-ray .pp2-share svg { width: 18px; height: 18px; }
.mp-ray .pp2-ray .pp2-share:hover:not(:disabled) { background: none; box-shadow: none; color: var(--accent); filter: brightness(1.15); }
.mp-ray .pp2-ray .pp2-top { gap: 8px; }
.mp-ray .pp2-ray .pp2-main { flex-wrap: wrap; gap: 10px 12px; }
.mp-ray .pp2-ray .pp2-value b { font-size: 24px; }
.mp-ray .pp2-ray .pp2-move { order: 3; flex: 1 1 100%; min-width: 0; }
.mp-ray .pp2-ray .pp2-pnl { padding: 6px 10px; }
.mp-ray .pp2-ray .pp2-pnl b { font-size: 16px; }
.mp-ray .pp2-ray .pp2-foot { gap: 10px; }
.mp-ray .pp2-ray .pp2-cells { flex: 1 1 100%; }
.mp-ray .pp2-ray .pp2-cells.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
.mp-ray .pp2-ray .pp2-cells.n4 .pp2-cell:nth-child(3) { padding-left: 0; border-left: 0; }
.mp-ray .pp2-ray .pp2-cell { padding: 0 10px; }
.mp-ray .pp2-ray .pp2-cell b { font-size: 13.5px; }
.mp-ray .pp2-ray .pp2-actions { flex: 1 1 100%; margin-left: 0; grid-auto-flow: row; }
.mp-ray .pp2-ray.pp2-sade .pp2-main { flex-wrap: nowrap; }
.mp-ray .pp2-ray.pp2-sade .pp2-pnl { padding: 0; }
.mp-ray .pp2-ray.pp2-sade .pp2-value b, .mp-ray .pp2-ray.pp2-sade .pp2-pnl b { font-size: 20px; }
.mp-ray .pp2-ray.pp2-sade .pp2-value small, .mp-ray .pp2-ray.pp2-sade .pp2-pnl small { font-size: 12.5px; }
/* 4 Kas (Cihan: "investment ve avg kismini %30 kucultelim, ayni hizada olsunlar, rakamlar buyuk olsa bile sigsin"):
   Invested | Avg. entry tek satirda, ~%30 kucuk; tasarsa yazi ucunda ... ile kisalir. */
.mp-ray .pp2-ray .pp2-sadealt { flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.mp-ray .pp2-ray .pp2-sadealt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 4 Kas aksam (Cihan: "Avg. entry sadece Entry, o satir cok kucuk olmus biraz buyutelim"): 9,5/10 -> 11,5/12,5 px. */
.mp-ray .pp2-ray .pp2-sadealt b { margin-left: 5px; font-size: 12.5px; }
/* KORUMA RAYI (26 Kas 2026, Cihan: "TP SL asiri kotu, sonradan ekleme duruyor ... sifirdan yap"; 17 Kas'in gri kutu
   dugmesinin yerine). Token kartinda Invested | Entry'nin altinda kartin kendi fiyat rayi: solda stop (kirmizi uc),
   sagda kar al (yesil uc), arada giris cizgisi ve simdiki fiyatin noktasi; giristen noktaya dolgu kazancta yesil,
   kayipta kirmizi. Kurulu olmayan uc bos halka + lime "Add"; kurulu uc dolu + seviye ve simdiki fiyata uzaklik.
   Kutu, cerceve, zemin yok: yazi olculeri ustundeki Invested | Entry satiriyla ayni (11,5 / 12,5 px). Tamami tek dugme,
   basinca biletteki SL/TP kutusu. Cizim PozisyonTpSlWeb.tsx KorumaRayi, geometri korumaRayi.ts. */
.pp2-tpsl { flex: 1 1 100%; display: grid; gap: 8px; }
.kr { all: unset; box-sizing: border-box; display: grid; gap: 8px; width: 100%; padding: 3px 0 1px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kr:disabled { cursor: default; }
.kr[aria-busy="true"] .kr-ray { animation: kr-nabiz .7s ease-in-out infinite alternate; }
.kr:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 5px; }
@keyframes kr-nabiz { to { opacity: .45; } }
.kr-ray { position: relative; display: block; height: 14px; margin: 0 5px; }
.kr-ray > i { position: absolute; top: 50%; display: block; }
.kr-hat {
  left: 0; right: 0; height: 3px; margin-top: -1.5px; border-radius: 3px; transition: filter .18s ease;
  background: linear-gradient(90deg, rgba(255, 77, 109, var(--kr-sl, .6)), rgba(255, 255, 255, .1) 28%, rgba(255, 255, 255, .1) 72%, rgba(43, 214, 123, var(--kr-tp, .6)));
}
.kr-ray.sl-bos { --kr-sl: .2; }
.kr-ray.tp-bos { --kr-tp: .2; }
.kr-dolgu { height: 3px; margin-top: -1.5px; border-radius: 3px; transition: left .3s ease, width .3s ease; }
.kr-ray.pos .kr-dolgu { background: var(--gain); box-shadow: 0 0 10px rgba(43, 214, 123, .5); }
.kr-ray.neg .kr-dolgu { background: var(--danger); box-shadow: 0 0 10px rgba(255, 77, 109, .5); }
.kr-giris { width: 2px; height: 10px; margin: -5px 0 0 -1px; border-radius: 2px; background: rgba(255, 255, 255, .62); }
.kr-ara { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.kr-ara.sl { background: var(--danger); }
.kr-ara.tp { background: var(--gain); }
.kr-dugum { width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; box-sizing: border-box; transition: transform .18s ease; }
.kr-dugum.sl { left: -5px; background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 77, 109, .18); }
.kr-dugum.tp { right: -5px; background: var(--gain); box-shadow: 0 0 0 3px rgba(43, 214, 123, .18); }
.kr-ray.sl-bos .kr-dugum.sl { background: var(--surface); border: 1.5px solid rgba(255, 77, 109, .7); box-shadow: none; }
.kr-ray.tp-bos .kr-dugum.tp { background: var(--surface); border: 1.5px solid rgba(43, 214, 123, .7); box-shadow: none; }
.kr-simdi {
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; transition: left .3s ease;
  box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4px rgba(255, 255, 255, .5);
}
.kr-ray.pos .kr-simdi { box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4px var(--gain), 0 0 14px 3px rgba(43, 214, 123, .45); }
.kr-ray.neg .kr-simdi { box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4px var(--danger), 0 0 14px 3px rgba(255, 77, 109, .45); }
.kr-uclar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kr-uc { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.kr-uc.tp { justify-items: end; }
.kr-uc small { display: inline-flex; align-items: center; gap: 5px; height: 15px; font: 500 11.5px/15px var(--sans); color: var(--muted-2); }
.kr-uc small i { min-width: 15px; height: 15px; padding: 0 4px; box-sizing: border-box; border-radius: 6px; font: 700 10px/15px var(--sans); font-style: normal; text-align: center; color: var(--muted); background: rgba(255, 255, 255, .09); }
.kr-uc b { display: inline-flex; align-items: baseline; gap: 6px; font: 600 12.5px/1.15 var(--sans); color: var(--foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kr-uc.tp b { flex-direction: row-reverse; }
.kr-uc b em { font: 600 11.5px/1.15 var(--sans); font-style: normal; }
.kr-uc.sl b em { color: var(--danger); }
.kr-uc.tp b em { color: var(--gain); }
.kr-uc b.kr-ekle { flex-direction: row; align-items: center; gap: 4px; color: var(--accent); transition: filter .18s ease; }
.kr:hover:not(:disabled) .kr-hat { filter: brightness(1.5); }
.kr:hover:not(:disabled) .kr-dugum { transform: scale(1.3); }
.kr:hover:not(:disabled) .kr-ekle { filter: brightness(1.18); }
.pp2-tpsl .kpz-tpslnot { padding: 0 2px; text-align: left; }
@media (prefers-reduced-motion: reduce) { .kr-dolgu, .kr-simdi, .kr-dugum { transition: none; } .kr[aria-busy="true"] .kr-ray { animation: none; } }
.mp-ray .po-list { margin: 0; }
.mp-ray .pp2-addpost { margin-left: 2px; }

/* SEKME BASLIKLARI "A" (4 Kas, Cihan: "post holders trades basliklari cok kotu duruyor" -> "A'yi yap"): token sayfasindaki
   cercevede (.mt-kutu, RH + Solana) basliklar sola dayali, aralarinda 26 px; lime cizgi yalniz secili yazinin altinda;
   sayilar kucuk ve gri; Post filtresi sekmeden ayrilip satirin en saginda (TokenExtras PostFiltreDugmesi, Post acikken). */
.mt-kutu .mt-tabs { align-items: stretch; gap: 38px; padding: 0 20px; }
/* 4 Kas (Cihan: "biraz yuksekliklerini arttir"): satir ~45 -> ~56 px, yazi 16 px. */
.mt-kutu .mt-tabs button[role="tab"] { flex: 0 0 auto; padding: 19px 0 16px; font: 500 16px/1.2 var(--sans); color: var(--muted-2); }
.mt-kutu .mt-tabs button[role="tab"]:hover { color: var(--foreground); }
.mt-kutu .mt-tabs button.on { color: var(--foreground); }
.mt-kutu .mt-tabs .mt-tabnum { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--muted-3); }
.mt-kutu .mt-tabs .pst-tabfilt { display: none; }
.mt-kutu .mt-tabs .mt-filtbtn { flex: 0 0 auto; position: relative; margin: 0 0 0 auto; align-self: center; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted-2); cursor: pointer; transition: color .15s ease, background .15s ease; }
.mt-kutu .mt-tabs .mt-filtbtn:hover { color: var(--foreground); background: rgba(255,255,255,.05); }
.mt-kutu .mt-tabs .mt-filtbtn.set::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 14px; background: var(--accent); }

/* HOLDERS / TRADES FILTRESI (4 Kas, Cihan; listeFiltresi.tsx): platform secimi logolu haplar, Post filtresinin rengi. */
.lf-plat { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-plat button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); font: 600 13.5px var(--sans); cursor: pointer; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.lf-plat button:hover { color: var(--foreground); }
.lf-plat button.on { background: var(--accent-soft); color: var(--foreground); box-shadow: inset 0 0 0 1.5px var(--accent); }
.lf-plat .lf-app { width: 18px; height: 18px; border-radius: 10px; object-fit: cover; }
.lf-plat .lf-app[data-app="yobro"] { border-radius: 5px; }

/* HOLDERS GRUPLARI, YENI (4 Kas, Cihan: "alt kisimdaki 3 bolum asiri kotu, siteye hic uygun degil; hem mobil hem web
   elden gecir, sasirt beni"). Kalin kartlar (dolu zemin, sol renk seridi, daire ok, kenarli sayi hapi) kalkti: grup artik
   listenin dogal bir satiri. Ok # sutununda, yaninda grubun simgeli renkli kutusu (insanlar / havuz dalgasi / kilit /
   uygulamalar / egri), adin yaninda soluk sayi, pay ve deger sutunlarla hizali. Satirin alt cizgisi grubun arzdaki payi
   kadar grubun renginde dolar (acilista akar). Aciklama soluk tek satir, acilinca tamami. */
.hd-liste .hd-bas td { padding: 0; border-top: 1px solid var(--border); }
.hd-bant { position: relative; align-items: center; padding: 13px 14px 13px 0; border-radius: 0; background: none; box-shadow: none; }
button.hd-bant:hover { background: color-mix(in srgb, var(--foreground) 3.5%, transparent); }
button.hd-bant:focus-visible { outline-offset: -2px; border-radius: 8px; }
.hd-bant-sol { gap: 3px; }
.hd-bant-ad { flex-wrap: nowrap; gap: 10px; min-height: 30px; min-width: 0; }
.hd-bant-ad b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-bant-sayi { padding: 0; border: 0; border-radius: 0; background: none; font-size: 12.5px; font-weight: 500; color: var(--muted-3); }
.hd-bant-ok { width: 24px; height: 30px; margin: 0; border: 0; border-radius: 0; background: none; }
.hd-bant-ok::after { left: 3px; width: 7px; height: 7px; border-color: var(--muted-2); border-width: 0 1.7px 1.7px 0; transform: translate(0, -70%) rotate(45deg); }
.hd-bas.acik .hd-bant-ok::after { transform: translate(0, -25%) rotate(-135deg); }
button.hd-bant:hover .hd-bant-ok::after { border-color: var(--foreground); }
.hd-bant:not(.acilir) .hd-bant-ad { padding-left: 34px; }
.hd-bant-renk { position: relative; width: 30px; height: 30px; border-radius: 6px; background: var(--t); box-shadow: inset 0 0 0 1px var(--tk, transparent); }
.hd-bant-renk::before { content: ""; position: absolute; inset: 7px; background: var(--ic); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.hd-bant-not, .hd-bant.acilir .hd-bant-not { padding-left: 74px; max-width: 64ch; font-size: 12.5px; line-height: 1.4; color: var(--muted-3);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hd-bas.acik .hd-bant-not { -webkit-line-clamp: unset; color: var(--muted-2); }
.hd-bant-pay { font-size: 15px; font-weight: 700; line-height: 30px; }
.hd-bant-deg { font-size: 13.5px; line-height: 30px; }
.hd-bant-deg .hd-kismi { line-height: 1.2; font-size: 11.5px; }
.hd-bant::after { content: ""; position: absolute; left: 74px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--bar);
  width: calc((100% - 88px) * var(--p, 0) / 100); max-width: calc(100% - 88px); animation: hd-pay-ak .9s cubic-bezier(.2, .8, .2, 1) both; pointer-events: none; }
@keyframes hd-pay-ak { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .hd-bant::after { animation: none; } }
.hd-liste .hd-soz td:nth-child(2) { padding-left: 40px; }
.hd-bas.k-herkes { --t: rgba(255, 106, 0, .13); --ic: #ff6a00; --bar: rgba(255, 106, 0, .6); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.5' r='3.2'/%3E%3Cpath d='M3.5 19.5c.7-3.3 2.9-5.2 5.5-5.2s4.8 1.9 5.5 5.2'/%3E%3Ccircle cx='17' cy='9.5' r='2.4'/%3E%3Cpath d='M16.3 14.4c2.3.2 3.8 1.9 4.2 4.6'/%3E%3C/svg%3E"); }
.hd-bas.k-likidite { --t: repeating-linear-gradient(135deg, #2c3035 0 3px, #22252a 3px 6px); --tk: rgba(255,255,255,.06); --ic: #c9ced6; --bar: #7d838c; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5c1.5-1.2 3-1.2 4.5 0s3 1.2 4.5 0 3-1.2 4.5 0 3 1.2 4.5 0'/%3E%3Cpath d='M3 12.5c1.5-1.2 3-1.2 4.5 0s3 1.2 4.5 0 3-1.2 4.5 0 3 1.2 4.5 0'/%3E%3Cpath d='M3 16.5c1.5-1.2 3-1.2 4.5 0s3 1.2 4.5 0 3-1.2 4.5 0 3 1.2 4.5 0'/%3E%3C/svg%3E"); }
.hd-bas.k-kilit { --t: #24272c; --tk: rgba(255,255,255,.06); --ic: #a9afb8; --bar: #5a6069; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.6'/%3E%3Cpath d='M8.2 10.5V8a3.8 3.8 0 0 1 7.6 0v2.5'/%3E%3C/svg%3E"); }
.hd-bas.k-uygulama { --t: rgba(77, 106, 154, .28); --ic: #9db8e8; --bar: #4d6a9a; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='2'/%3E%3Crect x='13' y='4' width='7' height='7' rx='2'/%3E%3Crect x='4' y='13' width='7' height='7' rx='2'/%3E%3Crect x='13' y='13' width='7' height='7' rx='2'/%3E%3C/svg%3E"); }
.hd-bas.k-egri { --t: transparent; --tk: #3a3e44; --ic: #c9ced6; --bar: #5a5f66; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 19.5C10 19.5 11.5 4.5 20.5 4.5'/%3E%3Ccircle cx='20.5' cy='4.5' r='.6'/%3E%3C/svg%3E"); }
.hd-bas.k-egri .hd-bant { border: 0; background: none; }
.hd-bas.k-egri .hd-bant-renk { box-shadow: inset 0 0 0 1px #3a3e44; }
.hd-bas.k-egri .hd-bant-not { -webkit-line-clamp: unset; color: var(--muted-2); font-size: 12.5px; }
@media (max-width: 899px) {
  .hd-bant-not, .hd-bant.acilir .hd-bant-not { padding-left: 74px; }
}

/* MOST TRADED, TOKEN + PERPS (5 Kas, Cihan: "kaldiracli islemleri de ekleyelim, sasirt beni"; "6 tane olsun"): perps satirinda "Perp" etiketi; her satirda yon cubugu (yesil alim ya da long,
   kirmizi satis ya da short), satira gelince parlar. */
.fd-rankperp { margin-left: 6px; padding: 2px 6px; border-radius: 5px; background: rgba(255, 106, 0, .12); color: var(--accent); font: 700 10px/1 var(--sans); font-style: normal; letter-spacing: .02em; vertical-align: 2px; }
.fd-rankyon { display: block; width: 100%; max-width: 140px; height: 3px; margin-top: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gain) 0 var(--al), color-mix(in srgb, var(--danger) 75%, transparent) var(--al) 100%); opacity: .55; transition: opacity .15s ease; }
.fd-rankyon.bos { background: var(--surface-3); }
.fd-rank button:hover .fd-rankyon { opacity: 1; }
/* POST GORSELI (5 Kas; app/src/app/PostGorsel.tsx): yazma penceresinde dugme + onizleme, postta kutu, tam ekran perde. Web ve telefon ayni kurallar. */
.pg-dugme { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pg-dugme:disabled { opacity: .38; cursor: default; }
.pg-ek { position: relative; align-self: flex-start; display: inline-block; max-width: 100%; margin: 10px 0 6px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.pg-ek img { display: block; max-width: 100%; max-height: 220px; width: auto; height: auto; object-fit: contain; }
.pg-ek.yukleniyor img { opacity: .5; }
.pg-ek .pg-durum { position: absolute; left: 8px; bottom: 8px; padding: 5px 10px; border-radius: 10px; background: rgba(13, 11, 16, .75); color: #fff; font: 600 12px/1.2 system-ui, -apple-system, "Albert Sans", sans-serif; }
.pg-ek .pg-sil { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: none; border-radius: 10px; background: rgba(13, 11, 16, .72); color: #fff; cursor: pointer; }
.pg-kutu { display: block; max-width: 100%; margin: 8px 0 2px; padding: 0; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .04); cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.pg-kutu img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-perde { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(13, 11, 16, .92); cursor: zoom-out; }
.pg-perde img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 5px; background: center / contain no-repeat; }
/* 23 Kas: uzun görsel perdede kaydırılır (PostGorsel.tsx GorselPerdesi). */
.pg-perde.uzun-dikey { align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; }
.pg-perde.uzun-dikey img { max-height: none; height: auto; margin: auto; }
.pg-perde.uzun-yatay { justify-content: flex-start; overflow-x: auto; overscroll-behavior: contain; }
.pg-perde.uzun-yatay img { max-width: none; width: auto; margin: auto; }
.pg-perde .pg-kapat { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: none; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }

/* 5 Kas aksam (Cihan: "o bolumdeki her seyi %4 kucult"): Most traded karti %4 kucuk (yazi, logo, bosluk birlikte). */
/* 5 Kas aksam 2 (Cihan: "%3 daha kucult"): .96 -> .93. */
.fd-card.fd-encok { zoom: .93; }
/* 5 Kas: cevap / ekip yazma satirinda gorsel dugmesi yuzun yaninda; onizleme kisa. */
.pst-rpin .pg-dugme { width: 34px; height: 34px; align-self: flex-end; }
.pst-rpfoot .pg-ek img { max-height: 140px; }

/* ── YAZMA KARTI (5 Kas; app/src/app/YazmaKarti.tsx): cevap ve Team updates alt satiri tek kart. Odakta ince lime
   halka + yumusak isik; gorsel kart icinde kucuk resim (denetimde ustunden isik gecer, sonra "Ready"); surukle-birak
   sirasinda kart lime kesik cizgili "Drop to attach" yuzeyi. ─────────────────────────────────────────────────────── */
.yk { position: relative; display: grid; gap: 0; padding: 4px 6px 6px; border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong), 0 1px 0 rgba(255, 255, 255, 0.03); transition: box-shadow 0.22s ease, background 0.22s ease; }
.yk:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.55), 0 0 0 4px rgba(255, 106, 0, 0.07), 0 10px 32px -12px rgba(255, 106, 0, 0.22); }
.yk-in { display: block; width: 100%; min-height: 46px; max-height: 150px; margin: 0; padding: 12px 12px 6px; border: 0; outline: none; resize: none; background: transparent; color: var(--foreground); caret-color: var(--accent); font: 500 15px/1.45 var(--sans); box-sizing: border-box; }
.yk-in::placeholder { color: var(--muted-3, #6b7178); }
.yk-in:disabled { opacity: 0.6; }

.yk-alt { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 2px 0 6px; }
.yk-yuz { display: inline-flex; flex: 0 0 auto; margin-right: 2px; }
.yk-yuzimg { width: 26px; height: 26px; border-radius: 10px; object-fit: cover; overflow: hidden; background: var(--surface-3); font-size: 15px; line-height: 26px; text-align: center; box-shadow: 0 0 0 1.5px var(--surface-2), 0 0 0 2.5px rgba(255, 255, 255, 0.08); }
.yk-arac { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.yk-arac:hover:not(:disabled) { background: rgba(255, 106, 0, 0.1); color: var(--accent); }
.yk-arac:active:not(:disabled) { transform: scale(0.92); }
.yk-arac:disabled { opacity: 0.32; cursor: default; }
/* Kendi ipucumuz (tarayicinin gri kutusu yerine): kucuk koyu hap, ustte. */
.yk-arac::after { content: attr(data-ipucu); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 5px 9px; border-radius: 6px; background: #06030a; box-shadow: 0 0 0 1px var(--border-strong), 0 8px 20px rgba(0, 0, 0, 0.5); color: var(--foreground); font: 600 11.5px/1 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; }
.yk-arac:hover:not(:disabled)::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.35s; }
.yk-ipucu { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; color: var(--muted-3, #6b7178); font: 500 11.5px/1 var(--sans); opacity: 0; transition: opacity 0.2s ease; }
.yk:focus-within .yk-ipucu { opacity: 1; }
.yk-ipucu kbd { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 5px; background: var(--surface-3); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35); color: var(--muted); font: 600 10.5px/1 var(--sans); box-sizing: border-box; }
.yk-bosluk { flex: 1 1 auto; }
.yk-sayac { margin-right: 6px; color: var(--muted-2); font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums; }
.yk-gonder { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: var(--accent); color: #000; cursor: pointer; box-shadow: 0 6px 18px -4px rgba(255, 106, 0, 0.45); transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, filter 0.2s ease; }
.yk-gonder:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.yk-gonder:active:not(:disabled) { transform: scale(0.94); }
.yk-gonder:disabled { background: var(--surface-3); color: var(--muted-2); box-shadow: none; cursor: default; }
.yk-don { width: 16px; height: 16px; border-radius: 14px; border: 2.4px solid rgba(0, 0, 0, 0.18); border-top-color: currentColor; animation: pst-rpspin 0.7s linear infinite; }

/* Kart icindeki gorsel: kucuk resim, yazinin ustunde. */
/* Boyut satir icinden gelir (PostGorselEki: yukseklik + orandan genislik); kutu tam gorsel kadar, yaninda bosluk yok. */
.yk-ek { position: relative; justify-self: start; align-self: flex-start; flex: 0 0 auto; display: block; margin: 8px 6px 2px; border-radius: 10px; overflow: hidden; background: var(--surface-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 26px -10px rgba(0, 0, 0, 0.7); animation: yk-gel 0.28s cubic-bezier(.2, .9, .3, 1.2); }
.yk-ek img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Ana post penceresi (NoteComposer): kartsiz duzende kenar boslugu yok. */
.yk-ek.bakiliyor img { filter: saturate(0.6) brightness(0.72); }
.yk-ek.bakiliyor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 106, 0, 0.22) 50%, transparent 70%); background-size: 250% 100%; animation: yk-tara 1.25s ease-in-out infinite; }
.yk-ekdurum { position: absolute; left: 7px; bottom: 7px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 8px; border-radius: 10px; background: rgba(13, 11, 16, 0.72); backdrop-filter: blur(6px); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: 0.01em; }
.yk-ekdurum.hazir { gap: 4px; background: var(--accent); color: #000; animation: yk-hazir 2.4s ease forwards; }
.yk-nokta { width: 6px; height: 6px; border-radius: 14px; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.6); animation: yk-nabiz 1.2s ease-out infinite; }
.yk-eksil { position: absolute; top: 6px; right: 6px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 14px; background: rgba(13, 11, 16, 0.72); backdrop-filter: blur(6px); color: #fff; cursor: pointer; opacity: 0.88; transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease; }
.yk-eksil:hover { opacity: 1; transform: scale(1.08); background: var(--background); }

/* Surukle-birak yuzeyi. */
.yk-birak { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: inherit; background: rgba(10, 12, 6, 0.86); backdrop-filter: blur(3px); outline: 1.5px dashed rgba(255, 106, 0, 0.75); outline-offset: -7px; pointer-events: none; animation: yk-gel 0.18s ease; }
.yk-birak span { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font: 700 14px/1 var(--sans); }
.yk.surukle { box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.6), 0 0 0 5px rgba(255, 106, 0, 0.08); }

@keyframes yk-gel { from { opacity: 0; transform: translateY(4px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes yk-tara { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes yk-nabiz { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.55); } 100% { box-shadow: 0 0 0 7px rgba(255, 106, 0, 0); } }
@keyframes yk-hazir { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .yk-ek, .yk-birak { animation: none; } .yk-ek.bakiliyor::after, .yk-nokta { animation: none; } }

/* POZISYON KARTI TELEFON GIBI (5 Kas, Cihan: "mobildeki ile ayni yapacagiz"): rayda acik perps kartinda
   Add margin | Reverse | TP/SL kucuk ve tek sirada; Close en altta islem satirinin saginda kirmizi yazi-dugme. */
.pp2 .pp2-actions.pp2-uclu { display: grid; grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; width: 100%; margin-left: 0; }
.pp2 .pp2-actions.pp2-uclu .pp2-btn.mini { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 0; padding: 0 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.045); color: var(--foreground); font: 650 12.5px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap; box-shadow: none; }
.pp2 .pp2-actions.pp2-uclu .pp2-btn.mini svg { flex: 0 0 auto; opacity: .85; }
.pp2 .pp2-actions.pp2-uclu .pp2-btn.mini:hover:not(:disabled) { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); transform: translateY(-1px); }
.pp2-kapat { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border: 0; border-radius: 10px; background: rgba(255,77,109,.1); color: var(--danger); font: 700 13px/1 var(--sans); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.pp2-kapat:hover:not(:disabled) { background: rgba(255,77,109,.18); }
.pp2-kapat:active:not(:disabled) { transform: scale(.97); }
.pp2-kapat:disabled { opacity: .5; cursor: default; }

/* Kilitli kaldirac tek satir (5 Kas): acik pozisyonun pazarinda kayan cubuk yerine. */
.pt-levlock { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2); }
.pt-levlock-txt { display: grid; gap: 4px; min-width: 0; }
.pt-levlock-txt .ap-label { margin: 0; }
.pt-levlock-txt small { font: 500 12px/1.2 var(--sans); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-levlock-val { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--foreground); font: 700 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.pt-levlock-val svg { color: var(--muted-2); }
/* 5 Kas (Cihan: "add margin vs yazilarini biraz daha kucultelim, cok sikisik"): dar rayda uc dugme rahat sigar. */
.pp2 .pp2-actions.pp2-uclu { gap: 6px; }
.pp2 .pp2-actions.pp2-uclu .pp2-btn.mini { height: 34px; padding: 0 4px; gap: 4px; border-radius: 8px; font-size: 11.5px; font-weight: 600; }
.pp2 .pp2-actions.pp2-uclu .pp2-btn.mini svg { width: 10px; height: 10px; }
/* 5 Kas (Cihan: "Close butonunun cercevesi kenarli olsun, cok yuvarlak olmus"): hap yerine ince kirmizi kenarli, az yuvarlak. */
.pp2-kapat { border-radius: 6px; border: 1px solid rgba(255,77,109,.38); background: rgba(255,77,109,.07); }
.pp2-kapat:hover:not(:disabled) { background: rgba(255,77,109,.14); border-color: rgba(255,77,109,.6); }
/* SPOT BILETI, PERPS DUZENI (4 Kas, Selcuk): Buy | Sell altinda Market | Trigger ve + SL/TP; Trigger tutarin yerinde
   Buy the dip satirlari, SL/TP acilinca kar al ve stop satirlari dugmenin ustunde. */
.tm-tipler { margin: 2px 0 4px; }
.pt-sltpbtn.acik { border-color: var(--accent); color: var(--accent); }
/* ORTAK SL/TP PANELI, WEB (5 Kas; app/SltpPaneli.tsx): Perps'in acilir kutusunda, Cihan'in satir dili. */
.tm-sltpdrop { max-height: min(78vh, 720px); overflow-y: auto; }
.sp-panel { display: grid; gap: 14px; position: relative; }
.sp-birim { justify-self: start; display: inline-flex; gap: 3px; padding: 3px; border-radius: 8px; background: var(--background); border: 1px solid var(--border); }
.sp-birim button { all: unset; cursor: pointer; font: 600 12.5px var(--sans); color: var(--muted); padding: 4px 12px; border-radius: 6px; }
.sp-birim button.on { background: var(--accent-soft); color: var(--accent); }
.sp-grup { display: grid; gap: 8px; }
.sp-bas { display: flex; align-items: baseline; justify-content: space-between; }
.sp-bas b { display: inline-flex; align-items: center; gap: 6px; font: 700 13.5px var(--sans); }
.sp-bas b i { width: 7px; height: 7px; border-radius: 50%; }
.sp-grup.tp .sp-bas b { color: var(--gain); } .sp-grup.tp .sp-bas b i { background: var(--gain); }
.sp-grup.sl .sp-bas b { color: var(--danger); } .sp-grup.sl .sp-bas b i { background: var(--danger); }
.sp-bas small { font: 600 11.5px var(--sans); color: var(--muted-2); }
.sp-satir { display: grid; align-items: center; column-gap: 8px; row-gap: 5px; }
.sp-kutu { display: flex; align-items: center; gap: 2px; min-width: 0; height: 40px; padding: 0 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.sp-kutu:focus-within { border-color: var(--accent); }
.sp-kutu em { font-style: normal; color: var(--muted-2); font-size: 13px; }
.sp-kutu i { font-style: normal; color: var(--muted-2); font-size: 10.5px; font-weight: 700; margin-left: 3px; }
.sp-kutu input { all: unset; width: 100%; min-width: 0; font: 600 14px var(--sans); font-variant-numeric: tabular-nums; color: var(--foreground); }
.sp-yz input { text-align: right; }
.sp-x { all: unset; cursor: pointer; color: var(--muted-2); font-size: 16px; text-align: center; }
.sp-satir .op-f { height: 40px; box-sizing: border-box; }
.sp-uzak { font: 700 12px var(--sans); text-align: right; font-variant-numeric: tabular-nums; }
.sp-uzak.tp { color: var(--gain); } .sp-uzak.sl { color: var(--danger); }
.sp-ekle { all: unset; cursor: pointer; justify-self: start; color: var(--accent); font: 600 12.5px var(--sans); }
.sp-hata { margin: 0; font-size: 12px; color: var(--danger); }
.sp-cizgikap { border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.sp-cizgikap .op-cizgi { padding: 26px 14px; }
.sp-cizgikap .op-hat { position: relative; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,77,109,.55), rgba(255,255,255,.16) 48%, rgba(43,214,123,.55)); }
.sp-cizgikap .op-isaret { position: absolute; top: 50%; width: 0; height: 0; }
.sp-cizgikap .op-isaret i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface-2); }
.sp-cizgikap .op-isaret.alim { --c: var(--accent); } .sp-cizgikap .op-isaret.tp { --c: var(--gain); } .sp-cizgikap .op-isaret.sl { --c: var(--danger); } .sp-cizgikap .op-isaret.simdi { --c: var(--foreground); }
.sp-cizgikap .op-isaret.simdi i { left: -1px; top: -7px; width: 2px; height: 14px; border-radius: 1px; }
.sp-cizgikap .op-isaret em { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.sp-cizgikap .op-isaret.ust em { bottom: 8px; } .sp-cizgikap .op-isaret.alt em { top: 8px; }
.sp-cizgikap .op-isaret.simdi em { color: var(--foreground); }
.sp-cizgikap .op-isaret.alim em { color: var(--accent); } .sp-cizgikap .op-isaret.tp em { color: var(--gain); } .sp-cizgikap .op-isaret.sl em { color: var(--danger); }
.tm-tetik { display: grid; gap: 6px; }
.tm-tetikbas { display: flex; align-items: baseline; justify-content: space-between; }
.tm-tetikbas small { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.tm-tetik .pt-unit { flex: 0 0 auto; min-width: 84px; cursor: pointer; }
.sp-grup + .sp-grup { margin-top: 4px; }
/* Secim b (5 Kas): tek satir duzeni, K/M/B cipi, kucuk "+ Add another", Trigger bolumu. */
.sp-satir { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 40px 18px; }
.sp-ek { all: unset; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--surface-3); color: var(--accent); font: 700 11.5px var(--sans); }
.sp-ekle { font-size: 11.5px; font-weight: 600; color: color-mix(in srgb, var(--accent) 80%, var(--muted)); }
.sp-grup.alim .sp-bas b { color: var(--accent); } .sp-grup.alim .sp-bas b i { background: var(--accent); }
.sp-uzak.alim { color: var(--danger); }
.tm-tetik .sp-birim { justify-self: start; }
.tm-tetik .sp-panel { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #08090a; }
.sp-satir.tek { grid-template-columns: minmax(0, 1fr) 48px 18px; }
.tm-sltpdrop .sp-panel, .tm-tetik .sp-panel { gap: 16px; }
.sp-ekle { margin-top: 2px; }
.tm-tetik .sp-panel { padding: 10px; }
.tm-tetik .sp-satir { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 34px 14px; column-gap: 6px; }
.tm-tetik .sp-kutu { padding: 0 8px; }
.tm-tetik .sp-satir .op-f { padding: 0 6px; }
.tm-tetik .sp-uzak { font-size: 11px; }
.tm-sltpdrop .sp-grup + .sp-grup { margin-top: 10px; }
.tm-sltpdrop .sp-birim + .sp-grup, .tm-tetik .sp-birim + .sp-grup { margin-top: 4px; }
.sp-ek { background: none; height: auto; padding: 2px 1px; color: var(--foreground); gap: 2px; } .sp-ek svg { color: var(--muted-2); }
.sp-kutu input, .op-f input { -webkit-user-select: text; user-select: text; }

/* ---------- SPOT BILETI EMIR TIPI + PENCERELER (7 Kas, Cihan: "market trigger ve sl tp kismini ufaltalim ve buy butonunun
   ustune alalim; trigger'a tiklayinca popup ciksin, temiz olsun; sl tp popup'inin ic duzenini guzellestirelim") ----------
   Satir Buy dugmesinin hemen ustunde ve kucuk; Trigger ve SL/TP ayni pencere dilinde: baslik + kapat, tam genislik birim
   secici, her bolum kendi kartinda, bugune uzaklik seviye kutusunun icinde. Yalniz gorunum; hesap ve akis aynen. */
.tm-tipalt { margin: 2px 0 0; }
.tm-tipalt .pt-types { padding: 3px; gap: 2px; border-radius: 8px; }
.tm-tipalt .pt-type { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 11px; border-radius: 6px; font-size: 12px; }
.tm-tipsay { display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 4px; box-sizing: border-box; border-radius: 6px; background: var(--accent); color: #000; font: 700 10px/1 var(--sans); font-style: normal; font-variant-numeric: tabular-nums; }
.tm-tipalt .pt-sltpbtn { min-height: 32px; padding: 0 11px; border-radius: 8px; font-size: 12px; }
.tm-tipalt .pt-sltpbtn.set { padding: 0 9px; }
.tm-tipalt .pt-sltpbtn i { font-size: 11.5px; }

.tm-pop { padding: 18px; gap: 14px; }
.tm-popbas > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm-popbas h4 { margin: 0; font: 700 15px var(--sans); color: var(--text); letter-spacing: -.01em; }
.tm-popbas p { margin: 5px 0 0; font: 500 12.5px/1.45 var(--sans); color: var(--muted); }
.tm-popbas p b { color: var(--foreground); font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-popx { all: unset; cursor: pointer; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--muted); background: var(--surface-2); transition: color .15s ease, background .15s ease; }
.tm-popx:hover { color: var(--foreground); background: var(--surface-3); }
.tm-pop .sp-panel { gap: 12px; }
.tm-pop .sp-birim { justify-self: stretch; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 8px; }
.tm-pop .sp-birim button { text-align: center; padding: 6px 0; font-size: 12.5px; transition: background .15s ease, color .15s ease; }
.tm-pop .sp-birim button:not(.on):hover { color: var(--foreground); }
.tm-pop .sp-birim + .sp-grup, .tm-pop .sp-grup + .sp-grup { margin-top: 0; }
.tm-pop .sp-grup { gap: 8px; padding: 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.tm-pop .sp-bas { align-items: center; }
.tm-pop .sp-bas b { font-size: 13px; }
.tm-pop .sp-bas small { font: 600 11px var(--sans); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.tm-pop .sp-kutu, .tm-pop .sp-satir .op-f { height: 40px; box-sizing: border-box; background: var(--background); border-color: var(--border); }
.tm-pop .sp-kutu:focus-within, .tm-pop .sp-satir .op-f:focus-within { border-color: var(--accent); }
.tm-pop .sp-ekle { margin-top: 0; font-size: 12px; }
.tm-pop .sp-cizgikap { background: var(--surface-2); }
.sp-panel .sp-satir.web { grid-template-columns: minmax(0, 1fr) 104px 16px; column-gap: 8px; }
.sp-panel .sp-satir.web.tek { grid-template-columns: minmax(0, 1fr) 16px; }
.sp-satir.web .sp-kutu input { flex: 1 1 auto; width: auto; }
.sp-satir.web .sp-x { font-size: 15px; line-height: 1; }
.sp-satir.web .sp-x:hover { color: var(--foreground); }
.sp-uzakic { flex: none; margin-left: 6px; padding: 2px 5px; border-radius: 5px; font: 700 10.5px var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); background: var(--surface-3); }
.sp-uzakic.tp { color: var(--gain); background: rgba(43, 214, 123, .12); }
.sp-uzakic.sl { color: var(--danger); background: rgba(255, 77, 109, .12); }
.sp-uzakic.alim { color: var(--accent); background: var(--accent-soft); }
.tm-popozet { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font: 500 12.5px var(--sans); color: var(--muted); }
.tm-popozet b { color: var(--foreground); font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-pop .pt-sltpsave { min-height: 44px; border-radius: 8px; font-size: 14.5px; transition: filter .15s ease; }
.tm-pop .pt-sltpsave:not(:disabled):hover { filter: brightness(1.06); }
.tm-pop .pt-sltpnote { margin-top: -4px; text-align: center; font-size: 11px; }

/* KENDI SON POSTUM, MASAUSTU (8 Kas; app/src/app/SonPostumWeb.tsx): pozisyon kartinin altinda son post + "N older". */
.sp-son { margin-top: 2px; }
.sp-son-post { display: flex; gap: 12px; padding: 12px 14px 6px; border-radius: 10px; cursor: pointer; transition: background-color 0.15s ease; }
.sp-son-post:hover { background: rgba(255, 255, 255, 0.03); }
.sp-son-govde { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* "N older" penceresinde adin altindaki Feed pozisyon satiri (8 Kas). */
.pst-thlist .fd-poz { margin: 4px 0 2px; }

/* LIDER PANELI %10 KUCUK (8 Kas, Cihan: "Positions'ta kartlar sigmamis, buradaki her seyi kucult; Traders ve Friends'teki
   yazilar tekrar buyumus gibi, en az %10 kucultelim"). Sekmeler, donem haplari, satirlar (ad, alt satir, tutarlar, yuz,
   sira) ~%10; Positions kartlari (Feed'in post karti, dar panelde tasiyordu) orantili %80. */
.rk-ust .rk-view3 button { height: 40px; font-size: 11.25px; }
.rk-alt .rk-per button { height: 24px; min-width: 34px; padding: 0 8px; font-size: 10.5px; }
.rk-row { grid-template-columns: 22px 27px minmax(0, 1fr) auto; gap: 9px; min-height: 48px; padding-top: 7px; padding-bottom: 7px; }
.rk-row .rk-arma { height: 16px; }
.rk-row .rk-pos { font-size: 11px; }
.rk-row .rk-ava { width: 27px; height: 27px; font-size: 14.5px; }
.rk-row .rk-name b { font-size: 12.1px; }
.rk-row .pdl-sub { font-size: 10.4px; line-height: 13.5px; }
.rk-row .rk-val b { font-size: 11.7px; }
.rk-row .rk-val em { font-size: 10.8px; }
.rk-poz { padding: 10px 12px 12px; }
.rk-pozust { gap: 7px; margin-bottom: 8px; }
.rk-pozkim { gap: 8px; }
.rk-pozkim .rk-ava { width: 27px; height: 27px; font-size: 14.5px; }
.rk-pozkim .rk-name b { font-size: 13px; }
.rk-pozust .rk-pos { font-size: 11px; }
.rk-pozust .rk-arma { height: 16px; }
.rk-takip { height: 24px; padding: 0 10px; font-size: 11px; }
.rk-pozkart { zoom: 0.8; }

/* LIDER PANELI SURE / FILTRE SATIRI (8 Kas, Cihan: "sagda surelerin cercevelerini, filtre cercevesini kaldir; bu kismin
   ustu ve alti acayip gorunuyor, toparlayalim"): sure haplarinin dis cercevesi ve zemini, filtre dugmesinin cercevesi
   kalkti; secili sure yalniz hafif zeminli. Satirin ustu (sekme cizgisi) ve alti (panel cizgisi) ayni soluk cizgi,
   ust ve alt bosluk esit. */
.rk-ust, .rk-ust .rk-view3 { border-bottom-color: rgba(255, 255, 255, 0.05); }
.rk-alt { padding: 6px 10px 6px 6px; gap: 6px; }
.rk-alt .rk-per { padding: 0; gap: 2px; background: none; box-shadow: none; }
.rk-alt .rk-per button { height: 26px; }
.rk-alt .rk-per button.on { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.rk-alt .rk-filt.rk-filtyuv { background: none; box-shadow: none; color: var(--muted-2); }
.rk-alt .rk-filt.rk-filtyuv:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; color: var(--foreground); }

/* SOCIAL (8 Kas, Cihan: "sag altta + buraya da koyalim ... ust kisimdan kaldir"; telefonla ayni): akis sutununun sag
   altinda yesil + (ekranin sag kosesinde Agent dugmesi var). Sutun Social'da en az ekran boyu; dugme sticky ile hep altta. */
.fd-main.soc { display: flex; flex-direction: column; min-height: calc(100dvh - var(--topbar) - 40px); }
.fd-socfab-yer { position: sticky; bottom: 24px; margin-top: auto; display: flex; justify-content: flex-end; padding: 16px 8px 0; pointer-events: none; z-index: 4; }
.fd-socfab {
  pointer-events: auto; display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 10px;
  background: var(--accent); color: #000; cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 22px rgba(255, 106, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.fd-socfab:hover { transform: scale(1.05); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 30px rgba(255, 106, 0, 0.35); }
.fd-socfab:active { transform: scale(0.94); }

/* LIDER PANELI YAZILARI %4 BUYUK + SATIR CIZGILERI SOLUK (8 Kas, Cihan: "yazilari %4 buyutelim, aralardaki gri
   cizgileri daha az gorelim"). Ustteki %10 kucultmenin (.rk-row 12.1 / 10.4 / 11.7 / 10.8 px) 1,04 kati; cizgi
   --border (#231f29) yerine zemine daha yakin ton. */
.rk-ust .rk-view3 button { font-size: 11.7px; }
.rk-alt .rk-per button { font-size: 10.9px; }
.rk-row .rk-pos { font-size: 11.45px; }
.rk-row .rk-name b { font-size: 12.6px; }
.rk-row .pdl-sub { font-size: 10.8px; line-height: 14px; }
.rk-row .rk-val b { font-size: 12.15px; }
.rk-row .rk-val em { font-size: 11.25px; }
.rk-row { border-top-color: #141619; }
/* Positions sekmesi de %4 (ayni gun, Cihan: "Traders, Positions ve Friends'in hepsinde"). */
.rk-pozkim .rk-name b { font-size: 13.5px; }
.rk-pozust .rk-pos { font-size: 11.45px; }
.rk-takip { font-size: 11.45px; }
.rk-pozkart { zoom: 0.832; }
/* KENDI SATIRIN EN ALTTA + UST SERIT CIZGISIZ (9 Kas, Cihan: "You ile 24h/7d arasindaki gri cizgi tamamen kalksin;
   kisi kendini en altta gorsun"). Kart listenin altinda sabit (liste ustunde kayar); filtre satirinin alt cizgisi yok. */
.rk-ust { border-bottom: 0; }
.td-rows + .rk-row.rk-me { margin: 8px 12px 12px; }
/* FEED ALL / TRADES / POSTS CERCEVESIZ (9 Kas, Cihan: "bunlarin cercevelerini kaldir"): grubun dis cizgisi ve zemini
   yok; secili hap (.on) zeminiyle kalir. */
.fd-filt { background: transparent; box-shadow: none; }

/* POST YAZMA PENCERESI (9 Kas, Cihan: "bu ekrani sifirdan tasarla ... sasirt beni"; app/NoteComposer.tsx, token postu +
   Social). Pencere icerik kadar (sabit boy yok, olu alan yok), yazi yazdikca buyur. Alt satir <footer> DEGIL: sitenin genel
   `footer { padding: 32px 0 56px }` kurali eski pencerede 88 px olu alan aciyordu. */
.pc {
  position: fixed; inset: 0; z-index: 56; display: flex; align-items: flex-start; justify-content: center;
  padding: max(9vh, 48px) 24px 24px; overflow-y: auto;
  background: rgba(13, 11, 16, 0.62); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  animation: pc-arka 0.18s ease-out;
}
.pc-kart {
  position: relative; width: min(620px, 100%); display: flex; flex-direction: column;
  border-radius: 14px; background: linear-gradient(180deg, #111316 0%, #15121a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.6);
  animation: pc-gel 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.pc-kart:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.28), 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 60px -20px rgba(255, 106, 0, 0.25); }
@keyframes pc-arka { from { opacity: 0; } }
@keyframes pc-gel { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
@media (prefers-reduced-motion: reduce) { .pc, .pc-kart { animation: none; } }

.pc-ust { display: flex; align-items: center; gap: 12px; padding: 18px 18px 6px 22px; }
.pc-yuz { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; font-size: 24px; line-height: 40px; text-align: center; background: var(--surface-2); }
.pc-yuz.face-img { object-fit: cover; }
.pc-kim { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 15px/1.2 var(--sans); color: var(--muted); }
.pc-kim b { color: var(--foreground); font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.pc-kim i { font-style: normal; color: var(--muted-2); }
.pc-kapat { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: var(--muted); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.pc-kapat:hover { background: rgba(255, 255, 255, 0.11); color: var(--foreground); }

.pc-govde { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 8px 22px 16px; }
.pc-yazi {
  display: block; width: 100%; min-height: 132px; margin: 0; padding: 4px 0; border: 0; outline: none; resize: none; overflow-y: auto;
  background: transparent; color: var(--foreground); caret-color: var(--accent);
  font: 400 19px/1.5 var(--sans); letter-spacing: -0.005em; box-sizing: border-box;
}
.pc-yazi::placeholder { color: rgba(255, 255, 255, 0.34); }
.pc-yazi:disabled { opacity: 0.6; }
.pc-ek { display: flex; }
.pc-ek > * { max-width: 100%; }

.pc-poz {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.pc-pozlogo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.pc-pozl, .pc-pozr { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-pozr { align-items: flex-end; text-align: right; }
.pc-poz b { font: 700 14.5px/1.2 var(--sans); color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-poz small { font: 500 12.5px/1.2 var(--sans); color: var(--muted-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-pozr b { font-variant-numeric: tabular-nums; }
.pc-hata { margin: 0; color: var(--danger); font: 500 13px/1.4 var(--sans); }

.pc-arac { display: flex; align-items: center; gap: 4px; padding: 10px 14px 14px 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.pc-dugme {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--accent); cursor: pointer; transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.pc-dugme svg { width: 20px; height: 20px; }
.pc-dugme:hover:not(:disabled) { background: rgba(255, 106, 0, 0.1); }
.pc-dugme.on { background: rgba(255, 106, 0, 0.14); }
.pc-dugme:disabled { opacity: 0.35; cursor: default; }
.pc-dugme:focus-visible, .pc-kapat:focus-visible, .pc-gonder:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-dugme[data-ipucu]::after {
  content: attr(data-ipucu); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  padding: 6px 9px; border-radius: 6px; background: #1b1e22; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--foreground); font: 600 12px/1 var(--sans); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s ease, transform 0.15s ease;
}
.pc-dugme:hover:not(:disabled)::after { opacity: 1; transform: translate(-50%, 0); }
.pc-bosluk { flex: 1 1 auto; }
.pc-ipucu { display: inline-flex; gap: 3px; margin-right: 10px; opacity: 0.5; }
.pc-ipucu kbd { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 5px; background: rgba(255, 255, 255, 0.07); color: var(--muted); font: 600 11px/1 var(--sans); }
.pc-halka { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; color: var(--muted-2); font: 600 12px/1 var(--mono); font-variant-numeric: tabular-nums; transition: opacity 0.2s ease; }
.pc-halka.bos { opacity: 0.45; }
.pc-halka svg { transform: rotate(-90deg); }
.pc-halka circle { fill: none; stroke-width: 2.4; }
.pc-halka-iz { stroke: rgba(255, 255, 255, 0.12); }
.pc-halka-dolu { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.2s ease, stroke 0.2s ease; }
.pc-halka.az { color: #ffb020; }
.pc-halka.az .pc-halka-dolu { stroke: #ffb020; }
.pc-halka.dolu { color: var(--danger); }
.pc-halka.dolu .pc-halka-dolu { stroke: var(--danger); }
.pc-gonder {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 24px; border: 0; border-radius: 10px;
  background: var(--accent); color: #000; font: 750 15px/1 var(--sans); letter-spacing: -0.005em; cursor: pointer;
  box-shadow: 0 6px 22px -8px rgba(255, 106, 0, 0.55); transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}
.pc-gonder:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(255, 106, 0, 0.7); }
.pc-gonder:active:not(:disabled) { transform: translateY(0); }
.pc-gonder:disabled { opacity: 0.38; cursor: default; box-shadow: none; }
.pc-don { width: 14px; height: 14px; border-radius: 10px; border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #000; animation: pc-don 0.7s linear infinite; }
@keyframes pc-don { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .pc { padding: 0; align-items: stretch; }
  .pc-kart { width: 100%; min-height: 100%; border-radius: 0; }
  .pc-govde { flex: 1 1 auto; }
}
/* LIDER PANELI INCE AYAR (9 Kas, Cihan): (1) sol listedeki "You" karti kalkti (sag sutundaki Your rank karti yeter);
   (2) sekme + filtre seridinin altina yumusak golge: liste altindan kayarken keskin kenarda kaybolmasin;
   (3) filtre simgesindeki yesil nokta kucuk; (4) buyuk tablo kutusunun ust/alt 4 px dolgusu yok, ustune gelinen
   ilk/son satirin gri zemini kutunun kenarina degsin. */
.td-list .rk-ust { position: relative; z-index: 2; background: var(--surface); box-shadow: 0 12px 16px -12px rgba(0, 0, 0, 0.9); }
.rk-filt.rk-filtyuv.set::after { top: -1px; right: -1px; width: 5px; height: 5px; box-shadow: 0 0 0 1.5px var(--bg, #000); }
.rk-board { padding: 0; }

/* LIDER PANELI POSITIONS KARTI KUCUK (10 Kas, Cihan: "kartlarin icindeki her seyi ufaltalim, sigmiyor cogu yerde;
   rahat sigsinlar"): zoom kalkti (dar sutunda ic genislik yetmiyordu, "Short" hapi kesiliyordu); logo, haplar,
   rakamlar ve bosluklar acikca kucuk. Sol hap satiri tasarsa kesilmez, sarar. */
.rk-pozkart { zoom: 1; }
.rk-pozkart .pst-ppk { gap: 8px; margin-top: 0; padding: 9px 10px; border-radius: 8px; }
.rk-pozkart .pst-ppkrow { gap: 8px; }
.rk-pozkart .pst-ppkrow .tm-coin.lg { width: 26px; height: 26px; }
.rk-pozkart span.tm-coin.lg { font-size: 9.5px; }
.rk-pozkart .pst-ppkl, .rk-pozkart .pst-ppkr { gap: 2px; }
.rk-pozkart .pst-ppk small { gap: 3px; min-height: 14px; font-size: 9.5px; }
.rk-pozkart .pst-ppkl small { flex-wrap: wrap; overflow: visible; }
.rk-pozkart .pst-ppklive { width: 5px; height: 5px; }
.rk-pozkart .pst-ppkclosed, .rk-pozkart .pst-ppkside, .rk-pozkart .pst-ppkpct { font-size: 8.5px; padding: 1px 4px; border-radius: 4px; letter-spacing: 0; }
.rk-pozkart .pst-ppkl b, .rk-pozkart .pst-ppkr b { font-size: 13px; }
.rk-pozkart .pst-ppkmeta { gap: 8px; padding-top: 7px; font-size: 10px; }
.rk-pozkart .pst-ppkmeta b { margin-left: 2px; }

/* SOCIAL PAKETI (14 Kas): bildirim satirinda kisi yuzu (app/KisiKutucugu.tsx) + Kimi takip etmeli (Following sekmesi). */
.kk { position: relative; flex: none; display: inline-block; --kk-zemin: rgb(13, 14, 16); }
.kk .kk-yuz { position: absolute; left: 0; top: 0; display: block; width: var(--kk-yuz); height: var(--kk-yuz); border-radius: 10px; object-fit: cover; background: var(--surface-2); font-size: calc(var(--kk-yuz) * 0.55); line-height: var(--kk-yuz); text-align: center; }
.kk.iki .kk-1 { left: auto; top: auto; right: 0; bottom: 0; box-shadow: 0 0 0 2px var(--kk-zemin); }
.kk-rz { position: absolute; right: -3px; bottom: -3px; z-index: 2; display: grid; place-items: center; border-radius: 10px; background: var(--accent, #ff6a00); color: #000; box-shadow: 0 0 0 2px var(--kk-zemin); }
.fd-kte.bos { margin: 18px 10px 8px; padding: 20px 20px 14px; }
.fd-kte.bos .fd-cardtitle { font-size: 18px; }
.fd-kte-alt { margin: 0 0 8px; color: var(--muted-2); font: 500 13.5px/1.45 var(--sans); }
.fd-kte-list { list-style: none; margin: 0 -8px; padding: 0; }
.fd-kte-list li { display: flex; align-items: center; gap: 10px; padding: 0 8px; border-radius: 8px; transition: background .15s ease; }
.fd-kte-list li:hover { background: var(--surface-2); }
.fd-kte-kim { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0; border: 0; background: none; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; }
.fd-kte-yuz { flex: none; width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--surface-2); font-size: 20px; line-height: 36px; text-align: center; }
.fd-kte.bos .fd-kte-yuz { width: 42px; height: 42px; line-height: 42px; font-size: 23px; }
.fd-kte .fd-rankname small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-kte .fl-pill { min-width: 84px; }

/* TOKEN ISLEM SATIRI SADE (16 Kas, Selcuk "a"; app/TxRows.tsx mp-txsade): fiilin yaninda adet (beyaz), sagda isaretsiz beyaz
   tutar, satista altinda renkli sonuc. */
.mp-txsade .mp-txadet { font-style: normal; font-weight: 600; color: var(--foreground, #fff); margin-left: 6px; }
.mp-txsade .mp-txr b { color: var(--foreground, #fff); }
.mp-txsade .mp-txr small em { font-style: normal; font-weight: 700; }
.mp-txsade .mp-txr small em.pos { color: var(--gain); }
.mp-txsade .mp-txr small em.neg { color: var(--danger); }

/* 20 Kas 2026: Perps Open interest sirasinda alt satirda OI parlak (Perps.tsx PerpListRow). */
.tm-oival { font-weight: 600; color: var(--foreground); }

/* 21 Kas (Cihan: "bolumler arasindaki bosluklar esit olsun; header ile fiyat/logo kutusu arasi gayet iyi,
   chart ile ust kutu ve chart ile alttaki kisim da ayni olsun, diger sayfalarda da"): masaustu masada
   (Token + Perps) her kutu arasi tek olcu, ust menu ile ilk kutu ve sutun aralari gibi 12 px.
   Olculen eski: Token hero->grafik 16, grafik->sekmeler 28 (tutamak 8 + izgara 16 + .mt 4), sag sutun 16;
   Perps serit->grafik 16, grafik<->defter 16, grafik->hesap 16 (izgara 12 + .ac-acct 4), sag sutun 16. */
.perp-stat-strip { margin-bottom: 16px; } /* Perps.tsx satir ici 16 px'ti; masada asagida 12 px */
.td-desk { --masa-ara: 12px; }
.td-desk .tm-termmain { gap: var(--masa-ara); }
.td-desk .tm-grafikkap > .tm-grip { margin-bottom: 0; }
.td-desk .only-desk .mt { margin-top: 0; }
.td-desk .tm-aside { gap: var(--masa-ara); }
.td-desk .tm-aside > * + * { margin-top: var(--masa-ara) !important; }
.td-desk .tm-strip { margin-bottom: var(--masa-ara); }
.td-desk .tm-row { gap: var(--masa-ara); }
.td-desk .tm-termfull > .ac-acct { margin-top: 0; }
/* Ayni olcu masadaki diger sayfalarda (21 Kas, olculen eski): Leaderboard podyum->tablo 20, Agent sahne->sohbet 20
   ve sag sutun 16, Watchlist sutunlari 20/16, Profil sag sutun 16, Feed sag kartlar 16. */
.td-desk .ag2-main { gap: var(--masa-ara); }
.td-desk.td-pf .pr-main { gap: 0; } /* profil orta sutunu bitisik bloklar (4364), dokunulmaz */
.td-main > .fd .fd-side { gap: var(--masa-ara, 12px); }
/* Profil (Profile + TraderPage): orta sutunun 6 px yan dolgusu (4760, golge/odak halkasi kesilmesin) sutun arasini
   18 px yapiyordu; dolgu kalir, sutun iki yana 6 px tasar, icerik digerleri gibi 12 px'te durur. */
.td-desk.td-pf3 > .td-main { margin: 0 -6px; }

/* SECILI SATIR: ODAK CERCEVESI (26 Kas 2026, Cihan: "secim cok dandik gorunuyor ... cag disi, tasarimimiza hic uygun
   degil, demode; sasirt beni, sifirdan"). Eski: boydan boya gri bant + solda lime cubuk. Yeni: secili satir listeden
   hafifce kalkan yuvarlak bir kapsul (kenarlardan 5 px iceride, cam zemin, solda cok hafif lime isik) ve dort kosesinde YoBro isaretinin kose
   parcalari: logo secili pazari cerceveliyor. Secilince cerceve disaridan gelip oturur (0,3 sn, bir kez). Kapsulun
   ustundeki ve altindaki ayirici cizgi gizlenir. Uzerine gelinen satir ayni kapsulun soluk hali (koseler yok).
   Tokens (.pu-mrow), Perps (.tm-card) ve masa (.pdl-row) sol listeleri ayni dili konusur. Icerik kaymaz:
   kapsul ve koseler ::before / ::after, satirin dolgusu ayni. */
.td-list .tm-card { border-bottom: 0; border-top: 1px solid var(--border); }
.td-list :is(.pu-mrow, .tm-card, .pdl-row) { position: relative; isolation: isolate; }
.td-list :is(.pu-mrow, .tm-card, .pdl-row):is(:hover, :active, .on) { background: none; box-shadow: none; }
.td-list :is(.pu-mrow, .tm-card, .pdl-row)::before {
  content: ""; position: absolute; z-index: -1; inset: 3px 5px; border-radius: 8px; pointer-events: none;
  background: rgba(255, 255, 255, .045); opacity: 0; transition: opacity .15s ease;
}
.td-list :is(.pu-mrow, .tm-card, .pdl-row):hover::before { opacity: 1; }
.td-list :is(.pu-mrow, .tm-card, .pdl-row).on::before {
  opacity: 1;
  background: radial-gradient(150px 70px at 0% 50%, rgba(255, 106, 0, .09), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 24px -14px #000;
}
.td-list :is(.pu-mrow, .tm-card, .pdl-row).on::after {
  content: ""; position: absolute; z-index: -1; inset: 3px 5px; border-radius: 8px; pointer-events: none;
  border: 1.5px solid var(--accent);
  --odak: 15px;
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / var(--odak) var(--odak) no-repeat, linear-gradient(#000 0 0) 100% 0 / var(--odak) var(--odak) no-repeat,
    linear-gradient(#000 0 0) 0 100% / var(--odak) var(--odak) no-repeat, linear-gradient(#000 0 0) 100% 100% / var(--odak) var(--odak) no-repeat;
  mask: linear-gradient(#000 0 0) 0 0 / var(--odak) var(--odak) no-repeat, linear-gradient(#000 0 0) 100% 0 / var(--odak) var(--odak) no-repeat,
    linear-gradient(#000 0 0) 0 100% / var(--odak) var(--odak) no-repeat, linear-gradient(#000 0 0) 100% 100% / var(--odak) var(--odak) no-repeat;
  animation: odak-otur .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes odak-otur { from { opacity: 0; transform: scale(1.035, 1.24); } }
.td-list :is(.pu-mrow, .tm-card, .pdl-row).on, .td-list :is(.pu-mrow, .tm-card, .pdl-row).on + :is(.pu-mrow, .tm-card, .pdl-row) { border-top-color: transparent; }
@media (prefers-reduced-motion: reduce) { .td-list :is(.pu-mrow, .tm-card, .pdl-row).on::after { animation: none; } }

/* SL/TP KUTUSU, YENI DIL (27 Kas 2026, Cihan: "take profit ve stop loss gri cerceveleri de cok kotu, baya demode; ayni
   sekilde guzellestir"). Karttaki koruma rayinin dili acilir kutuda (.tm-pop: biletin SL/TP ve Trigger kutulari, pozisyon
   kartinin kutusu): bolumlerin gri kutusu yok, aralarinda yalniz bosluk; baslikta rayin dugum noktasi
   (yesil kar al, kirmizi stop, lime Trigger) ve beyaz yazi; alanlar cercevesiz cam, odakta bolumun renginde ince halka;
   birim secici cam hap, secili parca beyaz yazi; ozet cizgisi kutusuz, karttaki rayin aynisi (3 px hat, haleli dugumler);
   kapali Save soluk cam (zeytin rengi lime degil). Yalniz stil: SltpPaneli isaretlemesi ve telefon degismedi. */
.tm-pop { gap: 16px; }
.tm-popx { border-radius: 50%; background: rgba(255, 255, 255, .06); }
.tm-popx:hover { background: rgba(255, 255, 255, .12); }
.tm-pop .sp-panel { gap: 16px; grid-template-columns: minmax(0, 1fr); }
.tm-pop .sp-birim { padding: 3px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.tm-pop .sp-birim button { padding: 7px 0; border-radius: 6px; font-weight: 600; color: var(--muted-2); }
.tm-pop .sp-birim button.on { background: rgba(255, 255, 255, .11); color: var(--foreground); box-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.tm-pop .sp-grup { --ton: 255, 255, 255; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; }
.tm-pop .sp-grup.tp { --ton: 107, 232, 99; }
.tm-pop .sp-grup.sl { --ton: 234, 51, 54; }
.tm-pop .sp-grup.alim { --ton: 204, 255, 0; }
.tm-pop .sp-grup + .sp-grup { padding-top: 6px; }
.tm-pop .sp-bas { min-height: 16px; }
.tm-pop .sp-grup .sp-bas b { gap: 9px; padding-left: 3px; font: 650 13.5px/1 var(--sans); letter-spacing: -.005em; color: var(--foreground); }
.tm-pop .sp-grup .sp-bas b i { width: 9px; height: 9px; background: rgb(var(--ton)); box-shadow: 0 0 0 3px rgba(var(--ton), .18); }
.tm-pop .sp-bas small { font: 500 11.5px/1 var(--sans); color: var(--muted-2); }
.tm-pop .sp-panel .sp-satir.web { display: flex; align-items: center; gap: 8px; }
.tm-pop .sp-satir.web > .sp-kutu { flex: 1 1 0; min-width: 0; }
.tm-pop .sp-satir.web .sp-kutu input, .tm-pop .sp-satir.web .op-f input { flex: 1 1 0; width: 0; min-width: 0; }
.tm-pop .sp-satir.web > .op-f { flex: 0 0 104px; }
.tm-pop .sp-satir.web > span:empty { display: none; }
.tm-pop .sp-kutu, .tm-pop .sp-satir .op-f {
  height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .05);
  transition: background .15s ease, box-shadow .15s ease;
}
.tm-pop .sp-kutu:hover, .tm-pop .sp-satir .op-f:hover { background: rgba(255, 255, 255, .075); }
.tm-pop .sp-kutu:focus-within, .tm-pop .sp-satir .op-f:focus-within { background: rgba(var(--ton), .07); box-shadow: inset 0 0 0 1.5px rgba(var(--ton), .85); }
.tm-pop .sp-kutu em, .tm-pop .sp-satir .op-f em { font-size: 14px; color: var(--muted-2); }
.tm-pop .sp-kutu em { margin-right: 4px; }
.tm-pop .sp-kutu input, .tm-pop .sp-satir .op-f input { font: 600 15px var(--sans); font-variant-numeric: tabular-nums; }
.tm-pop .sp-kutu input::placeholder, .tm-pop .sp-satir .op-f input::placeholder { color: #635d69; font-weight: 500; }
.tm-pop .sp-ek { padding: 4px 2px 4px 6px; font: 650 13px var(--sans); }
.tm-pop .op-ok { width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; background: none; transition: color .15s ease, background .15s ease; }
.tm-pop .op-ok:hover, .tm-pop .op-v.acik .op-ok { color: var(--foreground); background: rgba(255, 255, 255, .1); }
.tm-pop .sp-uzakic { padding: 3px 6px; border-radius: 6px; font-size: 11px; }
.tm-pop .sp-satir.web .sp-x { flex: 0 0 22px; height: 22px; border-radius: 50%; font-size: 15px; line-height: 22px; transition: color .15s ease, background .15s ease; }
.tm-pop .sp-satir.web .sp-x:hover { background: rgba(255, 255, 255, .1); }
.tm-pop .sp-ekle { justify-self: start; padding-left: 3px; font: 600 12.5px var(--sans); color: var(--accent); transition: filter .15s ease; }
.tm-pop .sp-ekle:hover { filter: brightness(1.18); }
.tm-pop .sp-cizgikap { border: 0; border-radius: 0; background: none; }
.tm-pop .sp-cizgikap .op-cizgi { padding: 28px 6px 22px; }
.tm-pop .sp-cizgikap .op-hat { height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 77, 109, .6), rgba(255, 255, 255, .1) 28%, rgba(255, 255, 255, .1) 72%, rgba(43, 214, 123, .6)); }
.tm-pop .sp-cizgikap .op-isaret i { left: -4.5px; top: -4.5px; width: 9px; height: 9px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.tm-pop .sp-cizgikap .op-isaret.simdi i { left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4px rgba(255, 255, 255, .5); }
.tm-pop .sp-cizgikap .op-isaret em { font-size: 10.5px; font-weight: 600; }
.tm-pop .sp-cizgikap .op-isaret.ust em { bottom: 11px; }
.tm-pop .sp-cizgikap .op-isaret.alt em { top: 11px; }
.tm-pop .pt-sltpsave { min-height: 46px; border-radius: 10px; font: 700 14.5px var(--sans); transition: filter .15s ease, background .15s ease, color .15s ease; }
.tm-pop .pt-sltpsave:disabled { opacity: 1; background: rgba(255, 255, 255, .06); color: var(--muted-2); }
.tm-pop .pt-sltpnote { margin: -6px -10px 0; font-size: 10.45px; letter-spacing: -.012em; }
.tm-pop .tm-popozet { padding: 14px 3px 0; border-top: 2px dotted rgba(255, 255, 255, .12); border-radius: 0; background: none; }
.tm-pop .sp-hata { padding-left: 3px; font-size: 12px; line-height: 1.4; }

/* SL/TP KUTUSU DUZELTMELERI (27 Kas 2026, Cihan, canli ekran goruntusuyle: "Take Profit yazisi ile ustundeki MC arasina
   bosluk gerek; alanin altindaki noktali cizgiyi kaldir; Stop Loss'ta da ayni; en alttaki yazi %5 kucuk ve tek satir").
   KOK NEDEN: docs.css uygulama sayfasina app.css'ten SONRA yuklenir ve destek sayfasinin ayni adli sinifi
   (`.sp-panel { display: block }`, docs.css 598) emir panelinin izgarasini eziyordu; bolumler arasi bosluk (gap) hic
   uygulanmiyordu (eski gri kutulu tasarimda da oyleydi, kutular gizliyordu). Emir panelinin kokunde hep
   data-ortalama-yok var (SltpPaneli.tsx): izgara o nitelikle bir sinif agir yazilir, destek sayfasina dokunmaz.
   Bolumler arasi noktali cizgi kalkti (bosluk yeter); alt not %5 kucuk (11 -> 10,45 px) ve tek satir. */
.sp-panel[data-ortalama-yok] { display: grid; }

/* COZULDU ISARETI (27 Kas, Selcuk; app/Cozuldu.tsx, keeper konusma-cozuldu.ts): ekibin "Solved" dedigi destek postu. */
.fd-cozuldu { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.01em; padding: 3px 7px 3px 6px; border-radius: 10px; background: var(--gain-soft); color: var(--gain); }
/* KURUCU UYE SAYFASI, MASAUSTU (26 Kas 2026, app/FounderPage.tsx): Rewards sayfasinin dili; kurucunun rengi rozetteki
   ametist (#b98fff), eylem rengi lime. Buyuk kart iki sutun (sol: rozet + sayac, sag: To join + dugmeler); dar sutunda alt alta. */
.kuf { --kuf: #b98fff; --kuf-soft: rgba(185,143,255,.14); --kuf-line: rgba(185,143,255,.32); }
.kuf-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 28px; border: 1px solid var(--kuf-line); border-radius: 14px; background: var(--surface); overflow: hidden; isolation: isolate; animation: fade-up .45s cubic-bezier(.22,1,.36,1) both; }
@container (max-width: 640px) { .kuf-hero { grid-template-columns: minmax(0, 1fr); } .kuf-perks { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.kuf-glow { position: absolute; z-index: -1; left: -14%; top: -60%; width: 70%; height: 200%; background: radial-gradient(closest-side, rgba(150,100,255,.2), rgba(150,100,255,.04) 60%, transparent); pointer-events: none; }
.kuf-left { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.kuf-seal svg { filter: drop-shadow(0 10px 24px rgba(122,76,240,.55)); }
.kuf-left h2, .kuf-win h2 { margin: 6px 0 0; font: 800 32px/1.08 var(--sans); letter-spacing: -.035em; color: var(--foreground); }
.kuf-left p, .kuf-win p { margin: 0; max-width: 420px; font: 500 15px/1.45 var(--sans); color: var(--muted-2); }
.kuf-count { width: 100%; margin-top: 10px; padding: 16px 18px 15px; border-radius: 12px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--kuf-line); }
.kuf-countv { display: flex; align-items: baseline; gap: 9px; }
.kuf-countv b { font: 800 40px/1 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--foreground); }
.kuf-countv span { font: 700 15px var(--sans); color: var(--muted); }
.kuf-bar { height: 8px; margin: 14px 0 10px; border-radius: 14px; background: var(--surface-3); overflow: hidden; }
.kuf-bar i { display: block; height: 100%; border-radius: inherit; background: var(--kuf); }
.kuf-countl { display: flex; justify-content: space-between; gap: 12px; font: 600 13px var(--sans); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.kuf-right { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.kuf-need { padding: 16px 18px; border-radius: 12px; background: #08090a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.kuf-need.ok { box-shadow: inset 0 0 0 1px rgba(255,106,0,.35); }
.kuf-needh { display: grid; gap: 3px; }
.kuf-needh b { font: 800 17px var(--sans); letter-spacing: -.02em; color: var(--foreground); }
.kuf-needh span { font: 500 14px var(--sans); color: var(--muted); }
.kuf-needrows { display: grid; gap: 8px; margin-top: 14px; }
.kuf-needrows > span { display: flex; align-items: center; gap: 9px; font: 600 14.5px var(--sans); color: var(--muted); }
.kuf-needrows > span b { margin-left: auto; font-weight: 700; color: var(--foreground); font-variant-numeric: tabular-nums; }
.kuf-usdg { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 14px; background: #2775ca; color: #fff; font: 800 11px var(--sans); font-style: normal; }
.kuf-needbar { height: 6px; margin: 14px 0 9px; border-radius: 14px; background: var(--surface-3); overflow: hidden; }
.kuf-needbar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.kuf-needl { font: 600 13.5px var(--sans); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.kuf-needl b { color: var(--foreground); }
.kuf-needl .ok { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; }
.kuf-need p { margin: 10px 0 0; font: 500 12.5px/1.4 var(--sans); color: var(--muted-3, #635d69); }
.rw-btn.kuf-big { height: 50px; font-size: 15.5px; border-radius: 10px; }
.kuf-join { width: 100%; gap: 9px; }
.kuf-join.busy { opacity: .85; }
.kuf-spin { width: 18px; height: 18px; border-radius: 14px; border: 2.5px solid rgba(0,0,0,.25); border-top-color: #000; animation: spin .7s linear infinite; }
.kuf-ctal { text-align: center; font: 600 13.5px var(--sans); color: var(--muted); }
.kuf-ctal b { color: var(--foreground); font-variant-numeric: tabular-nums; }
.kuf-ctarow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kuf-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; animation: fade-up .45s cubic-bezier(.22,1,.36,1) .05s both; }
.kuf-perk { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.kuf-perk b { font: 700 15px/1.25 var(--sans); letter-spacing: -.01em; color: var(--foreground); }
.kuf-perk small { font: 500 13px/1.35 var(--sans); color: var(--muted-2); }
.kuf-perk .kuf-on { position: absolute; top: 14px; right: 14px; }
.kuf-pic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--kuf-soft); color: var(--kuf); font: 800 11.5px var(--sans); letter-spacing: -.02em; }
.kuf-pic.invite { background: var(--accent-soft); color: var(--accent); }
.kuf-on { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: #000; }
.kuf-fine { margin: 0; font: 500 12.5px/1.45 var(--sans); color: var(--muted-3, #635d69); }
.kuf-status { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.kuf-status li { display: flex; align-items: center; gap: 13px; min-height: 60px; }
.kuf-pmid { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.kuf-pmid b { font: 700 15px var(--sans); color: var(--foreground); }
.kuf-pmid small { font: 500 13px/1.35 var(--sans); color: var(--muted-2); }
.rw-btn.kuf-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
/* kutlama */
.kuf-winhero { grid-template-columns: minmax(0, 1fr); }
.kuf-win { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.kuf-win p { max-width: 520px; }
.kuf-winseal { position: relative; display: grid; place-items: center; width: 190px; height: 190px; }
.kuf-winseal svg { position: relative; animation: kuf-pop .7s cubic-bezier(.34,1.56,.64,1) both; filter: drop-shadow(0 16px 36px rgba(122,76,240,.6)); }
.kuf-winseal i { position: absolute; inset: 0; border-radius: 14px; border: 2px solid var(--kuf); opacity: 0; animation: kuf-ring 1.6s cubic-bezier(.22,1,.36,1) .25s both; }
.kuf-winseal i + i { animation-delay: .55s; }
@keyframes kuf-pop { 0% { transform: scale(.2) rotate(-40deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes kuf-ring { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.kuf-winseat { height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 14px; background: var(--kuf-soft); color: var(--kuf); font: 800 13.5px var(--sans); font-variant-numeric: tabular-nums; }
.kuf-winacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(520px, 100%); margin-top: 10px; }
/* olumsuz sonuc penceresi */
.kuf-modal { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(13, 11, 16,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade-up .2s ease both; }
.kuf-red { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(420px, 100%); padding: 26px 24px 22px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.8); text-align: center; }
.kuf-redic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); font: 800 28px var(--sans); color: var(--muted); }
.kuf-red.short .kuf-redic { background: var(--accent-soft); color: var(--accent); }
.kuf-red.full .kuf-redic, .kuf-red.closed .kuf-redic { background: var(--kuf-soft); }
.kuf-red.network .kuf-redic, .kuf-red.error .kuf-redic { color: #ff7a7a; background: rgba(255,90,90,.12); }
.kuf-red h2 { margin: 6px 0 0; font: 800 21px var(--sans); letter-spacing: -.025em; color: var(--foreground); }
.kuf-red p { margin: 0; font: 500 14.5px/1.45 var(--sans); color: var(--muted-2); }
.kuf-redacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 12px; }
.kuf-redacts.one { grid-template-columns: 1fr; }
/* PROFIL VE ODULLER GIRISI */
.kuf-entry { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px 14px 14px; border: 1px solid rgba(185,143,255,.32); border-radius: 12px; background: radial-gradient(120% 160% at 0% 0%, rgba(150,100,255,.16), transparent 60%), var(--surface); color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, transform .18s ease; }
.kuf-entry:hover { border-color: rgba(185,143,255,.55); transform: translateY(-1px); }
.kuf-entryseal { flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.kuf-entrymid { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.kuf-entrymid b { font: 800 15.5px var(--sans); letter-spacing: -.015em; }
.kuf-entrymid small { font: 500 13px var(--sans); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rw-btn.kuf-entrygo { height: 36px; pointer-events: none; }
.kuf-entry.profil { margin: 4px 0 8px; }
.kuf-rate { display: flex; align-items: center; gap: 8px; padding: 0 16px 14px; font: 600 13px var(--sans); color: var(--muted); }
.kuf-rate b { color: #b98fff; }
