/* Campaign Wizard Styles */
.campaigns-container {
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
  font-family: 'Open Sans', sans-serif;
}

/* Wizard Header */
.wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e1e5e9;
}

.campaigns-title {
  color: #2c3e50;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-bar {
  width: 200px;
  height: 8px;
  background: #e1e5e9;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #8B5FBF 0%, #7FB069 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

/* Wizard Content */
.wizard-content {
  min-height: 500px;
  margin-bottom: 30px;
}

.step-content {
  animation: slideIn 0.3s ease-out;
}

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

.step-header {
  margin-bottom: 30px;
  text-align: center;
}

.step-header h3 {
  color: #2c3e50;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.step-header p {
  color: #6c757d;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Template Selection */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.template-card {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.template-card:hover {
  border-color: #8B5FBF;
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.15);
  transform: translateY(-2px);
}

.template-card.selected {
  border-color: #8B5FBF;
  background: linear-gradient(135deg, rgba(139, 95, 191, 0.05) 0%, rgba(127, 176, 105, 0.05) 100%);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.2);
}

.template-card .card-header {
  margin-bottom: 16px;
}

.template-name {
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.template-description {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.template-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-item {
  font-size: 13px;
  color: #495057;
}

.detail-item strong {
  color: #2c3e50;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #2c3e50;
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8B5FBF;
  box-shadow: 0 0 0 3px rgba(139, 95, 191, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Validation Error States */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.03);
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.form-group.has-error label {
  color: #dc3545;
}

.cta-type-selector.has-error {
  border: 2px solid #dc3545;
  border-radius: 8px;
  padding: 8px;
  background-color: rgba(220, 53, 69, 0.03);
}

.cta-type-selector.has-error .cta-option {
  border-color: #dc3545;
}

.templates-grid.has-error {
  border: 2px solid #dc3545;
  border-radius: 12px;
  padding: 12px;
  background-color: rgba(220, 53, 69, 0.03);
}

.templates-grid.has-error .template-card {
  border-color: #dc3545;
}

.engagement-paths.has-error {
  border: 2px solid #dc3545;
  border-radius: 12px;
  padding: 12px;
  background-color: rgba(220, 53, 69, 0.03);
}

/* Template Summary */
.template-summary {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.template-summary h4 {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.summary-content p {
  margin: 8px 0;
  font-size: 14px;
  color: #495057;
}

/* Email Builder */
.email-builder {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-with-ai,
.textarea-with-ai {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.input-with-ai input {
  flex: 1;
}

.textarea-with-ai {
  flex-direction: column;
}

.textarea-with-ai textarea {
  width: 100%;
  margin-bottom: 12px;
}

.btn-ai {
  background: linear-gradient(135deg, #8B5FBF 0%, #A47BD1 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-ai:hover {
  background: linear-gradient(135deg, #7a4fa8 0%, #9366c4 100%);
  transform: translateY(-1px);
}

.cta-section {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
}

.cta-section h4 {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

/* CTA Type Selector - Radio button group */
.cta-type-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  min-width: 140px;
}

.cta-option:hover {
  border-color: #8B5FBF;
  background: rgba(139, 95, 191, 0.05);
}

.cta-option.selected {
  border-color: #8B5FBF;
  background: rgba(139, 95, 191, 0.1);
}

.cta-option input[type="radio"] {
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #8B5FBF;
}

.cta-option span {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Target Audience Section - Enhanced UX */
.target-audience-section {
  margin-top: 20px;
}

.audience-info-box {
  background: linear-gradient(135deg, rgba(139, 126, 200, 0.08), rgba(127, 176, 105, 0.08));
  border: 1px solid rgba(139, 126, 200, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.audience-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.audience-icon {
  font-size: 1.5rem;
}

.audience-title {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

.audience-info-content p {
  margin: 0 0 12px 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.customer-count-placeholder {
  min-height: 60px;
}

.loading-indicator {
  color: #888;
  font-style: italic;
  font-size: 0.9rem;
}

.customer-count-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 10px;
}

.customer-count-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.customer-count-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8B5FBF;
}

.customer-count-stats .stat-label {
  font-size: 0.85rem;
  color: #666;
}

.no-customers-warning {
  color: #dc3545;
  font-size: 0.9rem;
  margin: 8px 0 0 0;
  padding: 8px 12px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 6px;
}

.customer-ready {
  color: #28a745;
  font-size: 0.9rem;
  margin: 8px 0 0 0;
}

.count-error {
  color: #888;
  font-style: italic;
  font-size: 0.9rem;
}

/* Preview CTA Section */
.preview-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  margin-top: 16px;
}

.preview-btn {
  cursor: default;
  pointer-events: none;
  opacity: 0.9;
}

.cta-preview-note {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  text-align: center;
}

/* Email Preview */
.email-preview {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}

.email-preview h4 {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.preview-content {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  padding: 16px;
  font-family: 'Open Sans', sans-serif;
}

.preview-subject {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e1e5e9;
}

.preview-body {
  color: #495057;
  line-height: 1.6;
  margin-bottom: 12px;
}

.preview-cta {
  background: linear-gradient(135deg, #8B5FBF 0%, #7FB069 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  font-size: 14px;
}

/* Engagement Paths */
.engagement-builder {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.engagement-path {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.path-header {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 16px;
  background: #f8f9fa;
}

.path-header.not-interested {
  border-left: 4px solid #6c757d;
}

.path-header.curious {
  border-left: 4px solid #ffc107;
}

.path-header.engaged {
  border-left: 4px solid #28a745;
}

.path-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
}

.path-info {
  flex: 1;
}

.path-info h4 {
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.path-info p {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

.path-content {
  padding: 20px;
  border-top: 1px solid #e1e5e9;
  transition: opacity 0.3s ease;
}

.path-content.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.path-content textarea {
  width: 100%;
  margin-bottom: 12px;
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #8B5FBF;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* AI Suggestions */
.ai-suggestions {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.ai-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6c757d;
  font-size: 14px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-top: 2px solid #8B5FBF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.ai-suggestion-list h5 {
  color: #2c3e50;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.suggestion-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  margin-bottom: 8px;
}

.suggestion-text {
  flex: 1;
  font-size: 14px;
  color: #495057;
  line-height: 1.4;
}

.use-suggestion {
  white-space: nowrap;
}

/* Campaign Hub */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Add responsive behavior */
@media (max-width: 1200px) {
    .dashboard-grid {
        /* Let auto-fit handle column count based on available space */
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

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

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Campaign Summary */
.campaign-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.summary-section {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
}

.summary-section h4 {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e1e5e9;
}

.summary-item {
  margin-bottom: 8px;
  font-size: 14px;
  color: #495057;
}

.summary-item strong {
  color: #2c3e50;
}

.email-preview-summary {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  color: #6c757d;
  margin-top: 8px;
  line-height: 1.4;
}

.path-summary {
  margin-bottom: 4px;
  font-size: 14px;
  color: #495057;
}

/* Launch Options */
.launch-options {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.contact-selection {
  margin-top: 20px;
}

.contact-selection h4 {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.contact-selection p {
  color: #6c757d;
  font-size: 14px;
  margin: 0 0 12px 0;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #495057;
  cursor: pointer;
}

/* Wizard Controls */
.wizard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 2px solid #e1e5e9;
}

.controls-right {
  display: flex;
  gap: 12px;
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #8B5FBF 0%, #A47BD1 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 95, 191, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7a4fa8 0%, #9366c4 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.4);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #7FB069 0%, #98C985 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(127, 176, 105, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #6fa055 0%, #87b574 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(127, 176, 105, 0.4);
}

.btn-outline {
  background: white;
  border: 2px solid #e1e5e9;
  color: #6c757d;
}

.btn-outline:hover {
  border-color: #8B5FBF;
  color: #8B5FBF;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wizard-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .progress-bar {
    width: 150px;
  }

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

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

  .campaign-summary {
    grid-template-columns: 1fr;
  }

  .wizard-controls {
    flex-direction: column;
    gap: 16px;
  }

  .controls-right {
    width: 100%;
    justify-content: center;
  }

  .path-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .suggestion-item {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Animation for card selection */
.template-card.selected::before {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  background: #8B5FBF;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.template-card {
  position: relative;
}

/* Focus states for accessibility */
.btn:focus,
.template-card:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8B5FBF;
  outline-offset: 2px;
}

/* =============================================================================
   Campaign List View
   ============================================================================= */

.list-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e1e5e9;
}

.back-to-hub-button {
  background: linear-gradient(135deg, #8B5FBF 0%, #7FB069 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-to-hub-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 95, 191, 0.3);
}

.campaign-list-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Campaign Card */
.campaign-card {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.campaign-card:hover {
  border-color: #8B5FBF;
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.15);
}

.campaign-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e1e5e9;
}

.campaign-card .campaign-name {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

.campaign-card .card-body {
  margin-bottom: 20px;
}

/* Campaign Stats Grid */
.campaign-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-active {
  background: linear-gradient(135deg, rgba(127, 176, 105, 0.15) 0%, rgba(127, 176, 105, 0.25) 100%);
  color: #4a8c3f;
}

.status-paused {
  background: rgba(255, 193, 7, 0.15);
  color: #b8860b;
}

.status-completed {
  background: rgba(108, 117, 125, 0.15);
  color: #495057;
}

.status-draft {
  background: rgba(139, 95, 191, 0.15);
  color: #7a4fa8;
}

/* Campaign Meta */
.campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #6c757d;
}

.campaign-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Card Actions */
.campaign-card .card-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e1e5e9;
}

/* Draft Card Specific */
.draft-card {
  border-left: 4px solid #8B5FBF;
}

.draft-card .campaign-template {
  margin-top: 12px;
  font-size: 14px;
  color: #6c757d;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-top: 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.empty-state p {
  color: #6c757d;
  font-size: 16px;
  margin: 0 0 24px 0;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 60px 20px;
}

.loading-state p {
  color: #6c757d;
  margin-top: 16px;
}

/* Responsive Campaign Cards - Laptop */
@media (max-width: 1200px) {
  .campaign-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive Campaign Cards */
@media (max-width: 768px) {
  .campaign-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .campaign-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .campaign-card .card-actions {
    flex-direction: column;
  }

  .campaign-card .card-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .campaign-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 12px;
  }

  .stat-value {
    font-size: 22px;
  }
}

/* =============================================================================
   Goal Templates (Step 2)
   ============================================================================= */

.goal-templates-section {
  margin-top: 30px;
  margin-bottom: 30px;
}

.goal-templates-header {
  margin-bottom: 20px;
}

.goal-templates-header h4 {
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.goal-templates-subtitle {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

.goal-category-label {
  font-size: 13px;
  font-weight: 600;
  color: #8B5FBF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-left: 4px;
}

/* Goal Templates Grid */
.goal-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.goal-templates-grid.other-goals {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

/* Goal Template Card */
.goal-template-card {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.goal-template-card:hover {
  border-color: #8B5FBF;
  box-shadow: 0 4px 12px rgba(139, 95, 191, 0.15);
  transform: translateY(-2px);
}

.goal-template-card.selected {
  border-color: #8B5FBF;
  background: linear-gradient(135deg, rgba(139, 95, 191, 0.08) 0%, rgba(127, 176, 105, 0.08) 100%);
  box-shadow: 0 4px 16px rgba(139, 95, 191, 0.2);
}

.goal-template-card.recommended {
  border-color: rgba(139, 95, 191, 0.3);
}

.goal-template-card.recommended:not(.selected):hover {
  background: rgba(139, 95, 191, 0.04);
}

/* Goal Card Icon */
.goal-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 95, 191, 0.1) 0%, rgba(127, 176, 105, 0.1) 100%);
  border-radius: 10px;
}

/* Goal Card Content */
.goal-card-content {
  flex: 1;
  min-width: 0;
}

.goal-card-title {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.goal-card-description {
  color: #6c757d;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.goal-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

.goal-outcome {
  color: #7FB069;
  font-weight: 500;
}

.goal-timeline {
  color: #8B5FBF;
  font-weight: 500;
}

/* Goal Selected Checkmark */
.goal-selected-check {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #8B5FBF;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  animation: checkPop 0.3s ease;
}

@keyframes checkPop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Custom Goal Card */
.custom-goal-card {
  border-style: dashed;
  border-color: #adb5bd;
  background: #fafafa;
  min-width: 200px;
  max-width: 280px;
}

.custom-goal-card:hover {
  border-color: #8B5FBF;
  border-style: dashed;
  background: rgba(139, 95, 191, 0.04);
}

.custom-goal-card.selected {
  border-style: solid;
  border-color: #8B5FBF;
  background: linear-gradient(135deg, rgba(139, 95, 191, 0.08) 0%, rgba(127, 176, 105, 0.08) 100%);
}

/* Custom Goal Input */
.custom-goal-input {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
}

/* Goal Template Actions */
.goal-templates-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.show-more-goals {
  background: none;
  border: none;
  color: #8B5FBF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.show-more-goals:hover {
  color: #7a4fa8;
  text-decoration: underline;
}

/* =============================================================================
   Pre-fill Badge (Suggested)
   ============================================================================= */

.prefill-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(139, 95, 191, 0.15) 0%, rgba(127, 176, 105, 0.15) 100%);
  color: #8B5FBF;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-group.has-prefill label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.form-group.has-prefill .form-input.prefilled {
  border-color: rgba(139, 95, 191, 0.3);
  background: rgba(139, 95, 191, 0.02);
}

.form-group.has-prefill .form-input.prefilled:focus {
  border-color: #8B5FBF;
  background: white;
}

/* Engagement path with prefill */
.engagement-path.has-prefill {
  border-color: rgba(139, 95, 191, 0.3);
  background: linear-gradient(135deg, rgba(139, 95, 191, 0.02) 0%, rgba(127, 176, 105, 0.02) 100%);
}

.engagement-path.has-prefill .path-info h4 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Prefill badge in path header */
.engagement-path .path-info h4 .prefill-badge {
  font-size: 10px;
  padding: 2px 8px;
}

/* =============================================================================
   Responsive Goal Templates
   ============================================================================= */

@media (max-width: 768px) {
  .goal-templates-grid {
    grid-template-columns: 1fr;
  }

  .goal-template-card {
    padding: 16px;
  }

  .goal-card-icon {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .goal-templates-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .custom-goal-card {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .goal-template-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .goal-card-icon {
    margin: 0 auto;
  }

  .goal-card-meta {
    justify-content: center;
  }

  .goal-selected-check {
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

/* ============================================================================
   Landing Page Section in Campaign Detail
   ============================================================================ */

.landing-page-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.landing-page-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.landing-page-section h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.landing-page-section .section-actions {
  display: flex;
  gap: 8px;
}

/* No landing pages state */
.no-landing-pages {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-secondary, #f8f9fa);
  border-radius: 8px;
}

.no-landing-pages p {
  color: var(--text-secondary, #666);
  margin-bottom: 16px;
}

.no-landing-pages .btn {
  margin: 0 8px;
}

/* Summary stats */
.lp-summary-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #f8f7ff 0%, #f0fff4 100%);
  border-radius: 12px;
}

.lp-stat {
  text-align: center;
  padding: 12px;
}

.lp-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-purple, #8B7EC8);
}

.lp-stat.highlight .lp-stat-value {
  color: var(--primary-green, #7FB069);
}

.lp-stat-label {
  font-size: 12px;
  color: var(--text-secondary, #666);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Landing page cards grid */
.lp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.lp-card {
  background: var(--bg-secondary, #f8f9fa);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color, #e0e0e0);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lp-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.lp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.lp-card-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.lp-card-badges {
  display: flex;
  gap: 8px;
}

.lp-card-badges .status-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
}

.lp-card-badges .status-live {
  background: #dcfce7;
  color: #166534;
}

.lp-card-badges .status-draft {
  background: #fef3c7;
  color: #92400e;
}

.lp-card-badges .ab-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #ede9fe;
  color: #7c3aed;
}

/* Landing page card stats */
.lp-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.lp-mini-stat {
  text-align: center;
}

.lp-mini-stat .label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary, #666);
  margin-bottom: 4px;
}

.lp-mini-stat .value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #333);
}

/* URL display */
.lp-card-url {
  margin-bottom: 16px;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-card-url a {
  color: var(--primary-purple, #8B7EC8);
  text-decoration: none;
}

.lp-card-url a:hover {
  text-decoration: underline;
}

/* Card actions */
.lp-card-actions {
  display: flex;
  gap: 8px;
}

.lp-card-actions .btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Period note */
.lp-period-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary, #999);
  margin-top: 16px;
}

/* Responsive - Laptop */
@media (max-width: 1200px) {
  .lp-summary-stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Responsive */
@media (max-width: 768px) {
  .lp-summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-cards-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .lp-summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-page-section .section-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ============================================================================
   A/B Test Results Modal
   ============================================================================ */

.ab-results-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-results-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.ab-results-content {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ab-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.ab-results-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.ab-results-header .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary, #666);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.ab-results-header .close-btn:hover {
  background: var(--bg-secondary, #f0f0f0);
}

.ab-results-body {
  padding: 24px;
}

.ab-status {
  text-align: center;
  margin-bottom: 24px;
}

.ab-status .winner-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border-radius: 20px;
  font-weight: 600;
  font-size: 16px;
}

.ab-status .status-badge {
  display: inline-block;
  padding: 8px 20px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 20px;
  font-weight: 500;
  text-transform: capitalize;
}

.ab-variants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.ab-variant {
  background: var(--bg-secondary, #f8f9fa);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.ab-variant h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-purple, #8B7EC8);
}

.variant-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variant-stats div {
  font-size: 14px;
  color: var(--text-secondary, #666);
}

.ab-stats-detail {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px;
  background: #f8f7ff;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary, #666);
}

.ab-recommendation {
  text-align: center;
  font-size: 14px;
  color: var(--text-primary, #333);
  line-height: 1.6;
  margin: 0;
  padding: 16px;
  background: linear-gradient(135deg, #f8f7ff 0%, #f0fff4 100%);
  border-radius: 8px;
}

@media (max-width: 480px) {
  .ab-variants {
    grid-template-columns: 1fr;
  }

  .ab-stats-detail {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ===========================================================================
   EmailWare Integration - Campaign Wizard Step 3
   =========================================================================== */

/* Mode Selector */
.ew-mode-selector {
  margin-bottom: 28px;
}

.ew-mode-label {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
}

.ew-mode-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1200px) {
  .ew-mode-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .ew-mode-cards {
    grid-template-columns: 1fr;
  }
}

.ew-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.ew-mode-card:hover {
  border-color: #8B7EC8;
  background: #faf9ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 126, 200, 0.12);
}

.ew-mode-card.active {
  border-color: #8B7EC8;
  background: linear-gradient(135deg, rgba(139, 126, 200, 0.08), rgba(127, 176, 105, 0.06));
  box-shadow: 0 2px 12px rgba(139, 126, 200, 0.18);
}

.ew-mode-card.active .ew-mode-title {
  color: #8B7EC8;
}

.ew-mode-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.ew-mode-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 3px;
}

.ew-mode-desc {
  font-size: 12px;
  color: #6c757d;
  line-height: 1.4;
}

/* Mode Content Area */
.ew-mode-content {
  animation: slideIn 0.25s ease-out;
}

/* AI Generate Panel */
.ew-ai-generate-panel {
  background: linear-gradient(135deg, rgba(139, 126, 200, 0.06), rgba(127, 176, 105, 0.04));
  border: 1px solid rgba(139, 126, 200, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.ew-ai-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 6px 0;
}

.ew-ai-header p {
  font-size: 14px;
  color: #6c757d;
  margin: 0 0 20px 0;
}

.ew-ai-generate-btn {
  margin-top: 8px;
  background: linear-gradient(135deg, #8B7EC8, #7FB069);
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.ew-ai-generate-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ew-ai-generate-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Badge banners (AI generated, Template loaded, Story generated) */
.ew-ai-generated-badge,
.ew-template-loaded-badge,
.ew-story-generated-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
}

.ew-ai-generated-badge {
  background: linear-gradient(135deg, rgba(139, 126, 200, 0.1), rgba(127, 176, 105, 0.08));
  border: 1px solid rgba(139, 126, 200, 0.25);
  color: #5a4e8a;
}

.ew-template-loaded-badge {
  background: rgba(139, 126, 200, 0.08);
  border: 1px solid rgba(139, 126, 200, 0.2);
  color: #5a4e8a;
}

.ew-story-generated-badge {
  background: linear-gradient(135deg, rgba(127, 176, 105, 0.1), rgba(139, 126, 200, 0.06));
  border: 1px solid rgba(127, 176, 105, 0.25);
  color: #4a7a3a;
}

.ew-badge-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.ew-regenerate-btn,
.ew-change-template-btn {
  margin-left: auto;
  font-size: 13px;
  color: #8B7EC8;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.ew-regenerate-btn:hover,
.ew-change-template-btn:hover {
  color: #6a5da8;
}

/* Template Panel */
.ew-template-panel {
  background: rgba(139, 126, 200, 0.05);
  border: 1px dashed rgba(139, 126, 200, 0.3);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.ew-template-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 6px 0;
}

.ew-template-header p {
  font-size: 14px;
  color: #6c757d;
  margin: 0 0 20px 0;
}

.ew-open-templates-btn {
  background: #8B7EC8;
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.ew-open-templates-btn:hover {
  background: #7a6db7;
}

/* Story Panel */
.ew-story-panel {
  margin-bottom: 24px;
}

.ew-story-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 6px 0;
}

.ew-story-header p {
  font-size: 14px;
  color: #6c757d;
  margin: 0 0 20px 0;
}

.ew-story-picker-wrapper {
  border: 1px solid #e1e5e9;
  border-radius: 10px;
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
}

.ew-selected-story {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(127, 176, 105, 0.08), rgba(139, 126, 200, 0.05));
  border: 1px solid rgba(127, 176, 105, 0.25);
  border-radius: 10px;
  flex-wrap: wrap;
}

.ew-story-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.ew-story-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.ew-story-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ew-story-details strong {
  font-size: 15px;
  color: #2c3e50;
}

.ew-story-quote {
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
}

.ew-story-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Generating indicator */
.ew-generating-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-top: 16px;
  background: rgba(139, 126, 200, 0.06);
  border-radius: 8px;
  color: #5a4e8a;
  font-size: 14px;
}

.ew-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(139, 126, 200, 0.2);
  border-top-color: #8B7EC8;
  border-radius: 50%;
  animation: ew-spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

/* Review & Launch - Email Preview */
.ew-review-preview {
  margin-top: 8px;
}

.ew-review-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ew-review-preview-header h4 {
  margin: 0;
}

.ew-preview-device-tabs {
  display: flex;
  gap: 4px;
  background: #f0f0f3;
  padding: 3px;
  border-radius: 6px;
}

.ew-device-tab {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #6c757d;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.ew-device-tab.active {
  background: #fff;
  color: #2c3e50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ew-device-tab:hover:not(.active) {
  color: #2c3e50;
}

.ew-review-preview-frame {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
  transition: max-width 0.3s ease;
}

.ew-review-preview-frame.ew-preview-mobile {
  max-width: 375px;
}

.ew-review-preview-frame.ew-preview-desktop {
  max-width: 600px;
}

.ew-preview-email-header {
  border-bottom: 1px solid #e1e5e9;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.ew-preview-from {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
}

.ew-preview-subject-line {
  font-size: 15px;
  color: #2c3e50;
}

.ew-preview-email-body {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.ew-preview-email-cta {
  border-top: 1px solid #e1e5e9;
  padding-top: 16px;
  text-align: center;
}

/* Creation mode badge in review */
.summary-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-section-header h4 {
  margin: 0;
}

.ew-creation-mode-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 126, 200, 0.12), rgba(127, 176, 105, 0.10));
  color: #5a4e8a;
  white-space: nowrap;
}

/* Btn-sm utility (smaller action button) */
.btn-sm {
  padding: 6px 14px !important;
  font-size: 13px !important;
}
