  :root { color-scheme: light; }
  html, body { background: #F8FAFC; }
  body { font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
  .num { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
  .card { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05); }
  .card-h { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem .6rem; }
  .card-t { font-size: .9rem; font-weight: 600; color: #0F172A; display: flex; align-items: center; gap: .5rem; }
  .card-t svg { width: 16px; height: 16px; color: #475569; }
  .scroll-y { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent; }
  .scroll-y::-webkit-scrollbar { width: 6px; height: 6px; } .scroll-y::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 6px; }
  :focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; border-radius: 8px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 500; font-size: .8rem;
         border-radius: 9px; padding: .45rem .7rem; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; min-height: 34px; }
  .btn svg { width: 15px; height: 15px; }
  .btn-ghost { border: 1px solid #E2E8F0; background: #fff; color: #0F172A; } .btn-ghost:hover { background: #F1F5F9; }
  .btn-primary { background: #2563EB; color: #fff; } .btn-primary:hover { background: #1D4ED8; }
  .btn-danger { background: #EF4444; color: #fff; } .btn-danger:hover { background: #DC2626; }
  .btn:disabled { opacity: .5; cursor: not-allowed; }
  .seg { display: inline-flex; padding: 3px; background: #F1F5F9; border: 1px solid #E2E8F0; border-radius: 10px; }
  .seg button { font-size: .78rem; font-weight: 500; color: #475569; padding: .35rem .7rem; border-radius: 7px; min-height: 30px; }
  .seg button[aria-pressed="true"] { background: #fff; color: #0F172A; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
  .chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 500; padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; }
  input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: #E2E8F0; cursor: pointer; }
  input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #2563EB; box-shadow: 0 2px 6px rgba(37,99,235,.25); }
  input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #2563EB; }
  .field { width: 100%; border: 1px solid #E2E8F0; border-radius: 9px; padding: .5rem .65rem; font-size: .82rem; background: #fff; color: #0F172A; }
  .field:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
  .switch { width: 38px; height: 22px; border-radius: 999px; background: #CBD5E1; position: relative; transition: background .15s; flex-shrink: 0; }
  .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
  .switch[aria-checked="true"] { background: #10B981; } .switch[aria-checked="true"]::after { transform: translateX(16px); }
  .switch.switch-danger[aria-checked="true"] { background: #DC2626; }
  table.radar th { font-size: .72rem; font-weight: 500; color: #64748B; text-align: right; padding: .45rem .45rem; white-space: nowrap; position: sticky; top: 0; background: #fff; z-index: 1; border-bottom: 1px solid #E2E8F0; }
  table.radar th:first-child, table.radar td:first-child { text-align: left; padding-left: 1rem; }
  table.radar td { font-size: .8rem; padding: .42rem .45rem; text-align: right; border-bottom: 1px solid #F1F5F9; white-space: nowrap; }
  table.radar tr:hover td { background: #F8FAFC; }
  .kpi { border: 1px solid #E2E8F0; border-radius: 12px; padding: .45rem .75rem; display: flex; flex-direction: column; justify-content: center; }
  .kl { font-size: 11px; color: #475569; } .kv { font-size: 17px; font-weight: 600; line-height: 1.35; } .ks { font-size: 11px; color: #475569; }
  .flash-up { animation: fu .8s ease-out; } .flash-dn { animation: fd .8s ease-out; }
  @keyframes fu { from { background: rgba(16,185,129,.16); } to { background: transparent; } }
  @keyframes fd { from { background: rgba(239,68,68,.14); } to { background: transparent; } }
  .rail { position: relative; height: 46px; }
  .rail-track { position: absolute; left: 0; right: 0; top: 21px; height: 6px; border-radius: 999px; background: #F1F5F9; }
  .rail-mark { position: absolute; top: 15px; width: 2px; height: 18px; border-radius: 2px; transform: translateX(-1px); }
  .rail-lbl { position: absolute; font-size: .64rem; color: #64748B; transform: translateX(-50%); white-space: nowrap; }
  .rail-now { position: absolute; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: #0F172A; border: 3px solid #fff; box-shadow: 0 0 0 1px #0F172A; transform: translateX(-8px); transition: left .5s ease; }
  .toast { animation: tin .2s ease-out; } @keyframes tin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .pulse-dot { animation: pd 2s infinite; } @keyframes pd { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
  /* Bento: büyük ekranda kaydırmasız, küçük yükseklikte sabit satırlarla minimum kaydırma */
  @media (min-width: 1280px) { .bento { grid-template-rows: 400px 430px 290px; } .bento > section { min-height: 0 !important; } }
  @media (min-width: 1280px) and (min-height: 880px) {
    html .desk-fit { height: calc(100vh / var(--zf, 1)); overflow: hidden; }
    .bento { grid-template-rows: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, .74fr); }
  }
  @media (max-width: 1535px) { .kv { font-size: 15px; } .kpi { padding: .4rem .65rem; } }

/* ---------------- WinGateZiP eklemeleri ---------------- */
.nav-tab { font-size: .84rem; font-weight: 500; color: #475569; padding: .45rem .75rem; border-radius: 9px; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.nav-tab svg { width: 16px; height: 16px; }
.nav-tab:hover { background: #F1F5F9; color: #0F172A; }
.nav-tab[aria-current="page"] { background: #EFF6FF; color: #1D4ED8; }
.page { display: none; } .page.active { display: flex; }
.drawer-bg { position: fixed; inset: 0; background: rgba(15,23,42,.22); backdrop-filter: blur(2px); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(1180px, 96vw); background: #F8FAFC; z-index: 41; transform: translateX(102%); transition: transform .25s ease; box-shadow: -20px 0 50px -20px rgba(15,23,42,.25); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.tbl th { font-size: .72rem; font-weight: 500; color: #64748B; text-align: left; padding: .5rem .75rem; border-bottom: 1px solid #E2E8F0; background: #fff; position: sticky; top: 0; white-space: nowrap; }
.tbl td { font-size: .8rem; padding: .55rem .75rem; border-bottom: 1px solid #F1F5F9; vertical-align: middle; }
.tbl tr:hover td { background: #F8FAFC; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; padding-right: 1.8rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.pill-toggle { font-size: .75rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid #E2E8F0; color: #475569; background: #fff; }
.pill-toggle[aria-pressed="true"] { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.auth-bg { background: radial-gradient(1200px 600px at 85% -10%, #DBEAFE 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #D1FAE5 0%, transparent 55%), #F8FAFC; }
article[data-id] { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
article[data-id]:hover { border-color: #BFDBFE; box-shadow: 0 6px 18px -8px rgba(37,99,235,.25); }
table.radar tbody tr { cursor: pointer; }
.role-viewer .needs-trader, .role-viewer .needs-admin, .role-trader .needs-admin { display: none !important; }
.role-admin .viewer-only, .role-trader .viewer-only { display: none !important; }
.step { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid #E2E8F0; background: #fff; border-radius: 12px; padding: .55rem .7rem; }
.step-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }

/* =====================================================================
   TEMALAR — Aydınlık (varsayılan), Karanlık, Aura, Liquid Glass
   data-theme yalnızca aydınlık dışı temalarda html öğesine konur.
   ===================================================================== */
html[data-theme="dark"] { --bg:#0B1220; --card:#111A2E; --ink:#E2E8F0; --muted:#9AA8C0; --faint:#64748B; --line:#1E2A44; --soft:#16213A; --soft2:#0E1628; --shadow:0 6px 24px -6px rgba(0,0,0,.55); color-scheme: dark; }
html[data-theme="aura"] { --bg:#07071A; --card:rgba(22,20,52,.58); --ink:#EEF0FF; --muted:#A9B1E8; --faint:#7A80B8; --line:rgba(165,150,255,.20); --soft:rgba(129,140,248,.13); --soft2:rgba(10,8,34,.55); --shadow:0 10px 40px -12px rgba(124,58,237,.45); color-scheme: dark; }
html[data-theme="glass"] { --bg:#EAF0FF; --card:rgba(255,255,255,.52); --ink:#0B1324; --muted:#334155; --faint:#5B6B82; --line:rgba(255,255,255,.75); --soft:rgba(255,255,255,.42); --soft2:rgba(255,255,255,.55); --shadow:0 8px 32px -8px rgba(30,41,99,.18), inset 0 1px 0 rgba(255,255,255,.7); }

html[data-theme="liquid"] { --bg:#DADDF0; --card:rgba(250,251,255,.58); --ink:#0F172A; --muted:#3F4A5E; --faint:#5F6B80; --line:rgba(255,255,255,.82); --soft:rgba(255,255,255,.46); --soft2:rgba(255,255,255,.62); --shadow:0 12px 40px -14px rgba(36,40,92,.28), inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.35); }
html[data-theme], html[data-theme] body { background: var(--bg); color: var(--ink); }
html[data-theme="aura"] body { background:
  radial-gradient(900px 600px at 10% -10%, rgba(124,58,237,.35), transparent 60%),
  radial-gradient(800px 600px at 100% 0%, rgba(6,182,212,.25), transparent 55%),
  radial-gradient(900px 700px at 50% 120%, rgba(236,72,153,.22), transparent 60%), #07071A; background-attachment: fixed; }
html[data-theme="glass"] body { background:
  radial-gradient(800px 600px at 0% 0%, #C7D2FE 0%, transparent 60%),
  radial-gradient(700px 600px at 100% 10%, #FBCFE8 0%, transparent 55%),
  radial-gradient(900px 700px at 60% 110%, #A7F3D0 0%, transparent 60%), #EEF2FF; background-attachment: fixed; }

html[data-theme] .card { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
html[data-theme="aura"] .card, html[data-theme="glass"] .card, html[data-theme="glass"] .kpi, html[data-theme="aura"] .kpi { backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); }
html[data-theme="glass"] .card { border-radius: 18px; }
html[data-theme] .bg-white, html[data-theme] .drawer header { background: var(--card) !important; }
html[data-theme] .drawer { background: var(--bg); }
html[data-theme="glass"] .drawer, html[data-theme="aura"] .drawer { backdrop-filter: blur(26px); background: var(--soft2); }
html[data-theme] .bg-slate-50, html[data-theme] .bg-slate-100, html[data-theme] .bg-canvas, html[data-theme] .hover\:bg-slate-50:hover, html[data-theme] .hover\:bg-blue-50\/40:hover { background: var(--soft) !important; }
html[data-theme] .text-ink, html[data-theme] .text-slate-700 { color: var(--ink) !important; }
html[data-theme] .text-muted, html[data-theme] .text-slate-600 { color: var(--muted) !important; }
html[data-theme] .text-faint { color: var(--faint) !important; }
html[data-theme] .border-line, html[data-theme] .border-slate-100, html[data-theme] .border-slate-200, html[data-theme] .border-slate-300, html[data-theme] .kpi, html[data-theme] .step { border-color: var(--line) !important; }
html[data-theme] .divide-slate-100 > * + * { border-color: var(--line) !important; }
html[data-theme] .step { background: var(--soft); }
html[data-theme] .field { background: var(--soft2); color: var(--ink); border-color: var(--line); }
html[data-theme] .field::placeholder { color: var(--faint); }
html[data-theme] .seg { background: var(--soft); border-color: var(--line); }
html[data-theme] .seg button { color: var(--muted); }
html[data-theme] .seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
html[data-theme] .btn-ghost { background: var(--soft2); color: var(--ink); border-color: var(--line); }
html[data-theme] .btn-ghost:hover { background: var(--soft); }
html[data-theme] .pill-toggle { background: var(--soft2); color: var(--muted); border-color: var(--line); }
html[data-theme] .pill-toggle[aria-pressed="true"] { background: rgba(37,99,235,.18); color: #93C5FD; border-color: rgba(147,197,253,.4); }
html[data-theme="glass"] .pill-toggle[aria-pressed="true"] { color: #1D4ED8; }
html[data-theme] table.radar th, html[data-theme] .tbl th { background: var(--card); color: var(--muted); border-color: var(--line); }
html[data-theme="glass"] table.radar th, html[data-theme="glass"] .tbl th, html[data-theme="aura"] table.radar th, html[data-theme="aura"] .tbl th { background: transparent; backdrop-filter: blur(20px); }
html[data-theme] table.radar td, html[data-theme] .tbl td { border-color: var(--line); }
html[data-theme] table.radar tr:hover td, html[data-theme] .tbl tr:hover td { background: var(--soft); }
html[data-theme] .rail-track { background: var(--soft); }
html[data-theme] .rail-now { border-color: var(--card); background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
html[data-theme] .switch { background: #334155; }
html[data-theme] .switch[aria-checked="true"] { background: #10B981; }
html[data-theme] input[type=range] { background: var(--soft); }
html[data-theme] .bg-ink, html[data-theme] .bg-slate-900 { background: #2563EB !important; color: #fff !important; }
html[data-theme="dark"] .bg-emerald-50, html[data-theme="aura"] .bg-emerald-50, html[data-theme="dark"] .bg-emerald-50\/60, html[data-theme="aura"] .bg-emerald-50\/60 { background: rgba(16,185,129,.14) !important; }
html[data-theme="dark"] .bg-red-50, html[data-theme="aura"] .bg-red-50 { background: rgba(239,68,68,.15) !important; }
html[data-theme="dark"] .bg-blue-50, html[data-theme="aura"] .bg-blue-50, html[data-theme="dark"] .bg-blue-50\/40, html[data-theme="aura"] .bg-blue-50\/40 { background: rgba(59,130,246,.16) !important; }
html[data-theme="dark"] .bg-amber-50, html[data-theme="aura"] .bg-amber-50, html[data-theme="dark"] .bg-amber-100, html[data-theme="aura"] .bg-amber-100 { background: rgba(245,158,11,.16) !important; }
html[data-theme="dark"] .bg-indigo-50, html[data-theme="aura"] .bg-indigo-50, html[data-theme="dark"] .bg-sky-50, html[data-theme="aura"] .bg-sky-50 { background: rgba(99,102,241,.18) !important; }
html[data-theme="dark"] .bg-red-100, html[data-theme="aura"] .bg-red-100, html[data-theme="dark"] .bg-blue-100, html[data-theme="aura"] .bg-blue-100 { background: rgba(148,163,184,.16) !important; }
html[data-theme="dark"] .text-emerald-700, html[data-theme="aura"] .text-emerald-700, html[data-theme="dark"] .text-emerald-600, html[data-theme="aura"] .text-emerald-600 { color: #34D399 !important; }
html[data-theme="dark"] .text-red-600, html[data-theme="aura"] .text-red-600 { color: #F87171 !important; }
html[data-theme="dark"] .text-blue-700, html[data-theme="aura"] .text-blue-700, html[data-theme="dark"] .text-action, html[data-theme="aura"] .text-action { color: #93C5FD !important; }
html[data-theme="dark"] .text-amber-700, html[data-theme="aura"] .text-amber-700, html[data-theme="dark"] .text-amber-600, html[data-theme="aura"] .text-amber-600 { color: #FBBF24 !important; }
html[data-theme="dark"] .text-indigo-700, html[data-theme="aura"] .text-indigo-700, html[data-theme="dark"] .text-indigo-600, html[data-theme="aura"] .text-indigo-600 { color: #A5B4FC !important; }
html[data-theme="dark"] .border-emerald-200, html[data-theme="aura"] .border-emerald-200 { border-color: rgba(16,185,129,.35) !important; }
html[data-theme] .auth-bg { background: transparent; }
html[data-theme] #toasts .card { background: var(--card); }
html[data-theme="aura"] .btn-primary { background: linear-gradient(135deg, #6366F1, #8B5CF6); box-shadow: 0 6px 20px -6px rgba(139,92,246,.7); }
html[data-theme="glass"] .btn-primary { box-shadow: 0 6px 18px -6px rgba(37,99,235,.55); }

/* tema menüsü */
.theme-opt { width: 100%; display: flex; align-items: center; gap: .65rem; text-align: left; padding: .5rem .55rem; border-radius: 10px; }
.theme-opt:hover { background: #F1F5F9; } html[data-theme] .theme-opt:hover { background: var(--soft); }
.theme-opt .sw { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(148,163,184,.5); flex-shrink: 0; }
.theme-opt b { display: block; font-size: 13px; font-weight: 600; } .theme-opt small { display: block; font-size: 11px; color: #64748B; }
.theme-opt[aria-current="true"] { outline: 2px solid #2563EB; outline-offset: -2px; }
/* piyasa paneli */
table.radar tr.grp td { background: transparent; padding-top: .7rem; padding-bottom: .2rem; font-size: .72rem; font-weight: 600; color: #64748B; border-bottom: none; text-align: left; }
html[data-theme] table.radar tr.grp td { color: var(--faint); }
.star { color: #CBD5E1; font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 6px; } .star:hover { color: #F59E0B; } .star[aria-pressed="true"] { color: #F59E0B; }
.range24 { position: relative; width: 72px; height: 4px; border-radius: 4px; background: #E2E8F0; display: inline-block; vertical-align: middle; }
html[data-theme] .range24 { background: var(--soft); }
.range24 i { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #2563EB; border: 2px solid #fff; }
html[data-theme] .card-t, html[data-theme] .kv:not([class*="text-"]), html[data-theme] h1, html[data-theme] h2, html[data-theme] h3 { color: var(--ink); }
html[data-theme] .card-t svg { color: var(--muted); }
html[data-theme] .kl, html[data-theme] .ks { color: var(--muted); }
html[data-theme] .nav-tab { color: var(--muted); }
html[data-theme] .nav-tab:hover { background: var(--soft); color: var(--ink); }
html[data-theme] .nav-tab[aria-current="page"] { background: rgba(37,99,235,.18); color: #93C5FD; }
html[data-theme="glass"] .nav-tab[aria-current="page"] { background: rgba(255,255,255,.7); color: #1D4ED8; }
html[data-theme="dark"] .\!bg-emerald-50\/60, html[data-theme="aura"] .\!bg-emerald-50\/60 { background: rgba(16,185,129,.12) !important; }
html[data-theme="dark"] .\!border-emerald-200, html[data-theme="aura"] .\!border-emerald-200 { border-color: rgba(16,185,129,.35) !important; }
html[data-theme="dark"] .\!text-emerald-700, html[data-theme="aura"] .\!text-emerald-700 { color: #34D399 !important; }
html[data-theme="dark"] .\!bg-red-50, html[data-theme="aura"] .\!bg-red-50 { background: rgba(239,68,68,.12) !important; }
html[data-theme] .theme-opt small { color: var(--faint); }
/* üst menü sığdırma */
.nav-tab { padding: .45rem .6rem; }
@media (max-width: 1700px) { .nav-tab .nav-l { display: none; } .nav-tab[aria-current="page"] .nav-l { display: inline; } }
@media (min-width: 1280px) { .bento { grid-template-rows: 470px 430px 290px; } }
@media (min-width: 1280px) and (min-height: 880px) { .bento { grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .68fr); } }
html[data-theme] .switch.switch-danger[aria-checked="true"] { background: #DC2626; }

/* sıralanabilir sütun başlıkları */
.th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.th-sort:hover { color: var(--ink, #0F172A); }
.th-sort:focus-visible { outline: 2px solid #2563EB; outline-offset: -2px; }
.th-arrow { display: inline-block; margin-left: 4px; font-size: 9px; opacity: .35; }
.th-arrow.on { opacity: 1; color: #2563EB; }

/* ---- düzen motoru (geniş ekran): 4px satır ızgarası, panel yüksekliği kullanıcıdan ---- */
@media (min-width: 1280px) {
  .bento.lay { grid-template-rows: none !important; grid-auto-rows: 4px; row-gap: 0; grid-auto-flow: row dense; flex: none; }
  .bento.lay > section { margin-bottom: 12px; overflow: hidden; min-height: 160px !important; grid-row-end: auto; }
  .bento.lay > section { position: relative; }
}
.menu-h { font-size: 11px; font-weight: 600; color: #64748B; padding: 8px 4px 4px; }
.lay-ico { width: 34px; height: 22px; display: grid; place-items: center; color: #2563EB; flex-shrink: 0; }
/* sıkı yoğunluk */
.density-compact .card-h { padding-top: 8px !important; padding-bottom: 6px !important; }
.density-compact .tbl td, .density-compact .tbl th, .density-compact .radar td, .density-compact .radar th { padding-top: 5px !important; padding-bottom: 5px !important; }
.density-compact .kpi { padding-top: 8px !important; padding-bottom: 8px !important; }
.density-compact .bento { gap: 8px; }

.bento > section.lay-hidden { display: none !important; }

/* =====================================================================
   Mobil / tablet: ağdan telefonla bağlanınca
   ===================================================================== */
.mob-nav { display: none; }
/* telefon düzeni (cihaza göre açılışta seçilir) */
html.dev-phone, html.dev-phone body { overflow-x: hidden; }
html.dev-phone #appShell { padding: 8px 8px 84px !important; gap: 8px !important; }
html.dev-phone #appShell > nav[aria-label="Ana menü"] { position: sticky; top: 0; z-index: 40; padding: 6px 8px !important; gap: 6px !important; flex-wrap: nowrap !important; }
html.dev-phone #appShell > nav[aria-label="Ana menü"] .nav-tab, html.dev-phone .desk-only { display: none !important; }
html.dev-phone #appShell > nav[aria-label="Ana menü"] > div:first-child { border: 0 !important; padding-right: 0 !important; min-width: 0; }
html.dev-phone #appShell > nav[aria-label="Ana menü"] #connTxt { max-width: 150px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
html.dev-phone #panicBtn { padding-left: 10px !important; padding-right: 10px !important; font-size: 12.5px; white-space: nowrap; }
html.dev-phone #userBtn .leading-tight, html.dev-phone #userBtn svg:last-child { display: none; }
html.dev-phone .mob-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 45;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border: 1px solid #E2E8F0; border-radius: 18px;
    box-shadow: 0 10px 30px -12px rgba(15,23,42,.35); padding: 4px; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
html.dev-phone .mob-nav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 54px;
    border-radius: 14px; font-size: 10.5px; color: #64748B; background: none; min-width: 0; padding: 0; }
html.dev-phone .mob-nav > button svg { width: 20px; height: 20px; }
html.dev-phone .mob-nav > button[aria-current="page"] { color: #2563EB; background: #EFF6FF; }
html.dev-phone .mob-nav > .mob-opp { color: #fff; background: #2563EB; }
html.dev-phone .card-h { flex-wrap: wrap; gap: 8px; }
html.dev-phone .card { min-width: 0; }
html.dev-phone #mkSort { width: 100% !important; }
html.dev-phone .seg { max-width: 100%; overflow-x: auto; }
html.dev-phone table[data-tab="watch"] tr > :nth-child(4), html.dev-phone table[data-tab="watch"] tr > :nth-child(n+6), html.dev-phone table[data-tab="fav"] tr > :nth-child(4), html.dev-phone table[data-tab="fav"] tr > :nth-child(n+6), html.dev-phone table[data-tab="etf"] tr > :nth-child(n+5), html.dev-phone table[data-tab="spot"] tr > :nth-child(n+5) { display: none; }
html.dev-phone table[data-tab] { width: 100% !important; min-width: 0 !important; }
html.dev-phone #outageLines { font-size: 12px; }
html.dev-phone .drawer { width: 100vw !important; max-width: 100vw !important; }
html.dev-phone #oppModal { padding: 0; place-items: end center; }
html.dev-phone #oppModal > .card { max-height: 92vh; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
html.dev-phone .kpi .num { font-size: 1.05rem; }
html.dev-phone input, html.dev-phone select, html.dev-phone textarea { font-size: 16px !important; }

html[data-theme="dark"] .mob-nav, html[data-theme="aura"] .mob-nav { background: rgba(15,23,42,.92); border-color: rgba(148,163,184,.2); }
html[data-theme="dark"] .mob-nav > button[aria-current="page"], html[data-theme="aura"] .mob-nav > button[aria-current="page"] { background: rgba(37,99,235,.18); }
html[data-theme="glass"] .mob-nav { background: rgba(255,255,255,.55); backdrop-filter: blur(18px) saturate(1.4); }
@media (min-width: 768px) and (max-width: 1279px) {
  #appShell > nav[aria-label="Ana menü"] .nav-l { display: none; }
}
/* telefon düzeni (cihaza göre açılışta seçilir) */
html.dev-phone #panicBtn { font-size: 0 !important; width: 40px; padding: 0 !important; justify-content: center; }
html.dev-phone #panicBtn::before { content: "🚨"; font-size: 17px; }
html.dev-phone #panicBtn[data-v="paper"]::before { content: "🧪"; }


/* ---- düzenleme modu ---- */
/* düzenleme modu: titreme yok; sakin kesik çerçeve ve hafif nabız (yer değiştirmez) */
.bento.lay-edit > section { outline: 2px dashed #60A5FA; outline-offset: -2px; user-select: none; cursor: grab; animation: editPulse 1.6s ease-in-out infinite; }
.bento.lay-edit > section.lay-moving { animation: none; }
@keyframes editPulse { 0%,100% { outline-color: #60A5FA; } 50% { outline-color: #BFDBFE; } }
@media (prefers-reduced-motion: reduce) { .bento.lay-edit > section { animation: none; } }
.lh-x { position: absolute; z-index: 6; left: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%; background: #64748B; color: #fff; font: 700 16px/22px system-ui; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.bento.lay-edit > section > :not(.lh):not(.lh-tag):not(.lh-x):not(.lh-move):not(.card-h) { pointer-events: none; opacity: .55; }
.bento.lay-edit > section .card-h { cursor: grab; background: rgba(219,234,254,.55); }
.bento.lay-edit > section.lay-moving { opacity: .6; }
.bento.lay-edit > section.lay-target { outline: 3px solid #2563EB; }
.lh { position: absolute; z-index: 5; background: transparent; }
.lh-r { top: 0; right: -2px; width: 12px; height: 100%; cursor: ew-resize; }
.lh-b { left: 0; bottom: -2px; height: 12px; width: 100%; cursor: ns-resize; }
.lh-c { right: -2px; bottom: -2px; width: 22px; height: 22px; cursor: nwse-resize; background: #2563EB; border-radius: 6px 0 10px 0; }
.lh-r::after { content: ""; position: absolute; right: 4px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 4px; background: #2563EB; }
.lh-b::after { content: ""; position: absolute; bottom: 4px; left: 50%; height: 4px; width: 44px; margin-left: -22px; border-radius: 4px; background: #2563EB; }
.lh-tag { position: absolute; z-index: 5; right: 30px; bottom: 6px; font: 600 11px/1 'JetBrains Mono', monospace; color: #1D4ED8; background: #EFF6FF; border: 1px solid #BFDBFE; padding: 3px 6px; border-radius: 6px; pointer-events: none; }

/* ---- simülasyon kapalıyken simülasyona ait her şey gizli ---- */
body.sim-off .sim-only { display: none !important; }
/* ---- açılır menüler panellerin (cam efektli kartlar dahil) üstünde kalsın ---- */
#appShell > nav[aria-label="Ana menü"] { position: relative; z-index: 60; }
#themeMenu, #userMenu { z-index: 70; }
/* ---- dinamik ambiyans: işlerin gidişine göre arka plan rengi ---- */
@property --amb-h { syntax: '<number>'; inherits: false; initial-value: 220; }
@property --amb-a { syntax: '<number>'; inherits: false; initial-value: 0; }
#ambient { position: fixed; inset: -10%; z-index: 0; pointer-events: none; --amb-h: 220; --amb-a: 0;
  transition: --amb-h 4s ease, --amb-a 4s ease;
  background:
    radial-gradient(60% 55% at 12% 8%, hsl(var(--amb-h) 85% 55% / var(--amb-a)), transparent 70%),
    radial-gradient(55% 50% at 92% 95%, hsl(calc(var(--amb-h) + 28) 80% 50% / calc(var(--amb-a) * .8)), transparent 70%),
    radial-gradient(40% 35% at 70% 20%, hsl(calc(var(--amb-h) - 20) 90% 60% / calc(var(--amb-a) * .45)), transparent 70%);
  }
@media (prefers-reduced-motion: reduce) { #ambient { animation: none; transition: none; } }
#appShell, #mobNav { position: relative; z-index: 1; }
/* açılır menüler: cam/aura temada arkası görünmesin (iç içe backdrop-filter çalışmaz) */
html[data-theme="glass"] #themeMenu, html[data-theme="glass"] #userMenu { background: rgba(255,255,255,.96) !important; }
html[data-theme="aura"] #themeMenu, html[data-theme="aura"] #userMenu { background: rgba(16,14,42,.97) !important; }
html[data-theme="dark"] #themeMenu, html[data-theme="dark"] #userMenu { background: #111A2E !important; }
html[data-theme="dark"] .\!bg-slate-50, html[data-theme="aura"] .\!bg-slate-50 { background: var(--soft) !important; }
html[data-theme="dark"] .\!border-slate-300, html[data-theme="aura"] .\!border-slate-300 { border-color: var(--line) !important; }
html[data-theme="dark"] .text-slate-700, html[data-theme="aura"] .text-slate-700 { color: var(--ink) !important; }

/* Fare tekerleğinde iç liste sona gelince ana sayfa kaymasın; dokunmatikte parmakla sürükleme
   liste bitince ana sayfayı kaydırmaya devam etsin (zincirleme açık). */
.drawer, #themeMenu, #userMenu { overscroll-behavior: contain; }
.scroll-y, .overflow-y-auto, .overflow-auto, .overflow-x-auto { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }

/* pozisyon kartları: panel genişliğine göre kendiliğinden 1-2-3 sütun; metrikler sığmazsa alt satıra */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.pos-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
/* düzenleme: dokunmatikte sürükleme sayfayı kaydırmasın */
.bento.lay-edit, .bento.lay-edit > section { touch-action: none; }
.lh-move { position: absolute; z-index: 6; top: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.lh-move button { width: 34px; height: 30px; border-radius: 9px; background: #2563EB; color: #fff; font-size: 14px; box-shadow: 0 3px 10px rgba(37,99,235,.35); }
.bento.lay-edit > section > .lh-move { pointer-events: auto; opacity: 1; }
/* ayırıcı çubuklar (panel arası boşluk) */
.lay-split { position: absolute; z-index: 4; }
.lay-split.v { width: 12px; cursor: col-resize; }
.lay-split.h { height: 12px; cursor: row-resize; }
.lay-split::after { content: ""; position: absolute; border-radius: 4px; background: #93C5FD; opacity: 0; transition: opacity .15s; }
.lay-split.v::after { left: 4px; top: 30%; width: 4px; height: 40%; }
.lay-split.h::after { top: 4px; left: 40%; height: 4px; width: 20%; }
.lay-split:hover::after, .lay-split.on::after, .bento.lay-edit .lay-split::after { opacity: 1; }
.bento.lay-edit .lay-split { touch-action: none; }
body.resizing-x, body.resizing-x * { cursor: col-resize !important; user-select: none !important; }
body.resizing-y, body.resizing-y * { cursor: row-resize !important; user-select: none !important; }
.bento.lay-edit > section:hover { animation-play-state: paused; }

/* kaydırma çubuğu belirip kaybolunca içerik sağa sola kaymasın */
html, .scroll-y, .overflow-y-auto { scrollbar-gutter: stable; }
/* tablolar yenilenirken hücreler satır kırıp genişlik değiştirmesin */
table.radar td, table.radar th, .tbl td.num, .tbl th { white-space: nowrap; }

/* =====================================================================
   Telefon düzeni: tek sütun, sekmeli terminal, sayfa kendi kayar
   (açılışta cihaza göre seçilir; telefon yatay çevrilse de telefon kalır)
   ===================================================================== */
.ph-tabs { display: none; }
html.dev-phone .desk-fit { height: auto !important; overflow: visible !important; }
html.dev-phone .page.active { min-height: 0; }
html.dev-phone #page-terminal { overflow: visible !important; }
html.dev-phone main.bento { display: block !important; grid-template-rows: none !important; }
html.dev-phone main.bento > [data-panel] { height: auto !important; min-height: 0 !important; margin: 0 !important; grid-column: auto !important; grid-row: auto !important; }
html.dev-phone main.bento > [data-panel]:not(.ph-on) { display: none !important; }
html.dev-phone main.bento > [data-panel] .scroll-y,
html.dev-phone main.bento > [data-panel] .overflow-y-auto,
html.dev-phone main.bento > [data-panel] .overflow-auto { max-height: none !important; height: auto !important; flex: none !important; min-height: 0 !important; }
html.dev-phone .lay-split, html.dev-phone .lh, html.dev-phone #layEditBtn, html.dev-phone #layPresets, html.dev-phone [data-lay-only] { display: none !important; }
html.dev-phone .ph-tabs { display: flex; gap: 4px; position: sticky; top: 56px; z-index: 35; padding: 4px; border-radius: 14px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid #E2E8F0; box-shadow: 0 6px 18px -12px rgba(15,23,42,.35); }
html.dev-phone .ph-tabs > button { flex: 1; min-width: 0; height: 38px; border-radius: 10px; font-size: 13px; font-weight: 500; color: #475569;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
html.dev-phone .ph-tabs > button[aria-selected="true"] { background: #0F172A; color: #fff; }
html.dev-phone .ph-tabs .ph-n { font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: #2563EB; color: #fff; display: inline-grid; place-items: center; }
html.dev-phone .ph-tabs .ph-n:empty { display: none; }
html.dev-phone .ph-tabs > button[aria-selected="true"] .ph-n { background: #fff; color: #0F172A; }
html[data-theme="dark"].dev-phone .ph-tabs, html[data-theme="aura"].dev-phone .ph-tabs { background: rgba(15,23,42,.9); border-color: rgba(148,163,184,.2); }
html[data-theme="dark"].dev-phone .ph-tabs > button, html[data-theme="aura"].dev-phone .ph-tabs > button { color: #CBD5E1; }
html[data-theme="dark"].dev-phone .ph-tabs > button[aria-selected="true"], html[data-theme="aura"].dev-phone .ph-tabs > button[aria-selected="true"] { background: #2563EB; }
/* durum çubuğu tek satır, yana kayar; KPI'lar yatay şerit */
html.dev-phone #statusBar { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 14px !important; }
html.dev-phone #statusBar::-webkit-scrollbar { display: none; }
html.dev-phone #statusBar > * { flex-shrink: 0; }
html.dev-phone #statusBar > .flex-1 { display: none; }
/* pozisyon kartları tek sütun, dokunma alanları büyük */
html.dev-phone #posGrid { grid-template-columns: 1fr !important; }
html.dev-phone .btn { min-height: 40px; }
html.dev-phone .card { border-radius: 16px; }
html.dev-phone .drawer { border-radius: 0; }

/* ---- uygulama kabuğu: alt menü, "Daha" sayfası, cihaz seçimi ---- */
.mob-sheet { display: none; }
html.dev-phone .mob-sheet:not(.hidden) { display: block; position: fixed; left: 8px; right: 8px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 50;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 20px; padding: 8px 8px 10px; box-shadow: 0 20px 50px -20px rgba(15,23,42,.45); animation: sheetUp .18s ease-out; }
@keyframes sheetUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.mob-sheet-grab { width: 36px; height: 4px; border-radius: 2px; background: #CBD5E1; margin: 2px auto 8px; }
.ms { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 14px; font-size: 11px; color: #334155; }
.ms:active { background: #F1F5F9; }
.ms svg { width: 22px; height: 22px; color: #2563EB; }
.mn-i { position: relative; display: inline-grid; place-items: center; }
.mn-n { position: absolute; top: -6px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #2563EB; color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.mn-n:empty { display: none; }
html.dev-phone .mob-nav > button[aria-current] .mn-n { background: #0F172A; }
html.dev-phone #appShell { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; padding-top: max(8px, env(safe-area-inset-top)) !important; }
html.dev-phone .mob-nav { bottom: max(8px, env(safe-area-inset-bottom)) !important; top: auto !important; }
.dev-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #E2E8F0; background: #fff; transition: border-color .15s, background .15s; }
.dev-opt:hover { border-color: #93C5FD; background: #F8FAFF; }
.dev-opt.rec { border-color: #2563EB; background: #EFF6FF; }
.dev-opt > svg { width: 26px; height: 26px; color: #2563EB; flex-shrink: 0; }
.dev-opt b { display: block; font-size: 15px; }
.dev-opt small { display: block; font-size: 12px; color: #64748B; line-height: 1.35; margin-top: 2px; }
.rec-tag { display: inline-block; font-size: 10.5px; font-weight: 600; color: #2563EB; background: #DBEAFE; border-radius: 6px; padding: 1px 6px; margin: 2px 0 0; }
html[data-theme="dark"] .mob-sheet, html[data-theme="aura"] .mob-sheet, html[data-theme="dark"] .dev-opt, html[data-theme="aura"] .dev-opt { background: #0F172A; border-color: rgba(148,163,184,.25); }
html[data-theme="dark"] .ms, html[data-theme="aura"] .ms { color: #CBD5E1; }
/* tablet: uygulama kabuğu, daha geniş içerik */
html.dev-tablet #posGrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
html.dev-tablet table[data-tab] tr > * { display: table-cell !important; }
html.dev-tablet #appShell { max-width: 1180px; margin: 0 auto; }
html.dev-tablet .mob-nav { max-width: 640px; margin: 0 auto; }
html.dev-tablet .mob-sheet:not(.hidden) { max-width: 640px; margin: 0 auto; }
html.dev-phone #mobNav { position: fixed !important; z-index: 45 !important; }
html.dev-tablet #mobNav { left: 8px; right: 8px; }
html.dev-phone:not(.dev-tablet) #pviewSeg .pv-table { display: none !important; }
@media (orientation: landscape) and (max-height: 500px) {
  html.dev-phone #mobNav { left: 50% !important; right: auto !important; transform: translateX(-50%); width: min(560px, 96vw); }
  html.dev-phone .mob-nav > button { height: 44px; }
  html.dev-phone .mob-sheet:not(.hidden) { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, 96vw); bottom: 60px; }
}

/* ---- "Uygulamayı yükle" rozetleri (mağaza rozetleri tarzında, kendi markamızla) ---- */
.dl-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dl-badge { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 8px 16px 8px 12px; border-radius: 12px;
  background: #000; color: #fff; border: 1.5px solid #8A8A8A; text-align: left; transition: transform .12s, border-color .12s; }
.dl-badge:hover { border-color: #fff; }
.dl-badge:active { transform: scale(.97); }
.dl-badge svg { width: 30px; height: 30px; flex-shrink: 0; }
.dl-badge small { display: block; font-size: 10.5px; line-height: 1.1; opacity: .9; letter-spacing: .01em; }
.dl-badge b { display: block; font-size: 17px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.dl-compact .dl-badge { min-width: 0; flex: 1 1 0; padding: 6px 8px; gap: 6px; border-radius: 10px; }
.dl-compact .dl-badge svg { width: 22px; height: 22px; }
.dl-compact .dl-badge b { font-size: 12.5px; } .dl-compact .dl-badge small { font-size: 9.5px; }
.mob-sheet .dl-badge { flex: 1 1 0; min-width: 0; padding: 7px 8px; gap: 6px; }
.mob-sheet .dl-badge svg { width: 22px; height: 22px; } .mob-sheet .dl-badge b { font-size: 12.5px; } .mob-sheet .dl-badge small { font-size: 9.5px; }
html.is-app .app-only-browser { display: none !important; }
html.dev-phone body:has(#appShell.hidden) #mobNav { display: none !important; }
.mob-sheet .dl-badge small, .dl-compact .dl-badge small { display: none; }
.mob-sheet .dl-badge b, .dl-compact .dl-badge b { white-space: nowrap; font-size: 12.5px; }
.mob-sheet .dl-badge, .dl-compact .dl-badge { justify-content: center; padding: 9px 6px; }

/* ---- Tarayıcı sayfası: dar ekranda sekmeler (ayarlar en üstte kaybolmasın, listeler sayfayı uzatmasın) ---- */
.asec-tabs { display: none; }
@media (max-width: 1279px) {
  #page-alarms .asec-tabs { display: flex; position: sticky; top: 0; z-index: 20; }
  #page-alarms [data-asec]:not(.asec-on) { display: none !important; }
  #page-alarms .asec-left { gap: 0; }
}
html.dev-phone #page-alarms .asec-tabs { display: flex; position: sticky; top: 56px; z-index: 30; }
html.dev-phone #page-alarms [data-asec]:not(.asec-on) { display: none !important; }
html.dev-phone #page-alarms [data-asec] { height: auto !important; min-height: 0 !important; }
html.dev-phone #page-alarms [data-asec] .scroll-y { max-height: none; overflow: visible; }
.asec-tabs > button { flex: 1; }
.more-rows { display: block; width: 100%; padding: 8px; font-size: 12.5px; color: #2563EB; border-top: 1px solid #E2E8F0; }
.asec-tabs > button { white-space: nowrap; font-size: 12.5px; padding-left: 6px; padding-right: 6px; }


/* =====================================================================
   Özet şeridi (hero): tek bakışta varlık, bugün, toplam, nakit — taşmaz, sarar
   ===================================================================== */
.hero { display: grid; grid-template-columns: minmax(230px, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 0; }
.hero > * { padding: 12px 16px; min-width: 0; }
.hero > * + * { border-left: 1px solid #EEF0F3; }
.hero-main .hl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #64748B; }
.hero-main .hv { font-size: 28px; line-height: 1.1; font-weight: 650; letter-spacing: -.02em; margin-top: 2px; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-main .hs { font-size: 12.5px; color: #64748B; margin-top: 3px; }
.hero-stat { display: flex; flex-direction: column; justify-content: center; }
.hero-stat .kl { font-size: 12px; color: #64748B; }
.hero-stat .kv { font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stat .ks { font-size: 12px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stat[data-tone="up"] { background: linear-gradient(180deg, rgba(16,185,129,.06), transparent 70%); }
.hero-stat[data-tone="down"] { background: linear-gradient(180deg, rgba(239,68,68,.06), transparent 70%); }
@media (max-width: 1100px) {
  .hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-main { grid-column: 1 / -1; border-bottom: 1px solid #EEF0F3; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 14px; }
  .hero-main .hl { width: 100%; }
  .hero > .hero-stat:nth-child(2) { border-left: 0; }
}
html.dev-phone .hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.dev-phone .hero-main { grid-column: 1 / -1; border-bottom: 1px solid #EEF0F3; }
html.dev-phone .hero > .hero-stat:nth-child(2) { border-left: 0; }
html.dev-phone .hero > * { padding: 10px 12px; }
html.dev-phone .hero-main .hv { font-size: 26px; }
html.dev-phone .hero-stat .kv { font-size: 15px; }
html[data-theme="dark"] .hero > * + *, html[data-theme="aura"] .hero > * + *, html[data-theme="dark"] .hero-main, html[data-theme="aura"] .hero-main { border-color: rgba(148,163,184,.16); }
html[data-theme="dark"] .hero-main .hv, html[data-theme="aura"] .hero-main .hv { color: #F1F5F9; }

/* Durum çubuğu: sarar, yatay kaydırma yok; telefonda iki satır */
html.dev-phone #statusBar { flex-wrap: wrap !important; overflow: visible !important; gap: 8px 14px !important; }
html.dev-phone #statusBar > .flex-1 { display: none; }

/* =====================================================================
   Takip ekranı: bilgisayarda orta genişlikte (panel motoru yokken) pozisyonlar ve piyasa yan yana
   ===================================================================== */
@media (min-width: 900px) {
  html:not(.dev-phone) main.bento:not(.lay) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important; align-items: start; }
  html:not(.dev-phone) main.bento:not(.lay) > [data-panel="positions"] { order: 1 !important; max-height: 78vh; }
  html:not(.dev-phone) main.bento:not(.lay) > [data-panel="market"] { order: 2 !important; max-height: 78vh; min-height: 420px; }
  html:not(.dev-phone) main.bento:not(.lay) > [data-panel="vault"] { order: 3 !important; }
  html:not(.dev-phone) main.bento:not(.lay) > [data-panel="logs"] { order: 4 !important; max-height: 60vh; }
  html:not(.dev-phone) main.bento:not(.lay) > [data-panel="sim"] { order: 5 !important; grid-column: 1 / -1; }
  html:not(.dev-phone) main.bento:not(.lay) #posGrid { grid-template-columns: 1fr !important; }
}
/* tablet: pozisyon + piyasa yan yana (Pozisyon veya Piyasa sekmesindeyken) */
html.dev-tablet main.bento.ph-split { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
html.dev-tablet main.bento.ph-split > [data-panel="positions"] { order: 1 !important; }
html.dev-tablet main.bento.ph-split > [data-panel="market"] { order: 2 !important; position: sticky; top: 64px; max-height: calc(100dvh / var(--zf, 1) - 160px); }
html.dev-tablet main.bento.ph-split > [data-panel="market"] #mkScroll { max-height: calc(100dvh / var(--zf, 1) - 260px) !important; overflow-y: auto !important; }
html.dev-tablet main.bento.ph-split #posGrid { grid-template-columns: 1fr !important; }

/* Daha sakin, tutarlı yüzeyler */
.card { border-radius: 16px; }
.card-h { min-height: 48px; }


/* =====================================================================
   Liquid tema: "En iyi fırsat" penceresindeki buzlu cam görünümü bütün uygulamaya.
   Arkada yumuşak lila-mavi ışık, önde yüksek bulanıklıklı yarı saydam katmanlar.
   ===================================================================== */
html[data-theme="liquid"] body { background:
  radial-gradient(900px 650px at 8% 0%, rgba(165,180,252,.75), transparent 60%),
  radial-gradient(800px 600px at 100% 8%, rgba(216,180,254,.55), transparent 58%),
  radial-gradient(1000px 700px at 70% 105%, rgba(147,197,253,.55), transparent 60%),
  radial-gradient(700px 500px at 20% 90%, rgba(251,207,232,.45), transparent 60%), #D9DCEF; background-attachment: fixed; }
html[data-theme="liquid"] .card, html[data-theme="liquid"] .mob-nav, html[data-theme="liquid"] .mob-sheet, html[data-theme="liquid"] .ph-tabs, html[data-theme="liquid"] .menu-pop, html[data-theme="liquid"] #themeMenu {
  backdrop-filter: blur(30px) saturate(185%); -webkit-backdrop-filter: blur(30px) saturate(185%); }
html[data-theme="liquid"] .card { border-radius: 22px; border: 1px solid rgba(255,255,255,.85); }
html[data-theme="liquid"] .bg-slate-50, html[data-theme="liquid"] .bg-slate-100, html[data-theme="liquid"] .rounded-xl.border, html[data-theme="liquid"] article.pos-card {
  background: rgba(255,255,255,.5) !important; border-color: rgba(255,255,255,.9) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
html[data-theme="liquid"] .seg { background: rgba(255,255,255,.38); border: 1px solid rgba(255,255,255,.8); border-radius: 14px; }
html[data-theme="liquid"] .seg button[aria-pressed="true"] { background: rgba(255,255,255,.92); color: #0F172A; box-shadow: 0 2px 10px -4px rgba(36,40,92,.35); }
html[data-theme="liquid"] .btn-ghost { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.9); color: #0F172A; }
html[data-theme="liquid"] .btn-ghost:hover { background: rgba(255,255,255,.8); }
html[data-theme="liquid"] .field { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.9); }
html[data-theme="liquid"] .pill-toggle[aria-pressed="true"] { color: #1D4ED8; background: rgba(255,255,255,.8); }
html[data-theme="liquid"] table.radar th, html[data-theme="liquid"] .tbl th { background: rgba(250,251,255,.7); backdrop-filter: blur(20px); }
html[data-theme="liquid"] .hero > * + *, html[data-theme="liquid"] .hero-main { border-color: rgba(255,255,255,.7); }
html[data-theme="liquid"] .mob-nav { background: rgba(250,251,255,.6) !important; border: 1px solid rgba(255,255,255,.85) !important; }
html[data-theme="liquid"] .mob-sheet:not(.hidden) { background: rgba(250,251,255,.72); border-color: rgba(255,255,255,.9); }
html[data-theme="liquid"] .drawer { background: rgba(236,238,250,.72); backdrop-filter: blur(30px) saturate(180%); }
html[data-theme="liquid"] .switch { background: rgba(100,116,139,.45); }
html[data-theme="liquid"] .switch[aria-checked="true"] { background: #10B981; }
html[data-theme="liquid"] .rail-track { background: rgba(255,255,255,.6); }
html[data-theme="liquid"] .rail-now { border-color: #fff; background: #0F172A; box-shadow: 0 0 0 1px #0F172A; }
html[data-theme="liquid"] .bg-ink, html[data-theme="liquid"] .bg-slate-900 { background: #0F172A !important; }
html[data-theme="liquid"] .nav-tab[aria-current="page"] { background: rgba(255,255,255,.92) !important; color: #0F172A !important; box-shadow: 0 2px 10px -4px rgba(36,40,92,.35); }
html[data-theme="liquid"] .nav-tab[aria-current="page"] svg { color: #2563EB; }

.sb-more { display: none; }
html.dev-phone:not(.dev-tablet) #statusBar:not(.sb-open) .sb-adv { display: none !important; }
html.dev-phone:not(.dev-tablet) .sb-more { display: inline-flex; }
html.dev-phone:not(.dev-tablet) #statusBar .sim-only:first-child .text-xs { display: none; }
/* telefonda kesinti raporu tek satır; dokununca açılır */
html.dev-phone:not(.dev-tablet) #outageBanner:not(.ob-open) #outageLines, html.dev-phone:not(.dev-tablet) #outageBanner:not(.ob-open) ul { display: none; }
html.dev-phone #outageBanner { padding: 10px 12px !important; }
/* kart başlıkları sarınca üst üste binmesin */
html.dev-phone .card-h { height: auto !important; }
html.dev-tablet main.bento.ph-split [data-panel="market"] .card-h > .ml-auto { margin-left: 0 !important; width: 100%; }
html.dev-tablet main.bento.ph-split [data-panel="market"] #mkSearch { width: 100% !important; }
html.dev-tablet main.bento.ph-split [data-panel="market"] .card-h > .ml-auto > label:first-child { flex: 1; }
.card-h, #mkInfo, #mkInfo + * { flex-shrink: 0; }
[data-panel="market"] > .px-4.pb-1\.5 { flex-shrink: 0; }

/* ---- Sade pozisyon görünümü ---- */
#posList { display: flex; flex-direction: column; gap: 6px; }
#posList.hidden { display: none; }
.cmp { padding: 9px 12px 8px; border-radius: 14px; border: 1px solid #E8EBF0; background: #fff; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.cmp:hover { border-color: #BFD3FB; box-shadow: 0 4px 14px -8px rgba(37,99,235,.35); }
.cmp-top { display: flex; align-items: center; gap: 10px; }
.cmp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 11px; font-variant-numeric: tabular-nums; align-items: center; }
.mrail { position: relative; height: 14px; margin: 6px 2px 0; }
.mrail-t { position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #FCA5A5, #E2E8F0 35%, #E2E8F0 65%, #86EFAC); }
.mrail-f { position: absolute; top: 5px; height: 4px; border-radius: 3px; }
.mrail-f.up { background: #10B981; } .mrail-f.dn { background: #EF4444; }
.mrail i { position: absolute; top: 2px; width: 2px; height: 10px; border-radius: 1px; transform: translateX(-1px); }
.mrail .mk-s { background: #DC2626; } .mrail .mk-b { background: #0F172A; } .mrail .mk-t { background: #059669; } .mrail .mk-t.done { opacity: .35; }
.mrail .mk-now { position: absolute; top: 1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; transform: translateX(-6px); box-shadow: 0 0 0 1px rgba(15,23,42,.25); }
.mrail .mk-now.up { background: #10B981; } .mrail .mk-now.dn { background: #EF4444; }
.dot-ok, .dot-bad { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-ok { background: #10B981; } .dot-bad { background: #EF4444; }
html[data-theme] .cmp { background: var(--soft2); border-color: var(--line); }
html[data-theme="liquid"] .cmp { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.9); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }

/* ---- Yatay kayma: hiçbir panel sayfayı yana itmesin ---- */
html, body { overflow-x: clip; }
main.bento > [data-panel] { min-width: 0; max-width: 100%; }
[data-panel="market"] { overflow: hidden; }
#mkScroll { overflow-x: auto; }
/* Liquid temada açılır menüler okunaklı (iç içe bulanıklık çalışmadığı için neredeyse opak) */
html[data-theme="liquid"] #themeMenu, html[data-theme="liquid"] #userMenu, html[data-theme="liquid"] .menu-pop { background: rgba(250,251,255,.97) !important; }
html.dev-phone [data-panel="positions"] .card-h > div:last-child { width: 100%; flex-wrap: wrap; justify-content: space-between; }
html.dev-phone [data-panel="positions"] #posSummary { width: 100%; }
html.dev-phone #pviewSeg { overflow: visible; }

@keyframes spinOnce { to { transform: rotate(360deg); } }
.spin-once svg { animation: spinOnce .6s ease-in-out infinite; }

/* Tarayıcı sayfası: uygulama kabuğunda (telefon/tablet) her zaman tek sütun, sekmeler üstte */
html.dev-phone #page-alarms { flex-direction: column !important; }
html.dev-phone #page-alarms > [data-asec="scanner"] { width: 100% !important; }
html.dev-phone #page-alarms .asec-left:not(:has(.asec-on)) { display: none !important; }
html.dev-phone #page-alarms .asec-tabs { width: 100%; flex: 0 0 auto; }
@media (max-width: 1279px) {
  #page-alarms { flex-direction: column !important; }
  #page-alarms .asec-left:not(:has(.asec-on)) { display: none !important; }
  #page-alarms > [data-asec="scanner"] { width: 100% !important; }
}

/* Profil kartı ve sol panik */
.pc-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; text-align: left; }
.pc-item:hover { background: #F1F5F9; } html[data-theme] .pc-item:hover { background: var(--soft); }
.pc-item svg { width: 16px; height: 16px; color: #64748B; flex-shrink: 0; }
.pc-item span { flex: 1; } .pc-item small { font-size: 11.5px; color: #2563EB; font-weight: 600; }
.pc-badge { min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; background: #F59E0B; color: #fff; font-size: 11px; display: grid; place-items: center; }
.panic-left { margin-right: 4px; }
html.dev-phone .panic-left { order: 0; }

/* Başlangıç kapısı / Hesabım */
#onbGate { background: var(--bg, #F8FAFC); }
html.onb-open body { overflow: hidden; }
html.onb-open #modal, html.onb-open #fmodal { z-index: 95; }
#onbGate .ob-opt:has(input:checked) { border-color: rgb(37 99 235 / .55); background: rgb(37 99 235 / .06); }
#onbGate .ob-opt input { accent-color: #2563EB; }
#recModal code { word-spacing: .25em; }
html #appShell.min-h-screen, html .min-h-screen { min-height: calc(100vh / var(--zf, 1)); }
#onbGate, #recModal, #modal, #fmodal { height: calc(100vh / var(--zf, 1)); width: calc(100vw / var(--zf, 1)); }
.notif-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 14px; row-gap: 8px; }
.cost-row { cursor: pointer; border-radius: 10px; padding: 4px 6px; margin: 0 -6px; }
.cost-row:hover { background: var(--soft, rgb(241 245 249)); }

/* Aşağı çekip yenileme (dokunmatik) */
html.touch, html.touch body { overscroll-behavior-y: contain; }
#ptr { position: fixed; left: 0; right: 0; top: 0; z-index: 120; display: flex; justify-content: center; pointer-events: none; transform: translateY(-60px); opacity: 0; }
#ptr .ptr-dot { width: 40px; height: 40px; border-radius: 999px; background: var(--card, #fff); box-shadow: 0 6px 20px -6px rgba(15,23,42,.35); display: grid; place-items: center; color: #2563EB; margin-top: max(10px, env(safe-area-inset-top)); }
#ptr svg { width: 20px; height: 20px; }
#ptr.ready .ptr-dot { background: #2563EB; color: #fff; }
#ptr.busy svg { animation: ptrspin .8s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }
.hold-row { cursor: pointer; }
.hold-row:hover, .hold-row[aria-expanded="true"] { background: var(--soft, rgb(241 245 249)); }
.lvl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.lvl-grid > div { border-radius: 10px; background: var(--soft2, rgb(248 250 252)); padding: 6px 8px; }

/* Telefon alt menüsü: ekranın altına oturan uygulama sekme çubuğu (güvenli alan bir kez hesaplanır) */
html.dev-phone .mob-nav { left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; transform: none;
  border-radius: 18px 18px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
  padding: 6px 6px max(6px, env(safe-area-inset-bottom)) !important; box-shadow: 0 -8px 24px -14px rgba(15,23,42,.35); }
html.dev-phone .mob-nav > button { height: 52px; }
html.dev-phone #appShell { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
html.dev-phone .mob-sheet:not(.hidden) { bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
@media (orientation: landscape) and (max-height: 500px) {
  html.dev-phone #mobNav { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; width: min(560px, 96vw); border-radius: 18px 18px 0 0; }
  html.dev-phone .mob-nav > button { height: 44px; }
}

/* Tanıtım turu */
#tour { position: fixed; inset: 0; z-index: 120; }
#tourHole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(15,23,42,.55); transition: all .25s ease; pointer-events: none; }
#tourHole.center { left: 50% !important; top: 40% !important; width: 0 !important; height: 0 !important; }
#tourCard { position: fixed; width: min(360px, calc(100vw - 24px)); background: var(--card, #fff); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 20px 50px -12px rgba(15,23,42,.45); transition: top .25s ease, left .25s ease; }
html[data-theme="dark"] #tourCard, html[data-theme="aura"] #tourCard { background: #0F172A; color: #E2E8F0; }
.faq-q { width: 100%; text-align: left; display: flex; gap: 8px; align-items: center; padding: 10px 0; font-weight: 500; }
.faq-a { padding: 0 0 10px; color: var(--muted, #64748B); }

/* ---- performans profilleri ---- */
html.perf-balanced .backdrop-blur-sm, html.perf-balanced .backdrop-blur-\[2px\], html.perf-balanced [class*="backdrop-blur"] { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.perf-balanced .shadow-lift { box-shadow: 0 1px 3px rgba(15, 23, 42, .12) !important; }
html.perf-balanced * { transition-duration: .08s !important; animation-duration: .2s !important; }
html.perf-lite *, html.perf-lite *::before, html.perf-lite *::after { transition: none !important; animation: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; text-shadow: none !important; }
html.perf-lite .pulse-dot { animation: none !important; }
html.perf-lite .card { border-width: 1px; }
/* işletim sistemine özel ince ayar */
html[data-os="ios"] .field, html[data-os="iosipados"] .field { font-size: max(16px, 1em); } /* iOS odakta yakınlaştırmasın */
html[data-os="windows"] .scroll-y { scrollbar-width: thin; }
html.is-touch .switch { touch-action: manipulation; }

/* ---- sağdan sola diller (Arapça) ---- */
html[dir="rtl"] .num, html[dir="rtl"] input[type="number"], html[dir="rtl"] code { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .ml-auto { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .text-right { text-align: left; }
html[dir="rtl"] .text-left { text-align: right; }
