:root {
  --bg: #F6F8FB;
  --card: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.6);
  --text: #0F1F2E;
  --muted: #6B7C8F;
  --primary: #004B87;
  --primary-500: #1D6BB8;
  --primary-600: #003B69;
  --secondary: #2A94D6;
  --accent: #59C3A6;
  --border: #E5E9F2;
  --shadow: 0 20px 45px rgba(16, 24, 40, .12);
  --shadow-soft: 0 10px 30px rgba(16, 24, 40, .08);
  --danger: #ef4444;
  --success: #12b76a;
}

:root.dark {
  --bg: #0F1220;
  --card: #15192c;
  --glass-bg: rgba(21, 25, 44, 0.65);
  --glass-border: rgba(111, 125, 172, 0.32);
  --text: #e6e8ef;
  --muted: #9AA0B4;
  --primary: #2A94D6;
  --primary-500: #1E74AA;
  --primary-600: #15577F;
  --border: #22263D;
  --shadow: 0 18px 38px rgba(5, 8, 15, .55);
  --shadow-soft: 0 10px 26px rgba(5, 8, 15, .45);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

strong,
b {
  font-weight: 700 !important;
  color: var(--text);
  /* Ensure it doesn't get grayed out */
}

h1,
h2,
h3,
h4,
h5,
.brand-text {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

h1,
h2,
h3,
h4,
h5 {
  margin: .2rem 0;
  color: inherit
}

p {
  margin: .4rem 0
}

.muted {
  color: var(--muted)
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- TOPBAR -------- */
.topbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary);
  /* Accent line on top */
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  /* Increased for bigger logo */
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: 85px;
  /* Successfully modified to be much larger */
  object-fit: contain;
}

.brand-text h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.brand-text span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* Highlighted slogan */
/* -------- BENTO GRID -------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.info-card {
  background: var(--bg);
  /* Slight contrast from card */
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.06);
}

.info-icon {
  font-size: 24px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.info-card:first-child {
  grid-column: span 2;
  /* Bento Style: Idea takes 2 slots */
  background: linear-gradient(135deg, rgba(0, 91, 234, 0.03), rgba(0, 198, 251, 0.03));
  border-color: rgba(0, 91, 234, 0.08);
}

.info-card:first-child .info-icon {
  background: #fff;
  color: #005bea;
}

/* Responsiveness for Bento */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-card:first-child {
    grid-column: span 1;
  }

  .hero-copy h2 {
    font-size: 36px;
  }
}




.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.5rem;
  /* Bigger touch target */
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn.primary {
  background: linear-gradient(135deg, #005bea 0%, #00c6fb 100%);
  /* Vibrant Blue Gradient */
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 198, 251, 0.4);
  border: none;
}

.btn.primary:hover {
  box-shadow: 0 6px 20px rgba(0, 198, 251, 0.6);
}

.btn.hero-cta {
  background: linear-gradient(135deg, #005bea 0%, #00c6fb 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 198, 251, 0.35);
  font-size: 18px;
  padding: 1rem 2.8rem;
  border-radius: 99px;
  /* Pill shape for modern look */
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn.hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 198, 251, 0.45);
}

/* Shimmer effect */
.btn.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: .5s;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.btn.ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.chip::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
  transition: all 0.3s ease;
}

.chip.ready {
  background: rgba(18, 183, 106, 0.1);
  color: #05603A;
  border-color: rgba(18, 183, 106, 0.2);
}

.chip.ready::before {
  background-color: #12b76a;
  box-shadow: 0 0 0 2px rgba(18, 183, 106, 0.2);
}

/* -------- HERO -------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 64px 24px 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px;
  background: radial-gradient(circle at top left, rgba(42, 148, 214, .18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(89, 195, 166, .18), transparent 55%);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0));
  z-index: -1;
}

.hero-copy h2 {
  font-size: 56px;
  /* Bigger impact */
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .hero-copy h2 {
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy p {
  font-size: 18px;
  max-width: 520px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 24px 0 22px 0;
  flex-wrap: wrap;
}

.hero-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-highlights li {
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(0, 75, 135, .12);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 75, 135, .12);
}

.hero-visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  /* Behind content but above background */
  pointer-events: auto;
  /* Allow mouse interaction */
}

.type-highlight {
  color: var(--primary);
  position: relative;
}

.type-highlight::after {
  content: '|';
  position: absolute;
  right: -10px;
  animation: blink 1s infinite;
  color: var(--text);
  font-weight: 300;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.floating-card {
  position: absolute;
  padding: 22px 24px;
  border-radius: 20px;
  max-width: 220px;
  animation: float 8s ease-in-out infinite;
}

.floating-card.primary {
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  /* Glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  color: var(--text);
  animation-delay: 0s;
}

.floating-card.primary h4 {
  color: #005bea;
}

.floating-card.primary p {
  color: var(--muted);
}

.floating-card.accent {
  bottom: 12%;
  left: 6%;
  background: linear-gradient(160deg, rgba(89, 195, 166, .95), rgba(89, 195, 166, .7));
  color: #0c2c26;
  animation-delay: 1.4s;
}

.floating-card.ghost {
  top: 42%;
  left: 45%;
  background: #fff;
  border: 1px solid rgba(0, 75, 135, .12);
  animation-delay: .7s;
}

@keyframes float {

  0%,
  100% {
    transform: translate3d(0, -6px, 0);
  }

  50% {
    transform: translate3d(0, 8px, 0);
  }
}

/* -------- FEATURES -------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 10px 24px 50px;
}

.feature-card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(0, 75, 135, .08);
  box-shadow: var(--shadow-soft);
  min-height: 160px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

/* -------- WORKSPACE -------- */
.workspace {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.content {
  display: grid;
  gap: 22px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid rgba(0, 75, 135, .08);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.generation-hud {
  display: grid;
  gap: 24px;
}

/* Nuevo header del HUD */
.hud-header {
  display: grid;
  gap: 20px;
}

.hud-header-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hud-icon {
  font-size: 48px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(42, 148, 214, .15), rgba(0, 75, 135, .08));
  border-radius: 18px;
  border: 2px solid rgba(0, 75, 135, .2);
  flex-shrink: 0;
}

.hud-title-wrapper {
  flex: 1;
}

.hud-title-wrapper h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text);
}

.hud-title-wrapper p {
  margin: 0;
  font-size: 14px;
}

/* Progress Card mejorada */
.progress-card {
  background: linear-gradient(135deg, rgba(42, 148, 214, .08), rgba(0, 75, 135, .05));
  border: 1px solid rgba(0, 75, 135, .18);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.progress-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(89, 195, 166, .15), transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

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

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

.progress-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.stat-divider {
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(0, 75, 135, .25), transparent);
}

.stepper {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.step-pill {
  border: none;
  background: var(--card);
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 75, 135, .16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--text);
  text-align: left;
}

.step-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 75, 135, .08);
}

.step-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 148, 214, .25);
}

.step-pill .step-pill-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.step-pill .index {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(0, 75, 135, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.step-pill .step-title {
  display: block;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.step-pill .step-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.step-pill.completed {
  border-color: rgba(18, 183, 106, .4);
  background: rgba(18, 183, 106, .12);
}

.step-pill.completed .index {
  border-color: rgba(18, 183, 106, .7);
  color: var(--success);
}

.step-pill.completed .step-status {
  color: var(--success);
}

.step-pill.active {
  border-color: rgba(0, 75, 135, .45);
  background: rgba(0, 75, 135, .08);
}

.step-pill.active .index {
  border-color: var(--primary);
  color: var(--primary);
}

.step-pill.in-view {
  box-shadow: 0 0 0 2px rgba(42, 148, 214, .25);
}

.step-pill.error {
  border-color: rgba(239, 68, 68, .45);
  background: rgba(239, 68, 68, .08);
}

.step-pill.error .index {
  border-color: rgba(239, 68, 68, .7);
  color: var(--danger);
}

.step-pill.error .step-status {
  color: var(--danger);
}

.status-glow {
  width: 100%;
  max-width: 320px;
  padding: 22px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(42, 148, 214, .18), rgba(0, 75, 135, .12)),
    linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .65));
  box-shadow: 0 25px 50px rgba(27, 91, 158, .22);
  position: relative;
  overflow: hidden;
}

.status-glow::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(89, 195, 166, .28), transparent 65%);
  opacity: .4;
  animation: pulse 6s ease-in-out infinite;
}

.status-glow.celebrated {
  animation: popGlow .9s ease;
  box-shadow: 0 30px 80px rgba(18, 183, 106, .32);
}

@keyframes pulse {

  0%,
  100% {
    opacity: .25;
  }

  50% {
    opacity: .55;
  }
}

.progress-label {
  position: relative;
  z-index: 1;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  margin: 14px 0 16px;
  overflow: hidden;
  z-index: 1;
}

.progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: inherit;
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

.typing {
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-glow.is-typing::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .9), transparent 55%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, .75), transparent 52%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, .6), transparent 60%);
  opacity: 0;
  animation: sparkle 1.6s ease-in-out infinite;
  pointer-events: none;
}

/* -------- PREVIEW HEADER -------- */
.preview-header-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(0, 75, 135, .1);
  margin-bottom: 28px;
}

.preview-icon {
  font-size: 56px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(42, 148, 214, .15), rgba(0, 75, 135, .08));
  border-radius: 20px;
  border: 2px solid rgba(0, 75, 135, .2);
  flex-shrink: 0;
}

.preview-title-wrapper {
  flex: 1;
}

.preview .title-xl {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 6px 0;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preview-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

/* -------- INFO BASE REDESIGN -------- */
.info-base {
  margin-top: 28px;
}

.info-base-header {
  margin-bottom: 22px;
}

.info-base-header h3 {
  font-size: 22px;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.info-base-header p {
  margin: 0;
  font-size: 14px;
}

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

.info-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(246, 250, 254, .85));
  border: 1px solid rgba(0, 75, 135, .15);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
  min-height: 110px;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(42, 148, 214, .12), transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  transition: transform .3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 75, 135, .15);
  border-color: rgba(0, 75, 135, .3);
}

.info-card:hover::before {
  transform: translate(25%, -25%) scale(1.2);
}

.info-icon {
  font-size: 32px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(42, 148, 214, .18), rgba(0, 75, 135, .12));
  border-radius: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.info-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.info-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: 8px;
  opacity: .85;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
}

.sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sections .sec {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 75, 135, .12);
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}

.sections .sec header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sections .sec:hover {
  box-shadow: 0 18px 38px rgba(16, 24, 40, .12);
  transform: translateY(-2px);
}

.sections .sec.editing {
  background: rgba(0, 75, 135, .06);
  border-color: rgba(0, 75, 135, .24);
  box-shadow: none;
}

.sections .sec .section-body {
  margin-top: 12px;
}

.sections .sec .section-footer {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.section-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
}

.section-toolbar .btn {
  padding: .45rem .7rem;
  font-size: 13px;
  box-shadow: none;
  border-radius: 12px;
}

.sections .sec.editing .section-toolbar {
  position: static;
  top: auto;
  right: auto;
}

.editor-shell {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0, 75, 135, .16);
  padding: 18px;
  box-shadow: 0 22px 50px rgba(16, 40, 70, .08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editor-shell label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  color: var(--primary);
}

.editor-shell .hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.editor-input {
  width: 100%;
  min-height: 260px;
  border-radius: 16px;
  border: 1px solid rgba(0, 75, 135, .2);
  background: linear-gradient(180deg, #fdfefe, #f2f6fb);
  padding: 1rem 1.1rem;
  font: 15px/1.5 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  resize: vertical;
  box-shadow: inset 0 2px 8px rgba(16, 40, 70, .06);
}

.editor-input:focus {
  outline: none;
  border-color: rgba(0, 75, 135, .5);
  box-shadow: 0 0 0 3px rgba(42, 148, 214, .15);
  background: #fff;
}

.editor-helper {
  font-size: 13px;
}

.editor-footnote {
  margin-top: 14px;
  font-size: 13px;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(0, 75, 135, .18);
  border-top-color: var(--secondary);
  animation: spin 1s linear infinite;
}

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

.skel {
  height: 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eef4fb, #e1ecf9, #eef4fb);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

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

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

/* -------- DIALOGS -------- */
dialog {
  border: none;
  border-radius: 20px;
  padding: 0;
  box-shadow: var(--shadow);
  background: transparent;
}

dialog::backdrop {
  background: rgba(10, 22, 41, 0.55);
  backdrop-filter: blur(14px);
}

.wizard-modal {
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
}

.wizard-modal[open] {
  display: flex;
}

/* -------- WIZARD 2.0 (Manrope) -------- */
:root {
  --wiz-primary: #177082;
  --wiz-primary-dark: #135c6b;
  --wiz-bg-light: #f7f7f8;
  --wiz-border: #dce3e5;
  --wiz-text: #121617;
  --wiz-muted: #658086;
}

.wizard-modal {
  padding: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.wizard-2-0 {
  width: min(1200px, 96vw);
  max-width: 1200px;
  height: min(90vh, 1000px);
  background: var(--wiz-bg-light);
  border-radius: 12px;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
  color: var(--wiz-text);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Header */
.wiz-header {
  height: 70px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--wiz-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  backdrop-filter: blur(10px);
}

.wiz-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wiz-logo-icon {
  color: var(--wiz-primary);
  font-size: 28px;
}

.wiz-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.wiz-brand h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--wiz-text);
  margin: 0;
}

.wiz-progress-container {
  flex: 1;
  max-width: 400px;
  margin: 0 40px;
}

.wiz-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}

.wiz-step-text {
  color: var(--wiz-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wiz-percent-text {
  color: var(--wiz-text);
}

.wiz-progress-track {
  width: 100%;
  height: 6px;
  background: var(--wiz-border);
  border-radius: 99px;
  overflow: hidden;
}

.wiz-progress-fill {
  height: 100%;
  background: var(--wiz-primary);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body */
.wiz-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  padding: 0;
  /* Let main handle padding */
}

/* Main Main */
.wiz-main {
  flex: 1.8;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.wiz-card {
  background: #fff;
  border: 1px solid var(--wiz-border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wiz-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wiz-primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.wiz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wiz-primary);
}

.step-content-2-0 h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--wiz-text);
}

.step-content-2-0 label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--wiz-text);
}

.wiz-textarea,
.wiz-input {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--wiz-border);
  background: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  color: var(--wiz-text);
  transition: all 0.2s;
}

.wiz-textarea:focus,
.wiz-input:focus {
  outline: none;
  border-color: var(--wiz-primary);
  box-shadow: 0 0 0 4px rgba(23, 112, 130, 0.1);
}

.wiz-textarea {
  min-height: 180px;
  resize: none;
}

/* Nav */
.wiz-nav {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--wiz-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wiz-btn-back {
  background: transparent;
  border: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--wiz-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.wiz-btn-back:hover:not(:disabled) {
  color: var(--wiz-text);
}

.wiz-btn-back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.wiz-btn-next {
  background: var(--wiz-primary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(23, 112, 130, 0.2);
  transition: all 0.2s;
}

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

.wiz-autosave-msg {
  text-align: center;
  color: var(--wiz-muted);
  font-size: 13px;
  margin-top: 20px;
}

/* Sidebar */
.wiz-sidebar {
  flex: 1;
  background: var(--wiz-bg-light);
  padding: 40px;
  border-left: 1px solid var(--wiz-border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.wiz-tip-box {
  background: rgba(23, 112, 130, 0.05);
  border: 1px solid rgba(23, 112, 130, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.wiz-tip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--wiz-primary);
}

.wiz-tip-header h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.wiz-tip-item {
  border-left: 2px solid rgba(23, 112, 130, 0.3);
  padding-left: 16px;
  margin-bottom: 16px;
}

.wiz-tip-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}

.wiz-tip-item p {
  font-size: 14px;
  color: var(--wiz-muted);
  margin: 0;
  line-height: 1.5;
}

.wiz-example-box {
  background: #fff;
  border: 1px solid var(--wiz-border);
  border-radius: 12px;
  padding: 24px;
}

.wiz-example-box h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.wiz-example-card {
  background: var(--wiz-bg-light);
  border: 1px dashed var(--wiz-border);
  border-radius: 8px;
  padding: 16px;
}

.italic-text {
  font-style: italic;
  font-size: 14px;
  color: var(--wiz-muted);
}

.wiz-image-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 160px;
  margin-top: auto;
}

.wiz-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.wiz-image-card:hover img {
  transform: scale(1.1);
}

.wiz-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

@media (max-width: 900px) {
  .wiz-sidebar {
    display: none;
  }

  .wizard-2-0 {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.wizard-frame::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(42, 148, 214, 0.1), transparent 70%);
  pointer-events: none;
}

.close-modal {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255, 255, 255, 0.5) !important;
  border: none !important;
  z-index: 10;
}

.close-modal:hover {
  color: #fff !important;
}

.modal-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.modal-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #2a94d6);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
  transition: width .6s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all .3s ease;
}

.modal-dot.active {
  background: #38bdf8;
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.modal-dot.completed {
  background: #2dd4bf;
}

.stage {
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 4px;
}

.stage.fade-enter {
  animation: fadeUp .45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stage.fade-back.fade-enter {
  animation: fadeDown .45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stage label span {
  display: block;
  font-size: 24px;
  /* Larger question text */
  font-weight: 600;
  margin-bottom: 24px;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.wizard-icon {
  font-size: 48px;
  margin-bottom: 24px;
  animation: popGlow 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  transform-origin: center center;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.stage textarea,
.stage input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 12px 0;
  font-size: 28px;
  /* Large input text */
  font-weight: 400;
  color: #38bdf8;
  transition: all .3s ease;
  resize: none;
}

.stage textarea:focus,
.stage input:focus {
  outline: none;
  background: transparent;
  border-color: #38bdf8;
  box-shadow: none;
}

.stage textarea::placeholder,
.stage input::placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

.stage textarea {
  min-height: 160px;
  line-height: 1.6;
}

.stage input {
  min-height: auto;
}

.inline-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 8px;
}

.review-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
}

.review-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.review-list li {
  padding: 20px;
  border-radius: 12px;
  background: var(--wiz-bg-light);
  border: 1px solid var(--wiz-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Full width for big items like Idea */
.review-list li:first-child {
  grid-column: span 2;
}

.review-list li strong {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--wiz-primary);
  letter-spacing: 0.1em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-list li span.val {
  font-size: 15px;
  font-weight: 600;
  color: var(--wiz-text);
  line-height: 1.5;
}

.wizard-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-actions .btn {
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 14px;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-actions .btn.primary {
  background: #38bdf8;
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.wizard-actions .btn.primary:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.wizard-actions .btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.wizard-actions .btn.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-card {
  width: min(420px, 90vw);
  margin: 0;
  padding: 26px 26px 20px;
  background: var(--card);
  border-radius: 24px;
  border: 1px solid rgba(0, 75, 135, .12);
  box-shadow: var(--shadow);
}

.modal-card header h3 {
  margin: 0;
}

.modal-card header p {
  margin: 6px 0 18px;
}

.modal-card label {
  display: block;
  margin-bottom: 14px;
}

.modal-card input {
  width: 100%;
  padding: .7rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 75, 135, .18);
  background: rgba(0, 75, 135, .05);
  font: inherit;
}

.modal-card textarea {
  width: 100%;
  padding: .9rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 75, 135, .18);
  background: rgba(0, 75, 135, .05);
  font: inherit;
  color: inherit;
  resize: vertical;
  min-height: 120px;
}

.modal-card menu {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
}

.modal-card .muted {
  margin-top: 8px;
}

/* -------- PREMIUM MODAL REDESIGN -------- */
.modal-card.premium {
  width: min(900px, 94vw);
  padding: 0;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  color: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  position: relative;
}

.modal-card.premium::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 148, 214, 0.15), transparent 60%);
  pointer-events: none;
}

.premium-header {
  background: linear-gradient(160deg, rgba(0, 40, 80, 0.6), rgba(0, 20, 40, 0.8));
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.premium-icon {
  font-size: 48px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.premium-title h3 {
  font-size: 28px;
  margin: 0 0 10px 0;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.premium-title p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.premium-body {
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.premium-benefits h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 12px 0;
}

.premium-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.premium-benefits li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-form {
  display: grid;
  gap: 16px;
}

/* Icon Field Update */
.icon-field {
  position: relative;
}

.icon-field span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 4px;
}

.icon-field input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  transition: all .2s ease;
}

.phone-input-wrapper {
  display: flex;
  gap: 8px;
  width: 100%;
}

.country-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  padding: 0 8px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.country-select:focus {
  border-color: var(--secondary);
}

.phone-input-wrapper input {
  flex: 1;
}

.icon-field input:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(42, 148, 214, 0.15);
}

.icon-field::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 13px;
  width: 18px;
  height: 18px;
  background: #fff;
  opacity: .5;
  mask-size: contain;
  mask-repeat: no-repeat;
  transition: opacity .2s;
  pointer-events: none;
}

.icon-field:focus-within::before {
  opacity: 1;
  background: var(--secondary);
}

/* Icons Masks */
.icon-field.person::before {
  mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 12c2.7 0 5-2.3 5-5s-2.3-5-5-5-5 2.3-5 5 2.3 5 5 5zm0 2c-3.3 0-10 1.7-10 5v3h20v-3c0-3.3-6.7-5-10-5z"/></svg>');
}

.icon-field.mail::before {
  mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.89 2 1.99 2H20c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.icon-field.phone::before {
  mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24 11.72 11.72 0 003.67.59 1 1 0 011 1v3.5a1 1 0 01-1 1C10.07 21.04 2.96 13.93 2.96 4a1 1 0 011-1H7.5a1 1 0 011 1c0 1.25.2 2.46.59 3.61a1 1 0 01-.25 1.01l-2.22 2.17z"/></svg>');
}


.premium-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shimmer-btn {
  position: relative;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  background: linear-gradient(110deg, #005696 0%, #2a94d6 25%, #005696 50%);
  background-size: 200% 100%;
  animation: shine 3s linear infinite;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 75, 135, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

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

.shimmer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 75, 135, 0.45);
}

.shimmer-btn:active {
  transform: scale(0.98);
}

.btn-text {
  font-weight: 700;
}

.small-ghost {
  font-size: 13px;
  margin-top: 0px;
  opacity: 0.6;
  transition: opacity .2s;
}

.small-ghost:hover {
  background: transparent !important;
  opacity: 1;
  text-decoration: underline;
}

.error-msg {
  text-align: center;
  color: #ff8888 !important;
  font-size: 13px;
  margin: 0;
  min-height: 20px;
}

/* Close Button Override */
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0.6;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-modal:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

@media (max-width:768px) {
  .modal-card.premium {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
    width: 92vw;
  }

  .premium-header {
    padding: 24px;
    flex-direction: row;
    align-items: center;
    background: rgba(0, 20, 40, 0.6);
  }

  .premium-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .premium-title h3 {
    font-size: 20px;
  }

  .premium-body {
    padding: 24px;
  }

  .premium-benefits ul {
    grid-template-columns: 1fr;
  }
}


/* -------- MARKDOWN -------- */
.markdown table {
  width: 100%;
  border-collapse: collapse;
  margin: .75rem 0;
}

.markdown th,
.markdown td {
  border: 1px solid rgba(0, 75, 135, .18);
  padding: .55rem;
  text-align: left;
}

.markdown thead {
  background: rgba(42, 148, 214, .16);
}

.markdown tr:hover td {
  background: rgba(0, 75, 135, .08);
}

.markdown strong {
  font-weight: 700;
}

.markdown em {
  font-style: italic;
}

/* -------- RESPONSIVE -------- */
@media (max-width:1060px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy p {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 260px;
  }

  .floating-card {
    position: relative;
    margin: 10px auto;
    animation: none;
    transform: none;
  }
}

@media (max-width:960px) {
  .status-glow {
    max-width: 100%;
  }

  .hud-progress {
    justify-content: center;
  }
}

@media (max-width:720px) {
  .topbar .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .chip {
    display: none;
  }

  .hero {
    padding: 48px 20px 32px;
  }

  .hero-copy h2 {
    font-size: 34px;
  }

  .workspace {
    padding: 16px;
  }

  .card {
    padding: 20px;
  }

  .step-pill {
    min-width: 120px;
  }
}

@media (max-width:520px) {
  .brand-text h1 {
    font-size: 18px;
  }

  .brand-text span {
    font-size: 12px;
  }

  .btn.hero-cta {
    width: 100%;
    justify-content: center;
  }

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

  .feature-card {
    padding: 18px;
  }

  .wizard-frame {
    padding: 22px;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popGlow {
  0% {
    transform: scale(.98);
  }

  35% {
    transform: scale(1.03);
  }

  70% {
    transform: scale(.99);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: scale(.95);
  }

  40% {
    opacity: .7;
    transform: scale(1.02);
  }

  60% {
    opacity: .5;
    transform: scale(.97);
  }

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

/* Small ghost button for dark modals */
.btn.small-ghost {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  width: auto;
  display: inline-flex;
}

.btn.small-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  /* Sutil fondo al hover */
  color: #fff !important;
  transform: translateY(-1px);
}

/* --- Generation Monitor UI (Manrope/Tailwind Adaptation) --- */
.generation-monitor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f8fafc;
  /* Solid background (Tailwind background-light) */
  z-index: 9999;
  /* Ensure it covers everything */
  overflow-y: auto;
  font-family: 'Manrope', sans-serif;
  color: #121617;
  display: flex;
  flex-direction: column;
}

.generation-monitor.hidden {
  display: none;
}

.monitor-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 0;
}

.monitor-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.monitor-top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.monitor-icon-box {
  padding: 12px;
  background: #eff6ff;
  /* blue-50 */
  border-radius: 16px;
  color: var(--wiz-primary);
}

.monitor-top-bar h1 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.monitor-top-bar p {
  color: #6b7280;
  font-size: 14px;
  margin: 4px 0 0;
}

.monitor-progress-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.monitor-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 32px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--wiz-primary);
  margin: 0;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: #f3f4f6;
}

.monitor-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: #f3f4f6;
  border-radius: 9999px;
  overflow: hidden;
}

.monitor-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--wiz-primary);
  border-radius: 9999px;
  transition: width 1s ease;
}

.monitor-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
}

.monitor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .monitor-grid {
    grid-template-columns: 3fr 1fr;
  }
}

.monitor-sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .monitor-sections-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Card Styles */
.monitor-card {
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  background: #fff;
  border: 1px solid #f3f4f6;
}

/* Completed State */
.monitor-card.done {
  background: #eefaf5;
  /* mint-green */
  border-color: #d1f2e5;
  /* mint-border */
}

.monitor-card.done .card-idx {
  border-color: #10b981;
  color: #059669;
}

/* Pending State */
.monitor-card.pending {
  opacity: 0.6;
}

.monitor-card.pending .card-idx {
  border-color: #e5e7eb;
  color: #9ca3af;
}

.card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-idx {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.card-title {
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
}

.monitor-card.done .card-status {
  color: #059669;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Active Phase Animation */
@keyframes gradient-border {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

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

.active-phase-wrapper {
  position: relative;
  background: white;
  padding: 1px;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.active-phase-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(90deg, #177082, #3b82f6, #177082);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gradient-border 3s ease infinite;
}

.active-phase-inner {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.active-phase-inner .card-idx {
  background: var(--wiz-primary);
  color: white;
  border: none;
}

.card-status.active {
  color: var(--wiz-primary);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spin-slow {
  animation: spin 3s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

/* Sidebar */
.monitor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.monitor-log-card {
  background: #111827;
  color: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #1f2937;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.log-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.log-header h3 {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d1d5db;
  margin: 0;
}

.log-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.log-item {
  display: flex;
  gap: 12px;
}

.log-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.log-dot.success {
  background: #34d399;
}

.log-dot.active {
  background: #60a5fa;
  animation: pulse 2s infinite;
}

.log-dot.pending {
  background: #4b5563;
}

.log-text {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}

.log-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-online {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9ca3af;
}

.status-dot {
  width: 4px;
  height: 4px;
  background: #10b981;
  border-radius: 50%;
}

/* Gradient Text Utility */
.gradient-text {
  background: linear-gradient(135deg, #177082 0%, #2A94D6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #177082;
  /* Fallback color */
  display: inline-block;
  font-weight: 800;
}

/* --- Executive AI Monitor (Premium Light Theme) --- */
:root {
  --exec-bg: #ffffff;
  --exec-sidebar-bg: #f8fafc;
  --exec-primary: #177082;
  /* Deep Teal from Logo */
  --exec-accent: #2A94D6;
  /* Blue from Logo */
  --exec-glass: rgba(255, 255, 255, 0.7);
  --exec-glass-border: #e2e8f0;
  --exec-text: #0f172a;
  /* Slate 900 */
  --exec-muted: #64748b;
  /* Slate 500 */
  --exec-border: #f1f5f9;
}

.exec-monitor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--exec-bg);
  z-index: 10000;
  color: var(--exec-text);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.exec-monitor.hidden {
  display: none;
}

/* Header */
.exec-header {
  height: 80px;
  background: white;
  border-bottom: 1px solid var(--exec-border);
  display: flex;
  align-items: center;
}

.exec-header-content {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exec-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.exec-logo-box {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--exec-primary), var(--exec-accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(23, 112, 130, 0.2);
}

.exec-brand h1 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--exec-text);
  margin: 0;
  letter-spacing: -0.02em;
}

.exec-brand p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--exec-muted);
  margin: 2px 0 0 0;
  font-weight: 500;
}

.exec-status-pill {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--exec-primary);
  font-size: 12px;
  font-weight: 600;
}

.ping-dot {
  position: relative;
  width: 8px;
  height: 8px;
  display: flex;
}

.ping-dot .ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--exec-primary);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-dot .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--exec-primary);
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Main Grid */
.exec-main {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 32px;
  height: calc(100vh - 80px);
  /* Fill remaining viewport */
  box-sizing: border-box;
  overflow: hidden;
  min-height: 0;
}

@media (max-width: 1024px) {
  .exec-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: auto;
    min-height: 100vh;
    padding: 16px;
    gap: 16px;
    overflow-y: auto;
  }
}

/* Left Sidebar */
.exec-sidebar-left {
  background: var(--exec-sidebar-bg);
  border-radius: 24px;
  border: 1px solid var(--exec-border);
  padding: 24px 16px;
  /* Reset internal padding slightly */
  overflow-y: auto;
  height: fit-content;
  max-height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .exec-sidebar-left {
    height: auto;
    max-height: 200px;
    /* Collapsible or limited height on mobile */
    padding-bottom: 24px;
    margin-bottom: 16px;
  }

  .exec-steps-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 12px;
  }

  .exec-step-item {
    min-width: 180px;
    /* Ensure items are touch-friendly horizontally */
    margin-bottom: 0;
  }
}

.exec-steps-list {
  padding-bottom: 20px;
  /* Reduced from 120px */
}

.exec-step-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 24px;
  cursor: pointer;
}

.exec-step-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
  transition: all 0.3s;
}

.exec-step-item.active::before {
  background: var(--exec-primary);
  box-shadow: 0 0 12px var(--exec-primary);
  border: 2px solid #0f172a;
  width: 11px;
  height: 11px;
  left: -6px;
}

.exec-step-item.generating::before {
  background: var(--exec-primary);
  animation: pulseAi 1.5s infinite;
  box-shadow: 0 0 15px var(--exec-primary);
  border: 2px solid white;
}

.exec-step-item.done::before {
  background: #10b981;
  /* Emerald */
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.exec-step-text {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  transition: color 0.3s;
}

.exec-step-item.active .exec-step-text {
  color: var(--exec-primary);
}

.exec-step-item.done .exec-step-text {
  color: #94a3b8;
}

/* Center Content */
.exec-content-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.exec-doc-card {
  flex: 1;
  background: white;
  border: 1px solid var(--exec-border);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  height: 100%;
  /* Fill content area */
}

.exec-doc-header {
  padding: 24px;
  border-bottom: 1px solid var(--exec-glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #94a3b8;
  text-transform: uppercase;
}

.doc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--exec-primary);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  /* Slate 300 */
}

.exec-doc-body {
  flex: 1;
  padding: 48px;
  overflow-y: auto;
}

.exec-doc-inner {
  max-width: 672px;
  /* max-w-2xl */
  margin: 0 auto;
}

.doc-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--exec-text);
  margin-bottom: 24px;
  line-height: 1.2;
}

.doc-text-block {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  /* Slate 800 for more definition */
  line-height: 2;
  /* Increased from 1.8 for breathing room */
  font-size: 16px;
}

.doc-text-block strong,
.doc-text-block b {
  font-weight: 700;
  color: var(--exec-primary);
  /* Use professional blue for headings/labels */
}

.doc-text-block p {
  margin-bottom: 2rem;
  /* More space between points */
}

.doc-text-block h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--exec-text);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.doc-text-block .markdown table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border: 1px solid var(--exec-border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}

.doc-text-block .markdown th {
  background: #f8fafc;
  color: var(--exec-primary);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--exec-border);
}

.doc-text-block .markdown td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--exec-border);
  color: #475569;
}

.doc-text-block .markdown tr:last-child td {
  border-bottom: none;
}

.doc-text-block .markdown tr:hover td {
  background: rgba(23, 112, 130, 0.02);
}

.doc-text-block p {
  margin-bottom: 1.5em;
  font-size: 16px;
  line-height: 1.8;
}

.doc-text-block strong {
  color: var(--exec-primary);
  font-weight: 700;
}

/* AI Generation Animations */
.ai-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--exec-primary);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px var(--exec-primary);
  animation: pulseAi 1.5s infinite;
}

@keyframes pulseAi {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

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

.gen-placeholder {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  align-items: center;
  text-align: center;
}

.gen-scanner {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--exec-primary), transparent);
  position: relative;
  overflow: hidden;
  animation: scan 2s linear infinite;
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Chart Placeholder */
.exec-chart-placeholder {
  display: none !important;
  background: var(--exec-glass);
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
  border: 1px solid var(--exec-glass-border);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  margin-bottom: 16px;
}

.chart-bars .bar {
  flex: 1;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  position: relative;
}

.chart-bars .bar span {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--exec-primary);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
}

.chart-bars .bar:hover span {
  opacity: 1;
}

.bar.q1 {
  background: rgba(6, 182, 212, 0.2);
  height: 60%;
}

.bar.q2 {
  background: rgba(6, 182, 212, 0.4);
  height: 85%;
}

.bar.q3 {
  background: rgba(6, 182, 212, 0.6);
  height: 45%;
}

.bar.real {
  background: var(--exec-primary);
  height: 20%;
  animation: barGrow 3s ease-in-out infinite;
}

@keyframes barGrow {
  0% {
    height: 20%;
  }

  50% {
    height: 90%;
  }

  100% {
    height: 40%;
  }
}

.chart-caption {
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  font-weight: 700;
}

.exec-doc-footer {
  padding: 24px;
  background: #f8fafc;
  border-top: 1px solid var(--exec-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.engine-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #64748b;
  letter-spacing: -0.05em;
}

.exec-btn-pause {
  font-size: 12px;
  font-weight: 700;
  color: var(--exec-muted);
  background: transparent;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.exec-btn-pause:hover {
  color: var(--exec-primary);
}

.exec-btn-download,
.exec-btn-new {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

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

.exec-btn-download:hover {
  background: #0066cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.3);
}

.exec-btn-new {
  background: transparent;
  color: var(--exec-text);
  border: 1px solid var(--exec-border);
}

.exec-btn-new:hover {
  background: var(--exec-card-bg);
  border-color: var(--exec-primary);
  color: var(--exec-primary);
}

.exec-btn-download .material-symbols-outlined,
.exec-btn-new .material-symbols-outlined {
  font-size: 18px;
}

/* Right Sidebar */
.exec-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  height: 100%;
}

.exec-card {
  background: white;
  border: 1px solid var(--exec-border);
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.exec-card.center-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.exec-card h3 {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

/* Precision Gauge */
.precision-gauge {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 24px;
}

.precision-gauge svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.precision-gauge circle {
  fill: transparent;
  stroke-width: 6;
}

.precision-gauge .bg {
  stroke: #f1f5f9;
  /* Slate 100 */
}

.precision-gauge .meter {
  stroke: var(--exec-primary);
  stroke-dasharray: 440;
  /* 2*PI*70 */
  stroke-dashoffset: 44;
  /* 90% */
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(23, 112, 130, 0.2));
}

.gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-value .score {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--exec-text);
}

.gauge-value .label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.2em;
}

/* --- Value Proposition Canvas Custom Styles --- */
.glow-node {
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.6);
}

.canvas-circle {
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.divider-line {
  background: linear-gradient(90deg, transparent, #14b8a6 50%, transparent);
}

.quality-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #34d399;
  /* Emerald 400 */
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.quality-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.6;
}

/* Sources List */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--exec-primary);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

.exec-sources-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s;
}

.source-item:hover {
  background: var(--exec-sidebar-bg);
}

.source-item .icon-box {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  /* Slate 100 */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--exec-muted);
}

.source-item.active .icon-box {
  color: var(--exec-primary);
  background: #f1f5f9;
}

.src-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--exec-text);
  margin: 0;
}

.src-type {
  font-size: 10px;
  color: #64748b;
  margin: 0;
}

.exec-state-box {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid rgba(23, 112, 130, 0.1);
  background: linear-gradient(135deg, #f8fafc, transparent);
  border-radius: 16px;
}

.state-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--exec-primary);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.state-text {
  font-size: 11px;
  color: var(--exec-muted);
  font-weight: 500;
  line-height: 1.6;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .exec-main {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .exec-sidebar-left,
  .exec-sidebar-right {
    display: none;
    /* Hide sidebars on small screens for now to simplify */
  }
}

/* Utilities needed for JS injections */
.text-xs {
  font-size: 12px;
}

.text-sm {
  font-size: 14px;
}

.text-gray-500 {
  color: #64748b;
}

.text-gray-400 {
  color: #94a3b8;
}

.mb-2 {
  margin-bottom: 8px;
}

.italic {
  font-style: italic;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Scrollbar for Executive Theme */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  /* Darker thumb for light theme visibility */
  border-radius: 10px;
  transition: background 0.2s;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--exec-primary);
}

.exec-sidebar-left,
.exec-doc-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.exec-sidebar-left {
  overflow-y: auto;
  max-height: 100%;
}

.exec-doc-body {
  overflow-y: auto;
  max-height: 100%;
}

.exec-step-item {
  transition: all 0.2s ease;
  border-radius: 8px;
  margin-right: 8px;
  /* Space for scrollbar */
}

.exec-step-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.exec-step-item.active-viewing {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.fade-in-fast {
  animation: fadeInFast 0.5s ease-out forwards;
}

@keyframes fadeInFast {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

/* --- Material Symbols Fix --- */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-icons-round {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* VPC Visual Fixes */
.vpc-canvas-container {
  overflow: hidden;
  /* Prevent spillover */
}

/* Ensure text readability in dark mode for VPC items */
.dark .vpc-text-contrast {
  color: #e2e8f0 !important;
  /* slate-200 */
}

.dark .vpc-border-contrast {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile optimizations for VPC */
@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .vpc-circle-container {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1;
  }
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* VPC Summary Columns (v36) - Vanilla CSS */
.vpc-summary-col {
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
}

.vpc-summary-col h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid rgba(0, 75, 135, 0.2);
  padding-bottom: 0.25rem;
  display: inline-block;
}

.vpc-summary-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.vpc-summary-col ul {
  list-style-type: disc;
  list-style-position: outside;
  margin-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.vpc-summary-col ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--text);
}

.vpc-summary-col ul li::marker {
  color: var(--primary);
}

.vpc-summary-col p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text);
}

/* VPC Summary Full Width Container */
.vpc-summary-full {
  width: 100%;
  max-width: 100%;
  margin-bottom: 2rem;
  display: block !important;
}

.vpc-summary-full * {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.vpc-summary-full h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid rgba(0, 75, 135, 0.2);
  padding-bottom: 0.25rem;
}

.vpc-summary-full h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.vpc-summary-full ul {
  list-style-type: disc;
  list-style-position: outside;
  margin-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.vpc-summary-full ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--text);
  display: list-item !important;
  width: auto !important;
}

/* Force contrast for the entire container */
.vpc-summary-container,
.vpc-summary-container * {
  color: #000000 !important;
}

.vpc-summary-container p {
  color: #000000 !important;
}

.vpc-summary-container ul li {
  color: #000000 !important;
}

html.dark .vpc-summary-container,
html.dark .vpc-summary-container *,
html.dark .vpc-summary-container p,
html.dark .vpc-summary-container ul li {
  color: #ffffff !important;
}

.vpc-summary-full ul li::marker {
  color: var(--primary);
}

.vpc-summary-full p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.vpc-summary-full strong,
.vpc-summary-full em {
  display: inline !important;
  width: auto !important;
}