/* Chatvora quota modal — matches dark theme shell */
.sr-quota-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.sr-quota-modal[hidden] {
  display: none !important;
}

/* Block composer while quota modal is open (anonymous second message, etc.) */
body.sr-quota-modal-open #sr-chat-input,
body.sr-quota-modal-open #sr-chat-submit {
  pointer-events: none;
  opacity: 0.55;
}

.sr-quota-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.sr-quota-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 100%;
  padding: 32px;
  border-radius: 16px;
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.sr-quota-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.sr-quota-modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sr-quota-modal__panel h3 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  padding-right: 2rem;
  font-weight: 600;
  color: #fff;
}

.sr-quota-modal__panel p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  font-size: 0.95rem;
}

.sr-quota-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sr-quota-modal__actions a,
.sr-quota-modal__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.sr-quota-modal__actions a:hover,
.sr-quota-modal__actions button:hover {
  opacity: 0.9;
}

.sr-quota-modal__btn-primary {
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  color: #fff !important;
}

.sr-quota-modal__btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sr-quota-modal__btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.sr-quota-modal__btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}
