/**
 * Goal Alignment & Visualization Helper Styles
 * 
 * Matches the existing Easylife design system with dark glass UI
 */

/* ============================================================================
   Modal Container & Overlay
   ============================================================================ */

.goal-alignment-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.goal-alignment-modal.open {
  opacity: 1;
  visibility: visible;
}

.goal-alignment-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(8px);
  z-index: 0;
}

.goal-alignment-dialog {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: rgba(15, 20, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 0;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  transition: transform 300ms ease;
}

.goal-alignment-modal.open .goal-alignment-dialog {
  transform: translateY(0) scale(1);
}

/* ============================================================================
   Header
   ============================================================================ */

.goal-alignment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.goal-alignment-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

.goal-alignment-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.goal-alignment-close:hover,
.goal-alignment-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  outline: none;
}

/* ============================================================================
   Progress Stepper
   ============================================================================ */

.goal-alignment-progress {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.goal-alignment-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.goal-alignment-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.goal-alignment-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.goal-alignment-step.active .goal-alignment-step-dot {
  background: rgba(74, 222, 128, 0.2);
  color: rgba(74, 222, 128, 1);
  border-color: rgba(74, 222, 128, 0.5);
}

.goal-alignment-step.completed .goal-alignment-step-dot {
  background: rgba(74, 222, 128, 0.25);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(74, 222, 128, 0.6);
}

.goal-alignment-step-line {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
  transition: background 200ms ease;
}

.goal-alignment-step-line.completed {
  background: rgba(74, 222, 128, 0.5);
}

/* ============================================================================
   Content Area
   ============================================================================ */

.goal-alignment-content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

.goal-alignment-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.goal-alignment-step-icon {
  font-size: 1.5rem;
}

.goal-alignment-step-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

.goal-alignment-step-description {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ============================================================================
   Overview Step
   ============================================================================ */

.goal-alignment-overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.goal-alignment-goal-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.goal-alignment-goal-image {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.goal-alignment-goal-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-alignment-goal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

.goal-alignment-goal-why {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.goal-alignment-intro {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.goal-alignment-intro p {
  margin: 0 0 12px;
}

.goal-alignment-intro p:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   Form Elements
   ============================================================================ */

.goal-alignment-textarea,
.goal-alignment-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.96);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 160ms ease, background 160ms ease;
}

.goal-alignment-textarea::placeholder,
.goal-alignment-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.goal-alignment-textarea:focus,
.goal-alignment-input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.08);
}

/* ============================================================================
   Emotion Selection
   ============================================================================ */

.goal-alignment-emotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.goal-alignment-emotion-btn,
.goal-alignment-emotion-btn-small {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.goal-alignment-emotion-btn:hover,
.goal-alignment-emotion-btn-small:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.goal-alignment-emotion-btn.selected,
.goal-alignment-emotion-btn-small.selected {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
  color: rgba(255, 255, 255, 0.98);
}

.goal-alignment-custom-emotion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-alignment-custom-emotion label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================================
   Action Selection
   ============================================================================ */

.goal-alignment-action-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.goal-alignment-action-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-alignment-action-section h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.goal-alignment-action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-alignment-action-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.goal-alignment-action-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.goal-alignment-action-option:has(input:checked) {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.45);
}

.goal-alignment-action-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #4ade80;
  flex-shrink: 0;
}

.goal-alignment-action-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.goal-alignment-action-icon {
  font-size: 1.1rem;
}

.goal-alignment-focus-durations {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-left: 30px;
}

.goal-alignment-focus-durations.hidden {
  display: none;
}

.goal-alignment-focus-duration-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.goal-alignment-focus-duration-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.goal-alignment-focus-duration-btn.selected {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
  color: rgba(255, 255, 255, 0.95);
}

.goal-alignment-hint {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  text-align: center;
}

/* ============================================================================
   Commitment Step
   ============================================================================ */

.goal-alignment-commitment {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.goal-alignment-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.goal-alignment-summary-item {
  display: flex;
  gap: 8px;
}

.goal-alignment-summary-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  min-width: 120px;
}

.goal-alignment-summary-value {
  color: rgba(255, 255, 255, 0.9);
}

.goal-alignment-slider-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-alignment-slider-section label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.goal-alignment-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.goal-alignment-slider {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  appearance: none;
  cursor: pointer;
}

.goal-alignment-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 160ms ease;
}

.goal-alignment-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.goal-alignment-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.goal-alignment-slider-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(74, 222, 128, 1);
  min-width: 50px;
}

.goal-alignment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-alignment-checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  transition: background 160ms ease;
}

.goal-alignment-checkbox-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.goal-alignment-checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4ade80;
}

/* ============================================================================
   Quick Mode
   ============================================================================ */

.goal-alignment-quick {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.goal-alignment-quick-header {
  text-align: center;
}

.goal-alignment-quick-header h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

.goal-alignment-quick-identity {
  margin: 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

.goal-alignment-quick-emotions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.goal-alignment-quick-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-alignment-quick-action h4 {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.goal-alignment-quick-commitment {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-alignment-quick-commitment label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================================
   Footer
   ============================================================================ */

.goal-alignment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
}

.goal-alignment-footer-left,
.goal-alignment-footer-right {
  display: flex;
  gap: 12px;
}

.goal-alignment-btn {
  padding: 12px 24px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.goal-alignment-btn-primary {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.3), rgba(34, 197, 94, 0.4));
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: rgba(255, 255, 255, 0.98);
}

.goal-alignment-btn-primary:hover,
.goal-alignment-btn-primary:focus-visible {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.4), rgba(34, 197, 94, 0.5));
  border-color: rgba(74, 222, 128, 0.7);
  transform: translateY(-1px);
  outline: none;
}

.goal-alignment-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.goal-alignment-btn-secondary:hover,
.goal-alignment-btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  outline: none;
}

/* ============================================================================
   Toast Notifications
   ============================================================================ */

.goal-alignment-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  border-radius: 14px;
  background: rgba(15, 20, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  z-index: 1100;
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}

.goal-alignment-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.goal-alignment-toast-success {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(74, 222, 128, 0.4);
}

.goal-alignment-toast-error {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.4);
}

/* ============================================================================
   Body Lock
   ============================================================================ */

body.goal-alignment-open {
  overflow: hidden;
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 640px) {
  .goal-alignment-modal {
    padding: 0;
  }
  
  .goal-alignment-dialog {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .goal-alignment-header {
    padding: 18px 20px;
  }
  
  .goal-alignment-content {
    padding: 20px;
  }
  
  .goal-alignment-footer {
    padding: 16px 20px;
    flex-wrap: wrap;
  }
  
  .goal-alignment-goal-card {
    flex-direction: column;
  }
  
  .goal-alignment-goal-image {
    width: 100%;
    height: 120px;
  }
  
  .goal-alignment-emotion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .goal-alignment-stepper {
    transform: scale(0.9);
  }
  
  .goal-alignment-focus-durations {
    flex-wrap: wrap;
    padding-left: 0;
    margin-top: 12px;
  }
}

/* ============================================================================
   Light Theme Support
   ============================================================================ */

[data-theme="light"] .goal-alignment-dialog {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .goal-alignment-title {
  color: rgba(15, 23, 42, 0.95);
}

[data-theme="light"] .goal-alignment-close {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] .goal-alignment-step-dot {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.5);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .goal-alignment-step.active .goal-alignment-step-dot {
  color: #16a34a;
}

[data-theme="light"] .goal-alignment-step-header h3,
[data-theme="light"] .goal-alignment-goal-title {
  color: rgba(15, 23, 42, 0.95);
}

[data-theme="light"] .goal-alignment-step-description,
[data-theme="light"] .goal-alignment-goal-why {
  color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .goal-alignment-textarea,
[data-theme="light"] .goal-alignment-input {
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.95);
}

[data-theme="light"] .goal-alignment-textarea::placeholder,
[data-theme="light"] .goal-alignment-input::placeholder {
  color: rgba(15, 23, 42, 0.4);
}

[data-theme="light"] .goal-alignment-emotion-btn,
[data-theme="light"] .goal-alignment-emotion-btn-small {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .goal-alignment-action-option {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
}

[data-theme="light"] .goal-alignment-action-label {
  color: rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .goal-alignment-btn-secondary {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.85);
}

/* ============================================================================
   Goal Flow Styles - Meditation-like visualization flow
   ============================================================================ */

/* Flow Step Container */
.goal-flow-step {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  animation: flowFadeIn 400ms ease;
}

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

/* Step Number Badge */
.goal-flow-step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.2);
  border: 2px solid rgba(74, 222, 128, 0.5);
  color: rgba(74, 222, 128, 1);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step Title */
.goal-flow-step-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

/* Goal Display Card */
.goal-flow-goal-display,
.goal-flow-intention-display,
.goal-flow-identity-vision {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.goal-flow-label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.goal-flow-goal-title,
.goal-flow-intention-text,
.goal-flow-goal-highlight {
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(74, 222, 128, 0.95);
  line-height: 1.4;
}

.goal-flow-goal-why {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-style: italic;
}

/* Guiding Text */
.goal-flow-guiding {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-flow-guiding p {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.goal-flow-guiding-large p {
  font-size: 1.15rem;
}

.goal-flow-question {
  font-size: 1.25rem !important;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96) !important;
  margin-top: 8px !important;
}

.goal-flow-emotions {
  color: rgba(74, 222, 128, 0.9) !important;
  font-style: italic;
}

/* Identity Vision */
.goal-flow-identity-vision p {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.goal-flow-identity-vision p:last-child {
  margin-bottom: 0;
}

/* Affirmation */
.goal-flow-affirmation {
  padding: 32px 24px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 20px;
}

.goal-flow-affirmation-line {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.goal-flow-affirmation-line:last-child {
  margin-bottom: 0;
}

/* Action Choice */
.goal-flow-action-choice {
  padding-top: 16px;
}

.goal-flow-action-label {
  margin: 0 0 16px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.goal-flow-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.goal-flow-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.goal-flow-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.goal-flow-action-btn.selected {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
  color: rgba(255, 255, 255, 0.98);
}

.goal-flow-action-icon {
  font-size: 1.2rem;
}

/* Quick Mode */
.goal-flow-quick {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
  animation: flowFadeIn 400ms ease;
}

.goal-flow-quick-header {
  margin-bottom: 8px;
}

.goal-flow-quick-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

.goal-flow-quick-guiding {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-flow-quick-guiding p {
  margin: 0;
  line-height: 1.6;
}

.goal-flow-quick-breath {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.goal-flow-quick-remember {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.goal-flow-quick-goal {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(74, 222, 128, 0.95);
}

.goal-flow-quick-feel {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

.goal-flow-quick-ready {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

.goal-flow-quick-actions {
  padding-top: 8px;
}

/* Flow-specific footer buttons */
.goal-flow-commit-btn,
.goal-flow-ready-btn {
  min-width: 160px;
  font-size: 1rem;
  padding: 14px 28px;
}

/* Responsive */
@media (max-width: 640px) {
  .goal-flow-step-title {
    font-size: 1.3rem;
  }
  
  .goal-flow-goal-title,
  .goal-flow-intention-text,
  .goal-flow-goal-highlight {
    font-size: 1.15rem;
  }
  
  .goal-flow-guiding p {
    font-size: 1rem;
  }
  
  .goal-flow-action-buttons {
    flex-direction: column;
  }
  
  .goal-flow-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Light Theme Support for Flow */
[data-theme="light"] .goal-flow-step-number {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: #16a34a;
}

[data-theme="light"] .goal-flow-step-title {
  color: rgba(15, 23, 42, 0.95);
}

[data-theme="light"] .goal-flow-goal-display,
[data-theme="light"] .goal-flow-intention-display,
[data-theme="light"] .goal-flow-identity-vision {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .goal-flow-label {
  color: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .goal-flow-goal-title,
[data-theme="light"] .goal-flow-intention-text,
[data-theme="light"] .goal-flow-goal-highlight {
  color: #16a34a;
}

[data-theme="light"] .goal-flow-goal-why {
  color: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .goal-flow-guiding p {
  color: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .goal-flow-question {
  color: rgba(15, 23, 42, 0.96) !important;
}

[data-theme="light"] .goal-flow-emotions {
  color: #16a34a !important;
}

[data-theme="light"] .goal-flow-affirmation {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

[data-theme="light"] .goal-flow-affirmation-line {
  color: rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .goal-flow-action-btn {
  border-color: rgba(15, 23, 42, 0.15);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .goal-flow-action-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .goal-flow-action-btn.selected {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: rgba(15, 23, 42, 0.98);
}

[data-theme="light"] .goal-flow-quick-breath {
  color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .goal-flow-quick-remember {
  color: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .goal-flow-quick-goal {
  color: #16a34a;
}

[data-theme="light"] .goal-flow-quick-feel {
  color: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] .goal-flow-quick-ready {
  color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .goal-flow-quick-title {
  color: rgba(15, 23, 42, 0.96);
}

/* ============================================================================
   Compact Flow Styles - Auto-advancing walk-through
   ============================================================================ */

/* Countdown Timer */
.goal-flow-countdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-flow-countdown {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-flow-countdown-value {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(74, 222, 128, 0.95);
  z-index: 1;
}

.goal-flow-countdown-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.goal-flow-countdown-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3;
}

.goal-flow-countdown-progress {
  fill: none;
  stroke: rgba(74, 222, 128, 0.7);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

/* Compact Dialog */
.goal-flow-compact {
  max-width: 520px;
  max-height: 90vh;
}

.goal-flow-compact .goal-alignment-content {
  padding: 20px 28px;
  overflow: hidden; /* No scrolling */
}

/* Compact Steps */
.goal-flow-step-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  animation: flowFadeIn 400ms ease;
}

.goal-flow-step-compact .goal-flow-step-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-flow-step-compact .goal-flow-step-title {
  font-size: 1.3rem;
  margin: 0;
}

.goal-flow-step-compact .goal-flow-goal-title,
.goal-flow-step-compact .goal-flow-highlight {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(74, 222, 128, 0.95);
  margin: 0;
  line-height: 1.4;
}

.goal-flow-step-compact .goal-flow-goal-why {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

.goal-flow-guiding-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.goal-flow-guiding-accent {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0;
}

/* Hero Image in Flow */
.goal-flow-hero-image {
  width: 100%;
  max-height: 160px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.goal-flow-hero-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.goal-flow-hero-overlay .goal-flow-hero-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.05) 0%, rgba(5, 7, 12, 0.7) 100%);
}

.goal-flow-hero-chip {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.goal-flow-hero-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.goal-flow-hero-why {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  line-height: 1.5;
}

.goal-flow-live-guide {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-flow-live-guide-large {
  min-height: 96px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(15, 23, 42, 0.35));
}

.goal-flow-live-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.goal-flow-live-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.goal-flow-identity-layered {
  gap: 12px;
}

.goal-flow-identity-card {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.goal-flow-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.goal-flow-intro-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.goal-flow-intro-hero img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
}

.goal-flow-intro-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.goal-flow-intro-label {
  margin: 0 0 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.goal-flow-intro-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.goal-flow-intro-time {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.goal-flow-intro-time-value {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.goal-flow-intro-time-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.goal-flow-intro-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.goal-flow-start-btn {
  min-width: 180px;
  font-size: 1.05rem;
  padding: 14px 20px;
}

.goal-flow-intro-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.goal-flow-hero-image-small {
  max-height: 100px;
}

.goal-flow-hero-image-small img {
  height: 100px;
}

/* Compact Question */
.goal-flow-step-compact .goal-flow-question {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  margin: 8px 0 4px;
}

.goal-flow-step-compact .goal-flow-emotions {
  color: rgba(74, 222, 128, 0.9);
  font-style: italic;
  font-size: 1rem;
  margin: 0;
}

/* Compact Affirmation */
.goal-flow-step-compact .goal-flow-affirmation {
  padding: 20px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 16px;
}

.goal-flow-step-compact .goal-flow-affirmation-line {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0 0 8px;
}

.goal-flow-step-compact .goal-flow-affirmation-line:last-child {
  margin-bottom: 0;
}

/* Compact Action Buttons */
.goal-flow-action-buttons-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.goal-flow-action-btn-large {
  padding: 18px 24px;
  font-size: 1.05rem;
  justify-content: center;
}

.goal-flow-action-btn-large .goal-flow-action-icon {
  font-size: 1.3rem;
}

/* Header adjustments for countdown */
.goal-flow-compact .goal-alignment-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
}

.goal-flow-compact .goal-alignment-title {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
}

/* Footer adjustments */
.goal-flow-compact .goal-alignment-footer {
  padding: 16px 24px;
}

/* Light Theme Support for Compact Flow */
[data-theme="light"] .goal-flow-countdown-value {
  color: #16a34a;
}

[data-theme="light"] .goal-flow-countdown-bg {
  stroke: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .goal-flow-countdown-progress {
  stroke: rgba(34, 197, 94, 0.7);
}

[data-theme="light"] .goal-flow-step-compact .goal-flow-goal-title,
[data-theme="light"] .goal-flow-step-compact .goal-flow-highlight {
  color: #16a34a;
}

[data-theme="light"] .goal-flow-hero-overlay .goal-flow-hero-layer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(15, 23, 42, 0.35) 100%);
}

[data-theme="light"] .goal-flow-hero-chip {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .goal-flow-hero-title,
[data-theme="light"] .goal-flow-live-line {
  color: rgba(15, 23, 42, 0.92);
}

[data-theme="light"] .goal-flow-hero-why,
[data-theme="light"] .goal-flow-intro-copy,
[data-theme="light"] .goal-flow-intro-hint {
  color: rgba(15, 23, 42, 0.75);
}

[data-theme="light"] .goal-flow-live-guide,
[data-theme="light"] .goal-flow-identity-card,
[data-theme="light"] .goal-flow-intro-meta {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .goal-flow-live-guide-large {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(15, 23, 42, 0.08));
}

[data-theme="light"] .goal-flow-intro-time {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
}

[data-theme="light"] .goal-flow-intro-time-value {
  color: #166534;
}

[data-theme="light"] .goal-flow-step-compact .goal-flow-goal-why {
  color: rgba(15, 23, 42, 0.75);
}

[data-theme="light"] .goal-flow-guiding-text {
  color: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] .goal-flow-guiding-accent {
  color: rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .goal-flow-step-compact .goal-flow-question {
  color: rgba(15, 23, 42, 0.96);
}

[data-theme="light"] .goal-flow-step-compact .goal-flow-emotions {
  color: #16a34a;
}

[data-theme="light"] .goal-flow-step-compact .goal-flow-affirmation {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

[data-theme="light"] .goal-flow-step-compact .goal-flow-affirmation-line {
  color: rgba(15, 23, 42, 0.9);
}

/* Responsive Compact */
@media (max-width: 640px) {
  .goal-flow-compact {
    max-width: 100%;
    border-radius: 0;
  }
  
  .goal-flow-compact .goal-alignment-content {
    padding: 16px 20px;
  }
  
  .goal-flow-hero-image {
    max-height: 120px;
  }
  
  .goal-flow-hero-image img {
    height: 120px;
  }
  
  .goal-flow-step-compact .goal-flow-step-title {
    font-size: 1.15rem;
  }
}

/* Visually hidden for screen readers */
.goal-alignment-modal .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
