/**
 * LaunchMentor BDValidator - Master Stylesheet
 * Neumorphic Design System
 * 
 * Design System:
 * Colors: #e8ecf1 (base), #2d3748 (primary), #3d4556 (secondary), #5a677a (tertiary), #8b96a8 (light)
 * Shadows: Embossed (inset), Raised (outer)
 * Spacing: Modular 5px base (5, 10, 15, 20, 25, 30, etc.)
 * Radius: 20px standard, 30px large, 18px small
 */

/* ========================================
   ROOT & DESIGN SYSTEM VARIABLES
   ======================================== */

:root {
  /* Colors */
  --color-base: #e8ecf1;
  --color-primary-text: #2d3748;
  --color-secondary-text: #3d4556;
  --color-tertiary-text: #5a677a;
  --color-light-text: #8b96a8;
  --color-muted-text: #6b7a8a;
  --color-accent-lavender: #b8aed1;
  --color-error-shadow-dark: #9d8db8;
  --color-error-shadow-light: #c9b3e0;
  --color-shadow-dark: #b8bfd4;
  --color-shadow-light: #ffffff;
  
  /* Shadows */
  --shadow-embossed-small: inset 2px 2px 6px var(--color-shadow-dark), inset -2px -2px 6px var(--color-shadow-light);
  --shadow-embossed: inset 2px 2px 8px var(--color-shadow-dark), inset -2px -2px 8px var(--color-shadow-light);
  --shadow-embossed-large: inset 3px 3px 8px var(--color-shadow-dark), inset -3px -3px 8px var(--color-shadow-light);
  --shadow-embossed-large-focus: inset 3px 3px 10px var(--color-shadow-dark), inset -3px -3px 10px var(--color-shadow-light);
  --shadow-raised-small: 3px 3px 8px var(--color-shadow-dark), -3px -3px 8px var(--color-shadow-light);
  --shadow-raised: 4px 4px 12px var(--color-shadow-dark), -4px -4px 12px var(--color-shadow-light);
  --shadow-raised-medium: 6px 6px 16px var(--color-shadow-dark), -6px -6px 16px var(--color-shadow-light);
  --shadow-raised-large: 8px 8px 20px var(--color-shadow-dark), -8px -8px 20px var(--color-shadow-light);
  --shadow-error: inset 2px 2px 8px var(--color-error-shadow-dark), inset -2px -2px 8px var(--color-error-shadow-light);
  
  /* Spacing */
  --space-xs: 5px;
  --space-sm: 10px;
  --space-md: 15px;
  --space-lg: 20px;
  --space-xl: 25px;
  --space-2xl: 30px;
  --space-3xl: 40px;
  --space-4xl: 50px;
  
  /* Border Radius */
  --radius-sm: 18px;
  --radius-md: 20px;
  --radius-lg: 30px;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--color-base);
  min-height: 100vh;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.embossed-box {
  background: var(--color-base);
  box-shadow: var(--shadow-embossed);
  border-radius: var(--radius-md);
}

.embossed-box-small {
  background: var(--color-base);
  box-shadow: var(--shadow-embossed-small);
  border-radius: var(--radius-md);
}

.embossed-box-large {
  background: var(--color-base);
  box-shadow: var(--shadow-embossed-large);
  border-radius: var(--radius-md);
}

.raised-box {
  background: var(--color-base);
  box-shadow: var(--shadow-raised);
  border-radius: var(--radius-md);
}

.raised-box-medium {
  background: var(--color-base);
  box-shadow: var(--shadow-raised-medium);
  border-radius: var(--radius-md);
}

.raised-box-large {
  background: var(--color-base);
  box-shadow: var(--shadow-raised-large);
  border-radius: var(--radius-lg);
}

.text-primary {
  color: var(--color-primary-text);
}

.text-secondary {
  color: var(--color-secondary-text);
}

.text-tertiary {
  color: var(--color-tertiary-text);
}

.text-light {
  color: var(--color-light-text);
}

.hidden-on-complete {
  display: none !important;
}

/* ========================================
   CONTAINER
   ======================================== */

.container {
  background: var(--color-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised-large);
  max-width: 900px;
  width: 100%;
  padding: 40px 40px var(--space-4xl) 40px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: var(--space-md) auto;
  padding: var(--space-lg) 40px;
  box-shadow: var(--shadow-raised-medium);
  border-radius: var(--radius-md);
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-grow: 1;
}

.header h1 {
  color: var(--color-primary-text);
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  flex-shrink: 0;
}

.header-logo-space {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-base);
  border-radius: var(--radius-md);
  box-shadow: inset 2px 2px 6px var(--color-shadow-dark), inset -2px -2px 6px var(--color-shadow-light);
  flex-shrink: 0;
}

.header-logo-space img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.header-spacer {
  display: none;
}

.header p {
  color: var(--color-tertiary-text);
  margin-bottom: var(--space-lg);
  font-size: 0.95em;
  font-weight: 500;
}

/* ========================================
   PROFILE MENU & DROPDOWN
   ======================================== */

.profile-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-base);
  border: 2px solid var(--color-primary-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-raised-small);
  padding: 0;
}

.profile-btn:hover {
  box-shadow: var(--shadow-raised-medium);
  transform: translateY(-1px);
}

.profile-btn:active {
  box-shadow: var(--shadow-embossed);
  transform: translateY(0);
}

.profile-icon {
  width: 20px;
  height: 20px;
  fill: var(--color-primary-text);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-base);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised-medium);
  margin-top: 8px;
  min-width: 160px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

.dropdown-menu.active {
  display: flex;
}

.dropdown-item {
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--color-primary-text);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--color-secondary);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--color-secondary);
}

/* ========================================
   LOGOUT BUTTON
   ======================================== */

.logout-btn {
  padding: 10px 20px;
  background: var(--color-base);
  color: var(--color-tertiary-text);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-raised-small);
  white-space: nowrap;
  line-height: 1.4;
}

.logout-btn:hover {
  box-shadow: var(--shadow-raised-small);
  transform: translateY(-1px);
}

.logout-btn:active {
  box-shadow: var(--shadow-embossed);
  transform: translateY(0);
}

/* ========================================
   BACK BUTTON
   ======================================== */

.back-btn {
  padding: 10px 20px;
  background: var(--color-base);
  color: var(--color-tertiary-text);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-raised-small);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}

.back-btn:hover {
  box-shadow: var(--shadow-raised-small);
  transform: translateY(-1px);
}

.back-btn:active {
  box-shadow: var(--shadow-embossed);
  transform: translateY(0);
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.progress-container {
  margin-bottom: calc(var(--space-3xl) * 0.75);
  display: none; /* Hidden by default, shown when form is active */
  order: -1; /* Make sure it appears before plan generator */
}

.progress-container.active {
  display: block !important;
}

.progress-bar {
  background: var(--color-base);
  height: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-embossed-large);
}

.progress-fill {
  background: var(--color-accent-lavender);
  height: 100%;
  border-radius: var(--radius-md);
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(184, 174, 209, 0.4);
  width: var(--progress-width, 0%);
}

.progress-text {
  text-align: center;
  color: var(--color-tertiary-text);
  font-size: 0.85em;
  font-weight: 600;
}

/* ========================================
   FORM FIELDS & INPUTS
   ======================================== */

.form-group {
  margin-bottom: var(--space-xl);
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-primary-text);
  font-weight: 600;
  font-size: 0.95em;
}

.required {
  color: var(--color-accent-lavender);
}

.optional {
  color: var(--color-light-text);
  font-size: 0.85em;
  font-weight: 400;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-base);
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1em;
  color: var(--color-primary-text);
  box-shadow: var(--shadow-embossed);
  transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
  color: #a0adb8;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: var(--shadow-embossed-large-focus);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 125px;
}

input.error,
textarea.error,
select.error {
  box-shadow: var(--shadow-error);
  color: var(--color-primary-text);
  background-color: var(--color-base) !important;
}

.error {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
}

.error-message {
  color: var(--color-error-shadow-dark);
  font-size: 0.85em;
  margin-top: 6px;
  display: none;
}

.error-message.show {
  display: block;
}

.form-group.has-error .error-message {
  display: block;
}

/* ========================================
   CHARACTER COUNTER
   ======================================== */

.char-counter {
  font-size: 0.85em;
  color: var(--color-light-text);
  margin-top: 6px;
  text-align: right;
}

.char-counter.warning {
  color: #f39c12;
  font-weight: 600;
}

.char-counter.danger {
  color: var(--color-light-text);
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* ========================================
   BUTTONS
   ======================================== */

button {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.4;
}

.button-group {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-3xl);
  justify-content: space-between;
}

.btn-primary {
  background: var(--color-base);
  color: var(--color-primary-text);
  box-shadow: var(--shadow-raised);
  flex: 1;
  padding: 12px 24px;
  font-size: 15px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised-large);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-embossed);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-secondary-text);
  box-shadow: var(--shadow-raised);
  flex: 1;
  padding: 12px 24px;
  font-size: 15px;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised-large);
}

.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-embossed);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   AUTH CONTAINER & LAYOUT
   ======================================== */

.auth-container {
  background: var(--color-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised-large);
  max-width: 500px;
  width: 100%;
  padding: var(--space-4xl) 40px;
  text-align: center;
}

.auth-container--large {
  max-width: 900px;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.auth-container h1 {
  color: var(--color-primary-text);
  font-size: 2.8em;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
}

.auth-subtitle {
  color: var(--color-tertiary-text);
  margin-bottom: var(--space-2xl);
  font-size: 0.95em;
  font-weight: 500;
}

/* ========================================
   AUTH FORM ELEMENTS
   ======================================== */

.auth-form-group {
  margin-bottom: var(--space-2xl);
}

.auth-form-group label {
  display: block;
  margin-bottom: 12px;
  color: var(--color-primary-text);
  font-weight: 700;
  text-align: center;
  font-size: 0.95em;
  letter-spacing: 0.3px;
}

.auth-form-group input {
  width: 100%;
  padding: 16px 20px;
  background: var(--color-base);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95em;
  color: var(--color-primary-text);
  box-shadow: var(--shadow-embossed);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.auth-form-group input:focus {
  outline: none;
  box-shadow: var(--shadow-embossed-large-focus);
  transform: translateY(-1px);
}

.auth-form-group input::placeholder {
  color: #a0adb8;
}

.auth-error-message {
  color: var(--color-error-shadow-dark);
  font-size: 0.85em;
  margin-top: 8px;
  display: none;
  font-weight: 600;
}

.auth-error-message.show {
  display: block;
}

.auth-submit-button {
  width: 100%;
  padding: 16px;
  background: var(--color-base);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-raised-medium);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.auth-submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised-large);
}

.auth-submit-button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: var(--shadow-embossed);
}

.auth-submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-links {
  text-align: center;
  color: var(--color-tertiary-text);
  font-size: 0.95em;
}

.auth-links a {
  color: var(--color-accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

.divider {
  color: #d8dfe8;
  margin: 40px 0;
  position: relative;
}

.divider-text {
  background: var(--color-base);
  padding: 0 12px;
  position: relative;
  z-index: 1;
  font-size: 0.9em;
  color: var(--color-light-text);
  font-weight: 600;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #d8dfe8;
  z-index: 0;
}

/* ========================================
   FORM STEPS & ANIMATIONS
   ======================================== */

.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
  margin-top: 0;
}

.form-step.active {
  display: block;
}

.step-title {
  color: var(--color-primary-text);
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: var(--space-lg);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.3px;
}

/* ========================================
   PLAN GENERATOR
   ======================================== */

.plan-generator {
  margin-top: 0;
  display: none;
  animation: fadeIn 0.3s ease;
}

.plan-generator.active {
  display: block;
}

.plan-stage {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-top: 0;
  margin-bottom: var(--space-2xl);
}

.plan-stage h2 {
  margin-top: 0;
  margin-bottom: var(--space-lg);
  color: var(--color-primary-text);
  text-align: center;
  font-size: 1.7em;
  font-weight: 700;
}

.plan-blurb-box {
  background: var(--color-base);
  border-radius: 25px;
  padding: 35px;
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-raised-large);
  line-height: 1.8;
  color: var(--color-primary-text);
}

.plan-blurb-box p {
  margin: 0;
  color: var(--color-primary-text);
  font-size: 1em;
  line-height: 1.8;
  text-align: left;
}

.plan-intro {
  color: var(--color-tertiary-text);
  margin-bottom: var(--space-xl);
  font-size: 0.95em;
  line-height: 1.7;
  text-align: center;
}

/* ========================================
   PLAN QUESTIONS
   ======================================== */

.plan-question-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.plan-question {
  background: var(--color-base);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-raised);
}

.plan-question-label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  margin-left: -20px;
  margin-right: -20px;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  color: var(--color-primary-text);
  line-height: 1.6;
  font-size: 0.98em;
}

.plan-question textarea {
  width: 100%;
  background: var(--color-base);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95em;
  color: var(--color-primary-text);
  resize: vertical;
  min-height: 125px;
  box-shadow: var(--shadow-embossed-small);
  transition: all 0.3s ease;
}

.plan-question textarea:focus {
  outline: none;
  box-shadow: var(--shadow-embossed);
}

.plan-actions {
  margin-top: var(--space-2xl);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ========================================
   PLAN ASSESSMENT
   ======================================== */

.plan-summary {
  background: var(--color-base);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--color-primary-text);
  line-height: 1.7;
  box-shadow: var(--shadow-embossed);
}

.plan-assessment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 23px;
}

/* Business Scores Section */
.business-scores-section {
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.scores-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-text);
  margin-bottom: 20px;
  text-align: center;
}

.scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.score-card {
  background: var(--color-base);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-raised-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.score-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised-large);
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
}

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  background: conic-gradient(var(--score-color, #8b5cf6) 0deg var(--score-degrees, 0deg), #e0e0e0 var(--score-degrees, 0deg));
}

.score-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-text);
}

.score-category {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-secondary-text);
  line-height: 1.3;
  word-break: break-word;
  margin-bottom: 8px;
}

.score-justification {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-tertiary-text);
  margin: 0;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .scores-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }

  .score-circle {
    width: 80px;
    height: 80px;
  }

  .score-text {
    font-size: 1.25rem;
  }

  .score-justification {
    font-size: 0.75rem;
  }
}

.plan-assessment-card {
  background: var(--color-base);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-raised-medium);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.plan-assessment-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised-large);
}

.plan-assessment-card h3 {
  margin-bottom: 14px;
  color: var(--color-primary-text);
  font-weight: 700;
  font-size: 1.05em;
  text-align: center;
}

.plan-assessment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-assessment-list li {
  font-size: 0.95em;
  color: var(--color-secondary-text);
  line-height: 1.7;
}

.plan-assessment-list li strong {
  color: var(--color-primary-text);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.plan-mitigation {
  margin-top: 6px;
  font-size: 0.85em;
  color: var(--color-muted-text);
  font-style: italic;
}

.plan-empty {
  color: var(--color-light-text);
  font-style: italic;
}

.plan-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.plan-section {
  background: var(--color-base);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-raised-medium);
}

.plan-section h3 {
  margin-bottom: 14px;
  color: var(--color-primary-text);
  font-weight: 700;
  font-size: 1.15em;
}

.plan-card {
  background: var(--color-base);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-raised-medium);
  margin-bottom: var(--space-lg);
}

.plan-card h3 {
  margin-bottom: 12px;
  color: var(--color-primary-text);
  font-weight: 700;
}

.plan-card ul {
  list-style: disc;
  margin-left: 20px;
  color: var(--color-secondary-text);
}

.plan-opinion {
  background: var(--color-base);
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised-medium);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  color: var(--color-secondary-text);
  font-family: inherit;
  font-size: 0.95em;
}

.plan-opinion-heading {
  text-align: center;
  margin-bottom: 14px;
  color: var(--color-primary-text);
  font-weight: 700;
  margin: 0;
}

.plan-opinion-text {
  margin: 0;
}

.plan-assessment-card-heading {
  text-align: center;
}

.plan-challenges-section {
  width: 100%;
  margin-top: var(--space-xl);
}

.plan-meta {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--color-muted-text);
  font-size: 0.85em;
}

/* ========================================
   MARKDOWN CONTENT
   ======================================== */

.plan-markdown-content {
  background: var(--color-base);
  padding: 35px;
  border-radius: 25px;
  box-shadow: var(--shadow-raised-large);
  line-height: 1.8;
  color: var(--color-primary-text);
}

.plan-markdown-content h2 {
  color: var(--color-primary-text);
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #d8dfe8;
  font-size: 1.5em;
  font-weight: 700;
}

.plan-markdown-content h2:first-child {
  margin-top: 0;
}

.plan-markdown-content h3 {
  color: var(--color-secondary-text);
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.2em;
  font-weight: 700;
}

.plan-markdown-content p {
  margin: 15px 0;
  line-height: 1.8;
  color: var(--color-secondary-text);
}

.plan-markdown-content ul,
.plan-markdown-content ol {
  margin: 15px 0;
  padding-left: 30px;
  color: var(--color-secondary-text);
}

.plan-markdown-content li {
  margin: 8px 0;
  line-height: 1.6;
}

.plan-markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.plan-markdown-content th,
.plan-markdown-content td {
  border: 1px solid #d8dfe8;
  padding: 12px;
  text-align: left;
}

.plan-markdown-content th {
  background: #d8dfe8;
  color: var(--color-primary-text);
  font-weight: 700;
}

.plan-markdown-content tr:nth-child(even) {
  background: #f0f4f8;
}

.plan-markdown-content blockquote {
  border-left: 4px solid #a8d8ea;
  padding-left: 20px;
  margin: 20px 0;
  color: var(--color-tertiary-text);
  font-style: italic;
}

/* ========================================
   MODAL & REVIEW OVERLAY
   ======================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

/* Ensure all modals default to hidden */
#deleteConfirmModal,
#dailyLimitModal,
#bmacUpsellModal {
  display: none;
}

.modal-content {
  background: var(--color-base);
  padding: var(--space-2xl);
  border-radius: var(--radius-md);
  box-shadow: none;
  max-width: 400px;
  width: 100%;
  margin: var(--space-2xl);
  animation: slideUp 0.3s ease;
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-tertiary-text);
  padding: 0;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--color-primary-text);
}

.modal-title {
  color: var(--color-primary-text);
  font-size: 1.3em;
  font-weight: 600;
  margin: 0 0 var(--space-md) 0;
}

.modal-text {
  color: var(--color-tertiary-text);
  font-size: 0.95em;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.review-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  overflow-y: auto;
  padding: 60px 20px 40px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.review-modal {
  background: var(--color-base);
  max-width: 900px;
  width: 100%;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: none;
  margin-top: 20px;
}

.review-close-btn {
  background: var(--color-base);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: var(--shadow-raised-small);
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.review-close-btn:hover {
  box-shadow: var(--shadow-raised);
}

.review-close-btn:active {
  box-shadow: var(--shadow-embossed-small);
}

.review-title {
  margin: 0;
  color: var(--color-primary-text);
  font-size: 1.5em;
  font-weight: 700;
  flex: 1;
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  justify-content: space-between;
  margin-bottom: 30px;
}

/* ========================================
   MESSAGE ALERTS
   ======================================== */

.success-message {
  padding: var(--space-md);
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: var(--radius-sm);
  color: #155724;
  margin-bottom: var(--space-lg);
  display: none;
  font-weight: 600;
}

.success-message.show {
  display: block;
}

.error-message {
  color: var(--color-error-shadow-dark);
  font-size: 0.85em;
  margin-top: 8px;
  display: none;
  font-weight: 600;
}

.error-message.show {
  display: block;
}

.form-group.has-error .error-message {
  display: block;
}

/* ========================================
   ACCESS KEY SECTION & BUTTONS
   ======================================== */

.account-container {
  flex: 1;
  max-width: 900px;
  width: 100%;
  padding: var(--space-2xl) 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  margin: var(--space-md) auto;
  background: var(--color-base);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised-small);
}

.account-section {
  background: var(--color-base);
  padding: var(--space-2xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised-small);
}

.section-title {
  color: var(--color-primary-text);
  font-size: 1.3em;
  font-weight: 600;
  margin: 0 0 var(--space-lg) 0;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: var(--space-md);
}

.form-label {
  color: var(--color-primary-text);
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.form-input {
  padding: 10px var(--space-md);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  background: var(--color-base);
  color: var(--color-primary-text);
  font-size: 0.95em;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary-text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.help-text {
  color: var(--color-tertiary-text);
  font-size: 0.85em;
  margin-top: 4px;
}

.btn-danger {
  padding: 10px 20px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-raised-small);
}

.btn-danger:hover {
  background: #ff5252;
  box-shadow: var(--shadow-raised-medium);
  transform: translateY(-1px);
}

.btn-danger:active {
  box-shadow: var(--shadow-embossed);
  transform: translateY(0);
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.back-link {
  color: var(--color-primary-text);
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-lg);
  transition: all 0.2s ease;
  padding: 10px 20px;
  background: var(--color-base);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: fit-content;
}

.back-link:hover {
  background: var(--color-secondary);
}

.back-link:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.access-key-section {
  background: var(--color-base);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-raised-medium);
}

.key-display-area {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.key-hidden {
  flex: 1;
  min-width: 200px;
  font-family: monospace;
  color: var(--color-primary-text);
  font-weight: 600;
  text-align: center;
  word-break: break-all;
  padding: 15px;
  background: var(--color-base);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-embossed-small);
}

.key-reveal-btn,
.key-copy-btn {
  padding: 10px 16px;
  background: var(--color-base);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-raised-small);
}

.key-reveal-btn:hover,
.key-copy-btn:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-1px);
}

.key-reveal-btn:active,
.key-copy-btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-embossed-small);
}

.key-reveal-btn:disabled,
.key-copy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   REVIEW SECTION BOXES
   ======================================== */

.review-form-section,
.review-initial-section,
.review-founder-section,
.review-assessment-section,
.review-scores-section {
  margin-bottom: 30px;
}

/* ========================================
   NOTIFICATIONS & UI
   ======================================== */

#notificationContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9998;
  max-width: 400px;
}

.notification {
  background: white;
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
  word-break: break-word;
}

.notification-error {
  background: #dc3545;
}

.notification-success {
  background: #28a745;
}

.notification-warning {
  background: #ffc107;
  color: #333;
}

.notification-info {
  background: #17a2b8;
}

/* ========================================
   SPINNER
   ======================================== */

#globalSpinner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner-wrapper {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.spinner-icon {
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.spinner-message {
  color: #666;
  margin: 0;
  font-size: 1em;
}

/* ========================================
   PDF STYLING
   ======================================== */

.pdf-container {
  position: absolute;
  top: 0;
  left: -10000px;
  width: 800px;
  padding: 40px 40px 60px 40px;
  background: white;
  color: #000;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  z-index: -1;
}

.pdf-header {
  margin-bottom: 30px;
  border-bottom: 2px solid #333;
  padding-bottom: 15px;
}

.pdf-header h1 {
  margin: 0;
  color: #333;
}

.pdf-header p {
  margin: 5px 0 0 0;
  color: #666;
}

.pdf-section {
  margin-bottom: 30px;
}

.pdf-section h2 {
  color: #333;
  margin-bottom: 15px;
}

.pdf-section h3 {
  color: #555;
  margin-top: 20px;
  margin-bottom: 8px;
}

.pdf-section p {
  margin: 10px 0;
  line-height: 1.6;
  color: #333;
}

.pdf-section ul {
  margin: 10px 0;
  padding-left: 30px;
}

.pdf-section ul li {
  margin: 5px 0;
  line-height: 1.6;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.pdf-table th,
.pdf-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.pdf-table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* ========================================
   INDEX PAGE STYLES
   ======================================== */

.index-container {
  background: var(--color-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised-large);
  max-width: 500px;
  width: 100%;
  padding: var(--space-4xl) 40px;
  text-align: center;
  margin-top: var(--space-4xl);
}

.index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.index-container h1 {
  color: var(--color-primary-text);
  font-size: 2.8em;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
}

.logo-space {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-space-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.subtitle {
  color: var(--color-tertiary-text);
  margin-bottom: 45px;
  font-size: 1.05em;
  font-weight: 500;
  line-height: 1.6;
}

.index-form-group {
  margin-bottom: var(--space-2xl);
}

.index-label {
  display: block;
  margin-bottom: 12px;
  color: var(--color-primary-text);
  font-weight: 700;
  text-align: center;
  font-size: 0.95em;
  letter-spacing: 0.3px;
}

.index-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--color-base);
  border: none;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 0.95em;
  color: var(--color-primary-text);
  box-shadow: var(--shadow-embossed);
  transition: all 0.3s ease;
}

.index-input:focus {
  outline: none;
  box-shadow: var(--shadow-embossed-large-focus);
  transform: translateY(-1px);
}

.index-input::placeholder {
  color: #a0adb8;
}

.index-button {
  width: 100%;
  padding: 16px;
  background: var(--color-base);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-raised-medium);
  letter-spacing: 0.3px;
}

.index-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised-large);
}

.index-button:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-embossed);
}

.index-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.index-error-message {
  color: var(--color-error-shadow-dark);
  font-size: 0.85em;
  margin-top: 8px;
  display: none;
  font-weight: 600;
}

.index-error-message.show {
  display: block;
}

.divider {
  color: #d8dfe8;
  margin: 40px 0;
  position: relative;
}

.divider-text {
  background: var(--color-base);
  padding: 0 12px;
  position: relative;
  z-index: 1;
  font-size: 0.9em;
  color: var(--color-light-text);
  font-weight: 600;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #d8dfe8;
  z-index: 0;
}

.contact-info {
  margin-top: 35px;
  padding: 20px;
  background: var(--color-base);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-embossed);
}

.contact-info p {
  color: var(--color-primary-text);
  font-size: 0.95em;
  line-height: 1.7;
}

.contact-info a {
  color: var(--color-tertiary-text);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: var(--color-primary-text);
  text-decoration: underline;
}

.contact-info a {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(45, 55, 72, 0.2);
  border-radius: 50%;
  border-top-color: var(--color-primary-text);
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-base);
  color: var(--color-primary-text);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised-medium);
  z-index: 10000;
  animation: slideInToast 0.3s ease forwards;
  max-width: 400px;
}

.toast.error {
  border-left: 4px solid #c62828;
}

.toast.success {
  border-left: 4px solid #2e7d32;
}

.toast.info {
  border-left: 4px solid #1976d2;
}

@keyframes slideInToast {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToast {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast.removing {
  animation: slideOutToast 0.3s ease forwards;
}

.button-text {
  display: inline;
}

.button-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Modal Visibility */
.modal[style*="display: flex"] {
  display: flex !important;
}

.modal[style*="display: block"] {
  display: flex !important;
}

.loading {
  display: none;
}

.loading[style*="display: block"] {
  display: block !important;
}

.pagination {
  display: none;
}

.pagination[style*="display: flex"] {
  display: flex !important;
}

.checkout-loading-overlay {
  display: none;
}

.checkout-loading-overlay[style*="display: block"] {
  display: flex !important;
}

/* ========================================
   DASHBOARD PAGE STYLES (Consolidated from inline styles)
   ======================================== */

/* Modal Purchase Card Content */
.purchase-card-content {
  margin: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.purchase-table-wrapper {
  width: 100%;
}

.purchase-table-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-secondary);
}

.purchase-table-header-cell {
  font-weight: 700;
  font-size: 0.95em;
  color: var(--color-tertiary-text);
}

.purchase-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: center;
  justify-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.qty-btn {
  padding: 8px 12px;
  background: var(--color-base);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 2px 2px 6px var(--color-shadow-dark), -2px -2px 6px var(--color-shadow-light);
  transition: all 0.2s ease;
}

.qty-btn:hover {
  box-shadow: var(--shadow-raised-small);
  transform: translateY(-1px);
}

.qty-btn:active {
  box-shadow: var(--shadow-embossed-small);
  transform: translateY(0);
}

.quantity-input {
  width: 50px;
  text-align: center;
  padding: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1em;
  font-weight: 600;
  background: transparent;
  color: var(--color-primary-text);
  flex: 0 0 50px;
}

.unit-price-display {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--color-primary-text);
}

.purchase-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-secondary-text);
  margin: var(--space-md) 0;
  flex-shrink: 0;
  opacity: 0.3;
}

.total-price-section {
  text-align: center;
}

.total-price-display {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--color-primary-text);
}

.price-currency {
  font-size: 0.75em;
  color: var(--color-tertiary-text);
  margin-left: 4px;
}

.checkout-button {
  width: 100%;
  padding: 12px;
  margin-top: var(--space-md);
  cursor: pointer;
}

.purchase-info {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-quaternary);
  text-align: center;
  font-size: 0.85em;
  color: var(--color-tertiary-text);
}

/* Checkout Loading Overlay */
.checkout-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  backdrop-filter: blur(2px);
}

.checkout-loading-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-loading-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-base);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 320px;
  width: 90%;
}

.checkout-loading-spinner {
  margin: 0 auto 20px;
  width: 40px;
  height: 40px;
}

.checkout-loading-title {
  margin: 0 0 8px 0;
  color: var(--color-primary-text);
  font-size: 1.1em;
}

.checkout-loading-status {
  margin: 0;
  color: var(--color-secondary-text);
  font-size: 0.9em;
}

/* Daily Limit Modal Content */
.daily-limit-description {
  margin-top: 20px;
  color: var(--color-secondary-text);
}

.daily-limit-contact {
  margin-top: 20px;
  font-size: 0.85em;
  color: var(--color-tertiary-text);
  text-align: center;
}

.daily-limit-contact a {
  color: var(--color-secondary-text);
  text-decoration: underline;
}

/* Page Footer */
.page-footer {
  text-align: center;
  padding: 30px;
  color: var(--color-tertiary-text);
  margin-top: 40px;
}

.page-footer a {
  color: var(--color-secondary-text);
  text-decoration: none;
  font-weight: 600;
}

/* Mobile-responsive styles */
@media (max-width: 600px) {
  .index-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
  }

  .index-container h1 {
    font-size: 1.8em;
    flex-basis: 100%;
    order: -1;
  }

  .logo-space {
    width: 60px;
    height: 60px;
  }

  .index-container {
    padding: var(--space-3xl) 20px;
    max-width: 100%;
  }

  .contact-info {
    padding: 16px;
  }

  .contact-info p {
    font-size: 0.9em;
  }

  .contact-info a {
    display: inline-block;
    max-width: 100%;
  }
}

/* ========================================
   SITE FOOTER
   ======================================== */

.site-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--color-tertiary-text);
  z-index: 100;
}

.site-footer a {
  color: var(--color-secondary-text);
  text-decoration: none;
  font-weight: 600;
}

/* ========================================
   EMAIL VERIFICATION MODAL STYLES
   ======================================== */

.email-verification-modal-description {
  margin: 0 0 20px 0;
  color: var(--color-secondary-text);
  font-size: 0.9em;
}

.email-verification-modal-buttons {
  display: flex;
  gap: var(--space-md);
}

.email-verification-modal-buttons button {
  flex: 1;
}

.email-verification-modal-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.progress-bar-fill {
  width: 100%;
  height: 100%;
}

/* ========================================
   ACCOUNT PAGE STYLES
   ======================================== */

.account-danger-zone {
  border-left: 4px solid #ff6b6b;
}

.account-danger-zone-title {
  border-bottom-color: #ff6b6b;
  color: #ff6b6b;
}

.account-danger-zone-text {
  color: var(--color-tertiary-text);
  margin-bottom: var(--space-lg);
}

.account-delete-warning {
  color: #ff6b6b;
  font-weight: 600;
}

/* ========================================
   AUTH PAGE STYLES
   ======================================== */

.auth-forgot-password {
  margin-bottom: var(--space-2xl);
}

.auth-forgot-password-link {
  color: var(--color-accent-blue);
  text-decoration: none;
  font-size: 0.9em;
}

.auth-reset-description {
  color: var(--color-tertiary-text);
  margin: 0 0 var(--space-2xl) 0;
}

/* ========================================
   DASHBOARD SUCCESS TOAST
   ======================================== */

.dashboard-success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #d4edda;
  color: #155724;
  padding: 15px 20px;
  border-radius: 4px;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   DASHBOARD PAGE STYLESHEET (from dashboard.html)
   ======================================== */

/* Dashboard Page Background */
html.dashboard-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

body.dashboard-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  align-items: center;
}

/* Dashboard Header */
.dashboard-page .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: var(--space-md) auto;
  padding: var(--space-lg) 40px;
  box-shadow: var(--shadow-raised-medium);
  border-radius: var(--radius-md);
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-page .header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.dashboard-page .header h1 {
  color: var(--color-primary-text);
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  flex-grow: 0;
}

.dashboard-page .header-logo-space {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-base);
  border-radius: var(--radius-md);
  box-shadow: inset 2px 2px 6px var(--color-shadow-dark), inset -2px -2px 6px var(--color-shadow-light);
  flex-shrink: 0;
}

.dashboard-page .header-logo-space img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dashboard-page .header-spacer {
  flex-grow: 1;
}

/* Profile Menu */
.dashboard-page .profile-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.dashboard-page .profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-base);
  border: 2px solid var(--color-primary-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-raised-small);
  padding: 0;
}

.dashboard-page .profile-btn:hover {
  box-shadow: var(--shadow-raised-medium);
  transform: translateY(-1px);
}

.dashboard-page .profile-btn:active {
  box-shadow: var(--shadow-embossed);
  transform: translateY(0);
}

.dashboard-page .profile-icon {
  width: 20px;
  height: 20px;
  fill: var(--color-primary-text);
}

.dashboard-page .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-base);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised-medium);
  margin-top: 8px;
  min-width: 160px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

.dashboard-page .dropdown-menu.active {
  display: flex;
}

.dashboard-page .dropdown-item {
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--color-primary-text);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--color-secondary);
}

.dashboard-page .dropdown-item:last-child {
  border-bottom: none;
}

.dashboard-page .dropdown-item:hover {
  background: var(--color-secondary);
}

/* Dashboard Container */
.dashboard-container {
  flex: 1;
  max-width: 900px;
  margin: var(--space-md) auto;
  width: 100%;
  padding: 40px 40px var(--space-4xl) 40px;
  background: var(--color-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised-large);
  box-sizing: border-box;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
  gap: var(--space-2xl);
  padding-bottom: 0;
}

.dashboard-header h2 {
  font-size: 2em;
  font-weight: 700;
  color: var(--color-primary-text);
  margin: 0;
  margin-bottom: var(--space-md);
}

.dashboard-header > div:first-child {
  flex: 1;
  min-width: 200px;
}

.dashboard-header p {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--color-primary-text);
}

/* Dashboard Modal Styles */
.dashboard-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeInDash 0.2s ease;
}

@keyframes fadeInDash {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dashboard-modal-content {
  background: var(--color-base);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUpDash 0.3s ease;
}

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

.dashboard-modal-content h3 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--color-primary-text);
  margin: 0 0 var(--space-lg) 0;
}

.dashboard-modal-content p {
  color: var(--color-tertiary-text);
  margin-bottom: var(--space-lg);
}

.dashboard-modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--color-tertiary-text);
  transition: color 0.2s ease;
}

.dashboard-modal-close:hover {
  color: var(--color-primary-text);
}

/* Purchase Card Styles */
.purchase-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.purchase-card {
  background: var(--color-base);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: 2px 2px 6px var(--color-shadow-dark), -2px -2px 6px var(--color-shadow-light);
}

.purchase-card .price {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--color-primary-text);
  margin-bottom: var(--space-sm);
}

.purchase-card .description {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--color-primary-text);
  margin-bottom: var(--space-sm);
}

/* Runs Section */
.runs-section {
  margin-top: var(--space-lg);
}

.runs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.pagination-button {
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-primary-text);
  font-size: 0.85em;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.pagination-button:first-of-type {
  margin-right: -8px;
}

.pagination-button:last-of-type {
  margin-left: -8px;
}

.pagination-button:hover:not(:disabled) {
  opacity: 0.7;
}

.pagination-button:active:not(:disabled) {
  opacity: 0.9;
}

.pagination-button.active {
  background: var(--color-primary-text);
  color: var(--color-base);
  font-weight: 600;
}

.pagination-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  color: var(--color-tertiary-text);
  font-size: 0.85em;
  margin: 0 var(--space-md);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
  min-width: 80px;
}

/* Add Run Button */
.add-run-button {
  width: 100%;
  padding: 10px 20px;
  background: var(--color-base);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised-small);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-text);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.4;
}

.add-run-button:hover {
  box-shadow: var(--shadow-raised-medium);
  transform: translateY(-2px);
}

.add-run-button:active {
  box-shadow: var(--shadow-embossed);
  transform: translateY(0);
}

/* Run Card */
.run-card {
  background: var(--color-base);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-embossed);
  padding: var(--space-lg) var(--space-2xl);
  transition: all 0.3s ease;
  border-left: none;
}

.run-card:hover {
  box-shadow: var(--shadow-embossed);
  transform: none;
}

.run-title {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--color-primary-text);
  margin-bottom: var(--space-md);
  word-break: break-word;
  display: inline-block;
  margin-right: var(--space-lg);
}

.run-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  font-size: 0.9em;
  color: var(--color-tertiary-text);
}

.run-meta-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.run-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.run-date {
  font-size: 0.9em;
  color: var(--color-tertiary-text);
}

.run-status {
  display: inline-block;
  padding: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85em;
  background: transparent;
  color: var(--color-tertiary-text);
}

.status-in-progress {
  background: transparent;
  color: var(--color-tertiary-text);
}

.status-completed {
  background: transparent;
  color: var(--color-tertiary-text);
}

/* Run Progress */
.run-progress-container {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.run-progress {
  flex: 1;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-base);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-embossed-small);
}

.progress-fill {
  height: 100%;
  background: var(--color-accent-lavender);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.8em;
  color: var(--color-tertiary-text);
  margin-top: 4px;
}

/* Run Actions */
.run-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: 0;
  flex-shrink: 0;
}

.btn-action {
  flex: 0 1 auto;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--color-base);
  color: var(--color-primary-text);
  box-shadow: var(--shadow-raised-small);
  white-space: nowrap;
  line-height: 1.4;
  height: fit-content;
  align-self: center;
}

.btn-action:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}

.btn-action:active {
  box-shadow: var(--shadow-raised-small);
  transform: translateY(-1px);
}

.btn-continue {
  color: var(--color-tertiary-text);
}

.btn-delete {
  background: var(--color-base);
  color: #c62828;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised-small);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  height: fit-content;
  flex-shrink: 0;
}

.btn-delete:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}

.btn-delete:active {
  box-shadow: var(--shadow-raised-small);
  transform: translateY(-1px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  background: var(--color-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-embossed);
}

.empty-state h3 {
  color: var(--color-primary-text);
  margin-bottom: var(--space-md);
  font-size: 1.3em;
  font-weight: 700;
}

.empty-state p {
  color: var(--color-tertiary-text);
  margin-bottom: var(--space-lg);
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-2xl);
}

.btn-confirm {
  padding: 12px 24px;
  background: var(--color-base);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-raised-small);
}

.btn-confirm:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}

.btn-confirm:active {
  box-shadow: var(--shadow-raised-small);
  transform: translateY(-1px);
}

.btn-confirm.delete {
  color: var(--color-tertiary-text);
}

.btn-cancel {
  padding: 12px 24px;
  background: var(--color-base);
  color: var(--color-tertiary-text);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-raised-small);
}

.btn-cancel:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}

.btn-cancel:active {
  box-shadow: var(--shadow-raised-small);
  transform: translateY(-1px);
}

/* Loading State */
.loading {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--color-tertiary-text);
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-tertiary-text);
  border-top-color: var(--color-primary-text);
  border-radius: 50%;
  animation: spinDash 0.8s linear infinite;
}

@keyframes spinDash {
  to { transform: rotate(360deg); }
}

/* Quantity Input Styling */
#quantityInput {
  text-align: center !important;
}

/* Hide number input spinner */
#quantityInput::-webkit-outer-spin-button,
#quantityInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#quantityInput[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }

  .header-spacer {
    display: none;
  }

  .dashboard-container {
    padding: var(--space-lg);
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-actions {
    width: 100%;
  }

  .btn-new-idea {
    flex: 1;
  }

  .ideas-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-modal-content {
    padding: var(--space-2xl);
  }
}

.success-message-link {
  color: #155724;
}

.auth-back-to-login {
  text-align: center;
  color: var(--color-tertiary-text);
  font-size: 0.95em;
  margin-top: var(--space-2xl);
}

.auth-back-to-login-link {
  color: var(--color-accent-blue);
  text-decoration: none;
  font-weight: 600;
}

/* ========================================
   FORM PAGE STYLES
   ======================================== */

.prev-btn-hidden {
  display: none;
}

.submit-btn-hidden {
  display: none;
}

.form-footer-links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
}

.form-footer-text {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.form-footer-link {
  color: #007bff;
  text-decoration: none;
  margin: 0 15px;
}

.form-footer-copyright {
  margin: 10px 0 0 0;
  font-size: 12px;
  color: #999;
}

/* ========================================
   INDEX PAGE STYLES
   ======================================== */

.contact-email {
  margin-top: 8px;
}

.index-footer-links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
}

.index-footer-text {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.index-footer-link {
  color: #007bff;
  text-decoration: none;
  margin: 0 15px;
}

.index-footer-copyright {
  margin: 10px 0 0 0;
  font-size: 12px;
  color: #999;
}

/* ========================================
   PRIVACY PAGE STYLES
   ======================================== */

.profile-menu-hidden {
  display: none !important;
}

/* ========================================
   UTILITY CLASSES FOR DISPLAY MANAGEMENT (CSP-Compliant)
   ======================================== */

/* Display none utility */
.hidden {
  display: none !important;
}

/* Display block utility */
.show-block {
  display: block !important;
}

/* Display flex utility */
.show-flex {
  display: flex !important;
}

/* ============================================================
   Form Page Styles (from form.html inline style tag)
   ============================================================ */

/* Loading States */
.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid var(--color-tertiary-text);
  border-top-color: var(--color-primary-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Transitions */
.form-step {
  animation: fadeIn 0.3s ease-in-out;
}

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

button, input[type="submit"], input[type="button"] {
  transition: all 0.2s ease-in-out;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-embossed);
}

/* Print Styles */
@media print {
  .header,
  .button-group,
  .progress-container,
  .logout-btn,
  button,
  .error-message {
    display: none !important;
  }

  body {
    padding: 0;
    background: white;
  }

  .container {
    max-width: 100%;
    box-shadow: none;
  }

  .form-step {
    page-break-inside: avoid;
    margin-bottom: 20px;
  }

  .form-group {
    page-break-inside: avoid;
  }

  input, textarea, select {
    border: 1px solid #333;
    background: white;
  }
}

/* Accessibility Focus Styles */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--color-accent-lavender);
  outline-offset: 2px;
}

/* Skip to content link (accessibility) */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary-text);
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* ============================================================
   Plan Generator Styles (replaces inline styles from planGenerator.js)
   ============================================================ */

/* Plan Header */
.plan-header-title {
  margin: 0;
  color: #333;
}

.plan-header-date {
  margin: 5px 0 0 0;
  color: #666;
}

/* Centered heading */
.plan-centered-heading {
  text-align: center;
}

/* Plan Sections */
.plan-section-heading {
  color: #333;
  margin-bottom: 15px;
}

.review-scores-section,
.review-assessment-section,
.review-risks-section,
.review-strengths-section,
.review-questions-section,
.review-opinion-section {
  /* Plan review sections */
}

/* Section headings with color */
.section-heading-strength {
  color: #2ecc71;
  margin: 15px 0 10px 0;
}

.section-heading-risk {
  color: #e74c3c;
  margin: 15px 0 10px 0;
}

.section-heading-recommendation {
  color: #3498db;
  margin: 15px 0 10px 0;
}

.section-heading-default {
  color: #2d3748;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 1.1em;
}

/* Lists */
.plan-list {
  margin: 5px 0;
  padding-left: 25px;
}

.plan-list-item {
  margin: 5px 0;
}

.plan-list-item-inner {
  margin: 5px 0;
}

.plan-list-item-mitigation {
  color: #666;
  font-style: italic;
}

/* Tables */
.plan-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.plan-table-header-row {
  background-color: #f5f5f5;
}

.plan-table-header-cell {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-weight: bold;
}

.plan-table-header-cell-center {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  font-weight: bold;
}

.plan-table-data-cell {
  border: 1px solid #ddd;
  padding: 8px;
}

.plan-table-data-cell-center {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  font-weight: bold;
}

/* Content containers */
.plan-content-wrapper {
  line-height: 1.8;
}

.plan-assessment-box {
  margin-bottom: 25px;
  padding: 15px;
  background: #e8ecf1;
  border-radius: 15px;
  box-shadow: inset 2px 2px 6px #b8bfd4, inset -2px -2px 6px #ffffff;
}

.plan-assessment-question {
  color: #2d3748;
  display: block;
  margin-bottom: 8px;
  font-size: 0.95em;
}

.plan-assessment-answer {
  color: #3d4556;
  padding-left: 10px;
  margin-top: 10px;
  font-weight: normal;
}

.plan-opinion-box {
  margin-bottom: 20px;
  padding: 15px;
  background: #e8ecf1;
  border-radius: 15px;
  box-shadow: inset 2px 2px 6px #b8bfd4, inset -2px -2px 6px #ffffff;
}

.plan-opinion-label {
  color: #2d3748;
  display: block;
  margin-bottom: 8px;
}

.plan-opinion-text {
  color: #3d4556;
  margin: 0;
  font-family: inherit;
  font-weight: normal;
}

.plan-risks-box {
  margin-bottom: 20px;
  padding: 15px;
  background: #e8ecf1;
  border-radius: 15px;
  box-shadow: inset 2px 2px 6px #b8bfd4, inset -2px -2px 6px #ffffff;
}

.plan-risks-label {
  color: #2d3748;
  display: block;
  margin-bottom: 8px;
}

.plan-risks-list {
  padding-left: 20px;
  color: #3d4556;
}

.plan-risks-item {
  margin-bottom: 10px;
}

.plan-risks-item-mitigation {
  color: #6b7a8a;
  font-style: italic;
}

.plan-strengths-box {
  margin-bottom: 20px;
  padding: 15px;
  background: #e8ecf1;
  border-radius: 15px;
  box-shadow: inset 2px 2px 6px #b8bfd4, inset -2px -2px 6px #ffffff;
}

.plan-strengths-label {
  color: #2d3748;
  display: block;
  margin-bottom: 8px;
}

.plan-strengths-list {
  padding-left: 20px;
  color: #3d4556;
}

.plan-strengths-item {
  margin-bottom: 10px;
}

.plan-challenges-box {
  margin-bottom: 20px;
  width: 100%;
  padding: 15px;
  background: #e8ecf1;
  border-radius: 15px;
  box-shadow: inset 2px 2px 6px #b8bfd4, inset -2px -2px 6px #ffffff;
}

.plan-challenges-label {
  color: #2d3748;
  display: block;
  margin-bottom: 8px;
}

.plan-challenges-list {
  padding-left: 20px;
  color: #3d4556;
}

.plan-challenges-item {
  margin-bottom: 12px;
}

/* Form Data Display */
.plan-form-data-box {
  margin-bottom: 20px;
  padding: 15px;
  background: #e8ecf1;
  border-radius: 15px;
  box-shadow: inset 2px 2px 6px #b8bfd4, inset -2px -2px 6px #ffffff;
}

.plan-form-data-label {
  color: #2d3748;
  display: block;
  margin-bottom: 5px;
}

.plan-form-data-value {
  color: #3d4556;
}

/* Score Display */
.plan-score-box {
  margin-bottom: 20px;
  padding: 15px;
  background: #e8ecf1;
  border-radius: 15px;
  box-shadow: inset 2px 2px 6px #b8bfd4, inset -2px -2px 6px #ffffff;
}

.plan-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.plan-score-category {
  color: #2d3748;
  font-size: 1.05em;
}

.plan-score-badge {
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1em;
}

.plan-score-high {
  background-color: #27ae60;
}

.plan-score-medium-high {
  background-color: #f39c12;
}

.plan-score-medium {
  background-color: #e67e22;
}

.plan-score-low {
  background-color: #e74c3c;
}

.plan-score-justification {
  color: #3d4556;
  margin: 0;
  font-style: italic;
}

/* Review Form Link */
.plan-review-link {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9em;
  color: #5a677a;
}

.plan-review-link-text {
  color: #5a677a;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.plan-review-link-text:hover,
.plan-review-link-text.hovered {
  color: #2d3748;
  text-decoration: underline;
}

/* Progress Bar - Updated dynamically via updateProgressBar() */
.progress-fill {
  transition: width 0.3s ease;
}

/* Progress Container Hidden State */
.progress-hidden {
  display: none !important;
}

/* Score Circle - Updated dynamically for each score */
.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PDF Plan Content Styling - External CSS to comply with strict CSP */
.pdf-plan-content h1,
.pdf-plan-content h2,
.pdf-plan-content h3,
.pdf-plan-content h4,
.pdf-plan-content h5,
.pdf-plan-content h6 {
  color: #333;
  margin: 20px 0 10px 0;
  page-break-inside: avoid;
}

.pdf-plan-content p {
  margin: 10px 0;
  line-height: 1.6;
  color: #333;
}

.pdf-plan-content ul,
.pdf-plan-content ol {
  margin: 10px 0;
  padding-left: 30px;
}

.pdf-plan-content li {
  margin: 5px 0;
  line-height: 1.6;
}

.pdf-plan-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  page-break-inside: avoid;
}

.pdf-plan-content th,
.pdf-plan-content td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.pdf-plan-content th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.pdf-plan-content blockquote {
  margin: 15px 0;
  padding-left: 15px;
  border-left: 3px solid #ddd;
  color: #666;
  font-style: italic;
}

.pdf-plan-content strong,
.pdf-plan-content b {
  font-weight: bold;
}

/* PDF Container Sizing - CSP compliant external CSS */
.pdf-container-sized {
  width: 800px !important;
}

/* PDF Print Styles for Page Breaking - CSP compliant external CSS */
.plan-markdown-content h1,
.plan-markdown-content h2,
.plan-markdown-content h3,
.plan-markdown-content p,
.plan-markdown-content ul,
.plan-markdown-content ol,
.plan-markdown-content li,
.plan-markdown-content table,
.plan-markdown-content tr,
.plan-markdown-content td,
.plan-markdown-content blockquote,
.plan-markdown-content pre {
  page-break-inside: avoid;
  break-inside: avoid;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.plan-markdown-content table {
  width: 100%;
  border-collapse: collapse;
}

.page-break-before {
  page-break-before: always;
  break-before: page;
}

.page-break-after {
  page-break-after: always;
  break-after: page;
}

/* Temporary container for PDF rendering - CSP compliant external styling */
.pdf-temp-container {
  position: absolute;
  top: 0;
  left: -10000px;
  width: 800px;
  padding: 40px 40px 60px 40px;
  background: white;
  color: #000;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  z-index: -1;
}

/* ========================================
   ACCOUNT PAGE STYLES (CSP-compliant)
   ======================================== */

/* Account page background - moved from inline <style> tag in account.html */
html {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  align-items: center;
}

/* Override fixed footer to be relative on account page */
.site-footer {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin-top: auto;
  padding: var(--space-2xl) 0;
}

/* ========================================
   LOGIN PAGE STYLES (CSP-compliant)
   ======================================== */

/* Login page body styling - moved from inline <style> tag in login.html */
/* Auth pages only: light gradient background */
body:has(.auth-container) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  padding: var(--space-lg);
  margin: 0;
}

html:has(.auth-container) {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

/* ========================================
   PRIVACY POLICY PAGE STYLES
   ======================================== */

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-md) auto;
  padding: var(--space-lg) 40px;
  box-shadow: var(--shadow-raised-medium);
  border-radius: var(--radius-md);
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.header h1 {
  color: var(--color-primary-text);
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  flex-shrink: 0;
}

.header-logo-space {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.header-logo-space img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.back-btn {
  position: absolute;
  left: 40px;
  background: var(--color-base);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-raised-small);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised-medium);
}

.back-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-embossed);
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  line-height: 1.6;
}

.privacy-content {
  padding: 40px 30px;
  background: var(--color-base);
  box-shadow: var(--shadow-raised);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.privacy-content h1 {
  color: var(--color-primary-text);
  margin-bottom: 10px;
  font-size: 32px;
}

.privacy-content .last-updated {
  color: var(--color-tertiary-text);
  font-style: italic;
  margin-bottom: 30px;
  font-size: 14px;
}

.privacy-content h2 {
  color: var(--color-primary-text);
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--color-tertiary-text);
  padding-bottom: 10px;
  font-size: 22px;
}

.privacy-content h2:first-of-type {
  margin-top: 0;
}

/* Verify Email Page */
html:has(.verify-email-container) {
  background: var(--color-base);
}

body:has(.verify-email-container) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--color-base);
  margin: 0;
  padding: var(--space-lg);
}

.verify-email-container {
  background: var(--color-base);
  padding: var(--space-3xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised-large);
  max-width: 450px;
  width: 100%;
  text-align: center;
}

.verify-email-spinner {
  border: 4px solid var(--color-shadow-light);
  border-top: 4px solid var(--color-accent-lavender);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: verify-email-spin 1s linear infinite;
  margin: 0 auto var(--space-2xl);
}

@keyframes verify-email-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.verify-email-container h1 {
  margin: 0 0 var(--space-md) 0;
  color: var(--color-primary-text);
  font-size: 28px;
  font-weight: 600;
}

.verify-email-container p {
  margin: 0 0 var(--space-lg) 0;
  color: var(--color-secondary-text);
  line-height: 1.6;
  font-size: 15px;
}

.verify-email-content-section {
  display: none;
}

.verify-email-content-section.show {
  display: block;
  animation: verify-email-fadeIn 0.3s ease-in;
}

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

.verify-email-button-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.verify-email-button-group .btn-primary,
.verify-email-button-group .btn-secondary {
  flex: 0 1 auto;
  min-width: 140px;
  border-radius: 24px;
}

.verify-email-success-icon {
  font-size: 48px;
  margin-bottom: var(--space-lg);
}

.verify-email-error-icon {
  font-size: 48px;
  margin-bottom: var(--space-lg);
  filter: hue-rotate(340deg);
}

.verify-email-link-button {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.privacy-content h3 {
  color: var(--color-secondary-text);
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

.privacy-content p {
  margin-bottom: 15px;
  color: var(--color-primary-text);
}

.privacy-content ul,
.privacy-content ol {
  margin-left: 30px;
  margin-bottom: 15px;
}

.privacy-content li {
  margin-bottom: 8px;
  color: var(--color-primary-text);
}

.privacy-content .highlight {
  background: var(--color-base);
  padding: 15px 20px;
  border-left: 4px solid var(--color-tertiary-text);
  margin: 20px 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-embossed-small);
}


