* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #050b18;
  color: #f9fafb;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: #0b1220;
  border-radius: 20px;
  padding: 28px 32px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 18px;
}

.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.button-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button-bar .btn {
  margin-right: 10px;
  font-weight: 500;
}

.btn {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-green {
  background: #16a34a;
  color: #ecfdf3;
}

.btn-blue {
  background: #2563eb;
  color: #eff6ff;
}

.btn-red {
  background: #dc2626;
  color: #fee2e2;
}

.btn-warning {
  background: #f59e0b;
  color: #1f2937;
}

.btn-warning:hover:not(:disabled) {
  background: #d97706;
}

.btn-success {
  background: #16a34a;
  color: #ecfdf3;
}

.btn-success:hover:not(:disabled) {
  background: #15803d;
}

.btn-danger {
  background: #dc2626;
  color: #fee2e2;
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-text {
  font-size: 14px;
  color: #9ca3af;
}

.card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.status-row {
  margin-bottom: 18px;
}

.specialty-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.specialty-selector label {
  font-size: 14px;
  color: #9ca3af;
}

.specialty-selector select {
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 8px;
  color: #e5e7eb;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.specialty-selector select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px #4f46e5;
}

textarea#output,
textarea#reportOutput {
  width: 100%;
  min-height: 280px;
  background: #020617;
  border-radius: 14px;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  font-size: 14px;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", monospace;
}

textarea#output:focus,
textarea#reportOutput:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px #4f46e5;
}

.card h2 {
  font-size: 18px;
  margin-bottom: 8px;
  margin-top: 24px;
}

.card h2:first-of-type {
  margin-top: 0;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  margin-top: 24px;
  color: #d1d5db;
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-bottom: 18px;
}

.btn-secondary {
  background: #475569;
  color: #f1f5f9;
}

.btn-secondary:hover:not(:disabled) {
  background: #64748b;
}

.btn-purple {
  background: #7c3aed;
  color: #f3e8ff;
}

.btn-purple:hover:not(:disabled) {
  background: #8b5cf6;
}

.btn-primary {
  background: #0ea5e9;
  color: #f0f9ff;
  font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
  background: #0284c7;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.signature-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #1f2937;
}

.signature-section textarea {
  width: 100%;
  min-height: 80px;
  background: #020617;
  border-radius: 10px;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  font-size: 14px;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  margin-bottom: 10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.signature-section textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px #4f46e5;
}

.signature-section .btn {
  margin-right: 10px;
}

.signature-status {
  font-size: 13px;
  color: #10b981;
  margin-left: 8px;
}

/* Premium button container */
.premium-btn {
  position: relative;
  padding-right: 40px;
}

/* Premium badge basic look */
.premium-badge {
  background-color: gold;
  color: black;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  margin-left: 6px;
  font-weight: 600;
  animation: premiumGlow 1.8s infinite ease-in-out;
}

/* Glowing animation */
@keyframes premiumGlow {
  0%   { box-shadow: 0 0 4px gold;       }
  50%  { box-shadow: 0 0 14px gold;      }
  100% { box-shadow: 0 0 4px gold;       }
}