/* ============================================================
   Credit-Card Calibration Modal (Rào cản #1)
   ============================================================ */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.cc-modal-box {
  background: #fff;
  border-radius: 12px;
  width: 600px;
  max-width: 95vw;
  max-height: 95vh;
  overflow: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  font-family: var(--font-family, 'Segoe UI', Arial, sans-serif);
}
.cc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}
.cc-modal-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e3a5f;
}
.cc-modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
}
.cc-modal-body {
  padding: 18px;
}
.cc-instruction {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 16px;
}
.cc-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #f4f6f9;
  border: 1px dashed #c4cdd8;
  border-radius: 8px;
  padding: 16px;
  overflow: visible;
}
.cc-card {
  background: linear-gradient(135deg, #2c3e50, #4a90d9);
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
}
.cc-card-label {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
}
.cc-slider {
  width: 100%;
  margin-top: 16px;
}
.cc-readout {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #27ae60;
}
.cc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #eee;
}
.cc-btn-cancel,
.cc-btn-confirm {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
}
.cc-btn-cancel {
  background: #e0e0e0;
  color: #333;
}
.cc-btn-confirm {
  background: #27ae60;
  color: #fff;
  font-weight: 600;
}
