/* ===== ONBOARDING STYLES ===== */

/* Onboarding Modal */
.onboarding-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.onboarding-modal.active {
  display: flex;
}

.onboarding-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.onboarding-modal-content {
  position: relative;
  background: var(--midnight);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  max-width: 500px;
  width: calc(100% - 1rem);
  max-height: calc(100vh - 220px);
  max-height: calc(100dvh - 220px);
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
  margin: 0.5rem;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.onboarding-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--steel);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 10;
}

.onboarding-close-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  color: var(--arcane, var(--rune));
}

.onboarding-close-btn:focus {
  outline: 2px solid var(--arcane, var(--rune));
  outline-offset: 2px;
}

.onboarding-close-btn:active {
  transform: scale(0.95);
}

/* Wizard Steps */
.wizard-step {
  text-align: center;
}

.wizard-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.wizard-icon.success {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary, var(--arcane)), var(--color-primary-hover, #0d9488));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
}

.wizard-step h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--rune);
  margin: 0 0 0.75rem;
}

.wizard-subtitle {
  color: var(--steel);
  font-size: 1rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.wizard-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 1.5rem 0;
  text-align: left;
}

.wizard-feature {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  background: var(--color-primary-muted, rgba(20, 184, 166, 0.08));
  border-radius: 8px;
  border: 1px solid var(--color-primary, rgba(20, 184, 166, 0.15));
}

.wizard-feature .feature-icon {
  font-size: 1.25rem;
}

.wizard-feature span:last-child {
  color: var(--rune);
  font-size: 0.9375rem;
}

.wizard-time {
  color: var(--steel);
  font-size: 0.875rem;
  margin: 1.5rem 0;
  font-style: italic;
}

.wizard-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.wizard-btn-primary {
  background: linear-gradient(135deg, var(--color-primary, var(--arcane)), var(--color-primary-hover, #0d9488));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary, 0 8px 24px rgba(20, 184, 166, 0.3));
}

.wizard-btn-secondary {
  background: transparent;
  color: var(--steel);
  border: 1px solid var(--card-border);
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-btn-secondary:hover {
  background: var(--color-surface-hover, rgba(255, 255, 255, 0.05));
  color: var(--rune);
}

/* Path Selection Cards */
.wizard-paths {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.wizard-path-card {
  background: var(--obsidian);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.wizard-path-card:hover {
  border-color: var(--arcane);
  background: var(--color-primary-muted, rgba(20, 184, 166, 0.05));
  transform: translateY(-2px);
}

.wizard-path-card .path-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.wizard-path-card h3 {
  font-family: var(--font-display);
  color: var(--rune);
  font-size: 1.125rem;
  margin: 0 0 0.375rem;
}

.wizard-path-card p {
  color: var(--steel);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

.path-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--arcane);
  color: var(--obsidian);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tour Spotlight */
.tour-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: none;
  pointer-events: none;
}

.tour-spotlight.active {
  display: block;
}

.tour-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  pointer-events: auto;
}

.tour-highlight {
  position: absolute;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  background: transparent;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1;
}

.tour-tooltip {
  position: absolute;
  width: 320px;
  background: var(--midnight);
  border: 1px solid var(--arcane);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  z-index: 2;
  animation: tooltipFadeIn 0.2s ease-out;
}

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

.tour-tooltip-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--midnight);
  border: 1px solid var(--arcane);
  transform: rotate(45deg);
}

.tour-tooltip.position-bottom .tour-tooltip-arrow {
  top: -7px;
  left: 50%;
  margin-left: -6px;
  border-right: none;
  border-bottom: none;
}

.tour-tooltip.position-top .tour-tooltip-arrow {
  bottom: -7px;
  left: 50%;
  margin-left: -6px;
  border-left: none;
  border-top: none;
}

.tour-tooltip.position-left .tour-tooltip-arrow {
  right: -7px;
  top: 50%;
  margin-top: -6px;
  border-left: none;
  border-bottom: none;
}

.tour-tooltip.position-right .tour-tooltip-arrow {
  left: -7px;
  top: 50%;
  margin-top: -6px;
  border-right: none;
  border-top: none;
}

.tour-tooltip-title {
  font-family: var(--font-display);
  color: var(--arcane);
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.tour-tooltip-content {
  color: var(--rune);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.tour-tooltip-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tour-btn-skip {
  background: none;
  border: none;
  color: var(--steel);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.5rem;
}

.tour-btn-skip:hover {
  color: var(--rune);
}

.tour-progress {
  color: var(--steel);
  font-size: 0.8125rem;
}

.tour-btn-next {
  background: var(--arcane);
  color: var(--obsidian);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tour-btn-next:hover {
  background: var(--color-primary-hover, #0d9488);
}

/* Landing Page Hero Enhancements */
.landing-hero {
  text-align: center;
  padding: 2rem 1rem 6rem;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.landing-hero-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--rune);
  margin: 0 0 0.75rem;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.landing-hero-subtitle {
  color: var(--steel);
  font-size: 1.125rem;
  margin: 0 0 2.5rem;
  line-height: 1.6;
}

.landing-main-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.landing-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

.landing-action-btn.btn-primary {
  background: var(--gradient-primary, linear-gradient(135deg, var(--arcane), var(--color-primary-hover)));
  color: white;
  box-shadow: var(--shadow-primary-md, 0 4px 16px rgba(20, 184, 166, 0.25));
}

.landing-action-btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-lg, 0 8px 24px rgba(20, 184, 166, 0.35));
}

.landing-action-btn.btn-secondary {
  background: var(--midnight);
  color: var(--rune);
  border: 1px solid var(--card-border);
}

.landing-action-btn.btn-secondary:hover {
  border-color: var(--arcane);
  background: var(--surface-primary-soft, rgba(20, 184, 166, 0.08));
}

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

.landing-action-btn.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

.landing-action-btn .btn-icon {
  font-size: 1.5rem;
}

/* Welcome Back Banner */
.welcome-back-banner {
  background: var(--gradient-primary-secondary-soft, linear-gradient(135deg, var(--surface-primary-subtle), var(--surface-secondary-subtle)));
  border: 1px solid var(--border-primary-soft, rgba(20, 184, 166, 0.2));
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: none;
}

.welcome-back-banner.visible {
  display: block;
}

.welcome-back-banner h3 {
  color: var(--arcane);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.welcome-back-banner p {
  color: var(--rune);
  margin: 0;
}

.welcome-back-banner .campaign-name {
  font-weight: 600;
}

/* Onboarding Prompt */
.onboarding-prompt {
  background: var(--midnight);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  display: none;
}

.onboarding-prompt.visible {
  display: block;
}

.onboarding-prompt h3 {
  color: var(--rune);
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.onboarding-prompt p {
  color: var(--steel);
  margin: 0 0 1rem;
}

.onboarding-prompt-btn {
  background: var(--color-primary-muted, rgba(20, 184, 166, 0.15));
  color: var(--arcane);
  border: 1px solid var(--border-primary-strong, rgba(20, 184, 166, 0.3));
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.onboarding-prompt-btn:hover {
  background: var(--surface-primary-strong, rgba(20, 184, 166, 0.25));
}

/* Features List */
.landing-features {
  background: var(--midnight);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
}

.landing-features h3 {
  font-family: var(--font-display);
  color: var(--rune);
  font-size: 1.125rem;
  margin: 0 0 1rem;
  text-align: center;
}

.landing-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.landing-features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--steel);
  font-size: 0.9375rem;
}

.landing-features-list li::before {
  content: '✓';
  color: var(--arcane);
  font-weight: bold;
}

/* Info Tooltips */
.info-tooltip {
  position: relative;
  display: inline-flex;
  margin-left: 0.5rem;
}

.info-tooltip .info-icon {
  width: 18px;
  height: 18px;
  background: var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--steel);
  cursor: help;
  transition: all 0.2s;
}

.info-tooltip:hover .info-icon {
  background: var(--arcane);
  color: var(--obsidian);
}

.info-tooltip .info-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--midnight);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--rune);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.info-tooltip:hover .info-text {
  opacity: 1;
  visibility: visible;
}

/* Help Page Styles */
.help-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.help-page h1 {
  font-family: var(--font-display);
  color: var(--rune);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.help-page > p {
  color: var(--steel);
  font-size: 1rem;
  margin: 0 0 2rem;
}

.help-section {
  background: var(--midnight);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.help-section h2 {
  font-family: var(--font-display);
  color: var(--arcane);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-section p {
  color: var(--rune);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

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

.help-section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.help-section li {
  color: var(--steel);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.help-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.help-action-btn {
  background: var(--midnight);
  border: 1px solid var(--card-border);
  color: var(--rune);
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.help-action-btn:hover {
  border-color: var(--arcane);
  color: var(--arcane);
}

/* Mobile First - Compact Preset Cards */
.wizard-path-card {
  padding: 0.75rem;
}

.wizard-path-card .path-icon {
  font-size: 1.25rem;
  margin-bottom: 0.125rem;
}

.wizard-path-card h3 {
  font-size: 0.9375rem;
  margin: 0 0 0.125rem;
}

.wizard-path-card p {
  font-size: 0.75rem;
  margin: 0 0 0.375rem;
  line-height: 1.4;
}

.path-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.375rem;
}

.path-tag {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background: var(--surface-primary-subtle, rgba(20, 184, 166, 0.1));
  border: 1px solid var(--border-primary-soft, rgba(20, 184, 166, 0.2));
  border-radius: 4px;
  color: var(--arcane);
}

/* Mobile: Wizard Actions - Always Visible */
.wizard-actions.sticky-actions {
  position: sticky;
  bottom: 0;
  background: var(--midnight);
  padding: 0.75rem 0 0.25rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--card-border);
  z-index: 10;
}

.wizard-paths {
  max-height: 35vh;
  overflow-y: auto;
  margin-bottom: 0;
  padding-bottom: 0.25rem;
}

/* Responsive */
@media (min-width: 480px) {
  .landing-hero-title {
    font-size: 2.25rem;
  }
  
  .landing-hero {
    padding: 2.5rem 1.5rem 5rem;
  }
}

@media (min-width: 640px) {
  .landing-hero-title {
    font-size: 2.75rem;
  }
  
  .landing-main-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .landing-action-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
  }
  
  .wizard-paths {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow-y: visible;
  }
  
  .wizard-path-card {
    flex: 1 1 45%;
    min-width: 250px;
    padding: 1.25rem;
  }
  
  .wizard-path-card .path-icon {
    font-size: 2rem;
  }
  
  .wizard-path-card h3 {
    font-size: 1.125rem;
  }
  
  .wizard-path-card p {
    font-size: 0.875rem;
  }
  
  .wizard-actions {
    position: static;
    background: transparent;
    border-top: none;
    padding: 1.5rem 0 0;
  }
  
  .onboarding-modal-content {
    padding: 2rem;
    max-height: calc(100vh - 100px);
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .onboarding-modal-content {
    padding: 2.5rem;
    max-height: 85vh;
    margin: 2rem;
  }
  
  .tour-tooltip {
    width: 360px;
  }
  
  .landing-features-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .landing-hero {
    padding: 3rem 2rem 4rem;
  }
}

/* ===== LIGHT MODE OVERRIDES ===== */
[data-theme="light"] .onboarding-modal-content {
  background: var(--midnight);
  border-color: var(--card-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .wizard-step h2 {
  color: var(--rune);
}

[data-theme="light"] .wizard-subtitle {
  color: var(--steel);
}

[data-theme="light"] .wizard-feature {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.2);
}

[data-theme="light"] .wizard-feature span:last-child {
  color: var(--rune);
}

[data-theme="light"] .wizard-path-card {
  background: var(--obsidian);
  border-color: var(--card-border);
}

[data-theme="light"] .wizard-path-card:hover {
  background: rgba(20, 184, 166, 0.06);
  border-color: var(--arcane);
}

[data-theme="light"] .wizard-path-card h3 {
  color: var(--rune);
}

[data-theme="light"] .wizard-path-card p {
  color: var(--steel);
}

[data-theme="light"] .wizard-btn-secondary {
  background: transparent;
  color: var(--steel);
  border-color: var(--card-border);
}

[data-theme="light"] .wizard-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--rune);
}

[data-theme="light"] .wizard-actions.sticky-actions {
  background: var(--midnight);
  border-top-color: var(--card-border);
}

[data-theme="light"] .tour-tooltip {
  background: var(--midnight);
  border-color: var(--arcane);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .tour-tooltip-arrow {
  background: var(--midnight);
  border-color: var(--arcane);
}

[data-theme="light"] .tour-tooltip-content {
  color: var(--rune);
}

[data-theme="light"] .landing-features {
  background: var(--midnight);
  border-color: var(--card-border);
}

[data-theme="light"] .landing-features h3 {
  color: var(--rune);
}

[data-theme="light"] .landing-features-list li {
  color: var(--steel);
}

[data-theme="light"] .onboarding-prompt {
  background: var(--midnight);
  border-color: var(--card-border);
}

[data-theme="light"] .onboarding-prompt h3 {
  color: var(--rune);
}

[data-theme="light"] .help-section {
  background: var(--midnight);
  border-color: var(--card-border);
}

[data-theme="light"] .help-section p {
  color: var(--rune);
}

[data-theme="light"] .help-section li {
  color: var(--steel);
}

[data-theme="light"] .help-action-btn {
  background: var(--midnight);
  border-color: var(--card-border);
  color: var(--rune);
}

[data-theme="light"] .landing-action-btn.btn-secondary {
  background: var(--midnight);
  border-color: var(--card-border);
  color: var(--rune);
}

[data-theme="light"] .path-tag {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.25);
  color: #0d9488;
}

[data-theme="light"] .path-badge {
  background: var(--arcane);
  color: #fff;
}

[data-theme="light"] .info-tooltip .info-icon {
  background: var(--card-border);
  color: var(--steel);
}

[data-theme="light"] .info-tooltip .info-text {
  background: var(--midnight);
  border-color: var(--card-border);
  color: var(--rune);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== GM ONBOARDING WIZARD STYLES ===== */
.gm-onboarding-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.onboarding-wizard {
  max-width: 960px;
  width: 100%;
  margin: 1rem auto;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: var(--card-bg, rgba(15,23,42,0.95));
  border: 1px solid var(--card-border, rgba(148,163,184,0.2));
}

.onboarding-header {
  margin-bottom: 0.75rem;
  text-align: center;
}

.onboarding-title {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-display, Cinzel, serif);
  color: var(--arcane-teal, #38bdf8);
  margin: 0 0 0.5rem;
}

.onboarding-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  color: var(--steel, #94a3b8);
  margin: 0;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.onboarding-step-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.onboarding-step {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  opacity: 0.6;
  cursor: default;
  transition: all 0.2s ease;
}

.onboarding-step-active {
  border-color: var(--arcane-teal, #38bdf8);
  background: rgba(15, 23, 42, 0.8);
  opacity: 1;
  color: var(--arcane-teal, #38bdf8);
}

.onboarding-step-body {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1rem 1.25rem;
  min-height: 320px;
  background: rgba(15, 23, 42, 0.5);
}

.onboarding-panel {
  animation: fadeIn 0.3s ease;
}

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

.onboarding-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.onboarding-footer-spacer {
  flex: 1;
}

/* Onboarding Wizard Step Content */
.onb-world-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.onb-world-details {
  margin-top: 1rem;
}

.onb-inline-form {
  background: rgba(15, 23, 42, 0.6);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.onb-inline-form h4 {
  margin: 0 0 0.75rem;
  color: var(--arcane-teal, #38bdf8);
}

.onb-inline-form .input {
  margin-bottom: 0.5rem;
}

.onb-world-summary-card,
.onb-campaign-summary-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 1rem;
}

.onb-world-summary-card h3,
.onb-campaign-summary-card h4 {
  margin: 0 0 0.5rem;
  color: var(--arcane-teal, #38bdf8);
}

.onb-preset-badge {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.onb-template-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.onb-template-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.onb-template-card:hover {
  border-color: var(--arcane-teal, #38bdf8);
  background: rgba(56, 189, 248, 0.1);
}

.onb-template-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--rune, #e2e8f0);
}

.onb-template-genre {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 2px 6px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.onb-template-card p {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0;
  line-height: 1.4;
}

.onb-three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.onb-three-column h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--steel, #94a3b8);
}

.onb-next-steps-list {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.onb-next-steps-list li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.onb-next-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .onboarding-step-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .onboarding-step {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }

  .onb-three-column {
    grid-template-columns: 1fr;
  }

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

/* ========================================
   BUTTON TESTER STYLES (Dev Mode)
   ======================================== */

.btn-test-warning {
  background: rgba(255, 174, 0, 0.15) !important;
  border: 2px solid rgba(255, 174, 0, 0.6) !important;
  box-shadow: 0 0 8px rgba(255, 174, 0, 0.3);
}

.btn-test-error {
  background: rgba(255, 80, 80, 0.15) !important;
  border: 2px solid rgba(255, 80, 80, 0.6) !important;
  box-shadow: 0 0 8px rgba(255, 80, 80, 0.4);
  animation: pulse-error 1s infinite;
}

.btn-test-healthy {
  box-shadow: 0 0 6px rgba(80, 200, 120, 0.4);
}

@keyframes pulse-error {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.dev-tool-btn {
  background: var(--surface-elevated, #2a2a3e) !important;
  border: 1px dashed var(--accent-secondary, #9b87c7) !important;
  color: var(--text-secondary, #a0a0b0) !important;
  font-size: 10px !important;
  padding: 2px 6px !important;
}

.dev-tool-btn:hover {
  background: var(--accent-secondary, #9b87c7) !important;
  color: var(--text-primary, #fff) !important;
}
