/* altindesk — koyu terminal teması (landing /demo4 ile aynı renkler).
   Temel renkler burada; terminalin sabit yazılmış açık renklerini
   /theme-dark.js çalışma anında koyuya çevirir. Yazdırma (fiş) etkilenmez:
   her şey html.td altında ve yalnızca ekranda. */
@media screen {
  html.td { color-scheme: dark; }
  html.td:root {
    --bg: #191919;
    --text: #ecebe8;
    --dim: #a3a29e;
    --ghost: #2f2f2f;
    --green: #5fc27e;
    --red: #ef8579;
    --tg: #5fc27e;
    --accent-soft: #2a2416;
  }
  html.td body { background: #191919; color: #ecebe8; }
  html.td ::selection { background: #3a3428; }
  html.td ::-webkit-scrollbar-thumb { background: #3c3c3c; border-radius: 6px; }

  /* Koyu landing/menü katmanı tam opak kalsın: theme-dark.js eski yarı saydam
     beyaz zemini yarı saydam koyuya çevirir; bu kural ondan özgül. */
  html.td #lilzeyOverlay.lz-dark { background: #191919; }

  /* --- Yerleşim ---
     Fiyat kartı (GRAM alış/satış) ekrana sabit; orta sütun ise içeriğini dikeyde
     ortalıyor. 5g gibi bir satırda bakiye + kurlar + karşılık kartı büyüyünce
     yukarı, kartın altına taşıyordu. Kartı üst çubuğun altına alıp biraz
     sıkılaştırıyoruz ve orta sütunun tepesinde ona yer ayırıyoruz. */
  html .price-override { top: 58px; padding: 12px 22px 12px; border-radius: 14px; }
  html .price-override-title { margin-bottom: 8px; }
  html .price-override-row { gap: 14px; }
  html .price-override-col { padding: 8px 20px; min-width: 132px; gap: 3px; }
  html .price-override-col .po-value { font-size: 26px; }
  html .price-override-hint { margin-top: 8px; }
  /* "safe center": içerik sığmazsa ortalamak yerine yukarıdan başlar; düz
     center taşanı iki yöne böler ve ayrılan boşluğa rağmen kartın altına kayar. */
  html .col-center { padding-top: 160px; padding-bottom: 12px; justify-content: safe center; }
  html .col-center > * { flex-shrink: 0; }

  /* Sorgu ekranı (50000t gibi) laptopta sığsın: 1280×800'de 728px tutuyordu,
     sütunda ~416px yer var. İçerik aynı, yalnız dizilim:
     kurlar tek satır, "Para Üstü / VEYA / Daha" yan yana. */
  html .lookup-total { font-size: clamp(32px, 4vw, 52px); }
  html .lookup-convs { flex-wrap: nowrap; gap: 8px; }
  html .lookup-conv { min-width: 0; padding: 7px 14px 8px; gap: 1px; }
  html .lookup-conv .lc-code { font-size: 11px; }
  html .lookup-conv .lc-val { font-size: 19px; }
  html .lookup-conv .conv-rate { font-size: 12px; }
  /* Kur kartlarında bayrak (yalnız bu bölüm). Emoji değil SVG: Windows bayrak
     emojisini çizmez, "EU/US/GB" harfleri görünür. */
  html .lookup-conv .lc-code { display: inline-flex; align-items: center; gap: 6px; }
  html .lookup-conv .lc-code::before { content: ""; width: 18px; height: 12px; border-radius: 2px; flex: none;
    background-size: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
  html .lc-eur::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23003399'/%3E%3Cg fill='%23ffcc00'%3E%3Ccircle cx='9' cy='2.6' r='.75'/%3E%3Ccircle cx='9' cy='9.4' r='.75'/%3E%3Ccircle cx='5.6' cy='6' r='.75'/%3E%3Ccircle cx='12.4' cy='6' r='.75'/%3E%3Ccircle cx='6.6' cy='3.6' r='.75'/%3E%3Ccircle cx='11.4' cy='3.6' r='.75'/%3E%3Ccircle cx='6.6' cy='8.4' r='.75'/%3E%3Ccircle cx='11.4' cy='8.4' r='.75'/%3E%3C/g%3E%3C/svg%3E"); }
  html .lc-usd::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23fff'/%3E%3Cg fill='%23b22234'%3E%3Crect width='18' height='1.4'/%3E%3Crect y='2.8' width='18' height='1.4'/%3E%3Crect y='5.6' width='18' height='1.4'/%3E%3Crect y='8.4' width='18' height='1.4'/%3E%3Crect y='10.8' width='18' height='1.2'/%3E%3C/g%3E%3Crect width='8' height='6.4' fill='%233c3b6e'/%3E%3C/svg%3E"); }
  html .lc-gbp::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23012169'/%3E%3Cpath d='M0 0L18 12M18 0L0 12' stroke='%23fff' stroke-width='2.4'/%3E%3Cpath d='M0 0L18 12M18 0L0 12' stroke='%23c8102e' stroke-width='.9'/%3E%3Cpath d='M9 0V12M0 6H18' stroke='%23fff' stroke-width='3.6'/%3E%3Cpath d='M9 0V12M0 6H18' stroke='%23c8102e' stroke-width='2'/%3E%3C/svg%3E"); }
  html .lookup-gram-info { margin-top: 10px; padding: 10px 14px 12px; }
  html .lookup-gram-info .lgi-title { margin-bottom: 4px; }
  html .lookup-gram-info .lgi-main { margin-bottom: 8px; }
  html .lookup-gram-info .lgi-options { flex-direction: row; align-items: stretch; gap: 10px; }
  html .lookup-gram-info .lgi-option { width: auto; flex: 1 1 0; min-width: 0; padding: 10px 14px 12px; gap: 3px; }
  html .lookup-gram-info .lgi-opt-value { font-size: 24px; }
  html .lookup-gram-info .lgi-or { padding: 0 2px; flex-direction: column; letter-spacing: 2px; }
  html .lookup-gram-info .lgi-or::before,
  html .lookup-gram-info .lgi-or::after { width: 1px; height: auto; flex: 1; }
}

/* --- Açık tema (Hesap ve fiş ayarları → Görünüm: Açık) ---
   html.td yokken terminal kendi açık görünümüne döner. Menü, landing ve üst çubuk
   koyu tasarlandığı için burada açık karşılıkları var. */
@media screen {
  html:not(.td) #lilzeyOverlay.lz-dark { background: #f4f3ef; }
  html:not(.td) .lzd { --d-bg: #f4f3ef; --d-bg2: #ffffff; --d-text: #1d1d1f; --d-dim: #55534e; --d-faint: #8a8780; --d-line: #e4e1da; color: #1d1d1f; }
  html:not(.td) .lzd .d-logo { box-shadow: none; }
  html:not(.td) .lzd .d-main { background: #1d1d1f; color: #fff; }
  html:not(.td) .lzd .d-main:hover { background: #000; }
  html:not(.td) .lzd .d-main .kbd { border-color: #55534e; color: #c9c8c4; }
  html:not(.td) .lzd .d-line, html:not(.td) .lzd .d-in, html:not(.td) .lzd .m-ghost, html:not(.td) .lzd .m-chip,
  html:not(.td) .lzd .kbd, html:not(.td) .lzd .m-mk-kutu, html:not(.td) .lzd .m-kilit, html:not(.td) .lzd .m-tema button,
  html:not(.td) .lzd .tv-tas button, html:not(.td) .lzd .tv-urun button, html:not(.td) .lzd .d-seg button { border-color: #d6d3cc; }
  html:not(.td) .lzd .d-in, html:not(.td) .lzd .m-mk-kutu, html:not(.td) .lzd .m-kilit, html:not(.td) .lzd .m-day { background: #fafaf8; }
  html:not(.td) .lzd .d-in:focus, html:not(.td) .lzd .m-mk-kutu:focus-within { border-color: #8a8780; }
  html:not(.td) .lzd .d-line:hover, html:not(.td) .lzd .m-row:hover, html:not(.td) .lzd .mk-cust:hover, html:not(.td) .lzd .m-kart:hover,
  html:not(.td) .lzd .tv-row:hover, html:not(.td) .lzd .m-mk-st:hover, html:not(.td) .lzd .m-ghost:hover { background: #f0eee9; }
  html:not(.td) .lzd .m-chip.on, html:not(.td) .lzd .tv-tas button.on, html:not(.td) .lzd .d-seg button.on { color: #fff; }
  html:not(.td) .lzd .m-mk-kutu.kirli { background: #fbf3dc; border-color: #c9a24b; }
  html:not(.td) .lzd .mk-note { background: #fbf3dc; border-color: #e8d49a; color: #6b5410; }
  html:not(.td) .lzd .d-err { background: #fde8e6; color: #9b2c22; }
  html:not(.td) .lzd .up, html:not(.td) .lzd .mk-b, html:not(.td) .lzd .m-note b { color: #23824a; }
  html:not(.td) .lzd .down, html:not(.td) .lzd .mk-a { color: #c0392b; }
  html:not(.td) .lzd .m-kbar { background: linear-gradient(to bottom, rgba(244,243,239,0), #f4f3ef 22px); }
  html:not(.td) .lzd .m-row img, html:not(.td) .lzd .m-kart img, html:not(.td) .lzd .d-list img, html:not(.td) .lzd .m-kilit img { filter: invert(1); }
  html:not(.td) #adTop { background: #ffffff; color: #1d1d1f; border-bottom-color: #e4e1da; }
  html:not(.td) #adTop button, html:not(.td) #adTop a { color: #55534e; }
  html:not(.td) #adTop button:hover, html:not(.td) #adTop a:hover { color: #1d1d1f; background: #f4f3ef; border-color: #d6d3cc; }
  html:not(.td) #adTop .at-k { border-color: #d6d3cc; color: #8a8780; }
  html:not(.td) #adTop .at-name small { color: #8a8780; }
}
