* { box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: white;
  margin: 0;
  padding: 30px 20px;
  color: #2c3e50;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 80px;
  background: #ffffff;
  border-radius: 8px;
  padding: 40px;
  padding-top: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: auto;
  max-height: none;
  position: relative;
  overflow: visible;
}
h1 {
  color: #003087;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.7em;
}
.tagline {
  color: #444;
  margin-bottom: 0;
  margin-top: 4px;
  font-size: 0.8125em;
  letter-spacing: 0.12em;
  word-spacing: 1.5em;
  text-transform: none;
  font-weight: normal;
  font-style: italic;
}
.error-box {
  background: #fdf0f0;
  border: 1px solid #e74c3c;
  border-radius: 5px;
  padding: 14px 18px;
  margin-bottom: 20px;
  color: #c0392b;
  display: none;
}

.error-box.success {
  background: #f0fdf4;
  border: 1px solid #22c55e;
  color: #166534;
}

/* Report section */
#report-section {
  overflow-y: auto;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 16px;
  min-height: 150px;
  max-height: 576px;
  background: #f9fafb;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  position: relative;
}
#report-section::-webkit-scrollbar {
  width: 8px;
}
#report-section::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
#report-section::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}
#report-section::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.message {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
}
.message.user {
  justify-content: flex-end;
}
.message-content {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 6px;
  word-wrap: break-word;
  font-size: 0.85em;
  line-height: 1.4;
}
.message.claude .message-content {
  background: #e8f0fe;
  color: #001e50;
  border-left: 3px solid #003087;
}
.message.user .message-content {
  background: #003087;
  color: #fff;
  text-align: right;
}
.message.system .message-content {
  background: #f0f0f0;
  color: #555;
  max-width: 100%;
  text-align: center;
  font-size: 0.9em;
  font-style: italic;
}
.message.harness-result .message-content {
  background: #f0f8f0;
  color: #1d4620;
  border-left: 3px solid #28a745;
  max-width: 100%;
  line-height: 1.8;
}
.message.harness-result .message-content p {
  margin: 12px 0;
}
.message.harness-result .message-content h1,
.message.harness-result .message-content h2,
.message.harness-result .message-content h3 {
  margin-top: 20px;
  margin-bottom: 12px;
}
.message.harness-result .message-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
}
.message.node6-stream .message-content {
  background: #1a1a2e;
  color: #a8d8a8;
  font-family: 'Courier New', monospace;
  font-size: 0.75em;
  white-space: pre-wrap;
  word-break: break-all;
  max-width: 100%;
  padding: 8px 12px;
  border-left: 3px solid #4a9e4a;
  line-height: 1.4;
}

.message.harness-working .message-content {
  background: #e8f4fd;
  color: #0055a5;
  font-weight: bold;
  font-size: 0.95em;
  max-width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-left: 4px solid #0066cc;
  animation: harness-blink 1.2s ease-in-out infinite;
}

@keyframes harness-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.message.progress .message-content {
  background: #f5f5f5;
  color: #333;
  font-family: 'Courier New', monospace;
  font-size: 0.8em;
  max-width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-left: 3px solid #0066cc;
  line-height: 1.3;
}

/* Markdown formatting */
.message-content h1, .message-content h2, .message-content h3, .message-content h4 {
  margin: 16px 0 8px 0;
  font-weight: 600;
  color: inherit;
}
.message-content h1 { font-size: 1.3em; }
.message-content h2 { font-size: 1.15em; }
.message-content h3 { font-size: 1.05em; }
.message-content h4 { font-size: 1em; }

.message.claude .message-content h1,
.message.claude .message-content h2,
.message.claude .message-content h3 {
  color: #003087;
}

.message-content strong, .message-content b {
  font-weight: 600;
  color: inherit;
}
.message-content em, .message-content i {
  font-style: italic;
}
.message-content code {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}
.message-content pre {
  background: rgba(0, 0, 0, 0.08);
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  margin: 8px 0;
  line-height: 1.3;
}
.message-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}
.message-content ul, .message-content ol {
  margin: 8px 0;
  padding-left: 24px;
}
.message-content li {
  margin: 4px 0;
}
.message-content blockquote {
  border-left: 3px solid rgba(0, 0, 0, 0.2);
  padding-left: 12px;
  margin: 8px 0;
  font-style: italic;
  opacity: 0.9;
}
.message-content a {
  color: #003087;
  text-decoration: underline;
}
.message-content p {
  margin: 8px 0;
}

/* Input section */
.input-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 4px solid #003087;
  border-radius: 6px;
  padding: 16px;
  position: relative;
}
.input-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
/* Form Footer with Analysis Mode Control */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Analysis Mode Control */
.analysis-mode-control {
  display: flex;
  align-items: center;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.switch-text-quick,
.switch-text-full {
  font-size: 0.85em;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

.switch-input {
  display: none;
}

.switch-slider {
  display: inline-flex;
  position: relative;
  width: 50px;
  height: 28px;
  background: #ddd;
  border-radius: 14px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.switch-slider::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: left 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-input:checked + .switch-slider {
  background: #003087;
}

.switch-input:checked + .switch-slider::after {
  left: 24px;
}

.switch-label:hover .switch-slider {
  opacity: 0.9;
}

.switch-input:disabled + .switch-slider {
  background: #ddd;
  opacity: 0.5;
  cursor: not-allowed;
}

.switch-input:disabled ~ .switch-text-quick,
.switch-input:disabled ~ .switch-text-full {
  opacity: 0.5;
  cursor: not-allowed;
}
textarea#user-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccd3e0;
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.95em;
  resize: none;
  min-height: 180px;
  max-height: 360px;
  color: #2c3e50;
  transition: border-color 0.2s;
}
textarea#user-input:focus {
  outline: none;
  border-color: #003087;
  box-shadow: 0 0 0 2px rgba(0,48,135,0.15);
}
textarea#user-input::placeholder {
  color: #999;
}


.btn {
  background: #003087;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 0.95em;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn:hover { background: #0044bb; }
.btn:disabled { background: #999; cursor: not-allowed; }



.hint {
  color: #888;
  font-size: 0.85em;
  margin-top: 4px;
}

/* Modal / Floating Panels */
.modal {
  display: none;
  position: fixed;
  width: 66vw;
  height: 70vh;
  background: transparent;
  z-index: 1100;
  border-radius: 0;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.modal.visible {
  display: flex;
  flex-direction: column;
}

/* Auth modals - centered, smaller */
#login-modal,
#create-account-modal,
#access-code-modal,
#forgot-password-modal,
#set-password-modal,
#ai-access-modal,
#technical-modal,
#disclaimer-modal,
#pricing-modal,
#guidance-modal {
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

#login-modal .modal-content,
#create-account-modal .modal-content,
#access-code-modal .modal-content,
#forgot-password-modal .modal-content,
#set-password-modal .modal-content,
#ai-access-modal .modal-content,
#technical-modal .modal-content,
#disclaimer-modal .modal-content,
#pricing-modal .modal-content,
#guidance-modal .modal-content {
  width: 100% !important;
  height: auto !important;
  max-width: 400px;
  max-height: 80vh;
  border-radius: 6px;
}

/* Access code modal - narrower to fit content */
#access-code-modal .modal-content {
  max-width: 360px !important;
}
.modal-content {
  background: #d8f9ff;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid #e0e0e0;
}

/* Report modal specific styling */
#report-modal .modal-content {
  background: #FCD0AF;
  box-shadow: 0 0 50px rgba(50, 50, 50, 0.8), 0 20px 50px rgba(50, 50, 50, 0.9) !important;
}

/* Position floating panels with cascading offsets (down and right) */
#faqs-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.2) !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  z-index: 1101 !important;
  padding: 80px 0 0 120px !important;
}
#faqs-modal .modal-content {
  width: 550px;
  height: auto;
  max-height: 70vh;
}

#tos-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.2) !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  z-index: 1102 !important;
  padding: 160px 0 0 380px !important;
}
#tos-modal .modal-content {
  width: 550px;
  height: auto;
  max-height: 70vh;
}

#privacy-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.2) !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  z-index: 1103 !important;
  padding: 240px 0 0 640px !important;
}
#privacy-modal .modal-content {
  width: 550px;
  height: auto;
  max-height: 70vh;
}

#reasoning-modal {
  top: 100px;
  left: 100px;
}
#report-modal {
  top: 160px;
  left: 180px;
}

/* Reasoning modal - engine room aesthetic, read-only */
#reasoning-modal .modal-content {
  background: #000000;
  border: 2px solid #333;
}
#reasoning-modal .modal-header {
  background: #000000;
  border-bottom: 2px solid #333;
  border-top: 2px solid #111;
  justify-content: flex-start;
}
#reasoning-modal .modal-controls {
  display: none;
}
#reasoning-modal .modal-header h2 {
  color: #ffffcc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95em;
  font-weight: 500;
  font-style: italic;
  letter-spacing: normal;
  margin: 0;
}
#reasoning-modal .modal-body {
  background: #000000;
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}
#reasoning-modal .modal-footer {
  display: none;
}

/* Report modal specific styling */
.report-modal-only .report-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.report-modal-only .modal-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  background: #FCD0AF;  /* Financial Times Peach */
  min-height: 0;
}
.report-modal-only .modal-body::-webkit-scrollbar {
  width: 10px;
}
.report-modal-only .modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.report-modal-only .modal-body::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 4px;
}
.report-modal-only .modal-body::-webkit-scrollbar-thumb:hover {
  background: #666;
}
.report-modal-footer {
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
  z-index: 10;
}

/* Confirmation modal */
.confirmation-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.confirmation-modal.visible {
  display: flex;
}
.confirmation-content {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 400px;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: auto;
}
.confirmation-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.confirmation-header h3 {
  margin: 0;
  color: #e74c3c;
  font-size: 1.1em;
}
.confirmation-body {
  padding: 20px;
  flex-shrink: 0;
}
.confirmation-body p {
  margin: 0;
  color: #2c3e50;
  font-size: 0.95em;
  line-height: 1.5;
}
.confirmation-footer {
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #d0d0d0;
  flex-shrink: 0;
  background: #e8eaed;
  cursor: move;
  user-select: none;
}
.modal-header h2 {
  margin: 0;
  color: #003087;
  font-size: 1.1em;
  font-weight: 500;
}
.modal-controls {
  display: flex;
  gap: 0;
  align-items: center;
  pointer-events: auto;
}
.modal-btn-icon {
  background: none;
  border: none;
  font-size: 1em;
  color: #666;
  cursor: pointer;
  padding: 8px 12px;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}
.modal-btn-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #003087;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1em;
  color: #666;
  cursor: pointer;
  padding: 8px 12px;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}
.modal-close:hover {
  background: #e81828;
  color: white;
}
.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.9em;
  line-height: 1.6;
  color: #2c3e50;
  background: #fafbfc;
}

/* Input fields in modals */
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccd3e0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95em;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.modal-body input[type="email"]:focus,
.modal-body input[type="password"]:focus,
.modal-body input[type="text"]:focus {
  outline: none;
  border-color: #003087;
  box-shadow: 0 0 0 2px rgba(0,48,135,0.15);
}

.modal-body input[type="checkbox"] {
  cursor: pointer;
}

/* Password field with toggle button */
.password-field {
  position: relative;
  margin-bottom: 12px;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #003087;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Info modal tabs */
.info-tab {
  transition: all 0.2s;
}

.info-tab:hover {
  background: #f0f0f0 !important;
}

.info-tab.active {
  color: #003087 !important;
  border-bottom: 2px solid #003087 !important;
  background: white !important;
}

.info-tab-content {
  display: none;
}

.info-tab-content.active {
  display: block;
}
.modal-footer {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #e0e0e0;
  justify-content: flex-end;
  flex-shrink: 0;
  background: #f8f9fa;
}
.modal-btn {
  background: #e8e8e8;
  color: #000;
  border: 1px solid #d0d0d0;
  padding: 8px 16px;
  font-size: 0.85em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-btn:hover {
  background: #d0d0d0;
}
.modal-btn.modal-close-btn {
  background: #999;
}
.modal-btn.modal-close-btn:hover {
  background: #777;
}
.modal.fullscreen {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0;
}
.modal.fullscreen .modal-content {
  border-radius: 0;
}

.input-guidance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  flex-direction: row-reverse;
  z-index: 1001;
}
.lightbulb-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #000000;
  transition: color 0.2s;
}
.lightbulb-icon:hover {
  color: #333333;
}
.lightbulb-icon::before,
.lightbulb-icon::after {
  content: none !important;
}

.activity-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  color: #003087;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Alternative: more visible pulsing dot spinner */
.activity-spinner-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}
.activity-spinner-dots span {
  width: 6px;
  height: 6px;
  background: #003087;
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}
.activity-spinner-dots span:nth-child(2) { animation-delay: 0.2s; }
.activity-spinner-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

.activity-label {
  margin-top: 12px;
  font-size: 0.95em;
  color: #666;
  animation: slowFlash 2s ease-in-out infinite;
}
@keyframes slowFlash {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
}
.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}



/* F5: Top Navigation Bar */
.top-nav {
  background: white;
  color: #333;
  padding: 12px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.top-nav-container {
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-nav-brand {
  font-weight: 600;
  font-size: 1.375em;
  color: #003087;
  cursor: pointer;
  transition: opacity 0.2s;
}
.top-nav-brand:hover {
  opacity: 0.8;
}


.top-nav-controls {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-nav-search-icon {
  cursor: pointer;
  color: #003087;
  transition: opacity 0.2s;
}

.top-nav-search-icon:hover {
  opacity: 0.7;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-nav-btn {
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.2s;
}

.top-nav-btn-primary {
  background: #003087;
  color: white;
}

.top-nav-btn-primary:hover {
  background: #0044bb;
}

.top-nav-btn-secondary {
  background: transparent;
  color: #003087;
  border: 1px solid #003087;
}

.top-nav-btn-secondary:hover {
  background: #f5f5f5;
}

.top-nav-btn-free {
  background: transparent;
  color: #52b788;
  border: 1px solid #52b788;
  font-weight: 600;
}

.top-nav-btn-free:hover {
  background: #f0fdf4;
}

.profile-container {
  position: relative;
}

.profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #003087;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
}

.profile-btn:hover {
  background: #0044bb;
  box-shadow: 0 2px 8px rgba(0,48,135,0.3);
}

.account-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  min-width: 160px;
  z-index: 1001;
}

.account-menu.visible {
  display: flex;
}

.account-menu-item {
  padding: 12px 16px;
  color: #003087;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95em;
  transition: background 0.2s;
  display: block;
  width: 100%;
  font-weight: 400;
}

.account-menu-item:hover {
  background: #f9f9f9;
}

.account-menu-logout {
  color: #e74c3c;
  border-top: 1px solid #e0e0e0;
}

/* Adjust body padding to account for fixed top nav */
body.has-nav {
  padding-top: 60px;
  padding-bottom: 120px;
}


/* Markdown formatting in modals */
.modal-body h1 {
  margin: 24px 0 16px 0;
  font-size: 1.8em;
  color: #003087;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
  font-weight: 600;
}

.modal-body h2 {
  margin: 20px 0 12px 0;
  font-size: 1.4em;
  color: #003087;
  font-weight: 600;
}

.modal-body h3 {
  margin: 16px 0 10px 0;
  font-size: 1.1em;
  color: #1a5a8a;
  font-weight: 600;
}

.modal-body p {
  margin: 8px 0;
  line-height: 1.7;
}

.modal-body ul,
.modal-body ol {
  margin: 12px 0;
  padding-left: 28px;
  line-height: 1.8;
}

.modal-body li {
  margin: 6px 0;
}

.modal-body strong {
  font-weight: 600;
  color: #1a1a1a;
}

.modal-body em {
  font-style: italic;
  color: #444;
}

.modal-body blockquote {
  margin: 12px 0;
  padding-left: 16px;
  border-left: 4px solid #003087;
  color: #555;
  font-style: italic;
}

.modal-body code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #c7254e;
}

.modal-body pre {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 12px 0;
  border-left: 3px solid #003087;
}

.modal-body pre code {
  background: transparent;
  padding: 0;
  color: #333;
  border-radius: 0;
}

/* Login Overlay */
.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(1.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 100;
  pointer-events: auto;
}

.login-overlay-message {
  color: #666;
  font-size: 1.1em;
  text-align: center;
  padding: 20px;
}

/* Why Choose Section */
.why-choose-section {
  margin-top: 31px;
  padding-top: 40px;
  padding-bottom: 0;
  text-align: center;
}

#modals-section {
  margin-top: 12px;
}

.why-choose-heading {
  text-align: center;
  color: #333;
  font-size: 1.44em;
  margin-bottom: 40px;
  margin-top: 0;
  font-weight: 600;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.usp-card {
  background: none;
  border: none;
  padding: 24px;
}

.usp-title {
  color: #333;
  font-size: 1.01em;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
}

.usp-description {
  color: #555;
  font-size: 0.87em;
  line-height: 1.6;
  margin: 0;
}

.modal-card {
  background: #e8eaed;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal-card:hover {
  border-color: #003087;
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.1);
  transform: translateY(-2px);
}

/* Bottom Navigation Bar */
.bottom-nav {
  background: white;
  color: #333;
  padding: 16px 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  margin-top: 60px;
  border-top: 1px solid #e0e0e0;
}

.bottom-nav-container {
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.bottom-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.bottom-nav-link {
  background: transparent;
  border: none;
  color: #003087;
  font-weight: 500;
  font-size: 0.95em;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.bottom-nav-link:hover {
  background: #f5f5f5;
  opacity: 0.8;
}

/* Centered modals (About, Contact Us) */
.centered-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 1104 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
}

.centered-modal .modal-content {
  width: 360px;
  height: auto;
  max-height: 70vh;
  border-radius: 6px;
}
