/* ================= TOUCHSCREEN TEST INTERFACE ================= */

.touch-test-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.touchscreen-grid {
  position: relative;
  width: min(90vw, 500px);   /* responsive */
  aspect-ratio: 1 / 1;       /* perfect square */
  margin: 20px auto;         /* center horizontally */
  border-radius: 18px;
  overflow: hidden;
  background: #1f2937;
  border: 4px solid #374151;
  touch-action: none;        /* Prevent scrolling while swiping */
  user-select: none;
  cursor: crosshair;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
}

/* We will generate cells inside the grid dynamically in JS */
.touch-grid-cell {
  position: absolute;
  background: #374151;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.1s ease, box-shadow 0.1s ease;
  box-sizing: border-box;
}

.touch-grid-cell.touched {
  background: #10b981 !important;
  box-shadow: 0 0 10px #10b981 !important;
  border: none !important;
}

.touch-grid-cell.active-diagnostic {
  border: 2px solid #38bdf8 !important;
  background: rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 0 20px #38bdf8 !important;
  z-index: 10;
}

/* ================= TOUCH DOTS ================= */
.touch-point-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #38bdf8;
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px #38bdf8;
  pointer-events: none;
  z-index: 20;
}

/* ================= FULLSCREEN DIAGNOSTIC MODE ================= */
body.fullscreen-diagnostic {
  overflow: hidden !important;
  background: #020617 !important;
}

body.fullscreen-diagnostic .tool-section,
body.fullscreen-diagnostic header,
body.fullscreen-diagnostic footer,
body.fullscreen-diagnostic .breadcrumb-section {
  display: none !important;
}

body.fullscreen-diagnostic .app {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9999;
  background: #020617;
}

body.fullscreen-diagnostic .touch-test-container {
  width: 100vw;
  height: 100vh;
}

body.fullscreen-diagnostic .touchscreen-grid {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ================= GUIDE & FAQ SECTION ================= */
.step-num {
  background: #2563eb;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.guide-steps .d-flex {
  align-items: flex-start;
  gap: 15px;
}
.leading-relaxed {
  line-height: 1.75;
}
.text-muted {
  color: #9ca3af !important;
}
.faq-item {
  background: rgba(31, 41, 55, 0.4);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.faq-item h4 {
  font-weight: 700;
}
