/* Açık / koyu görünüm düğmesi (sol alt köşe; app/web.php veya inc/layout.php </head> öncesindeki betik ekler) */
.dk-fab { position: fixed; left: 16px; bottom: 16px; z-index: 900; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(127, 127, 127, .35); border-radius: 50%;
  background: #fff; color: #18181b; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .45); cursor: pointer; transition: transform .2s; }
.dk-fab:hover { transform: rotate(-14deg); }
html.dk .dk-fab { background: #1f1f22; color: #f4f4f5; border-color: rgba(255, 255, 255, .16); }
.dk-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dk-fab .i-sun, html.dk .dk-fab .i-moon { display: none; }
html.dk .dk-fab .i-sun { display: block; }
@media print { .dk-fab { display: none; } }
@media (max-width: 760px) { .dk-fab { width: 40px; height: 40px; left: 12px; bottom: 76px; } }

/* ---------- Koyu görünüm (modern ve klasik tema) ---------- */
html.dk body.t-modern, html.dk body.t-klasik {
  --bg: #0f1217; --surface: #161b22; --surface-2: #1d232c; --text: #e8ebf0; --muted: #9aa3b1; --line: #2a313c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .4); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  --brand-soft: color-mix(in srgb, var(--brand) 18%, transparent); color-scheme: dark;
}
/* Koyu zeminde marka rengi okunur parlaklığa çekilir */
html.dk { --brand-hi: color-mix(in oklab, var(--brand) 72%, #fff); }
html.dk body.t-modern, html.dk body.t-klasik { --brand: var(--brand-hi); }
html.dk body.t-modern input, html.dk body.t-modern select, html.dk body.t-modern textarea,
html.dk body.t-klasik input, html.dk body.t-klasik select, html.dk body.t-klasik textarea { background: var(--surface-2); color: var(--text); border-color: var(--line); }

/* ---------- Lüks tema açık görünüm (lüks koyu doğar; ziyaretçi açığa geçince fildişi zemin, koyu altın) ---------- */
html:not(.dk) body.t-lux {
  --bg: #faf7f1; --surface: #fff; --surface-2: #f2ece2; --text: #1d1a15; --muted: #6b6458; --line: #e6dfd3;
  --accent: #9c7a30; --price: #8a6a24; --shadow: 0 1px 2px rgba(29, 26, 21, .05), 0 10px 30px rgba(29, 26, 21, .1); --shadow-lg: 0 24px 60px rgba(29, 26, 21, .2);
  color-scheme: light;
}
html:not(.dk) body.t-lux .cband { --text: #eeeae1; --muted: #9aa3b1; --line: #252d39; color: #eeeae1; }
html:not(.dk) body.t-lux .fmsg.ok { color: #15803d; } html:not(.dk) body.t-lux .fmsg.err { color: #b91c1c; }
