#aiThemeModal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.ai-theme-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

.ai-theme-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 520px);
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.96);
  border-radius: 32px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
}

.ai-theme-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
}

.ai-theme-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f9aa6, #f6b35f);
  color: white;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 12px;
}

.ai-theme-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.ai-theme-header p {
  margin: 0 0 18px;
  color: #60717c;
  font-weight: 600;
}

#aiThemePrompt {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 22px;
  padding: 16px;
  font-size: 15px;
  outline: none;
}

.ai-theme-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.ai-theme-actions button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 900;
  cursor: pointer;
}

.ai-theme-actions button:first-child {
  background: #eefafa;
  color: #0f9aa6;
}

.ai-theme-actions button:last-child {
  background: linear-gradient(135deg, #0f9aa6, #f6b35f);
  color: white;
}

#aiThemeStatus {
  margin-top: 14px;
  font-weight: 800;
  color: #0f766e;
}