/* Plugin: claude-oauth — modal step-by-step pour login OAuth Claude manuel. */
.cox-modal-bg {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  animation: cox-in 0.18s ease-out;
}
@keyframes cox-in { from { opacity: 0; } to { opacity: 1; } }

.cox-modal {
  background: rgba(8, 14, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  min-width: 480px; max-width: 600px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 32px rgba(255, 200, 87, 0.12);
  color: #d8e0f0;
  font-family: var(--font-ui, ui-sans-serif, system-ui);
}
.cox-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cox-modal-title { font-size: 14px; font-weight: 500; color: #ffc857; }
.cox-modal-close {
  background: transparent; border: none; color: #8a96aa;
  font-size: 22px; cursor: pointer; line-height: 1;
  width: 28px; height: 28px; border-radius: 4px;
}
.cox-modal-close:hover { background: rgba(255, 255, 255, 0.06); color: #d8e0f0; }

.cox-modal-body { padding: 18px; }
.cox-modal-body p { font-size: 13px; line-height: 1.55; margin: 8px 0; color: #b0bac8; }
.cox-modal-body code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px; border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #ffc857;
}

.cox-step { display: block; }
.cox-step.cox-hidden { display: none; }

.cox-btn {
  display: inline-block; margin-top: 10px; margin-right: 6px;
  padding: 8px 16px;
  border-radius: 4px; border: 1px solid;
  cursor: pointer; font-size: 13px; font-family: inherit;
}
.cox-btn-primary {
  background: rgba(255, 200, 87, 0.18);
  border-color: rgba(255, 200, 87, 0.45);
  color: #fff;
}
.cox-btn-primary:hover { background: rgba(255, 200, 87, 0.28); }
.cox-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d8e0f0;
}
.cox-btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

.cox-code-input {
  display: block; width: 100%; box-sizing: border-box;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d8e0f0;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
}
.cox-code-input:focus { outline: none; border-color: rgba(255, 200, 87, 0.5); }

.cox-spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.10);
  border-top-color: #ffc857;
  border-radius: 50%;
  animation: cox-spin 0.8s linear infinite;
  margin: 14px auto;
}
@keyframes cox-spin { to { transform: rotate(360deg); } }

.cox-status { text-align: center; color: #b0bac8; }
.cox-success { color: #6fb88a; font-weight: 500; }
.cox-success-details { font-size: 11px; color: #7a8694; font-family: ui-monospace, monospace; }
.cox-error-msg {
  background: rgba(255, 117, 133, 0.10);
  border: 1px solid rgba(255, 117, 133, 0.3);
  color: #ff7585;
  padding: 10px 12px; border-radius: 4px;
  font-size: 12px; line-height: 1.5;
  font-family: ui-monospace, monospace;
}
