@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root{
  --bg1:#0b1220;
  --bg2:#101b33;
  --glass:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.14);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --r: 22px;
  --primary1:#00c6ff;
  --primary2:#0072ff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 800px at 20% 20%, #1b2c52 0%, transparent 60%),
              radial-gradient(1100px 900px at 80% 30%, #123a5a 0%, transparent 55%),
              linear-gradient(140deg,var(--bg1),var(--bg2));
  color:var(--text);
  overflow-x:hidden;
}

.bgGlow{
  position:fixed; inset:-40px;
  background:
    radial-gradient(600px 600px at 30% 30%, rgba(0,198,255,.18), transparent 60%),
    radial-gradient(700px 700px at 70% 40%, rgba(0,114,255,.16), transparent 60%),
    radial-gradient(500px 500px at 60% 80%, rgba(120,90,255,.12), transparent 60%);
  filter: blur(20px);
  pointer-events:none;
  z-index:-1;
}

.shell{
  width:min(1100px, 92vw);
  margin: 34px auto;
}

/* fixed bar üstüne içerik binmesin */
#testPage{ padding-top: 110px; }

.hidden{display:none !important;}

.glass{
  background:linear-gradient(180deg,var(--glass), rgba(255,255,255,.06));
  border:1px solid var(--stroke);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  backdrop-filter: blur(16px);
}

.hero{padding:28px;}
.topBar{
  padding:18px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

/* FIXED TOP BAR */
.fixedTopBar{
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92vw);
  z-index: 9999;
  backdrop-filter: blur(18px);
}
.fixedTopBar::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: var(--r);
  pointer-events:none;
  border:1px solid rgba(255,255,255,.10);
  opacity:.9;
}
.fixedTopBar > *{ position:relative; }

.sectionBox{padding:22px; margin-top:18px;}
.resultsBox{padding:22px; margin-top:18px;}

.brandRow{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;}
.brand{margin:0; font-size:30px;}
.pill{
  font-size:12px; padding:6px 10px; border-radius:999px;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.14);
  color:var(--muted);
}

.lead{color:var(--muted); margin:12px 0 18px; line-height:1.55;}
.title{margin:0; font-size:22px;}
.sub{margin:4px 0 0; color:var(--muted); font-size:13px;}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 900px){ .grid2{grid-template-columns:1fr;} }

.card{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.card.soft{background:rgba(255,255,255,.04);}

.field{display:grid; gap:6px; margin:10px 0;}
.field span{font-size:12px; color:var(--muted);}
input,select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  outline:none;
  background:rgba(10,15,30,.40);
  color:var(--text);
}
input::placeholder{color:rgba(255,255,255,.45)}

.row{display:flex; gap:10px; align-items:center;}
.row.space{justify-content:space-between; flex-wrap:wrap;}
.btn{
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:11px 14px;
  border-radius:999px;
  cursor:pointer;
  transition:.18s ease;
  display:inline-flex; align-items:center; justify-content:center;
  user-select:none;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.09);}
.btn.primary{border:none; background:linear-gradient(135deg,var(--primary1),var(--primary2));}
.btn.ghost{background:rgba(255,255,255,.05);}
.btn:disabled{opacity:.55; cursor:not-allowed; transform:none;}

.tiny{margin:10px 0 0; font-size:12px; color:var(--muted); line-height:1.45;}
.bullets{margin:10px 0 0; padding-left:18px; color:var(--muted); line-height:1.55;}
.hint{
  margin-top:12px; padding:12px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.16);
  color:rgba(255,255,255,.78);
  background:rgba(255,255,255,.04);
}

.questionCard{
  margin-top:14px;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.qText{margin:0 0 10px; color:rgba(255,255,255,.90); line-height:1.45;}

.options{display:flex; flex-wrap:wrap; gap:10px;}
.opt input{display:none;}
.opt span{
  display:inline-flex;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.85);
  cursor:pointer;
  transition:.16s ease;
  font-size:13px;
}
.opt input:checked + span{
  border-color: rgba(0,198,255,.55);
  background: rgba(0,198,255,.18);
  box-shadow: 0 10px 30px rgba(0,198,255,.12);
}
.opt span:hover{transform:translateY(-1px); background:rgba(255,255,255,.08);}

.progressWrap{min-width:220px;}
.progressLabel{display:flex; justify-content:flex-end; margin-bottom:6px; color:var(--muted); font-size:12px;}
.progress{height:10px; background:rgba(255,255,255,.08); border-radius:999px; overflow:hidden; border:1px solid rgba(255,255,255,.10);}
.progressFill{height:100%; width:0%; background:linear-gradient(135deg,var(--primary1),var(--primary2)); transition:width .25s ease;}

.statGrid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px;}
.stat{padding:12px; border-radius:16px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10);}
.statK{font-size:12px; color:var(--muted);}
.statV{font-size:18px; font-weight:600; margin-top:6px;}

canvas{max-width:100%;}

.wideResults{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:14px;
  margin-top:14px;
  align-items:start;
}
@media (max-width: 900px){
  .wideResults{ grid-template-columns: 1fr; }
}
.bigReport{
  margin-top:14px;
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  line-height:1.7;
  font-size:15px;
}
.bigReport h4{margin:12px 0 8px; font-size:16px;}
.bigReport ul{margin:8px 0 0;}
.bigReport li{margin:6px 0;}

/* ANALİZ OVERLAY */
.loadingOverlay{
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(5,10,20,.72);
  backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.loadingCard{
  width: min(520px, 92vw);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.06));
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
  padding: 18px 18px 16px;
  text-align:center;
}
.loadingCard h3{margin:10px 0 6px;}
.loadingText{margin:0; color: rgba(255,255,255,.78);}

.spinner{
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.18);
  border-top-color: rgba(0,198,255,.85);
  margin: 6px auto 0;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg);} }

.miniBar{
  height: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  overflow:hidden;
  margin-top: 14px;
}
.miniBarFill{
  height:100%;
  width: 0%;
  background: linear-gradient(135deg, var(--primary1), var(--primary2));
  transition: width .18s ease;
}

/* AI box */
.aiBox{ margin-top:14px; }
.aiText{
  margin-top:10px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  line-height:1.7;
  color:rgba(255,255,255,.88);
  white-space:pre-wrap;
}

/* =========================
   DESIGN UPGRADE PACK
========================= */

:root{
  --glass: rgba(255,255,255,.08);
  --glass2: rgba(255,255,255,.12);
  --line: rgba(255,255,255,.14);
  --txt: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);
  --r: 18px;
}

body{
  color: var(--txt);
}

/* Kartlar daha temiz */
.card, .glass, .questionCard, .sectionBox{
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
}

/* Başlıklar */
.title{
  letter-spacing: .2px;
  font-weight: 800;
}
.sub, .tiny{
  color: var(--muted) !important;
}

/* Input’lar daha modern */
.field input, .field select, textarea{
  border: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(10, 15, 30, .40) !important;
  color: var(--txt) !important;
  border-radius: 14px !important;
  outline: none;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, textarea:focus{
  border-color: rgba(140, 200, 255, .55) !important;
  background: rgba(10, 15, 30, .55) !important;
  transform: translateY(-1px);
}

/* Butonlar daha “app” gibi */
.btn{
  border-radius: 14px !important;
  padding: 10px 14px !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  transition: transform .08s ease, filter .15s ease;
}
.btn:active{ transform: translateY(1px) scale(.99); }
.btn.primary{
  background: linear-gradient(135deg, rgba(80,150,255,.95), rgba(140,90,255,.95)) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
}
.btn.ghost{
  background: rgba(255,255,255,.06) !important;
}
.btn.danger{
  background: linear-gradient(135deg, rgba(255,80,90,.92), rgba(255,120,70,.92)) !important;
}

/* Soru kartı düzeni */
.questionCard{
  padding: 16px !important;
  border-radius: var(--r) !important;
}
.qText{
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 12px 0 !important;
}

/* Şıklar (radio) daha şık */
.options{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.opt{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.opt:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(170,220,255,.32);
}
.opt input{
  transform: scale(1.08);
}

/* Çoklu platform checkbox grubu */
.checkboxGroup{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 10px;
}
.checkboxGroup label{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
  user-select:none;
}
.checkboxGroup label:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(170,220,255,.32);
}
.checkboxGroup input{
  width: 18px;
  height: 18px;
}

/* Mobilde 1 sütun */
@media (max-width: 720px){
  .checkboxGroup{ grid-template-columns: 1fr; }
}

/* Sonuç kutusu daha okunaklı */
#resultsBox .statGrid{
  gap: 12px !important;
}
.stat{
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.05) !important;
  padding: 14px !important;
}
.statK{
  color: var(--muted) !important;
  letter-spacing: .2px;
}
.statV{
  font-weight: 800 !important;
  font-size: 22px !important;
}

/* Progress bar daha premium */
.progress{
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.05) !important;
  border-radius: 999px !important;
  overflow:hidden;
}
.progressFill{
  background: linear-gradient(90deg, rgba(80,150,255,.95), rgba(140,90,255,.95)) !important;
  border-radius: 999px !important;
}

/* Overlay kartı daha net */
.loadingOverlay .loadingCard{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,15,30,.62);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

/* Admin sonuç kartları hover */
.resultCard:hover{
  transform: translateY(-2px);
  border-color: rgba(170,220,255,.32) !important;
  background: rgba(255,255,255,.07) !important;
}

/* ADMIN DETAY POPUP SCROLL FIX */
#detailModal{
  overflow-y: auto;
  padding: 40px 20px;
}
#detailModal .loadingCard{
  max-height: none;
}
@media (max-width: 720px){
  #detailModal{
    padding: 20px 12px;
  }
}

/* ✅ TEST ŞIKLARI YAN YANA (override) */
.questionCard .options{
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important; /* 5'li Likert */
  gap: 10px !important;
}
.questionCard .opt{
  justify-content: center;
  text-align: center;
  padding: 10px 10px;
}
@media (max-width: 900px){
  .questionCard .options{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px){
  .questionCard .options{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ŞIKLARI İNCELT */
.questionCard .opt{
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  min-height: 34px;
}
.questionCard .opt span{
  padding: 6px 10px !important;
  font-size: 12.5px;
  font-weight: 400;
}
.opt input:checked + span{
  background: rgba(0,198,255,.14) !important;
  border-color: rgba(0,198,255,.45) !important;
  box-shadow: none !important;
}

.siteFooter{
  margin: 18px auto 34px;
  text-align: center;
}
.siteFooter a{
  color: rgba(255,255,255,.80);
}

/* KVKK POPUP */
.kvkkOverlay{
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,.75);
  backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 50000;
  padding:18px;
}
.kvkkBox{
  width: min(560px, 92vw);
  padding: 20px;
  border-radius: 22px;
  background: rgba(10,15,30,.75);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.kvkkOverlay.hidden{ display:none !important; }

/* LOGO ÜSTTE ORTADA (OVERRIDE) */
.site-logo{
  position: fixed !important;
  top: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 60000 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  pointer-events:none;
}
.site-logo img{
  width: 140px !important;
  height: auto !important;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.35));
}
#hero{
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 130px !important;
  padding-bottom: 40px !important;
  margin: 0 auto !important;
}
.glass.hero{
  width: min(1100px, 92vw) !important;
}
@media (max-width: 520px){
  .site-logo img{ width: 110px !important; }
  #hero{ padding-top: 115px !important; }
}

/* TEST MODU: giriş kapanır, logo gider */
body.modeTest #hero{
  display: none !important;
}
body.modeTest #testPage{
  display: block !important;
}
body.modeTest .site-logo{
  display: none !important;
}

/* =========================
   ✅ WIZARD (STEP-BY-STEP)
   (BU KISIM YENİ)
========================= */
.step{ display:none; }
.step.is-active{ display:block; }
.stepNav{ margin-top: 18px; }

@media (max-width: 520px){
  .stepNav .btn{ flex: 1; }
}
/* WIZARD steps */
.step{ display:none; }
.step.is-active{ display:block; }

@media (max-width: 520px){
  #testPage{ padding-top: 130px; }
}

@media (max-width: 520px){
  .questionCard .opt{ min-height: 42px !important; }
  .questionCard .opt span{ font-size: 13px !important; }
}
/* =========================
   MOBILE PERF PACK (EN ALT)
   Android kasma fix
========================= */

/* Telefonlarda pahalı efektleri azalt */
@media (max-width: 900px){
  :root{
    --shadow: 0 10px 26px rgba(0,0,0,.35);
  }

  /* bgGlow en büyük kasma sebebi -> sadeleştir */
  .bgGlow{
    filter: blur(10px) !important;
    opacity: .55 !important;
  }

  /* Cam (blur) Android’de pahalı -> azalt / kapat */
  .glass{
    backdrop-filter: none !important;   /* en etkili fix */
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,.07) !important; /* blur yerine düz cam */
  }

  /* Çok gölge ve border render’ı azalt */
  .card, .questionCard, .sectionBox{
    box-shadow: none !important;
  }

  /* Fixed bar scroll’da pahalı -> blur yok + daha hafif */
  .fixedTopBar{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Hareket azalt tercihine saygı + düşük cihazlar */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* =========================
   ADMIN TABBED PANEL
========================= */

.adminShell{
  padding-bottom: 40px;
}

.adminTopBar{
  position: sticky;
  top: 14px;
  z-index: 999;
}

.adminTabsWrap{
  position: sticky;
  top: 110px;
  z-index: 998;
  padding: 14px 16px;
}

.adminTabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.adminTab{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:var(--text);
  padding:10px 16px;
  border-radius:999px;
  cursor:pointer;
  transition:.18s ease;
  font-family:inherit;
  font-size:14px;
}

.adminTab:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.09);
}

.adminTab.active{
  border-color: rgba(120,190,255,.5);
  background: linear-gradient(135deg, rgba(80,150,255,.25), rgba(140,90,255,.20));
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.adminPanel{
  display:none;
}

.adminPanel.is-active{
  display:block;
}

.adminPanelHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.adminStatsGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
}

.adminStatCard{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.adminStatCard.compact{
  padding:14px;
}

.adminStatLabel{
  font-size:12px;
  color:var(--muted);
}

.adminStatValue{
  margin-top:8px;
  font-size:30px;
  font-weight:800;
  line-height:1;
}

.adminStatValue.small{
  font-size:22px;
}

.overviewList{
  display:grid;
  gap:10px;
}

.overviewRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}

.adminQuestionTop{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}

.adminQuestionActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.adminMiniCard{
  margin-top:12px;
}

.adminOptionRow{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.adminOptionFields{
  display:flex;
  gap:10px;
  flex:1;
  flex-wrap:wrap;
}

.adminDetailCard,
.adminOptionCard{
  border-radius:24px;
}

.adminAnswerRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.adminAnswerRow:last-child{
  border-bottom:none;
}

.adminAnswerValue{
  min-width:120px;
  text-align:right;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}

textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  outline:none;
  background:rgba(10,15,30,.40);
  color:var(--text);
  resize:vertical;
  min-height:160px;
  font-family:inherit;
}

@media (max-width: 980px){
  .adminStatsGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px){
  .adminTabsWrap{
    top: 100px;
  }

  .adminStatsGrid{
    grid-template-columns: 1fr;
  }

  .overviewRow{
    flex-direction:column;
    align-items:flex-start;
  }

  .adminAnswerRow{
    flex-direction:column;
  }

  .adminAnswerValue{
    text-align:left;
    align-items:flex-start;
    min-width:0;
  }
}
/* =========================
   TEACHER SYSTEM
========================= */

.teacherAuthShell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 0;
}

.teacherAuthCard{
  width:min(760px, 94vw);
  padding:28px;
  border-radius:28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05)),
    radial-gradient(circle at top right, rgba(120,190,255,.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(140,90,255,.14), transparent 30%);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:
    0 24px 70px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.teacherRegisterCard{
  width:min(980px, 94vw);
}

.teacherAuthHead{
  margin-bottom:22px;
  text-align:center;
}

.teacherAuthHead .title{
  margin-bottom:8px;
}

.teacherAuthHead .sub{
  max-width:680px;
  margin:0 auto;
  color:var(--muted);
}

.teacherForm{
  display:grid;
  gap:16px;
}

.teacherForm .grid2{
  gap:14px;
}

.teacherForm .field{
  margin:0;
}

.teacherForm .field span{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:700;
  color:rgba(255,255,255,.86);
  letter-spacing:.2px;
}

.teacherForm input,
.teacherForm select,
.teacherForm textarea{
  width:100%;
  min-height:52px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  color:var(--text);
  outline:none;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    background .18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.teacherForm textarea{
  min-height:120px;
  resize:vertical;
}

.teacherForm input::placeholder,
.teacherForm textarea::placeholder{
  color:rgba(255,255,255,.42);
}

.teacherForm input:focus,
.teacherForm select:focus,
.teacherForm textarea:focus{
  border-color: rgba(120,190,255,.50);
  box-shadow:
    0 0 0 4px rgba(120,190,255,.12),
    0 10px 30px rgba(0,0,0,.18);
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
}

.teacherForm select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  cursor:pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.70) 50%),
    linear-gradient(135deg, rgba(255,255,255,.70) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:44px;
}

.teacherWideBtn{
  width:100%;
  min-height:54px;
  justify-content:center;
  margin-top:4px;
  border-radius:16px;
  font-size:15px;
  font-weight:800;
  letter-spacing:.2px;
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.teacherWideBtn:hover{
  transform:translateY(-2px);
}

.teacherAuthFoot{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
}

.teacherAuthFoot .btn{
  min-width:170px;
  justify-content:center;
}

#teacherLoginInfo,
#teacherRegisterInfo{
  min-height:22px;
  text-align:center;
  margin-top:2px;
  color:rgba(255,255,255,.78);
}

.teacherShell{
  padding-bottom:36px;
}

.teacherTopBar{
  position:sticky;
  top:14px;
  z-index:999;
}

.teacherBadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  margin-left:8px;
  text-transform:capitalize;
}

.teacherBadge.pending{
  background:rgba(255,193,7,.15);
  border:1px solid rgba(255,193,7,.35);
}

.teacherBadge.success{
  background:rgba(40,167,69,.15);
  border:1px solid rgba(40,167,69,.35);
}

.teacherBadge.danger{
  background:rgba(220,53,69,.15);
  border:1px solid rgba(220,53,69,.35);
}

.teacherAdminMeta{
  display:grid;
  gap:8px;
  margin-top:12px;
  font-size:14px;
}

.adminTeacherCard{
  margin-top:12px;
}

@media (max-width: 860px){
  .teacherAuthCard,
  .teacherRegisterCard{
    width:min(94vw, 94vw);
    padding:22px 18px;
    border-radius:24px;
  }
}

@media (max-width: 720px){
  .teacherAuthFoot{
    flex-direction:column;
    align-items:stretch;
  }

  .teacherAuthFoot .btn{
    width:100%;
    min-width:0;
  }

  .teacherAuthHead{
    text-align:left;
  }

  .teacherAuthHead .sub{
    margin:0;
  }
}
/* =========================
   TEACHER AUTH MODERN UI
========================= */

.teacherAuthShell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 14px;
}

.teacherAuthCard{
  width:min(760px, 100%);
  padding:30px;
  border-radius:28px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(113, 193, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(152, 102, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
  border:1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
}

.teacherRegisterCard{
  width:min(980px, 100%);
}

.teacherHero{
  text-align:center;
  margin-bottom:24px;
}

.teacherHeroIcon{
  width:76px;
  height:76px;
  margin:0 auto 14px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  background:
    linear-gradient(135deg, rgba(88,156,255,.25), rgba(147,98,255,.24));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:
    0 12px 34px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.teacherHeroTitle{
  margin:0;
  font-size:clamp(28px, 4vw, 40px);
  line-height:1.06;
  letter-spacing:-0.02em;
}

.teacherHeroText{
  margin:10px auto 0;
  max-width:720px;
  color:rgba(255,255,255,.74);
  font-size:15px;
  line-height:1.6;
}

.teacherModernForm{
  display:grid;
  gap:16px;
}

.teacherGrid2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.teacherInputGroup{
  display:block;
}

.teacherInputLabel{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:700;
  color:rgba(255,255,255,.88);
  letter-spacing:.2px;
}

.teacherModernForm .teacherInput{
  width:100%;
  min-height:54px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  color:#fff;
  outline:none;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    background .18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.teacherModernForm .teacherInput::placeholder{
  color:rgba(255,255,255,.42);
}

.teacherModernForm .teacherInput:focus{
  border-color:rgba(120,190,255,.56);
  box-shadow:
    0 0 0 4px rgba(120,190,255,.12),
    0 12px 30px rgba(0,0,0,.16);
  transform:translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.05));
}

.teacherModernForm .teacherTextarea{
  min-height:124px;
  resize:vertical;
}

.teacherModernForm .teacherSelect{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  cursor:pointer;
  padding-right:48px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.75) 50%),
    linear-gradient(135deg, rgba(255,255,255,.75) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}

.teacherSubmitBtn{
  width:100%;
  min-height:56px;
  justify-content:center;
  border-radius:18px;
  font-size:15px;
  font-weight:800;
  letter-spacing:.2px;
  margin-top:4px;
  box-shadow:0 18px 36px rgba(0,0,0,.24);
}

.teacherSubmitBtn:hover{
  transform:translateY(-2px);
}

.teacherInfoText{
  min-height:22px;
  margin:2px 0 0;
  text-align:center;
  color:rgba(255,255,255,.82);
  font-size:13px;
}

.teacherActionRow{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
}

.teacherGhostBtn{
  min-width:170px;
  justify-content:center;
}

@media (max-width: 860px){
  .teacherAuthCard{
    padding:24px 18px;
    border-radius:24px;
  }

  .teacherGrid2{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .teacherHero{
    text-align:left;
  }

  .teacherHeroIcon{
    margin:0 0 14px 0;
  }

  .teacherHeroText{
    margin:10px 0 0;
  }

  .teacherActionRow{
    flex-direction:column;
    align-items:stretch;
  }

  .teacherGhostBtn{
    width:100%;
    min-width:0;
  }
}
.teacherLoginBtn{
  margin-top:10px;
}
/* Teacher detail modal scroll fix */
#teacherDetailModal{
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 16px 32px;
  z-index: 3000;
}

#teacherDetailModal .loadingCard{
  margin: 0 auto;
  max-height: none;
}

#teacherDetailModal.hidden{
  display: none !important;
}
/* =========================
   TEACHER DETAIL MODAL FIX
========================= */

#teacherDetailModal{
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 10, 25, 0.58);
  backdrop-filter: blur(8px);
}

#teacherDetailModal.hidden{
  display: none !important;
}

#teacherDetailModal .adminDetailCard{
  width: min(1100px, 96vw);
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  border-radius: 24px;
  padding: 22px;
}

/* modal içi scroll bar biraz temiz dursun */
#teacherDetailModal .adminDetailCard::-webkit-scrollbar{
  width: 10px;
}

#teacherDetailModal .adminDetailCard::-webkit-scrollbar-track{
  background: rgba(255,255,255,.05);
  border-radius: 999px;
}

#teacherDetailModal .adminDetailCard::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

@media (max-width: 900px){
  #teacherDetailModal{
    align-items: stretch;
    padding: 10px;
  }

  #teacherDetailModal .adminDetailCard{
    width: 100%;
    max-height: 100%;
    border-radius: 18px;
    padding: 16px;
  }
}
/* =========================
   ADMIN SCHOOL PANEL
========================= */

.adminSchoolCard{
  margin-top:12px;
}