/* ==========================================================================
   SIMSIZ ULANISH NUQTASI (WAP) — INFORMATIKA FANI
   Zamonaviy Interaktiv Ta'lim Platformasi
   Muallif: Sanjar O'ktamov
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Core Color Palette */
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #f0f9ff;
  --primary-border: #bae6fd;
  --primary-glow: rgba(2, 132, 199, 0.16);
  
  --accent: #6366f1;
  --accent-light: #eef2ff;
  --accent-border: #c7d2fe;
  
  --success: #10b981;
  --success-dark: #047857;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  
  --warning: #f59e0b;
  --warning-dark: #b45309;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  
  --danger: #ef4444;
  --danger-dark: #b91c1c;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  
  --text-main: #1e1b4b;
  --text-muted: #475569;
  --text-soft: #94a3b8;
  
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 30px -8px rgba(2, 132, 199, 0.14);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #f8fafc;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ==========================================================================
   AMBIENT ANIMATED MESH GRADIENT BACKGROUND
   ========================================================================== */
.ambient-mesh-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: #f8fafc;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.55;
  will-change: transform;
}

/* 1. Sky Cyan Orb */
.orb-cyan {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
  top: -120px;
  left: -100px;
  animation: floatOrb1 16s ease-in-out infinite alternate;
}

/* 2. Royal Purple / Violet Orb */
.orb-purple {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
  top: 10%;
  right: -140px;
  animation: floatOrb2 20s ease-in-out infinite alternate;
}

/* 3. Emerald Mint Orb */
.orb-emerald {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #34d399 0%, rgba(52, 211, 153, 0) 70%);
  bottom: 5%;
  left: 5%;
  animation: floatOrb3 18s ease-in-out infinite alternate;
}

/* 4. Warm Amber / Sun Gold Orb */
.orb-amber {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #fbbf24 0%, rgba(251, 191, 36, 0) 70%);
  bottom: -100px;
  right: 15%;
  animation: floatOrb4 22s ease-in-out infinite alternate;
}

/* 5. Electric Pink Orb */
.orb-pink {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #f472b6 0%, rgba(244, 114, 182, 0) 70%);
  top: 45%;
  left: 35%;
  animation: floatOrb5 25s ease-in-out infinite alternate;
}

/* Subtle modern wireless dots overlay */
.ambient-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(2, 132, 199, 0.08) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  opacity: 0.6;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.15); }
  100% { transform: translate(40px, 140px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 90px) scale(1.18); }
  100% { transform: translate(-60px, -40px) scale(0.92); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(90px, -90px) scale(1.12); }
  100% { transform: translate(-30px, -50px) scale(0.98); }
}

@keyframes floatOrb4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -80px) scale(1.2); }
  100% { transform: translate(70px, -40px) scale(0.9); }
}

@keyframes floatOrb5 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(-60px, 70px) scale(1.25); }
  100% { transform: translate(80px, -50px) scale(1); }
}

/* Confetti canvas */
#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Header bar */
header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--card-border);
  padding: 12px 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-title h1 {
  font-size: 19px;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: -0.4px;
}

.brand-title p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease-spring);
}

.badge-timer {
  background: var(--warning-light);
  color: var(--warning-dark);
  border: 1px solid var(--warning-border);
}

.badge-score {
  background: var(--success-light);
  color: var(--success-dark);
  border: 1px solid var(--success-border);
}

.badge-score.bounce {
  transform: scale(1.15);
}

.btn-header-tool {
  background: white;
  border: 1.5px solid var(--card-border);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease-spring);
}

.btn-header-tool:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-main);
  transform: translateY(-1px);
}

/* Stepper Navigation bar */
.stepper-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 8px 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1.5px solid var(--card-border);
  scrollbar-width: none;
}

.stepper-nav::-webkit-scrollbar {
  display: none;
}

.step-tab {
  background: white;
  border: 1.5px solid var(--card-border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s var(--ease-spring);
}

.step-tab:hover {
  border-color: #cbd5e1;
  color: var(--text-main);
  background: #f8fafc;
}

.step-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: translateY(-1px);
}

.step-tab.completed {
  border-color: var(--success-border);
  background: var(--success-light);
  color: var(--success-dark);
}

.step-tab-num {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-tab.active .step-tab-num {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Main Container */
main {
  flex: 1;
  max-width: 1040px;
  width: 100%;
  margin: 24px auto 48px;
  padding: 0 20px;
}

.stage-card {
  display: none;
  animation: cardFadeIn 0.3s var(--ease-spring);
}

.stage-card.active {
  display: block;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fun-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 32px -4px rgba(2, 132, 199, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
  position: relative;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid #f1f5f9;
  gap: 16px;
}

.header-bar-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-step-badge {
  font-size: 15px;
  font-weight: 800;
  background: #f0f9ff;
  color: #0284c7;
  border: 1.5px solid #bae6fd;
  border-radius: 14px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-text h2 {
  font-size: 21px;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: -0.3px;
}

.header-text p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.pill-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pill-blue { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }
.pill-green { background: var(--success-light); color: var(--success-dark); border: 1px solid var(--success-border); }
.pill-yellow { background: var(--warning-light); color: var(--warning-dark); border: 1px solid var(--warning-border); }
.pill-purple { background: var(--accent-light); color: #4338ca; border: 1px solid var(--accent-border); }

/* Pedagogical Callout / Bridge Card */
.pedagogy-callout {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-top: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.pedagogy-callout-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pedagogy-callout-body h4 {
  font-size: 15px;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 4px;
}

.pedagogy-callout-body p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sleek Multiple-Choice Quiz Cards */
.question-block {
  margin-bottom: 24px;
  background: #f8fafc;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.question-prompt {
  font-size: 16px;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 16px;
  line-height: 1.45;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.q-badge {
  background: #0284c7;
  color: white;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px) {
  .quiz-options-grid {
    grid-template-columns: 1fr;
  }
}

.quiz-option-btn {
  background: white;
  border: 1.5px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 0.2s var(--ease-spring);
  user-select: none;
}

.quiz-option-btn:hover:not(.disabled) {
  border-color: #0284c7;
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.quiz-option-btn:active:not(.disabled) {
  transform: translateY(0);
}

.opt-letter {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-spring);
}

.quiz-option-btn:hover .opt-letter {
  background: #0284c7;
  color: white;
}

.quiz-option-btn.disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.quiz-option-btn.is-correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.quiz-option-btn.is-correct .opt-letter {
  background: #10b981 !important;
  color: white !important;
}

.quiz-option-btn.is-wrong {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

.quiz-option-btn.is-wrong .opt-letter {
  background: #ef4444 !important;
  color: white !important;
}

.question-explanation {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  display: none;
  line-height: 1.45;
}

.question-explanation.show {
  display: block;
}

.question-explanation.correct {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.question-explanation.wrong {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Audio & Video Cards */
.media-wrapper-card {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 28px -6px rgba(2, 132, 199, 0.28);
  color: white;
  margin-bottom: 22px;
}

.media-player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #e0f2fe;
  font-size: 15px;
  font-weight: 800;
}

video {
  width: 100%;
  border-radius: 14px;
  background: #0284c7;
  max-height: 440px;
  display: block;
}

audio {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  outline: none;
}

/* Interactive Dialogue Conversation */
.interactive-dialogue {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.dialogue-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: white;
  border: 1.5px solid var(--card-border);
  transition: all 0.25s var(--ease-spring);
}

.dialogue-card.jamshid-card {
  flex-direction: row-reverse;
  background: #f0f9ff;
  border-color: #bae6fd;
}

.dialogue-card.active-speaker {
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
  transform: translateY(-1px);
}

.speaker-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #475569;
  flex-shrink: 0;
}

.dialogue-card.jamshid-card .speaker-avatar {
  background: #0284c7;
  color: white;
}

.dialogue-body {
  flex: 1;
}

.speaker-name-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.speaker-name-bar strong {
  font-size: 14px;
  font-weight: 800;
  color: #1e1b4b;
}

.speaker-timestamp {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.dialogue-text {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
}

/* Real-time wave equalizer */
.speech-wave-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 14px;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.dialogue-card.active-speaker .speech-wave-bars {
  opacity: 1;
}

.wave-bar {
  width: 3px;
  height: 100%;
  background: #0284c7;
  border-radius: 2px;
  animation: barBounce 1s infinite ease-in-out;
}

.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes barBounce {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* 3-Pillar Concept Boxes with Real Photos */
.concept-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.concept-box {
  background: white;
  border-radius: 18px;
  padding: 18px;
  border: 1.5px solid var(--card-border);
  transition: all 0.25s var(--ease-spring);
  display: flex;
  flex-direction: column;
}

.concept-box:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.device-img-frame {
  width: 100%;
  height: 190px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f0f9ff;
  border: 2px solid #bae6fd;
  position: relative;
  cursor: pointer;
}

.device-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.device-img-frame:hover img {
  transform: scale(1.05);
}

.device-badge-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(2, 132, 199, 0.9);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.concept-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 6px;
}

.concept-box p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 75, 0.65);
  backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  background: white;
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: cardFadeIn 0.25s var(--ease-spring);
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 360px;
  background: #f0f9ff;
  overflow: hidden;
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-info {
  padding: 20px 24px;
}

.lightbox-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 6px;
}

.lightbox-info p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-close-lightbox {
  background: #f1f5f9;
  border: 1.5px solid var(--card-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin-top: 14px;
  float: right;
  transition: all 0.2s;
}

.btn-close-lightbox:hover {
  background: #e2e8f0;
}

/* Live Frequency Wave Visualizer Canvas */
.freq-compare-panel {
  background: #f8fafc;
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 22px;
  margin-top: 24px;
}

.freq-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.freq-buttons-wrap {
  display: flex;
  gap: 10px;
}

.freq-btn {
  padding: 9px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--card-border);
  background: white;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  color: #475569;
}

.freq-btn.active {
  background: #0284c7;
  color: white;
  border-color: #0284c7;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.freq-canvas-wrapper {
  background: linear-gradient(135deg, #0284c7 0%, #4338ca 100%);
  border: 2px solid #7dd3fc;
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

#freqWaveCanvas {
  width: 100%;
  height: 110px;
  display: block;
}

.freq-canvas-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  font-family: monospace;
}

.freq-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .freq-specs-grid {
    grid-template-columns: 1fr;
  }
}

.freq-spec-item {
  background: white;
  border: 1.5px solid var(--card-border);
  border-radius: 14px;
  padding: 14px;
}

.freq-spec-item h5 {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.freq-spec-item p {
  font-size: 14px;
  font-weight: 700;
  color: #1e1b4b;
}

/* Card Sorting / Match Activity */
.match-game-board {
  background: #f8fafc;
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 22px;
  margin-top: 18px;
}

.match-targets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

@media (max-width: 720px) {
  .match-targets { grid-template-columns: 1fr; }
}

.match-target-zone {
  border-radius: 18px;
  padding: 18px;
  border: 2px dashed;
  min-height: 150px;
  background: white;
  transition: all 0.2s var(--ease-spring);
}

.zone-router {
  border-color: #f59e0b;
  background: #fffbeb;
}

.zone-ap {
  border-color: #0284c7;
  background: #f0f9ff;
}

.zone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.zone-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.compare-device-photo {
  width: 100%;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 2px solid #bae6fd;
  background: #f0f9ff;
  cursor: pointer;
}

.compare-device-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.compare-device-photo:hover img {
  transform: scale(1.04);
}

.cards-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.draggable-item {
  background: white;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.draggable-item:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: var(--shadow-sm);
}

.draggable-item.assigned-router {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.draggable-item.assigned-ap {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

/* Smartphone Hotspot Simulator 2.0 */
.hotspot-simulator-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
  margin: 20px 0;
}

@media (max-width: 860px) {
  .hotspot-simulator-grid {
    grid-template-columns: 1fr;
  }
}

.phone-mockup {
  background: linear-gradient(145deg, #0284c7 0%, #6366f1 100%);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.35);
  border: 4px solid #bae6fd;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.phone-screen {
  background: #ffffff;
  border-radius: 32px;
  padding: 18px 16px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 18px;
  background: #e0e7ff;
  border-radius: 0 0 14px 14px;
  margin: -18px auto 14px;
}

.phone-app-header {
  font-size: 15px;
  font-weight: 800;
  color: #0369a1;
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-setting-row {
  background: #f8fafc;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setting-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.switch-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.switch-toggle input { opacity: 0; width: 0; height: 0; }

.switch-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 30px;
  transition: 0.25s var(--ease-spring);
}

.switch-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.25s var(--ease-spring);
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.switch-toggle input:checked + .switch-slider {
  background: #10b981;
}

.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(22px);
}

.phone-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
  display: block;
}

.phone-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.phone-input:focus {
  border-color: #0284c7;
}

.pwd-strength-bar {
  height: 5px;
  border-radius: 3px;
  background: #e2e8f0;
  margin-bottom: 6px;
  overflow: hidden;
}

.pwd-strength-fill {
  height: 100%;
  width: 0%;
  background: #ef4444;
  transition: width 0.3s, background-color 0.3s;
}

/* Radar Wave Emitter Visualizer */
.radar-emitter-wrap {
  display: none;
  position: relative;
  height: 120px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(circle, #e0f2fe 0%, #f0f9ff 70%);
  border: 1.5px solid #bae6fd;
  margin-top: 14px;
}

.radar-emitter-wrap.active {
  display: flex;
  flex-direction: column;
}

.radar-circle {
  position: absolute;
  border: 1.5px solid rgba(2, 132, 199, 0.4);
  border-radius: 50%;
  animation: radarRipple 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
}

.rc-1 { width: 35px; height: 35px; animation-delay: 0s; }
.rc-2 { width: 70px; height: 70px; animation-delay: 0.7s; }
.rc-3 { width: 105px; height: 105px; animation-delay: 1.4s; }

@keyframes radarRipple {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.radar-center-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0284c7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.radar-status-text {
  font-size: 11px;
  font-weight: 800;
  color: #0369a1;
  margin-top: 6px;
  z-index: 2;
}

/* Network Monitor table & clients */
.network-monitor {
  background: #f8fafc;
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 22px;
}

.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.monitor-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1e1b4b;
}

.clients-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.client-row-item {
  background: white;
  border: 1.5px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0.45;
  transition: all 0.25s var(--ease-spring);
}

.client-row-item.connected {
  opacity: 1;
  border-color: #10b981;
  background: #f0fdf4;
  transform: translateX(4px);
}

.client-row-item.intruder {
  border-color: #ef4444;
  background: #fef2f2;
}

.client-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-device-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #475569;
}

.client-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e1b4b;
}

.client-ip-sub {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  font-family: monospace;
}

.client-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #64748b;
}

.client-row-item.connected .client-status-badge {
  background: #d1fae5;
  color: #047857;
}

.btn-block-client {
  background: #ef4444;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s;
}

.btn-block-client:hover {
  background: #dc2626;
}

/* Security notice banner */
.security-alert-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.security-alert-box h4 {
  font-size: 14px;
  font-weight: 800;
  color: #991b1b;
}

.security-alert-box p {
  font-size: 13px;
  font-weight: 600;
  color: #7f1d1d;
  margin-top: 2px;
  line-height: 1.45;
}

/* Certificate & Final Stage */
.certificate-preview-box {
  background: #ffffff;
  border: 3px double #0284c7;
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 620px;
  margin: 24px auto;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.cert-emblem {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.cert-title {
  font-size: 24px;
  font-weight: 800;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cert-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.cert-student-name {
  font-size: 26px;
  font-weight: 800;
  color: #1e1b4b;
  border-bottom: 2px dashed #94a3b8;
  display: inline-block;
  padding: 4px 24px;
  margin: 16px 0;
  min-width: 240px;
}

.cert-desc {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 18px;
}

.cert-stamp {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.cert-stamp-item {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

/* Footer Bottom Actions */
footer {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--card-border);
  padding: 14px 28px;
  position: sticky;
  bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
}

.action-btn {
  padding: 11px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s var(--ease-spring);
  user-select: none;
}

.btn-prev {
  background: white;
  color: #475569;
  border: 1.5px solid var(--card-border);
}

.btn-prev:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-next {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-next:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-next:active {
  transform: translateY(0);
}

.step-indicator-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================================
   STAGE 0: VIZUAL MAVZU VA QISQA REJA (RANG-BARANG VA IXCHAM)
   ========================================================================== */

.hero-topic-banner {
  background: linear-gradient(135deg, #312e81 0%, #1e40af 45%, #0284c7 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: white;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 32px -8px rgba(30, 64, 175, 0.35);
}

.hero-topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-topic-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: #ffffff;
}

.hero-topic-subtitle {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #e0f2fe;
  max-width: 680px;
  margin-bottom: 20px;
}

/* Rang-barang Axborot Zanjiri */
.network-flow-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
}

.flow-node {
  border-radius: 16px;
  padding: 12px 14px;
  text-align: center;
  min-width: 125px;
  flex: 1;
  transition: all 0.25s var(--ease-spring);
  backdrop-filter: blur(6px);
}

.flow-node-isp {
  background: rgba(249, 115, 22, 0.2);
  border: 1.5px solid #fb923c;
}

.flow-node-router {
  background: rgba(14, 165, 233, 0.2);
  border: 1.5px solid #38bdf8;
}

.flow-node-wap {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.4), rgba(192, 132, 252, 0.3));
  border: 2px solid #c084fc;
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.45);
  transform: scale(1.04);
}

.flow-node-clients {
  background: rgba(16, 185, 129, 0.2);
  border: 1.5px solid #4ade80;
}

.node-icon-box {
  width: 38px;
  height: 38px;
  margin: 0 auto 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.node-title {
  font-size: 13px;
  font-weight: 800;
  color: white;
  margin-bottom: 2px;
}

.node-desc {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
}

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
}

.flow-line {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.flow-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: #38bdf8;
  animation: flowPacket 1.8s infinite linear;
}

.flow-connector.wireless-connector .flow-line::after {
  background: #c084fc;
  animation-duration: 1.2s;
}

@keyframes flowPacket {
  0% { left: -60%; }
  100% { left: 120%; }
}

.connector-tag {
  font-size: 9px;
  font-weight: 800;
  color: #bae6fd;
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
}

/* Ixcham va Rang-barang Dars Rejasi */
.mini-roadmap-box {
  background: white;
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}

.mini-roadmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mini-roadmap-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1e1b4b;
}

.mini-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.mini-step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.mini-step-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.mini-step-pill strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.mini-step-pill small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.step-num-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.s-orange { background: #fff7ed; border: 1.5px solid #fed7aa; color: #9a3412; }
.s-blue { background: #f0f9ff; border: 1.5px solid #bae6fd; color: #0369a1; }
.s-teal { background: #f0fdfa; border: 1.5px solid #99f6e4; color: #0f766e; }
.s-amber { background: #fffbeb; border: 1.5px solid #fde68a; color: #b45309; }
.s-pink { background: #fdf2f8; border: 1.5px solid #fbcfe8; color: #9d174d; }
.s-purple { background: #faf5ff; border: 1.5px solid #e9d5ff; color: #6b21a8; }

.btn-start-hero-big {
  padding: 13px 34px;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.2s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-start-hero-big:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Rang-barang Viktorina tugmalari */
.quiz-options-grid .quiz-option-btn:nth-child(1) .opt-letter {
  background: #e0f2fe;
  color: #0284c7;
  border: 1.5px solid #bae6fd;
}

.quiz-options-grid .quiz-option-btn:nth-child(2) .opt-letter {
  background: #d1fae5;
  color: #059669;
  border: 1.5px solid #a7f3d0;
}

.quiz-options-grid .quiz-option-btn:nth-child(3) .opt-letter {
  background: #fef3c7;
  color: #d97706;
  border: 1.5px solid #fde68a;
}

.quiz-options-grid .quiz-option-btn:nth-child(4) .opt-letter {
  background: #ede9fe;
  color: #7c3aed;
  border: 1.5px solid #ddd6fe;
}

/* Print layout for certificate */
@media print {
  body {
    background: white !important;
  }
  header, footer, .stepper-nav, .action-btn, #confettiCanvas, .exit-ticket-box {
    display: none !important;
  }
  main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .stage-card:not(#stage-7) {
    display: none !important;
  }
  .stage-card#stage-7 {
    display: block !important;
  }
  .fun-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .certificate-preview-box {
    border: 3px double #0284c7 !important;
    box-shadow: none !important;
    margin: 40px auto !important;
  }
}

/* Responsive tweaks */
@media (max-width: 640px) {
  header { padding: 10px 16px; }
  .brand-title h1 { font-size: 16px; }
  .brand-title p { font-size: 11px; }
  .header-controls .badge-timer { display: none; }
  .fun-card { padding: 20px 16px; }
  .card-header-bar { flex-direction: column; align-items: flex-start; }
  footer { padding: 10px 16px; }
  .action-btn { padding: 9px 16px; font-size: 13px; }
}

/* ==========================================================================
   SIMSIZ ALOQA DUNYOSI (ECOSYSTEM) & SERTIFIKAT YUKLAB OLISH
   ========================================================================== */
.wireless-ecosystem-panel {
  background: #ffffff;
  border: 1.5px solid var(--primary-border);
  border-radius: 20px;
  padding: 22px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.ecosystem-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.ecosystem-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1e1b4b;
}

.ecosystem-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.wireless-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .wireless-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .wireless-tech-grid {
    grid-template-columns: 1fr;
  }
}

.wireless-tech-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease-spring);
  position: relative;
}

.wireless-tech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tech-bluetooth {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}
.tech-bluetooth:hover {
  border-color: #818cf8;
}

.tech-wifi {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}
.tech-wifi:hover {
  border-color: #38bdf8;
}

.highlighted-tech {
  box-shadow: 0 0 0 2px #0284c7, var(--shadow-sm);
}

.tech-cellular {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}
.tech-cellular:hover {
  border-color: #f97316;
}

.tech-gps {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}
.tech-gps:hover {
  border-color: #10b981;
}

.tech-icon-circle {
  font-size: 28px;
  margin-bottom: 10px;
}

.tech-range-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.tech-bluetooth .tech-range-badge {
  background: #ede9fe;
  color: #6366f1;
}
.tech-wifi .tech-range-badge {
  background: #e0f2fe;
  color: #0284c7;
}
.tech-cellular .tech-range-badge {
  background: #ffedd5;
  color: #ea580c;
}
.tech-gps .tech-range-badge {
  background: #d1fae5;
  color: #059669;
}

.tech-card-body h4 {
  font-size: 14px;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 6px;
}

.tech-card-body p {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  line-height: 1.45;
}

/* No-Printer Info Callout */
.no-printer-note {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 600px;
  margin: 22px auto 16px;
  text-align: left;
}

.no-printer-note .note-icon {
  font-size: 24px;
  line-height: 1;
}

.no-printer-note strong {
  font-size: 14px;
  font-weight: 800;
  color: #166534;
  display: block;
  margin-bottom: 4px;
}

.no-printer-note p {
  font-size: 13px;
  font-weight: 600;
  color: #14532d;
  line-height: 1.5;
}

.cert-actions-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-download-cert {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
}

.btn-download-cert:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-show-board {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: white;
  border: none;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
}

.btn-show-board:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.btn-restart {
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
}

.btn-restart:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Board Showcase Modal */
.board-cert-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 75, 0.75);
  backdrop-filter: blur(10px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.board-cert-modal.active {
  display: flex;
}

.board-cert-content {
  background: white;
  border-radius: 26px;
  padding: 28px;
  max-width: 640px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: cardFadeIn 0.25s var(--ease-spring);
  text-align: center;
  position: relative;
}

.btn-close-board-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-weight: 800;
}

.btn-close-board-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
}
