* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0f172a; color: #e2e8f0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
.gizli { display: none !important; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 10px; padding: 10px 14px;
  background: #1e293b; color: #e2e8f0; }
button:active { transform: scale(.97); }

/* Giriş */
#giris { display: flex; align-items: center; justify-content: center; height: 100%; padding: 16px; overflow: auto; }
.kart { width: 100%; max-width: 380px; background: #111c33; border: 1px solid #1f2b45; border-radius: 18px; padding: 26px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; margin-bottom: 22px; }
.logo img { width: 38px; height: 38px; }
form label { display: block; font-size: 13px; color: #94a3b8; margin-bottom: 14px; }
form input[type=password], #kimlik { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font-size: 20px;
  border-radius: 12px; border: 1px solid #334155; background: #0b1325; color: #fff; outline: none; letter-spacing: .5px; }
#kimlik { font-variant-numeric: tabular-nums; letter-spacing: 2px; }
form input:focus { border-color: #3b82f6; }
.kutu { display: flex !important; align-items: center; gap: 8px; }
#baglanBtn { width: 100%; padding: 14px; font-size: 17px; font-weight: 600; background: #2563eb; margin-top: 4px; }
#baglanBtn:disabled { opacity: .6; }
.durum { min-height: 20px; font-size: 14px; color: #fca5a5; margin: 12px 0 0; }
.durum.iyi { color: #86efac; }
.son { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.son .oge { display: flex; align-items: center; gap: 8px; background: #0b1325; border-radius: 12px; padding: 10px 12px; }
.son .oge b { flex: 1; font-variant-numeric: tabular-nums; letter-spacing: 1px; cursor: pointer; }
.son .oge small { color: #64748b; }
.son .oge button { padding: 6px 10px; background: transparent; color: #64748b; }

/* Oturum */
#oturum { position: fixed; inset: 0; background: #000; }
#sahne { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
#video { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #000; pointer-events: none; }
#imlec { position: absolute; width: 22px; height: 22px; margin: -2px 0 0 -2px; pointer-events: none; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7 19 2.5-7.5L20 11z' fill='%23fff' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat; }

.arac { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 6px;
  background: rgba(15,23,42,.88); backdrop-filter: blur(8px); padding: 6px 8px; padding-top: max(6px, env(safe-area-inset-top));
  border-radius: 0 0 14px 14px; max-width: 100%; }
.arac button { padding: 8px 12px; font-size: 18px; background: transparent; }
.arac button.aktif { background: #2563eb; }
.bilgi { font-size: 12px; color: #94a3b8; white-space: nowrap; padding: 0 4px; }
.arac-ac { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 5; padding: 2px 18px;
  border-radius: 0 0 10px 10px; background: rgba(15,23,42,.7); }

.menu { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 6; width: min(360px, 94vw);
  max-height: calc(100% - 70px); overflow: auto; background: rgba(15,23,42,.97); border: 1px solid #1f2b45; border-radius: 14px; padding: 10px; }
.grup { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.grup .baslik { width: 100%; font-size: 12px; color: #64748b; margin: 4px 2px; }
.grup button { flex: 1 1 45%; font-size: 14px; }
.satir { display: flex; gap: 6px; width: 100%; flex-wrap: wrap; }
.satir button { flex: 1; }
.satir button.aktif, #ekranlar button.aktif { background: #2563eb; }
.tehlike { background: #7f1d1d !important; flex: 1 1 100% !important; }

.pano { position: absolute; z-index: 7; left: 50%; top: 60px; transform: translateX(-50%); width: min(420px, 94vw);
  background: #111c33; border: 1px solid #1f2b45; border-radius: 14px; padding: 12px; }
.pano textarea { width: 100%; height: 140px; background: #0b1325; color: #fff; border: 1px solid #334155; border-radius: 10px;
  padding: 10px; font-size: 15px; resize: vertical; margin-bottom: 8px; }

#gizliKlavye { position: absolute; left: -1000px; top: 0; width: 10px; height: 10px; opacity: 0; font-size: 16px; }

.bildirim { position: absolute; z-index: 9; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  background: rgba(15,23,42,.95); padding: 10px 16px; border-radius: 12px; font-size: 14px; max-width: 90vw; text-align: center; }

#bekle { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #94a3b8; z-index: 2; }
