:root {
  --navy: #0F172A;
  --navy-light: #1E293B;
  --navy-lighter: #334155;
  --white: #FFFFFF;
  --ice: #F8FAFC;
  --green: #10B981;
  --green-hover: #059669;
  --green-light: #D1FAE5;
  --gold: #F59E0B;
  --gold-light: #FEF3C7;
  --text-light: #F1F5F9;
  --text-dark: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --border-dark: #475569;
  --error: #EF4444;
}

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

/* Mobile touch optimization - prevent 300ms double-tap-to-zoom delay */
button,
a,
input[type="submit"],
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.app {
  display: flex;
  min-height: 100vh;
}

.input-panel {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  position: relative;
}

.preview-panel {
  flex: 1;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: sticky;
  top: 0;
  height: 100vh;
}

/* ===== STEPS CONTAINER ===== */
.steps-container {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.step {
  display: none;
  animation: slideIn 0.4s ease-out;
}

.step.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== WELCOME SCREEN (Step 0) ===== */
.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 80px);
}

.welcome-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-hover) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  animation: pulse 2s ease-in-out infinite;
}

.welcome-logo svg {
  width: 40px;
  height: 40px;
  color: white;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
  }
}

.welcome-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

.welcome-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 400px;
  margin-bottom: 40px;
}

/* ===== FORM ELEMENTS ===== */
.step-header {
  margin-bottom: 32px;
}

.step-number {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}

.step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.step-description {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-light);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--navy-light);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input.manual-entry {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.05);
}

.form-input.manual-entry:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 44px;
}

/* Avatar Upload */
.avatar-upload {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed var(--border-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
  background: var(--navy-light);
  padding: 16px;
  text-align: center;
}

.avatar-upload:hover {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.1);
}

.avatar-upload.has-image {
  border-style: solid;
  border-color: var(--green);
}

.avatar-upload.error {
  border-color: var(--error);
}

.avatar-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.avatar-upload span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.avatar-upload input {
  display: none;
}

/* Input Row */
.input-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

/* Chips */
.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 12px 20px;
  background: var(--navy-light);
  border: 1px solid var(--border-dark);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip:hover {
  border-color: var(--green);
}

.chip.selected {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--green);
  color: var(--green);
}

/* Insurance Cards */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.insurance-card {
  padding: 16px;
  background: var(--navy-light);
  border: 2px solid var(--border-dark);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.insurance-card:hover {
  border-color: var(--text-muted);
}

.insurance-card.selected {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.1);
}

.insurance-card img {
  height: 32px;
  margin-bottom: 8px;
  filter: grayscale(100%) brightness(1.5);
  transition: filter 0.2s ease;
}

.insurance-card.selected img {
  filter: none;
}

.insurance-card span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.insurance-card.selected span {
  color: var(--green);
}

/* Toggle Switch */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle {
  width: 48px;
  height: 26px;
  background: var(--navy-lighter);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle.active {
  background: var(--green);
}

.toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
}

.toggle.active::after {
  transform: translateX(22px);
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Consent Checkbox */
.consent-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
  padding-left: 32px;
}

.consent-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.consent-checkbox .checkmark {
  position: absolute;
  left: 0;
  top: 2px;
  height: 20px;
  width: 20px;
  background: var(--navy-lighter);
  border: 2px solid var(--border-dark);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.consent-checkbox:hover .checkmark {
  border-color: var(--green);
}

.consent-checkbox input:checked ~ .checkmark {
  background: var(--green);
  border-color: var(--green);
}

.consent-checkbox .checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.consent-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.consent-text a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

.consent-text a:hover {
  color: var(--green-hover);
  text-decoration: underline;
}

/* Currency Input */
.currency-input {
  position: relative;
}

.currency-input .prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 500;
}

.currency-input input {
  padding-left: 50px;
}

/* Bullet Points */
.bullet-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bullet-input {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bullet-input::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.bullet-input input {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-dark);
}

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

.btn-full {
  width: 100%;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.step-actions {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.step-actions .btn-primary {
  flex: 1;
}

/* ===== PREVIEW CARD ===== */
.preview-card {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: var(--text-dark);
}

.preview-card-header {
  padding: 24px;
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-avatar.skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

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

.preview-info {
  flex: 1;
  min-width: 0;
}

.preview-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-name.skeleton {
  height: 24px;
  width: 180px;
  background: var(--border);
  border-radius: 4px;
}

.verified-badge {
  display: none;
  align-items: center;
  gap: 4px;
  background: var(--green-light);
  color: var(--green-hover);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 4px;
}

.verified-badge.show {
  display: inline-flex;
}

.verified-badge svg {
  flex-shrink: 0;
}

.preview-specialty {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.preview-specialty.skeleton {
  height: 16px;
  width: 140px;
  background: var(--border);
  border-radius: 4px;
  margin-top: 8px;
}

.preview-crm {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.preview-card-body {
  padding: 24px;
}

.preview-section {
  margin-bottom: 20px;
}

.preview-section:last-child {
  margin-bottom: 0;
}

.preview-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.preview-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.preview-location svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.preview-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-hover);
}

.preview-price.hidden-price {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.preview-insurance-logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-insurance-logos img {
  height: 24px;
  border-radius: 4px;
}

.preview-qualifications {
  list-style: none;
}

.preview-qualifications li {
  font-size: 0.85rem;
  color: var(--text-dark);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.preview-qualifications li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.preview-card-footer {
  padding: 16px 24px;
  background: var(--ice);
  display: flex;
  gap: 8px;
}

.preview-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: default;
}

.preview-btn-whatsapp {
  background: #25D366;
  color: white;
}

.preview-btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.preview-btn svg {
  width: 16px;
  height: 16px;
}

/* ===== PROCESSING SCREEN ===== */
.processing-screen {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.processing-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.terminal {
  width: 100%;
  max-width: 600px;
  background: #0D1117;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  padding: 12px 16px;
  background: #161B22;
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #FF5F56;
}

.terminal-dot.yellow {
  background: #FFBD2E;
}

.terminal-dot.green {
  background: #27CA40;
}

.terminal-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #8B949E;
  min-height: 200px;
}

.terminal-line {
  margin-bottom: 8px;
  opacity: 0;
  animation: typeLine 0.3s ease forwards;
}

.terminal-line .command {
  color: var(--green);
}

.terminal-line .success {
  color: #58A6FF;
}

.terminal-line .highlight {
  color: #F0883E;
}

@keyframes typeLine {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SUCCESS SCREEN ===== */
.success-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 80px);
}

.success-screen.active {
  display: flex;
}

.success-card-wrapper {
  position: relative;
  margin-bottom: 40px;
}

.success-card-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: haloGlow 2s ease-in-out infinite;
}

@keyframes haloGlow {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.success-title {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-light);
}

.success-text {
  color: var(--text-muted);
  max-width: 400px;
  margin-bottom: 32px;
}

/* ===== SUCCESS CARD (New Design) ===== */
#successCard {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}

.success-card-header {
  display: flex;
  gap: 16px;
  padding: 24px 28px;
  background: white;
}

.success-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.success-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.success-info {
  flex: 1;
  min-width: 0;
}

.success-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.success-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}

.success-verified-icon {
  flex-shrink: 0;
  margin-top: 2px; /* Optical baseline alignment */
}

.success-specialty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.success-specialty-chip {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.success-crm {
  color: #6B7280;
  font-size: 0.8rem;
}

.success-card-body {
  padding: 0 28px 24px;
}

.success-section {
  display: none;
  margin-bottom: 16px;
}

.success-section.visible {
  display: block;
}

.success-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6B7280;
  margin-bottom: 8px;
  font-weight: 600;
}

.success-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.success-section-header svg {
  color: #6B7280;
}

.success-section-header .success-section-title {
  margin-bottom: 0;
}

.success-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.4;
}

.success-location svg {
  flex-shrink: 0;
  color: #10B981;
  margin-top: 2px;
}

.success-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 16px;
}

.success-price.hidden-price {
  color: #6B7280;
  font-size: 1rem;
}

.success-insurance-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.success-insurance-chip {
  background: #F3F4F6;
  color: #374151;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
}

.success-section-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 16px 0;
}

.success-quals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-qual-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.success-qual-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
  margin-top: 6px;
}

.success-qual-content {
  flex: 1;
}

.success-qual-title {
  font-weight: 600;
  color: #1F2937;
  font-size: 0.9rem;
  line-height: 1.3;
}

.success-qual-subtitle {
  color: #6B7280;
  font-size: 0.8rem;
  margin-top: 2px;
}

.success-card-footer {
  display: none;
  padding: 20px 28px;
  background: #F9FAFB;
  border-top: 1px solid #E5E7EB;
  gap: 12px;
}

.success-card-footer.visible {
  display: flex;
}

.success-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.success-btn-instagram {
  background: white;
  border: 1px solid #E5E7EB;
  color: #374151;
}

.success-btn-instagram:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.success-btn-whatsapp {
  background: #22C55E;
  border: none;
  color: white;
}

.success-btn-whatsapp:hover {
  background: #16A34A;
}

/* ===== MOBILE PREVIEW ===== */
.mobile-preview-toggle {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-light);
  padding: 16px;
  border-top: 1px solid var(--border-dark);
  z-index: 50;
}

.mobile-preview-toggle .preview-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-preview-toggle .preview-mini-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  overflow: hidden;
}

.mobile-preview-toggle .preview-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-preview-toggle .preview-mini-info {
  flex: 1;
}

.mobile-preview-toggle .preview-mini-name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Hide mobile preview bar on success step */
.step[data-step="5"].active ~ .mobile-preview-toggle,
body.step-5-active .mobile-preview-toggle {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .app {
    flex-direction: column;
  }

  .preview-panel {
    display: none;
  }

  .input-panel {
    padding: 24px;
    padding-bottom: 100px;
  }

  .mobile-preview-toggle {
    display: block;
  }

  .step-actions {
    flex-direction: column;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy-lighter);
  z-index: 50;
}

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

/* Hide sections initially */
.preview-section[data-section] {
  display: none;
}

.preview-section[data-section].visible {
  display: block;
}

.preview-card-footer {
  display: none;
}

.preview-card-footer.visible {
  display: flex;
}

/* ===== TOAST NOTIFICATIONS (Toastify) ===== */

/* Base toast styling */
.toastify {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  line-height: 1.5;
  max-width: 400px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Error toast - red */
.toast-error,
.toastify.toastify--error {
  background: #DC2626;
  color: var(--white);
}

.toast-error-persistent,
.toastify.toastify--error.toastify--persistent {
  background: #B91C1C;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Success toast - green */
.toast-success,
.toastify.toastify--success {
  background: var(--green);
  color: var(--white);
}

/* Warning toast - amber/gold */
.toast-warning,
.toastify.toastify--warning {
  background: var(--gold);
  color: var(--navy);
  font-weight: 500;
}

/* Info toast - blue */
.toast-info,
.toastify.toastify--info {
  background: #0EA5E9;
  color: var(--white);
}

/* Close button styling */
.toastify .toast-close {
  opacity: 0.7;
  transition: opacity 0.2s ease;
  color: inherit;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  padding-left: 12px;
}

.toastify .toast-close:hover {
  opacity: 1;
}

/* Toast animations */
@keyframes toastSlideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.toastify {
  animation: toastSlideIn 0.3s ease-out;
}

.toastify.hide {
  animation: toastSlideOut 0.3s ease-in;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .toastify {
    animation: none;
  }

  .toastify.hide {
    animation: none;
  }

  .toastify .toast-close {
    transition: none;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .toastify {
    max-width: calc(100vw - 32px);
    margin: 0 16px;
  }

  /* Reposition on mobile to avoid keyboard */
  .toastify-bottom.toastify-right {
    bottom: 20px;
    right: 16px;
  }
}
