:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #0f172a;
  --bg-2: #1e293b;
  --bg-3: #334155;
  --card: rgba(30, 41, 59, .85);
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, .14);
  --radius: 16px;
  --nav-h: 68px;
  --serit-h: 40px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(99, 102, 241, .18), transparent 60%),
              radial-gradient(900px 500px at 110% 10%, rgba(6, 182, 212, .12), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.soluk { color: var(--muted); }
.kucuk { font-size: 13px; }

/* ── Demo şeridi ─────────────────────────────────────────────── */
.demo-serit {
  position: sticky; top: 0; z-index: 40;
  min-height: var(--serit-h);
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  background: linear-gradient(90deg, #b45309, #d97706);
  color: #fff; font-size: 13px; font-weight: 600; text-align: center;
}
.demo-rozet {
  background: #fff; color: #b45309; font-weight: 800; letter-spacing: .08em;
  padding: 2px 8px; border-radius: 6px; font-size: 11px;
}
.demo-serit a { color: #fff; text-decoration: underline; font-weight: 700; }

/* ── Genel ───────────────────────────────────────────────────── */
.ust {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px;
  max-width: 720px; margin: 0 auto;
}
.ust img { width: 40px; height: 40px; border-radius: 11px; background: #fff; padding: 4px; }
.ust .kurum { font-weight: 800; font-size: 17px; line-height: 1.2; }
.ust .alt { color: var(--muted); font-size: 12px; }
.ust .bosluk { flex: 1; }
.simge-dugme {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-2); display: grid; place-items: center; cursor: pointer;
}

main.icerik { max-width: 720px; margin: 0 auto; padding: 8px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
h2.baslik { font-size: 22px; margin: 10px 0 4px; }
p.aciklama { color: var(--muted); margin: 0 0 16px; font-size: 14px; }

.kart {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; backdrop-filter: blur(8px);
}
.kart-baslik { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.adim-no {
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none;
}

.alan { display: block; margin-bottom: 12px; }
.alan > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.alan > span em { color: var(--muted); font-style: normal; font-weight: 500; }
.alan input, .alan select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(15, 23, 42, .7); outline: none; font-size: 16px;
}
.alan input:focus, .alan select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(99, 102, 241, .25); }
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 340px) { .ikili { grid-template-columns: 1fr; } }

.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg-2); font-weight: 700; cursor: pointer; text-decoration: none; font-size: 16px;
}
.dugme-sira .dugme { white-space: nowrap; padding: 0 12px; font-size: 15px; }
.dugme:disabled { opacity: .55; cursor: default; }
.dugme-ana { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: 0; color: #fff; box-shadow: 0 8px 24px -8px rgba(99, 102, 241, .7); }
.dugme-yesil { background: linear-gradient(135deg, #10b981, #059669); border: 0; color: #fff; }
.dugme-tehlike { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
.dugme-tam { width: 100%; }
.dugme-sira { display: flex; gap: 10px; flex-wrap: wrap; }
.dugme-sira .dugme { flex: 1; }

.uyari { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.uyari-hata { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); color: #fecaca; }
.uyari-bilgi { background: rgba(99, 102, 241, .12); border: 1px solid rgba(99, 102, 241, .3); color: #c7d2fe; }
.uyari-demo { background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); color: #fde68a; display: flex; gap: 10px; }

.onay { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; margin: 4px 0 14px; }
.onay input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; margin: 0; }

/* ── Kamera (kayıt) ──────────────────────────────────────────── */
.kamera-kutu {
  position: relative; aspect-ratio: 3/4; max-height: 62vh; width: 100%; margin: 0 auto 12px;
  border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--border);
}
.kamera-kutu video { width: 100%; height: 100%; object-fit: cover; }
.ayna { transform: scaleX(-1); }
.oval {
  position: absolute; left: 50%; top: 46%; width: 58%; aspect-ratio: 3/4; transform: translate(-50%, -50%);
  border: 3px dashed rgba(255, 255, 255, .7); border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .28);
}
.kamera-ipucu { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px #000; }
.kamera-bos { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); }
.cek-dugme {
  width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: var(--primary);
  cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); flex: none;
}
.cek-dugme:active { transform: scale(.94); }
.kamera-kontrol { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.kamera-kontrol .dugme { min-height: 46px; padding: 0 14px; font-size: 14px; }
.foto-listesi { display: flex; gap: 10px; margin-bottom: 8px; }
.foto-kutu {
  width: 76px; height: 96px; border-radius: 12px; overflow: hidden; position: relative;
  border: 1px solid var(--border); background: var(--bg-2); display: grid; place-items: center; color: var(--muted); font-size: 12px;
}
.foto-kutu img { width: 100%; height: 100%; object-fit: cover; }
.foto-kutu button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; font-size: 12px;
}

/* ── Öğrenciler ──────────────────────────────────────────────── */
.ozet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ozet .kart { margin: 0; padding: 12px; text-align: center; }
.ozet b { display: block; font-size: 24px; }
.ozet span { font-size: 12px; color: var(--muted); }
.arama { position: relative; margin-bottom: 12px; }
.arama input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); padding: 0 14px 0 42px; font-size: 16px; outline: none; }
.arama i { position: absolute; left: 15px; top: 15px; color: var(--muted); }
.liste { display: flex; flex-direction: column; gap: 8px; }
.satir {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border); cursor: pointer; text-align: left; width: 100%;
}
.satir img, .avatar { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--bg-3); flex: none; }
.satir .ad { font-weight: 700; }
.satir .alt { font-size: 13px; color: var(--muted); }
.satir .bos { flex: 1; min-width: 0; }
.cip { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.cip-yesil { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.cip-mavi { background: rgba(59, 130, 246, .15); color: #93c5fd; }
.cip-gri { background: rgba(148, 163, 184, .12); color: var(--muted); }
.bos-durum { text-align: center; padding: 36px 16px; color: var(--muted); }
.bos-durum i { font-size: 40px; color: var(--primary-light); margin-bottom: 12px; display: block; }
.zaman-cizelgesi .olay { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.zaman-cizelgesi .olay:last-child { border-bottom: 0; }
.zaman-cizelgesi .saat { font-weight: 800; width: 48px; }

/* ── Alt menü ────────────────────────────────────────────────── */
nav.alt-menu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(15, 23, 42, .94); border-top: 1px solid var(--border); backdrop-filter: blur(12px);
}
nav.alt-menu a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700;
}
nav.alt-menu a i { font-size: 20px; }
nav.alt-menu a.aktif { color: #fff; }
nav.alt-menu a.aktif i { color: var(--primary-light); }

/* ── Alt sayfa (sheet) ve diyalog ────────────────────────────── */
.perde { position: fixed; inset: 0; background: rgba(2, 6, 23, .7); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sayfa {
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--bg-2);
  border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border: 1px solid var(--border);
}
@media (min-width: 700px) { .perde { align-items: center; } .sayfa { border-radius: 22px; } }
.sayfa .tutamak { width: 44px; height: 5px; border-radius: 3px; background: var(--bg-3); margin: -6px auto 14px; }
.kilavuz-adim { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.kilavuz-adim i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(99, 102, 241, .18); color: var(--primary-light); font-size: 18px; flex: none; }
.bildirim {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #111827; border: 1px solid var(--border); padding: 12px 16px; border-radius: 12px; z-index: 60;
  font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

/* ── Kiosk ───────────────────────────────────────────────────── */
.kiosk { position: fixed; inset: 0; z-index: 35; background: #000; display: flex; flex-direction: column; }
.kiosk-ust {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top));
  background: linear-gradient(rgba(0, 0, 0, .75), transparent);
}
.kiosk-ust .demo-rozet { font-size: 12px; }
.kiosk-ust .baslik { font-weight: 800; flex: 1; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kiosk-ust .simge-dugme { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .15); width: 40px; height: 40px; }
.kiosk video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kiosk .oval { top: 44%; width: min(62vw, 340px); border-color: rgba(255, 255, 255, .55); border-style: solid; border-width: 3px; transition: border-color .2s; }
.kiosk .oval.arar { border-color: var(--primary-light); animation: nabiz 1.6s infinite; }
@keyframes nabiz { 50% { border-color: rgba(129, 140, 248, .35); } }
.filigran {
  position: absolute; z-index: 2; right: -40px; bottom: 140px; transform: rotate(-30deg);
  font-size: 60px; font-weight: 800; color: rgba(255, 255, 255, .07); pointer-events: none; letter-spacing: .1em;
}
.kiosk-alt {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, .85) 35%); text-align: center;
}
.kiosk-durum { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.kiosk-alt-yazi { font-size: 13px; color: var(--text-2); margin-bottom: 12px; min-height: 18px; }
.mod-secici { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 4px; gap: 4px; }
.mod-secici button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--text-2); }
.mod-secici button.aktif { background: #fff; color: #111827; }
.kiosk-sonuc {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center; animation: belir .25s ease-out;
}
@keyframes belir { from { opacity: 0; transform: scale(.97); } }
.kiosk-sonuc.giris { background: radial-gradient(circle at 50% 35%, #10b981, #047857); }
.kiosk-sonuc.cikis { background: radial-gradient(circle at 50% 35%, #3b82f6, #1e40af); }
.kiosk-sonuc.tekrar { background: radial-gradient(circle at 50% 35%, #64748b, #1e293b); }
.kiosk-sonuc img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 5px solid rgba(255, 255, 255, .9); margin-bottom: 14px; }
.kiosk-sonuc .tur { font-size: 15px; font-weight: 800; letter-spacing: .12em; background: rgba(255, 255, 255, .2); padding: 6px 14px; border-radius: 999px; margin-bottom: 10px; }
.kiosk-sonuc .isim { font-size: 30px; font-weight: 800; line-height: 1.15; }
.kiosk-sonuc .detay { font-size: 16px; opacity: .9; margin-top: 6px; }
.veli-onizleme {
  margin-top: 22px; max-width: 360px; width: 100%; text-align: left; background: rgba(0, 0, 0, .28);
  border-radius: 14px; padding: 12px 14px; font-size: 14px;
}
.veli-onizleme .ust-yazi { font-size: 11px; font-weight: 800; letter-spacing: .06em; opacity: .85; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.veli-onizleme .balon { background: #fff; color: #111827; border-radius: 12px 12px 12px 4px; padding: 10px 12px; line-height: 1.4; }
.kiosk-perde { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(0, 0, 0, .82); text-align: center; padding: 24px; }

/* ── Giriş sayfası ───────────────────────────────────────────── */
.giris-govde { min-height: 100%; }
.giris-kutu { max-width: 400px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.giris-kutu form { text-align: left; margin-top: 18px; }
.giris-logo { width: 76px; height: 76px; border-radius: 20px; background: #fff; padding: 8px; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .6); }
.giris-kutu h1 { margin: 14px 0 6px; font-size: 26px; }
.donmeli { animation: don 1s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }
