.aiiq-blink {
  animation: aiiq-blink-anim 1.2s infinite;
}
@keyframes aiiq-blink-anim {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(230,126,34,0.6); }
  50% { opacity: 0.85; box-shadow: 0 0 0 8px rgba(230,126,34,0); }
}
.aiiq-trigger {
  background: #e67e22;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.aiiq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.aiiq-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.aiiq-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}
.aiiq-title { margin: 0 0 6px; font-size: 22px; color: #2b2d42; }
.aiiq-subtitle { color: #666; margin-bottom: 20px; }
.aiiq-field { margin-bottom: 14px; }
.aiiq-field label { display: block; font-size: 13px; margin-bottom: 4px; color: #444; font-weight: 600; }
.aiiq-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}
.aiiq-error { color: #d33; font-size: 13px; margin-bottom: 10px; }
.aiiq-btn { padding: 10px 22px; border-radius: 6px; border: none; font-size: 15px; cursor: pointer; font-weight: 600; }
.aiiq-btn-primary { background: #2b2d42; color: #fff; }
.aiiq-btn-secondary { background: #eee; color: #333; }
.aiiq-btn-success { background: #2ecc71; color: #fff; }
.aiiq-quiz-header { display:flex; justify-content: space-between; align-items:center; font-weight:600; color:#2b2d42; margin-bottom:8px; }
.aiiq-progress-bar { background:#eee; height:8px; border-radius:4px; overflow:hidden; margin-bottom:20px; }
.aiiq-progress-fill { background:#e67e22; height:100%; width:0%; transition: width .3s; }
.aiiq-question { font-size:17px; font-weight:600; margin-bottom:16px; color:#222; }
.aiiq-options { display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }
.aiiq-option { display:flex; align-items:center; gap:10px; padding:10px 14px; border:1px solid #e2e2e2; border-radius:8px; cursor:pointer; }
.aiiq-option:hover { border-color:#e67e22; background:#fff8f2; }
.aiiq-quiz-nav { display:flex; justify-content: space-between; gap:10px; }
.aiiq-result-icon { font-size:48px; text-align:center; }
.aiiq-result-title { text-align:center; }
.aiiq-result-score { text-align:center; font-size:32px; font-weight:700; color:#2b2d42; margin: 6px 0; }
.aiiq-result-detail { text-align:center; color:#555; }
.aiiq-result-note { text-align:center; font-size:13px; color:#888; }
#aiiq-close-result-btn { display:block; margin: 16px auto 0; }
.aiiq-loading {
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0.9);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border-radius:12px;
}
.aiiq-spinner {
  width:36px;
  height:36px;
  border:4px solid #eee;
  border-top-color:#e67e22;
  border-radius:50%;
  animation: aiiq-spin 0.8s linear infinite;
  margin-bottom:10px;
}
@keyframes aiiq-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .aiiq-modal { padding: 20px; }
}
