.pattern-lock {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border: 1px solid #dee2e6;
  border-radius: 14px;
  background: #0f172a;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.pattern-lock svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#patternPath,
#patternTail {
  fill: none;
  stroke: #66a3ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#patternTail {
  opacity: 0.75;
}

.pattern-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 12%;
}

.pattern-dot {
  position: relative;
  display: grid;
  place-items: center;
}

.pattern-dot-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6c757d;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 0 0 0 rgba(102, 163, 255, 0);
}

.pattern-dot.active .pattern-dot-circle {
  background: #66a3ff;
  transform: scale(1.12);
  box-shadow: 0 0 0 12px rgba(102, 163, 255, 0.2);
}

.pattern-out {
  min-height: 42px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 0;
}