*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:#eaf2ff;
  color:#172033;
}

.app{
  width:min(1450px,96%);
  margin:0 auto;
  padding:28px 0 48px;
}

/* PAGE */
.page,
.admin-tab{
  display:none;
}

.page.active,
.admin-tab.active-admin-tab{
  display:block;
}

/* COMMON CARD */
.hero,
.card,
.lesson-card,
.quiz-card,
.ai-card,
.scoreboard-card,
.teacher-notes,
.login-card{
  background:white;
  border-radius:26px;
  padding:24px;
  box-shadow:0 14px 35px rgba(17,24,39,.08);
  margin-bottom:22px;
}

/* HEADER */
.hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.hero h1{
  margin:0 0 8px;
  font-size:clamp(34px,5vw,54px);
  line-height:1;
}

.hero p{
  margin:0;
  font-size:20px;
  color:#526078;
}

.school-head{
  display:flex;
  align-items:center;
  gap:16px;
}

.header-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* BUTTON */
button{
  border:0;
  border-radius:18px;
  padding:16px 18px;
  font-size:18px;
  font-weight:800;
  cursor:pointer;
  background:#2454d8;
  color:white;
  transition:transform .15s ease,opacity .15s ease;
}

button:hover{
  transform:translateY(-1px);
  opacity:.95;
}

.dark-btn{
  background:#334155;
}

.danger-btn,
td button{
  background:#dc2626;
}

.big-btn{
  margin-top:18px;
  width:100%;
  min-height:70px;
  font-size:24px;
}

/* FORM */
label{
  display:block;
  font-weight:900;
  font-size:18px;
  margin-bottom:8px;
}

input,
select{
  width:100%;
  border:3px solid #d7def0;
  border-radius:16px;
  padding:14px 16px;
  font-size:20px;
  outline:none;
  background:white;
}

input:focus,
select:focus{
  border-color:#2454d8;
}

hr{
  border:0;
  border-top:2px solid #e5e7eb;
  margin:24px 0;
}

/* LOGIN */
.login-card{
  width:min(520px,96%);
  margin:60px auto;
}

.login-card h1{
  margin:0 0 10px;
  font-size:42px;
}

.login-card p{
  color:#526078;
  font-size:18px;
}

.login-card button{
  width:100%;
  margin-top:16px;
}

.hint{
  font-size:14px!important;
}

.error-msg{
  color:#dc2626!important;
  font-weight:800;
}

/* GRID */
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.student-form{
  display:grid;
  grid-template-columns:1fr 160px auto;
  gap:12px;
}

.student-select-row{
  margin-top:14px;
}

.current-student-box{
  margin-top:16px;
  background:#f8fbff;
  border:3px solid #d7def0;
  border-radius:18px;
  padding:18px;
  font-size:22px;
  font-weight:900;
}

/* BADGE */
.school-badge{
  width:88px;
  height:88px;
  object-fit:contain;
  border-radius:18px;
  border:3px solid #d7def0;
  background:#f8fafc;
}

.school-badge.small{
  width:76px;
  height:76px;
}

.mini-badge{
  width:52px;
  height:52px;
  object-fit:contain;
  border:2px solid #d7def0;
  border-radius:12px;
  background:#f8fafc;
}

.badge-preview-wrap{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:18px;
}

/* MAIN MENU */
.main-menu{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-bottom:22px;
}

.main-menu button{
  min-height:130px;
  font-size:24px;
  border-radius:28px;
}

.small-menu{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.small-menu button{
  min-height:64px;
  font-size:18px;
}

/* HOME DASHBOARD */
.home-dashboard{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:28px;
  margin-top:24px;
}

.welcome-card{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  background:linear-gradient(135deg,#1d4ed8,#2563eb,#38bdf8);
  border-radius:36px;
  padding:42px;
  color:white;
  box-shadow:0 30px 60px rgba(37,99,235,.28);
}

.welcome-card h2{
  margin:14px 0;
  font-size:56px;
  font-weight:900;
  line-height:1.1;
}

.welcome-card p{
  font-size:20px;
  line-height:1.6;
  max-width:780px;
  opacity:.95;
}

.badge-pill{
  display:inline-block;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.28);
  font-size:15px;
  font-weight:800;
  letter-spacing:.5px;
}

.welcome-illustration{
  min-width:190px;
  min-height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:34px;
  font-size:84px;
  background:rgba(255,255,255,.14);
}

/* QUICK STATS */
.quick-stats{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.stat-card{
  background:white;
  padding:30px;
  border-radius:30px;
  border:3px solid #dbe5ff;
  box-shadow:0 14px 30px rgba(15,23,42,.08);
  transition:.25s;
}

.stat-card:hover{
  transform:translateY(-6px);
}

.stat-card span{
  font-size:42px;
}

.stat-card h3{
  font-size:46px;
  margin:12px 0 6px;
  color:#172033;
}

.stat-card p{
  margin:0;
  font-size:18px;
  color:#64748b;
  font-weight:700;
}

/* PREMIUM MENU - 4 CARD SELARI */
.premium-menu{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}

.premium-card{
  width:100%;
  min-width:0;
  min-height:360px;
  border:none;
  border-radius:36px;
  padding:34px;
  color:white;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-start;
  text-align:left;
  cursor:pointer;
  transition:.25s ease;
  box-shadow:0 20px 40px rgba(15,23,42,.16);
}

.premium-card:hover{
  transform:translateY(-8px) scale(1.02);
}

.card-icon{
  width:88px;
  height:88px;
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:42px;
  background:rgba(255,255,255,.14);
  margin-bottom:26px;
}

.premium-card h2{
  font-size:34px;
  line-height:1.25;
  margin:0 0 16px;
  font-weight:900;
  color:white;
}

.premium-card p{
  font-size:19px;
  line-height:1.5;
  margin:0;
  color:white;
  opacity:.96;
}

.blue-card{
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
}

.purple-card{
  background:linear-gradient(135deg,#7c3aed,#9333ea);
}

.green-card{
  background:linear-gradient(135deg,#059669,#10b981);
}

.orange-card{
  background:linear-gradient(135deg,#f97316,#ea580c);
}

/* CURRENT STUDENT PANEL */
.current-student-panel{
  background:white;
  border:3px solid #dbe5ff;
  border-radius:26px;
  padding:22px;
  display:grid;
  grid-template-columns:320px 1fr;
  gap:20px;
  align-items:center;
  margin-top:20px;
  box-shadow:0 12px 30px rgba(15,23,42,.08);
}

.current-student-panel label{
  font-weight:900;
  display:block;
  margin-bottom:8px;
}

.current-student-panel select{
  width:100%;
  padding:14px 16px;
  border-radius:16px;
  border:3px solid #d7def0;
  font-size:18px;
}

#homeCurrentStudentInfo{
  font-size:18px;
  font-weight:800;
  color:#172033;
}

/* MODE PANEL */
.mode-panel{
  margin:22px 0;
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:14px;
}

.mode-panel button{
  min-height:80px;
}

/* LESSON */
.lesson-top,
.quiz-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

#lessonTitle,
#quizTitle{
  margin:0;
  font-size:clamp(32px,4vw,48px);
}

#modeBadge{
  background:#e0e7ff;
  color:#1e3a8a;
  padding:10px 16px;
  border-radius:999px;
  font-weight:900;
  font-size:18px;
}

.instruction{
  font-size:clamp(24px,3vw,36px);
  font-weight:900;
  margin:22px 0;
}

/* VISUAL AREA */
.visual-area{
  min-height:260px;
  border:4px dashed #d7def0;
  border-radius:28px;
  background:#f8fbff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:22px;
  padding:24px;
  margin-bottom:22px;
}

.object{
  font-size:clamp(58px,8vw,96px);
}

.small-object{
  font-size:clamp(32px,5vw,54px);
}

.operator{
  font-size:clamp(48px,7vw,78px);
  font-weight:900;
}

.removed{
  opacity:.25;
  filter:grayscale(1);
  text-decoration:line-through;
}

.mini-group{
  min-width:120px;
  min-height:100px;
  border:4px solid #cbd5e1;
  border-radius:22px;
  background:white;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}

.division-group{
  border-style:dashed;
}

.equation-text{
  width:100%;
  text-align:center;
  font-size:clamp(34px,5vw,64px);
  font-weight:900;
  color:#1f2937;
  margin-top:10px;
}

.group-box{
  min-width:260px;
  min-height:180px;
  border:4px solid #cbd5e1;
  border-radius:24px;
  padding:22px;
  background:white;
  cursor:pointer;
  font-size:clamp(46px,6vw,78px);
}

.group-label{
  display:block;
  margin-top:12px;
  font-size:28px;
  font-weight:900;
}

/* ANSWER + CONTROL */
.answer-buttons,
.control-panel{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.answer-buttons{
  grid-template-columns:repeat(10,1fr);
}

.answer-buttons button{
  background:#16a34a;
  font-size:26px;
}

.control-panel{
  grid-template-columns:repeat(4,1fr);
}

.control-panel button{
  min-height:72px;
}

#micToggleBtn.mic-on{
  background:#dc2626;
}

.feedback{
  margin-top:22px;
  font-size:clamp(22px,3vw,32px);
  font-weight:900;
}

.mic-status{
  margin-top:10px;
  font-size:20px;
  font-weight:800;
  color:#0f766e;
}

.heard{
  margin-top:8px;
  font-size:18px;
  color:#64748b;
}

/* TIMER */
.timer-box{
  width:110px;
  height:110px;
  border-radius:28px;
  background:#dc2626;
  color:white;
  display:grid;
  place-items:center;
  font-size:54px;
  font-weight:900;
}

/* CAMERA */
.camera-wrap{
  position:relative;
  width:100%;
  border-radius:26px;
  overflow:hidden;
  background:#111827;
  border:4px solid #c7d2fe;
}

#cameraVideo,
#cameraCanvas{
  width:100%;
  max-height:520px;
  display:block;
}

#cameraCanvas{
  position:absolute;
  inset:0;
}

.ai-panel{
  margin-top:18px;
  background:linear-gradient(135deg,#eef4ff,#fff);
  border:4px solid #bfdbfe;
  border-radius:24px;
  padding:20px;
  animation:fadeIn .4s ease-in;
}

.ai-panel h2{
  margin-top:0;
  font-size:32px;
}

.ai-panel p{
  font-size:22px;
  margin:10px 0;
}

/* SCORE */
.score-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-bottom:22px;
}

.summary-box{
  background:white;
  border-radius:24px;
  padding:20px;
  box-shadow:0 14px 35px rgba(17,24,39,.08);
}

.summary-box h3{
  margin:0 0 10px;
  color:#64748b;
}

.summary-box p{
  margin:0;
  font-size:32px;
  font-weight:900;
}

.scoreboard-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.table-wrap{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:1100px;
}

th,
td{
  border-bottom:2px solid #e5e7eb;
  padding:14px;
  text-align:left;
  font-size:16px;
}

th{
  background:#f8fafc;
}

/* NOTES */
.teacher-notes{
  margin-top:22px;
}

.teacher-notes h2{
  margin-top:0;
}

.teacher-notes p{
  font-size:20px;
  line-height:1.6;
  color:#475569;
}

/* HANDWRITING */
.handwriting-container{
  margin-top:20px;
  text-align:center;
  background:#f8fbff;
  border:3px solid #d7def0;
  border-radius:22px;
  padding:18px;
}

.handwriting-container h3{
  margin:0 0 8px;
  font-size:24px;
}

.handwriting-container p{
  margin:0 0 14px;
  color:#64748b;
  font-size:18px;
}

#drawCanvas{
  width:100%;
  max-width:600px;
  height:220px;
  border:4px solid #1f2937;
  border-radius:16px;
  background:#fff;
  touch-action:none;
}

.handwriting-controls{
  margin-top:14px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.ai-handwriting-status{
  margin-top:14px;
  padding:16px;
  border:3px solid #d7def0;
  border-radius:16px;
  background:#f8fbff;
  font-size:20px;
  font-weight:900;
  text-align:center;
  color:#172033;
  line-height:1.4;
}

/* MANUAL ANSWER */
.manual-answer{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  margin-top:18px;
}

.manual-answer input{
  border:3px solid #d7def0;
  border-radius:16px;
  padding:14px 16px;
  font-size:22px;
}

.manual-answer button{
  font-size:20px;
  background:#16a34a;
}

/* AI FILTER */
.ai-hero{
  align-items:center;
}

.ai-title h1{
  margin-bottom:8px;
}

.ai-filter-panel{
  padding:20px;
}

.ai-filter-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  align-items:end;
}

.ai-filter-box{
  background:#f8fbff;
  border:3px solid #d7def0;
  border-radius:20px;
  padding:16px;
}

.ai-filter-box label{
  display:block;
  font-size:18px;
  font-weight:900;
  margin-bottom:8px;
}

.ai-filter-box select{
  width:100%;
  border:3px solid #d7def0;
  border-radius:16px;
  padding:14px 16px;
  font-size:20px;
  background:white;
}

.small-note{
  margin:14px 0 0;
  font-size:16px;
  color:#526078;
}

/* QUIZ HANDWRITING */
.handwriting-answer-box{
  margin-top:24px;
  background:#f8fbff;
  border:3px solid #d7def0;
  border-radius:24px;
  padding:22px;
}

#quizDrawCanvas{
  width:100%;
  height:260px;
  background:white;
  border:4px dashed #d7def0;
  border-radius:20px;
  touch-action:none;
  margin:18px 0;
}

.canvas-tools{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* ANALYTICS */
.analytics-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-bottom:24px;
}

.analytics-card{
  background:white;
  border-radius:28px;
  padding:26px;
  box-shadow:0 14px 35px rgba(15,23,42,.08);
  border:3px solid #dbeafe;
}

.analytics-card h3{
  margin:0 0 10px;
  color:#64748b;
  font-size:18px;
}

.analytics-card p{
  margin:0;
  font-size:34px;
  font-weight:900;
  color:#172033;
}

.danger-analytics{
  border-color:#fecaca;
  background:#fff7f7;
}

.topic-analytics-box{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.topic-row{
  background:#f8fbff;
  border:3px solid #dbeafe;
  border-radius:22px;
  padding:18px;
}

.topic-row h3{
  margin:0 0 10px;
  font-size:22px;
}

.topic-bar{
  width:100%;
  height:18px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
}

.topic-fill{
  height:100%;
  background:#2563eb;
  border-radius:999px;
}

.status-good{
  color:#16a34a;
  font-weight:900;
}

.status-medium{
  color:#f97316;
  font-weight:900;
}

.status-danger{
  color:#dc2626;
  font-weight:900;
}

/* AI INSIGHT */
.ai-insight-card{
  border:3px solid #bfdbfe;
  background:linear-gradient(135deg,#ffffff,#eef6ff);
}

.ai-insight-box{
  display:grid;
  gap:18px;
}

.ai-alert{
  border-radius:24px;
  padding:22px;
  font-size:20px;
  font-weight:800;
}

.ai-alert h3{
  margin:0 0 8px;
  font-size:30px;
}

.ai-alert p{
  margin:0;
}

.ai-alert.good{
  background:#ecfdf5;
  color:#047857;
  border:3px solid #86efac;
}

.ai-alert.warning{
  background:#fff7ed;
  color:#c2410c;
  border:3px solid #fed7aa;
}

.ai-alert.danger{
  background:#fef2f2;
  color:#b91c1c;
  border:3px solid #fecaca;
}

.ai-alert.neutral{
  background:#f8fafc;
  color:#475569;
  border:3px solid #cbd5e1;
}

.ai-insight-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.ai-insight-grid div{
  background:white;
  border:3px solid #dbeafe;
  border-radius:22px;
  padding:18px;
}

.ai-insight-grid h4{
  margin:0 0 8px;
  color:#64748b;
}

.ai-insight-grid p{
  margin:0;
  font-size:20px;
  font-weight:900;
}

/* ANIMATION */
@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(8px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* RESPONSIVE */
@media(max-width:1200px){
  .premium-menu{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:1000px){
  .welcome-card{
    flex-direction:column;
    align-items:flex-start;
  }

  .quick-stats,
  .score-summary,
  .analytics-grid,
  .ai-insight-grid{
    grid-template-columns:1fr;
  }

  .topic-analytics-box{
    grid-template-columns:1fr;
  }

  .mode-panel{
    grid-template-columns:repeat(2,1fr);
  }

  .current-student-panel{
    grid-template-columns:1fr;
  }

  .welcome-card h2{
    font-size:38px;
  }
}

@media(max-width:950px){
  .main-menu,
  .grid-2,
  .control-panel{
    grid-template-columns:1fr 1fr;
  }

  .student-form{
    grid-template-columns:1fr;
  }

  .answer-buttons{
    grid-template-columns:repeat(5,1fr);
  }

  .hero{
    flex-direction:column;
    align-items:stretch;
  }

  .header-actions{
    justify-content:flex-start;
  }

  .ai-filter-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:650px){
  .premium-menu{
    grid-template-columns:1fr;
  }

  .premium-card{
    min-height:260px;
  }

  .premium-card h2{
    font-size:32px;
  }

  .premium-card p{
    font-size:18px;
  }
}

@media(max-width:560px){
  .app{
    width:96%;
    padding:16px 0 36px;
  }

  .main-menu,
  .grid-2,
  .control-panel,
  .mode-panel,
  .manual-answer{
    grid-template-columns:1fr;
  }

  .answer-buttons{
    grid-template-columns:repeat(2,1fr);
  }

  button{
    width:100%;
  }

  .hero h1{
    font-size:34px;
  }

  .timer-box{
    width:90px;
    height:90px;
    font-size:42px;
  }

  .welcome-card{
    padding:28px;
  }

  .welcome-illustration{
    min-width:130px;
    min-height:130px;
    font-size:58px;
  }
}
/* WOW TOPIC PERFORMANCE */
.topic-analytics-box{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.topic-row{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#ffffff,#f4f8ff);
  border:0;
  border-radius:28px;
  padding:24px;
  box-shadow:0 18px 40px rgba(15,23,42,.10);
}

.topic-row::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top right,rgba(37,99,235,.18),transparent 35%);
  pointer-events:none;
}

.topic-row h3{
  position:relative;
  margin:0 0 14px;
  font-size:26px;
  font-weight:900;
}

.topic-row p{
  position:relative;
  font-size:17px;
  font-weight:800;
  color:#475569;
}

.topic-bar{
  position:relative;
  height:22px;
  background:#e2e8f0;
  border-radius:999px;
  overflow:hidden;
  margin-top:18px;
}

.topic-fill{
  height:100%;
  background:linear-gradient(90deg,#2563eb,#38bdf8);
  border-radius:999px;
  box-shadow:0 0 18px rgba(37,99,235,.55);
}

.topic-row:nth-child(1) .topic-fill{
  background:linear-gradient(90deg,#2563eb,#38bdf8);
}

.topic-row:nth-child(2) .topic-fill{
  background:linear-gradient(90deg,#7c3aed,#c084fc);
}

.topic-row:nth-child(3) .topic-fill{
  background:linear-gradient(90deg,#f97316,#facc15);
}

.topic-row:nth-child(4) .topic-fill{
  background:linear-gradient(90deg,#059669,#34d399);
}

.topic-row:nth-child(5) .topic-fill{
  background:linear-gradient(90deg,#dc2626,#fb7185);
}

.topic-row:nth-child(6) .topic-fill{
  background:linear-gradient(90deg,#0891b2,#22d3ee);
}

.topic-row:nth-child(7) .topic-fill{
  background:linear-gradient(90deg,#9333ea,#ec4899);
}

.topic-row:nth-child(8) .topic-fill{
  background:linear-gradient(90deg,#0f766e,#14b8a6);
}

.topic-row:nth-child(9) .topic-fill{
  background:linear-gradient(90deg,#1d4ed8,#60a5fa);
}

@media(max-width:1100px){
  .topic-analytics-box{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:700px){
  .topic-analytics-box{
    grid-template-columns:1fr;
  }
}
/* LOGIN ANIMATION */
#loginPage{
  position:relative;
  overflow:hidden;
}

#loginPage::before,
#loginPage::after{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  filter:blur(20px);
  opacity:.45;
  animation:floatBlob 8s ease-in-out infinite alternate;
}

#loginPage::before{
  top:8%;
  left:10%;
  background:rgba(37,99,235,.25);
}

#loginPage::after{
  right:10%;
  bottom:10%;
  background:rgba(147,51,234,.25);
  animation-delay:1.5s;
}

.login-card{
  position:relative;
  z-index:2;
  animation:loginPop .75s ease both;
}

.login-card::before{
  animation:iconFloat 2.4s ease-in-out infinite;
}

.login-card h1{
  animation:titleSlide .8s ease both;
}

.login-card input,
.login-card select,
.login-card button{
  animation:fieldFade .7s ease both;
}

.login-card select{ animation-delay:.15s; }
.login-card input:nth-of-type(1){ animation-delay:.25s; }
.login-card input:nth-of-type(2){ animation-delay:.35s; }
.login-card button{ animation-delay:.45s; }

@keyframes loginPop{
  from{
    opacity:0;
    transform:translateY(35px) scale(.96);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@keyframes iconFloat{
  0%,100%{
    transform:translateY(0) rotate(0deg);
  }
  50%{
    transform:translateY(-8px) rotate(-2deg);
  }
}

@keyframes titleSlide{
  from{
    opacity:0;
    transform:translateX(-18px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes fieldFade{
  from{
    opacity:0;
    transform:translateY(12px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes floatBlob{
  from{
    transform:translate(0,0) scale(1);
  }
  to{
    transform:translate(35px,-30px) scale(1.15);
  }
}
/* AI CONFIDENCE POPUP */
.ai-detect-popup{
  font-size:18px;
  line-height:1.7;
  text-align:center;
}

.ai-chip{
  display:inline-block;
  padding:8px 16px;
  margin-bottom:14px;
  border-radius:999px;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  color:white;
  font-weight:900;
  box-shadow:0 10px 25px rgba(37,99,235,.25);
}

.ai-detected-number{
  font-size:64px;
  font-weight:900;
  line-height:1;
  margin:10px 0 18px;
  color:#2563eb;
}

.correct-answer-number{
  font-size:44px;
  font-weight:900;
  line-height:1;
  margin:10px 0 18px;
  color:#16a34a;
}

.confidence-wrap{
  width:100%;
  height:24px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
  margin:12px 0 8px;
  border:2px solid #dbeafe;
}

.confidence-fill{
  height:100%;
  background:linear-gradient(90deg,#2563eb,#38bdf8);
  border-radius:999px;
  box-shadow:0 0 18px rgba(37,99,235,.55);
  transition:width .6s ease;
}

.confidence-text{
  font-size:18px;
  font-weight:900;
  color:#334155;
  margin-bottom:18px;
}
.swal2-popup .ai-detect-popup{
  text-align:center !important;
  font-size:18px !important;
  line-height:1.6 !important;
}

.swal2-popup .ai-chip{
  display:inline-block !important;
  padding:9px 18px !important;
  margin-bottom:16px !important;
  border-radius:999px !important;
  background:linear-gradient(135deg,#2563eb,#7c3aed) !important;
  color:white !important;
  font-weight:900 !important;
}

.swal2-popup .ai-detected-number{
  font-size:64px !important;
  font-weight:900 !important;
  color:#2563eb !important;
  margin:8px 0 14px !important;
  line-height:1 !important;
}

.swal2-popup .correct-answer-number{
  font-size:44px !important;
  font-weight:900 !important;
  color:#16a34a !important;
  margin:8px 0 16px !important;
  line-height:1 !important;
}

.swal2-popup .confidence-wrap{
  width:100% !important;
  height:26px !important;
  background:#e5e7eb !important;
  border-radius:999px !important;
  overflow:hidden !important;
  margin:12px 0 8px !important;
  border:2px solid #dbeafe !important;
}

.swal2-popup .confidence-fill{
  height:100% !important;
  background:linear-gradient(90deg,#2563eb,#38bdf8) !important;
  border-radius:999px !important;
  box-shadow:0 0 18px rgba(37,99,235,.55) !important;
}

.swal2-popup .confidence-text{
  font-size:18px !important;
  font-weight:900 !important;
  color:#334155 !important;
  margin-bottom:18px !important;
}