/* BİST Analiz Panosu — "Premium Glass" teması.
   Koyu near-black zemin + hafif aurora glow + buzlu cam (glassmorphism) yüzeyler.
   Harici font/asset yok (CSP sıkı): Inter varsa onu, yoksa sistem stack. */
:root {
  --bg: #080b11;
  --bg-2: #0c111b;
  --text: #e8eef6;
  --muted: #97a4b4;
  --primary: #5aa9ff;          /* mavi vurgu (EMA200, linkler) */
  --up: #2ed3a0;               /* canlı yeşil — AL / pozitif */
  --down: #ff5d62;             /* kırmızı — SKIP / negatif */
  --amber: #f5b73d;            /* TUT / nötr */
  --ema50: #f5a623;
  --ema200: #5aa9ff;
  --neutral: #6b7682;
  --radius: 16px;

  /* Cam yüzey tokenları */
  --glass: rgba(255,255,255,.05);
  --glass-2: rgba(255,255,255,.08);
  --glass-dark: rgba(12,16,24,.55);
  --glass-border: rgba(255,255,255,.10);
  --glass-hi: rgba(255,255,255,.14);     /* üst kenar parlaması (inset) */
  --blur: blur(16px) saturate(135%);

  --shadow: 0 10px 34px rgba(0,0,0,.45);
  --glow-green: 0 0 16px rgba(46,211,160,.28);
  --glow-blue: 0 0 16px rgba(90,169,255,.26);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Aurora: köşelerde silik yeşil/mavi/mor radyal glow lekeleri — cam efektinin
     okunabilmesi için arkada derinlik. */
  background:
    radial-gradient(1100px 620px at 10% -12%, rgba(46,211,160,.12), transparent 58%),
    radial-gradient(1000px 640px at 102% -4%, rgba(90,169,255,.12), transparent 55%),
    radial-gradient(900px 760px at 50% 118%, rgba(124,92,255,.09), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}

main { max-width: 1280px; margin: 0 auto; padding: 24px 20px 64px; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 27px; font-weight: 750; letter-spacing: -.015em; margin: 8px 0 22px; }
h3 { font-size: 16px; font-weight: 650; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h4 { font-size: 12.5px; font-weight: 650; color: var(--muted); text-transform: uppercase;
     letter-spacing: .05em; margin: 0 0 6px; }

.price, .badge, .num, .pill { font-variant-numeric: tabular-nums; }

/* ── Cam yüzey karışımı (yardımcı) ───────────────────────────────── */
.glass {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  border-radius: var(--radius);
}

/* Disclaimer şeridi */
.disclaimer {
  background: rgba(40,30,0,.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #f3cd80; font-size: 12.5px; text-align: center;
  padding: 7px 12px; border-bottom: 1px solid rgba(120,92,0,.32); letter-spacing: .01em;
}

/* Üst bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 22px; background: rgba(12,16,24,.55);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 20;
}
.topbar .brand {
  font-weight: 750; font-size: 15px; color: var(--text); letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 9px;
}
.topbar .brand::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--up); box-shadow: var(--glow-green);
}
.topbar .brand:hover { color: var(--text); text-decoration: none; }
.logout-form { margin: 0; }
.logout {
  background: var(--glass); color: var(--muted); border: 1px solid var(--glass-border);
  padding: 6px 13px; min-height: 36px; font-size: 13px; font-weight: 650;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.logout:hover { filter: none; color: var(--text); border-color: var(--glass-hi); box-shadow: none; }

.crumb { margin: 0 0 6px; font-size: 13px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--primary); }

/* ── Butonlar (degrade yeşil + glow) ─────────────────────────────── */
button {
  font-family: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
  color: #04140d; background: linear-gradient(180deg, #34dca6 0%, #1eb27f 100%);
  border: 0; border-radius: 10px; padding: 10px 16px; min-height: 40px;
  box-shadow: 0 6px 20px rgba(46,211,160,.26), inset 0 1px 0 rgba(255,255,255,.25);
  transition: filter .15s ease, transform .05s ease, box-shadow .15s ease;
}
button:hover { filter: brightness(1.06); box-shadow: 0 8px 28px rgba(46,211,160,.42), inset 0 1px 0 rgba(255,255,255,.25); }
button:active { transform: translateY(1px); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }

/* ── Login ───────────────────────────────────────────────────────── */
.login-form {
  max-width: 360px; margin: 13vh auto 0; padding: 30px;
  display: flex; flex-direction: column; gap: 15px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.login-form input {
  font: inherit; color: var(--text); background: rgba(0,0,0,.25);
  border: 1px solid var(--glass-border); border-radius: 10px; padding: 11px 13px; min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-form input:focus { border-color: var(--up); outline: none; box-shadow: var(--glow-green); }
.login-form .error { color: var(--down); font-size: 13px; margin: 0; }

/* ── Dashboard grid ──────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.card {
  display: block; padding: 17px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  transition: border-color .16s ease, transform .12s ease, box-shadow .16s ease;
}
a.card:hover {
  border-color: rgba(46,211,160,.45); transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), var(--glow-green), inset 0 1px 0 var(--glass-hi);
  text-decoration: none;
}
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card .sym { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.card .name { color: var(--muted); font-size: 12.5px; margin: 3px 0 12px; }
.card .price { font-size: 17px; font-weight: 650; }

/* ── Pill (sinyal + skor rozetleri) ──────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--text);
  letter-spacing: .01em; white-space: nowrap;
}
.pill.buy, .pill.good { color: #7ff0c6; border-color: rgba(46,211,160,.5);  background: rgba(46,211,160,.13); box-shadow: 0 0 12px rgba(46,211,160,.18); }
.pill.hold, .pill.mid { color: #ffd57e; border-color: rgba(245,183,61,.5);  background: rgba(245,183,61,.13); }
.pill.skip, .pill.low { color: #ff9a9d; border-color: rgba(255,93,98,.5);   background: rgba(255,93,98,.13); }
.pill.deep            { color: #9ccbff; border-color: rgba(90,169,255,.55); background: rgba(90,169,255,.15); box-shadow: var(--glow-blue); }
.pill.na              { color: var(--muted); }

/* ── Hisse detayı ────────────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: 1fr 348px; gap: 16px; align-items: stretch; }
#chart {
  position: relative; min-height: 460px; overflow: hidden;
  background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}
.chart-legend {
  position: absolute; top: 10px; left: 12px; z-index: 3;
  display: flex; gap: 8px; pointer-events: none;
}
.chart-legend .lg {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(12,16,24,.6); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.chart-legend .ema50 { color: var(--ema50); }
.chart-legend .ema200 { color: var(--primary); }

aside { display: flex; flex-direction: column; gap: 16px; }
aside .card { padding: 17px; }
aside .card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ── Sekmeler (cam segment kontrol) ──────────────────────────────── */
.tabs {
  display: inline-flex; gap: 4px; margin: 26px 0 16px; padding: 4px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: 999px;
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.tabs button {
  background: transparent; color: var(--muted); border: 0; border-radius: 999px;
  padding: 9px 18px; min-height: 40px; font-weight: 650; box-shadow: none;
}
.tabs button:hover { filter: none; color: var(--text); box-shadow: none; }
.tabs button.active {
  color: var(--text); background: var(--glass-2);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glow-blue);
}

.tab { display: block; }
.tab[hidden] { display: none; }

/* ── Gelişme kartları ────────────────────────────────────────────── */
.dev {
  padding: 17px; margin-bottom: 13px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}
.dev > b { display: block; font-size: 15px; margin-bottom: 4px; }
.dev p { margin: 4px 0; color: var(--muted); font-size: 14px; }
.dev .comment { color: var(--text); }

.impact {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
  border: 1px solid var(--glass-border);
}
.impact.positive { background: rgba(46,211,160,.16); color: #7ff0c6; border-color: rgba(46,211,160,.4); }
.impact.neutral  { background: rgba(107,118,130,.18); color: #b6c0cb; }
.impact.negative { background: rgba(255,93,98,.16);  color: #ff9a9d; border-color: rgba(255,93,98,.4); }

.scenario { border-left: 3px solid var(--glass-border); padding: 9px 13px; margin: 8px 0;
            border-radius: 8px; font-size: 14px; background: rgba(255,255,255,.04); }
.scenario.bull { border-left-color: var(--up); }
.scenario.bear { border-left-color: var(--down); }
.judge { margin-top: 8px; font-size: 13.5px; color: var(--text);
         background: rgba(90,169,255,.1); border: 1px solid rgba(90,169,255,.26);
         padding: 9px 13px; border-radius: 10px; }

/* Karar bloğu */
.decision {
  padding: 19px; margin-bottom: 16px; border-left: 3px solid var(--primary);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-top: 1px solid var(--glass-border); border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  border-radius: var(--radius); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}
.decision p { color: var(--muted); }
.decision .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.decision ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; }

.pending {
  display: inline-block; background: rgba(245,183,61,.14); border: 1px solid rgba(245,183,61,.42);
  color: #ffd57e; padding: 10px 15px; border-radius: 10px; font-weight: 650;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .detail { grid-template-columns: 1fr; }
  #chart { height: 420px; min-height: 0; }
  .decision .cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  a.card:hover { transform: none; }
}

/* backdrop-filter desteklenmiyorsa: yüzeyleri daha opak yap (kontrast korunur) */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card, .login-form, .dev, .decision, .tabs, .chat-panel { background: var(--bg-2); }
  .topbar { background: var(--bg-2); }
  #chart { background: #0b0f16; }
}

/* ── Chatbot panelleri (buton yok — panel hep açık, örnek sorular daktiloyla akar) ── */
.chat { margin-top: 13px; }
.chat-panel {
  margin-top: 10px; padding: 13px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; margin-bottom: 10px; }
.chat-log:empty { display: none; }
.msg { max-width: 85%; padding: 8px 12px; border-radius: 13px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: linear-gradient(180deg, #34dca6, #1eb27f); color: #04140d; border-bottom-right-radius: 4px; box-shadow: 0 4px 14px rgba(46,211,160,.24); }
.msg.ai { align-self: flex-start; background: var(--glass-2); border: 1px solid var(--glass-border); color: var(--text); border-bottom-left-radius: 4px; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input {
  flex: 1; font: inherit; color: var(--text); background: rgba(0,0,0,.25);
  border: 1px solid var(--glass-border); border-radius: 10px; padding: 10px 12px; min-height: 42px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.chat-input:focus { border-color: var(--up); outline: none; box-shadow: var(--glow-green); }
.chat-input:disabled { opacity: .6; }

/* input'un solunda ışıltı ikonu */
.chat-input-row .spark { width: 16px; height: 16px; color: var(--up); flex: none; align-self: center; filter: drop-shadow(0 0 6px rgba(46,211,160,.5)); }

@keyframes chatSlideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.chat-panel { animation: chatSlideDown .22s ease; }

@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg { animation: msgIn .18s ease; }

.msg.typing { display: flex; gap: 5px; align-items: center; padding: 12px 14px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chatBlink 1.2s infinite both; }
.msg.typing span:nth-child(2) { animation-delay: .2s; }
.msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatBlink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Vizyon ve Derin bölüm sohbeti tam genişlikte → daha ferah büyüsün (sıkışmasın). */
#tab-vision .chat-log, #tab-deep .chat-log { max-height: 70vh; }

/* AI yanıtındaki markdown render'ı: başlık/madde/kalın/kod düzgün; ham sembol kalmaz. */
.msg.ai { white-space: normal; }
.msg .md-h { font-weight: 700; margin: 6px 0 4px; }
.msg .md-h:first-child { margin-top: 0; }
.msg p { margin: 0 0 8px; }
.msg p:last-child { margin-bottom: 0; }
.msg ul, .msg ol { margin: 4px 0 8px; padding-left: 20px; }
.msg li { margin: 3px 0; }
.msg li:last-child { margin-bottom: 0; }
.msg code { background: rgba(0,0,0,.32); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.msg strong { font-weight: 700; }
.msg em { font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .chat-panel, .msg, .msg.typing span { animation: none !important; }
}

/* ---- Momentum Radarı ---- */
.momo { margin-bottom: 28px; }
.momo-list { display: flex; flex-direction: column; gap: 10px; }
.momo-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur); text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: border-color .15s ease;
}
.momo-row:hover { border-color: var(--glass-hi); }
.momo-name { color: var(--muted); }
.momo-ret { font-variant-numeric: tabular-nums; }
.momo-ret.up { color: var(--up); }
.momo-ret.down { color: var(--down); }
.momo-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.momo-empty { color: var(--muted); }

/* ── Üst navigasyon ──────────────────────────────────────────────── */
.topnav { display: flex; gap: 4px; margin-left: 18px; margin-right: auto; flex-wrap: wrap; }
.topnav a {
  color: var(--muted); font-size: 13px; font-weight: 650; padding: 7px 13px;
  border-radius: 999px; border: 1px solid transparent;
}
.topnav a:hover { color: var(--text); text-decoration: none; border-color: var(--glass-border); background: var(--glass); }

/* ── Flash mesajları ─────────────────────────────────────────────── */
.flash { margin: 0 0 18px; }
.flash p {
  margin: 0 0 8px; padding: 11px 15px; border-radius: 10px;
  background: rgba(245,183,61,.14); border: 1px solid rgba(245,183,61,.42); color: #ffd57e;
  font-size: 14px; font-weight: 600;
}

/* ── Ortak: bölüm başlığı ────────────────────────────────────────── */
h2.sec { font-size: 19px; font-weight: 720; letter-spacing: -.01em; margin: 34px 0 14px; }
.lead { color: var(--muted); font-size: 15px; max-width: 900px; margin: 0 0 16px; }
.footnote { color: var(--muted); font-size: 12.5px; margin: 30px 0 0; }

/* ── Piyasa Yapısı: canlı seans göstergesi ───────────────────────── */
.live-sessions {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 20px; margin: 6px 0 22px;
}
.live-clock { display: flex; flex-direction: column; }
.live-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.live-time { font-size: 26px; font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.live-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pill.live-on { box-shadow: 0 0 12px rgba(46,211,160,.28); }
.season-note { flex-basis: 100%; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.notice {
  padding: 13px 16px; margin: 0 0 22px; border-radius: 12px; font-size: 14px;
  background: rgba(245,183,61,.10); border: 1px solid rgba(245,183,61,.34); color: #f3d79a;
}
.notice b { color: #ffe6b0; }

/* Seans kartları */
.sessions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.session { border-top: 3px solid var(--glass-border); }
.session.asia   { border-top-color: var(--amber); }
.session.london { border-top-color: var(--up); }
.session.ny     { border-top-color: var(--primary); }
.session-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.session-head h3 { margin: 0; }
.session-time { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.session-sub { color: var(--muted); font-size: 12.5px; margin: 2px 0 12px; }
.profile { margin: 0 0 14px; padding-left: 18px; }
.profile li { font-size: 13.5px; margin: 5px 0; color: var(--text); }
.profile b { color: var(--text); }
.fit { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.fit-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-right: 3px; }

.overlap {
  padding: 18px 20px; margin: 18px 0 6px; border-left: 3px solid var(--primary);
}
.overlap h3 { justify-content: space-between; }
.overlap p { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; }

/* Tablolar */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.mkt-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  overflow: hidden;
}
.mkt-table th, .mkt-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--glass-border); }
.mkt-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.mkt-table tbody tr:last-child td { border-bottom: 0; }
.mkt-table tbody tr:hover { background: var(--glass); }
.mkt-table td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Trade Defteri ───────────────────────────────────────────────── */
.journal-new { margin-bottom: 8px; }
.journal-form { display: flex; flex-direction: column; gap: 13px; margin-top: 10px; }
.journal-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.journal-form .req { color: var(--down); }
.journal-form .opt { color: var(--neutral); font-weight: 400; }
.journal-form textarea, .journal-form input[type="file"], .journal-form input[type="text"] {
  font: inherit; color: var(--text); background: rgba(0,0,0,.25);
  border: 1px solid var(--glass-border); border-radius: 10px; padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease; resize: vertical;
}
.journal-form textarea:focus, .journal-form input[type="text"]:focus { border-color: var(--up); outline: none; box-shadow: var(--glow-green); }
.journal-form input[type="text"] { min-height: 44px; }
.journal-form input[type="file"] { cursor: pointer; }

/* Görsel alanı: yapıştır / sürükle-bırak / seç */
.img-field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; color: var(--muted); }
.paste-zone {
  border: 1.5px dashed var(--glass-border); border-radius: 11px; padding: 20px 14px;
  text-align: center; color: var(--muted); font-size: 13px; cursor: pointer;
  background: rgba(0,0,0,.18); transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.paste-zone b { color: var(--text); }
.paste-zone:hover, .paste-zone:focus-visible, .paste-zone.drag {
  border-color: var(--up); color: var(--text); background: rgba(46,211,160,.07); outline: none;
}
.linklike {
  background: none; border: 0; color: var(--primary); font: inherit; font-weight: 650;
  padding: 0; min-height: 0; box-shadow: none; cursor: pointer; text-decoration: underline;
}
.linklike:hover { filter: none; box-shadow: none; }
.paste-note { font-size: 12px; color: var(--amber); }
.paste-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.paste-preview:empty { display: none; }
.pv-item { position: relative; width: 94px; height: 66px; border-radius: 8px; overflow: hidden; border: 1px solid var(--glass-border); }
.pv-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-remove {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; min-height: 0;
  padding: 0; border-radius: 50%; font-size: 15px; line-height: 1; font-weight: 700;
  color: #fff; background: rgba(20,10,12,.78); border: 1px solid rgba(255,255,255,.22);
  box-shadow: none; display: flex; align-items: center; justify-content: center;
}
.pv-remove:hover { background: var(--down); filter: none; box-shadow: none; }

/* Çok kolonlu (masonry) düzen: kayıtlar boşluk bırakmadan sütunlara akar; en yeni
   sol-üstte. Kart yüksekliği içeriğe göre; break-inside ile bölünmez. */
.journal-list { columns: 3 300px; column-gap: 14px; }
.journal-entry { padding: 13px 14px; margin: 0 0 14px; break-inside: avoid; }
.entry-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.entry-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry-head .pill { font-size: 10.5px; padding: 3px 8px; }
.entry-shots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.shot { flex: 1 1 46%; min-width: 0; border-radius: 9px; overflow: hidden; border: 1px solid var(--glass-border); line-height: 0; }
.shot img { width: 100%; height: 96px; object-fit: cover; display: block; transition: transform .15s ease; }
.shot:hover img { transform: scale(1.04); }
.entry-field { margin-bottom: 8px; }
.entry-field h4 { margin-bottom: 3px; }
.entry-field p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 4px; }
.tag {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 650;
  line-height: 1; padding: 4px 8px; border-radius: 6px; color: #9ccbff;
  background: rgba(90,169,255,.12); border: 1px solid rgba(90,169,255,.32);
  letter-spacing: .01em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.entry-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.entry-actions button { min-height: 30px; padding: 5px 12px; font-size: 12px; border-radius: 8px; }
.entry-edit { flex: 1; min-width: 0; }
.entry-edit summary {
  cursor: pointer; font-size: 12px; font-weight: 650; color: var(--muted);
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--glass-border);
  background: var(--glass); width: fit-content; list-style: none;
}
.entry-edit summary::-webkit-details-marker { display: none; }
.entry-edit summary:hover { color: var(--text); border-color: var(--glass-hi); }
.entry-edit[open] { flex-basis: 100%; }
.entry-edit[open] summary { margin-bottom: 11px; }
.del-form { margin: 0; }
.btn-danger {
  color: #fff; background: linear-gradient(180deg, #ff6b70, #e0454b);
  box-shadow: 0 6px 18px rgba(255,93,98,.28), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-danger:hover { box-shadow: 0 8px 26px rgba(255,93,98,.42), inset 0 1px 0 rgba(255,255,255,.2); }

/* İşlem sonucu: kutu rengi (win/loss) + pill + Win/Loss/Belirsiz seçici */
.journal-entry.win  { border-color: rgba(46,211,160,.45); background: linear-gradient(180deg, rgba(46,211,160,.09), rgba(46,211,160,.025)); }
.journal-entry.loss { border-color: rgba(255,93,98,.45);  background: linear-gradient(180deg, rgba(255,93,98,.09), rgba(255,93,98,.025)); }
.pill.win  { color: #7ff0c6; border-color: rgba(46,211,160,.5); background: rgba(46,211,160,.15); box-shadow: 0 0 12px rgba(46,211,160,.18); }
.pill.loss { color: #ff9a9d; border-color: rgba(255,93,98,.5);  background: rgba(255,93,98,.15); }

.outcome-pick { display: flex; gap: 7px; flex-wrap: wrap; }
.oc {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 12.5px; font-weight: 650; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--glass-border); background: var(--glass); color: var(--muted);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.oc input { margin: 0; accent-color: currentColor; }
.oc:hover { color: var(--text); }
.oc-win:has(input:checked)  { color: #7ff0c6; border-color: rgba(46,211,160,.55); background: rgba(46,211,160,.14); }
.oc-loss:has(input:checked) { color: #ff9a9d; border-color: rgba(255,93,98,.55);  background: rgba(255,93,98,.14); }
.oc-none:has(input:checked) { color: var(--text); border-color: var(--glass-hi); }

/* Düzenle: mevcut görseller + kaldır kutusu */
.edit-shots { display: flex; flex-wrap: wrap; gap: 8px; }
.es-item {
  position: relative; width: 92px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--glass-border); cursor: pointer; display: block;
  transition: border-color .15s ease, opacity .15s ease;
}
.es-item img { width: 100%; height: 62px; object-fit: cover; display: block; }
.es-rm {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 10.5px; color: var(--muted); padding: 3px 2px; background: rgba(0,0,0,.35);
}
.es-rm input { margin: 0; accent-color: var(--down); }
.es-item:has(input:checked) { border-color: var(--down); opacity: .55; }
.es-item:has(input:checked) .es-rm { color: #ff9a9d; }

.empty { color: var(--muted); }

/* ── Öğrendiklerim: not çipleri + tekrar sayacı ──────────────────── */
.journal-notes { margin-bottom: 14px; }
.notes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notes-head h3 { margin: 0; }
#note-add-btn {
  min-height: 0; width: 30px; height: 30px; padding: 0; border-radius: 999px;
  font-size: 17px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.note-new { display: flex; gap: 8px; margin-top: 10px; }
.note-new input[type="text"], .note-edit-form input[type="text"] {
  flex: 1; font: inherit; color: var(--text); background: rgba(0,0,0,.25);
  border: 1px solid var(--glass-border); border-radius: 9px; padding: 8px 11px;
  min-width: 0;
}
.note-new button[type="submit"], .note-edit-form button[type="submit"] { min-height: 0; padding: 7px 14px; }
.note-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.note-chip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; cursor: pointer;
  font-size: 13px; font-weight: 600; padding: 7px 10px 7px 13px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--text);
  transition: border-color .15s ease, background .15s ease; user-select: none;
}
.note-chip:hover { border-color: rgba(90,169,255,.5); background: rgba(90,169,255,.08); }
.note-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.note-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: #ffd57e; background: rgba(245,183,61,.14); border: 1px solid rgba(245,183,61,.45);
}
.note-count.pulse { animation: note-pulse .35s ease; }
@keyframes note-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); box-shadow: 0 0 14px rgba(245,183,61,.5); }
  100% { transform: scale(1); }
}
.note-acts { display: inline-flex; align-items: center; gap: 3px; }
.note-acts button, .note-del { display: inline-flex; }
.note-minus, .note-edit-btn, .note-del-btn {
  min-height: 0; width: 24px; height: 24px; padding: 0; border-radius: 999px;
  font-size: 12px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent; box-shadow: none; color: var(--muted);
  opacity: .55; transition: opacity .15s ease, border-color .15s ease, color .15s ease;
}
.note-chip:hover .note-minus, .note-chip:hover .note-edit-btn, .note-chip:hover .note-del-btn { opacity: 1; }
.note-minus:hover, .note-edit-btn:hover { color: var(--text); border-color: var(--glass-hi); filter: none; box-shadow: none; }
.note-del-btn:hover { color: #ff9a9d; border-color: rgba(255,93,98,.5); filter: none; box-shadow: none; }
.note-edit-form { display: flex; gap: 8px; flex-basis: 100%; }
.note-edit-form[hidden] { display: none; }
.note-empty { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .note-count.pulse { animation: none; } }

@media (max-width: 640px) {
  .topnav { width: 100%; order: 3; margin: 8px 0 0; }
  .shot img { height: 120px; }
  .note-minus, .note-edit-btn, .note-del-btn { opacity: 1; }
}
