/* PeptiGuide Premium Stylesheet */
/* Author: Dr. Caleb Sterling / Antigravity */

:root {
  --bg-primary: #080c16;
  --bg-secondary: #0f1626;
  --bg-tertiary: #17223b;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --gradient-primary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-success: #10b981;
  --color-info: #3b82f6;

  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  
  --font-titles: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-glow: 0 0 20px rgba(79, 172, 254, 0.15);
  --border-glass: 1px solid rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(15, 22, 38, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Glow Effects */
.ambient-glow-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.ambient-glow-2 {
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Header style override */
.peptiguide-header {
  border-bottom: var(--border-glass);
  background: rgba(8, 12, 22, 0.8);
  backdrop-filter: blur(12px);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-link {
  text-decoration: none;
  font-family: var(--font-titles);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-core {
  color: #fff;
}

.logo-peps {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-back-btn {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.header-back-btn:hover {
  color: var(--accent-cyan);
}

/* App Layout */
.app-container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Progress Stepper */
.stepper-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stepper-line {
  position: absolute;
  top: 20px;
  left: 5%;
  right: 5%;
  height: 2px;
  background-color: var(--bg-tertiary);
  z-index: 1;
}

.stepper-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 2px solid var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.step-node.active .step-circle {
  background-color: var(--bg-primary);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.step-node.completed .step-circle {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--bg-primary);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.step-node.active .step-label {
  color: var(--text-primary);
}

.step-node.completed .step-label {
  color: var(--accent-blue);
}

/* Card base containing screens */
.app-screen {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-glow);
  display: none;
  animation: fadeIn 0.4s ease;
}

.app-screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

h2.screen-title {
  font-family: var(--font-titles);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p.screen-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* Forms & UI Elements */
.compliance-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-left: 4px solid var(--accent-cyan);
}

.compliance-box h4 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.compliance-box p {
  margin-bottom: 1rem;
}

.custom-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
  margin-bottom: 2.5rem;
}

.custom-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 22px;
  height: 22px;
  background-color: rgba(23, 34, 59, 0.6);
  border: 2px solid rgba(0, 242, 254, 0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
}

.custom-checkbox-container:hover input ~ .checkmark {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.custom-checkbox-container input:checked ~ .checkmark {
  background: var(--gradient-primary);
  border-color: transparent;
}

.checkmark::after {
  content: "✓";
  color: #080c16;
  font-weight: 900;
  font-size: 0.95rem;
  display: none;
}

.custom-checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

/* Button UI */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  font-family: var(--font-titles);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-primary:disabled {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-titles);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.actions-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  border-top: var(--border-glass);
  padding-top: 1.5rem;
}

/* Objectives Screen Grid */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.objective-card {
  background: var(--bg-secondary);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.objective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.objective-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(15, 22, 38, 0.8);
  box-shadow: var(--shadow-glow);
}

.objective-card.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.04);
}

.objective-card.selected::before {
  opacity: 1;
}

.objective-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background: rgba(79, 172, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.objective-card.selected .objective-icon-wrapper {
  background: var(--gradient-primary);
  color: var(--bg-primary);
}

.objective-card h3 {
  font-family: var(--font-titles);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.objective-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Screening Questions (Anamnese) Style */
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.question-item {
  background: rgba(255, 255, 255, 0.01);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transition: all 0.3s ease;
}

.question-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.question-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.question-label {
  font-weight: 600;
  font-size: 1.05rem;
}

.question-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.radio-group {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.35rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--bg-tertiary);
  flex-shrink: 0;
}

.radio-option {
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-btn-label {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.radio-option input:checked + .radio-btn-label {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: 0 2px 6px rgba(0, 242, 254, 0.25);
}

/* Exam input styles */
.exam-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.exam-input-card {
  background: var(--bg-secondary);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exam-input-card label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.exam-input-field {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s ease;
}

.exam-input-field:focus-within {
  border-color: var(--accent-cyan);
}

.exam-input-field input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  outline: none;
  font-family: var(--font-body);
}

.exam-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* Lifestyle and Variables Checkboxes */
.lifestyle-section {
  background: rgba(255,255,255,0.01);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.lifestyle-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-blue);
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Results Screen Layout */
.results-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
}

.results-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.clinical-badge {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.clinical-badge.safe {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
}

.clinical-badge-title {
  font-family: var(--font-titles);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clinical-badge-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.peptide-list-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.peptide-tab-btn {
  background: var(--bg-secondary);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-titles);
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.peptide-tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.peptide-tab-btn.active {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
}

.peptide-details-pane {
  background: rgba(255, 255, 255, 0.01);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
}

/* Alert messages from Dr Caleb */
.caleb-alert-banner {
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.caleb-alert-banner.block {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-left: 5px solid var(--color-danger);
  color: #fca5a5;
}

.caleb-alert-banner.warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-left: 5px solid var(--color-warning);
  color: #fde047;
}

.caleb-alert-banner.info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-left: 5px solid var(--color-info);
  color: #93c5fd;
}

.caleb-alert-avatar {
  font-size: 1.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caleb-alert-text h5 {
  font-family: var(--font-titles);
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  color: inherit;
}

.caleb-alert-text p {
  color: var(--text-primary);
  opacity: 0.9;
  line-height: 1.5;
}

/* Tab details design */
.details-section {
  margin-bottom: 1.75rem;
}

.details-section h4 {
  font-family: var(--font-titles);
  font-size: 1.15rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.evidence-tabs {
  display: flex;
  border-bottom: 1px solid var(--bg-tertiary);
  margin-bottom: 1rem;
  gap: 1rem;
}

.evidence-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.evidence-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-blue);
}

.evidence-pane {
  display: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.evidence-pane.active {
  display: block;
}

/* Calculator Grid styling */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.calc-group select,
.calc-group input[type="number"] {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.calc-group select:focus,
.calc-group input[type="number"]:focus {
  border-color: var(--accent-cyan);
}

.calc-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
  margin-top: 0.5rem;
}

.calc-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  transition: transform 0.1s ease;
}

.calc-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.calc-slider-val {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Visual Syringe rendering */
.calc-visualizer {
  background: var(--bg-secondary);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: sticky;
  top: 110px;
}

.visual-result-badge {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 1.25rem 2rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 2.5rem;
  width: 100%;
}

.visual-result-val {
  font-family: var(--font-titles);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.2;
}

.visual-result-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
  font-weight: 600;
}

.syringe-svg-container {
  width: 100%;
  max-width: 160px;
  height: 280px;
  position: relative;
}

.syringe-svg-container svg {
  width: 100%;
  height: 100%;
}

/* Reconstitution steps styling */
.reconstitute-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recon-step-card {
  background: var(--bg-secondary);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.recon-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recon-step-content h4 {
  font-family: var(--font-titles);
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.recon-step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.recon-step-content ul {
  margin-left: 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Print/Report optimization stylesheet */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  
  .peptiguide-header,
  .stepper-container,
  .actions-footer,
  .btn-primary,
  .btn-secondary,
  .ambient-glow-1,
  .ambient-glow-2 {
    display: none !important;
  }
  
  .app-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .app-screen {
    display: none !important;
  }
  
  #screenReport {
    display: block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  
  h2.screen-title {
    -webkit-text-fill-color: initial !important;
    color: #000 !important;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    font-size: 24pt !important;
  }
  
  .caleb-alert-banner {
    border: 1px solid #000 !important;
    background: #f9f9f9 !important;
    color: #000 !important;
    page-break-inside: avoid;
  }
  
  .report-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 20px !important;
  }
  
  .report-table th, 
  .report-table td {
    border: 1px solid #ddd !important;
    padding: 10px !important;
    text-align: left !important;
    font-size: 10pt !important;
  }
  
  .report-table th {
    background-color: #f2f2f2 !important;
    color: #000 !important;
  }
}

/* Extra elements for non-print report preview */
.report-paper {
  background: #fff;
  color: #111;
  border-radius: var(--border-radius-sm);
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-family: 'Times New Roman', Times, serif;
}

.report-header-preview {
  text-align: center;
  border-bottom: 2px solid #111;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.report-header-preview h3 {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  font-size: 0.95rem;
}

.report-meta-item strong {
  color: #333;
}

.report-section {
  margin-bottom: 2rem;
}

.report-section h4 {
  font-size: 1.25rem;
  border-bottom: 1px solid #222;
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.report-section p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.report-block {
  border-left: 3px solid #666;
  padding-left: 1rem;
  margin-left: 0.5rem;
  font-style: italic;
  color: #444;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.report-table th, .report-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.9rem;
}

.report-table th {
  background-color: #f5f5f5;
  font-weight: 700;
}

.report-signature {
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid #ccc;
  padding-top: 0.5rem;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
}

/* --- RESPONSIVE MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
  /* Header */
  .peptiguide-header {
    padding: 1rem !important;
  }
  .logo-link {
    font-size: 1.15rem !important;
  }
  .header-back-btn {
    font-size: 0.8rem !important;
  }

  /* Stepper */
  .stepper-container {
    margin-bottom: 2rem !important;
    padding: 0 0.5rem;
  }
  .step-circle {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }
  .stepper-line {
    top: 16px !important;
  }
  .step-label {
    display: none !important; /* Hide labels on mobile to avoid overlapping */
  }

  /* Layout and Paddings */
  .app-container {
    margin: 1.5rem auto !important;
    padding: 0 1rem !important;
  }
  .app-screen {
    padding: 1.75rem 1.25rem !important; /* free up horizontal space */
  }

  /* Typography */
  h2.screen-title {
    font-size: 1.6rem !important;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
  p.screen-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 2rem !important;
  }

  /* Disclaimer Compliance Box */
  .compliance-box {
    padding: 1.25rem 1rem !important;
  }
  .compliance-box h4 {
    font-size: 0.95rem;
    margin-top: 1rem;
  }
  .compliance-box p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Disclaimer Checkbox spacing */
  .custom-checkbox-container {
    margin-bottom: 1.5rem !important;
    font-size: 0.85rem !important;
  }
  
  /* Objectives Grid */
  .objectives-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .objective-card {
    padding: 1.25rem !important;
  }
  .objective-icon-wrapper {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.25rem !important;
  }
  .objective-card h3 {
    font-size: 1.15rem !important;
  }
  .objective-card p {
    font-size: 0.85rem !important;
  }

  /* Screening Questions */
  .questions-list {
    gap: 1.25rem !important;
  }
  .question-item {
    flex-direction: column !important; /* Stack vertical instead of squished horizontal */
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1.25rem 1rem !important;
  }
  .question-label {
    font-size: 0.95rem !important;
  }
  .question-hint {
    font-size: 0.8rem !important;
  }
  .radio-group {
    width: 100%; /* make selection full width and easy to tap */
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
  .radio-btn-label {
    padding: 0.6rem !important;
    font-size: 0.85rem !important;
  }

  /* Lifestyle Variables & Checkboxes */
  .lifestyle-section {
    padding: 1.25rem 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  .lifestyle-title {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  .lifestyle-grid {
    grid-template-columns: 1fr !important; /* stack checkboxes vertically */
    gap: 0.75rem !important;
  }
  .lifestyle-grid .custom-checkbox-container {
    margin-bottom: 0 !important; /* override the margin-bottom so they don't space out massively */
  }

  /* Exam Inputs Grid */
  .exam-inputs-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
  }
  .exam-input-card {
    padding: 1rem !important;
    gap: 0.5rem !important;
  }
  .exam-input-card label {
    font-size: 0.9rem !important;
  }
  .exam-input-field {
    padding: 0.4rem 0.6rem !important;
  }
  .exam-input-field input {
    font-size: 1rem !important;
  }

  /* Results Screen Layout */
  .results-layout {
    grid-template-columns: 1fr !important; /* stack sidebar and main result card */
    gap: 1.5rem !important;
  }

  .peptide-details-pane {
    padding: 1.25rem !important;
  }

  /* Pros & Cons Vertical Stack (Un-squeeze on Mobile) */
  .pros-cons-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 0.75rem !important;
  }

  /* Evidence Tabs Mobile Pills */
  .evidence-tabs {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    border-bottom: none !important;
    margin-bottom: 1.5rem !important;
  }
  .evidence-tab-btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid var(--bg-tertiary) !important;
    border-radius: 20px !important;
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
  }
  .evidence-tab-btn.active {
    background: var(--gradient-primary) !important;
    color: var(--bg-primary) !important;
    border-color: transparent !important;
  }

  /* Calculator Screen Vertical Stack */
  .calc-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .calc-inputs {
    gap: 1rem !important;
  }
  .calc-visualizer {
    position: static !important; /* remove sticky on mobile stack */
    padding: 1.5rem 1.25rem !important;
    width: 100% !important;
  }
  .visual-result-badge {
    padding: 1rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .visual-result-val {
    font-size: 1.8rem !important;
  }

  /* Reconstitution Step Cards */
  .recon-step-card {
    padding: 1.25rem 1rem !important;
    gap: 1rem !important;
  }

  /* Lock Screen Mobile Styling */
  .lock-card {
    padding: 2rem 1.5rem !important;
    max-width: 100% !important;
    margin: 0 1rem;
  }
  .lock-title {
    font-size: 1.4rem !important;
  }
  .lock-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 1.5rem !important;
  }
  .passcode-input-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }
  .btn-verify-passcode {
    padding: 0.85rem !important;
  }

  /* Footer buttons spacing */
  .actions-footer {
    margin-top: 2rem !important;
    padding-top: 1.25rem !important;
  }

  /* Universal mobile overflow protection */
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  * {
    max-width: 100%;
  }
}


