/* ════════════════════════════════════════════
   PromptCraft AI — Light Theme
   Clean, modern SaaS design
════════════════════════════════════════════ */

:root {
  --white:        #ffffff;
  --bg:           #f5f6fa;
  --bg-mid:       #eef0f6;
  --card:         #ffffff;
  --border:       #e4e6ef;
  --border-dark:  #d0d3e2;
  --primary:      #4f46e5;
  --primary-lt:   #eef2ff;
  --primary-mid:  #c7d2fe;
  --accent:       #06b6d4;
  --accent-lt:    #ecfeff;
  --success:      #10b981;
  --success-lt:   #d1fae5;
  --danger:       #ef4444;
  --text:         #111827;
  --text-mid:     #374151;
  --text-soft:    #6b7280;
  --text-faint:   #9ca3af;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.1);
  --radius:       12px;
  --radius-lg:    18px;
  --font-head:    'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-code:    'Fira Code', monospace;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
  .seo-content {
    max-width: 860px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: inherit;
    color: #1a1a2e;
    line-height: 1.8;
  }
 
  .seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 12px;
    color: #0f172a;
    border-left: 4px solid #8b5cf6;
    padding-left: 12px;
  }
 
  .seo-content p {
    margin-bottom: 14px;
    color: #374151;
    font-size: 0.97rem;
  }
 
  /* Category Cards */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 24px 0;
  }
 
  .category-card {
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.2s;
  }
 
  .category-card:hover { transform: translateY(-3px); }
 
  .category-card .cat-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
  .category-card strong   { display: block; font-size: 0.9rem; margin-bottom: 4px; }
  .category-card span     { font-size: 0.78rem; color: #6b7280; }
 
  .c-image    { background: #fdf4ff; border-color: #e879f9; }
  .c-image    strong { color: #86198f; }
  .c-video    { background: #fef2f2; border-color: #f87171; }
  .c-video    strong { color: #991b1b; }
  .c-code     { background: #ecfeff; border-color: #22d3ee; }
  .c-code     strong { color: #0e7490; }
  .c-writing  { background: #fffbeb; border-color: #fbbf24; }
  .c-writing  strong { color: #92400e; }
  .c-marketing{ background: #eff6ff; border-color: #60a5fa; }
  .c-marketing strong { color: #1e40af; }
 
  /* Prompt Comparison */
  .prompt-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
  }
 
  .prompt-box {
    border-radius: 12px;
    overflow: hidden;
  }
 
  .prompt-box .p-header {
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 700;
  }
 
  .prompt-box.bad  .p-header { background: #fef2f2; color: #991b1b; }
  .prompt-box.good .p-header { background: #f0fdf4; color: #14532d; }
 
  .prompt-box .p-body {
    background: #1e1e2e;
    padding: 14px 16px;
    font-family: monospace;
    font-size: 0.82rem;
    line-height: 1.7;
  }
 
  .prompt-box.bad  .p-body { color: #f38ba8; }
  .prompt-box.good .p-body { color: #a6e3a1; }
 
  /* How it Works */
  .flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    margin: 24px 0;
    position: relative;
  }
 
  .flow-step {
    background: #f5f3ff;
    border: 2px solid #ddd6fe;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
    margin: 6px;
  }
 
  .flow-step .fs-num {
    width: 32px; height: 32px;
    background: #8b5cf6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    margin: 0 auto 10px;
  }
 
  .flow-step .fs-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
  .flow-step strong   { display: block; font-size: 0.9rem; color: #4c1d95; margin-bottom: 4px; }
  .flow-step span     { font-size: 0.8rem; color: #4b5563; }
 
  /* Features Grid */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
  }
 
  .feature-card {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    padding: 16px;
  }
 
  .feature-card .icon { font-size: 1.4rem; }
  .feature-card strong { display: block; margin: 6px 0 4px; font-size: 0.95rem; color: #4c1d95; }
  .feature-card span { font-size: 0.85rem; color: #4b5563; }
 
  /* Sample Prompts */
  .sample-prompts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin: 20px 0;
  }
 
  .sample-card {
    background: #1e1e2e;
    border-radius: 10px;
    overflow: hidden;
  }
 
  .sample-card .sc-cat {
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
 
  .sample-card.img-cat  .sc-cat { background: #c026d3; color: white; }
  .sample-card.code-cat .sc-cat { background: #0891b2; color: white; }
  .sample-card.mkt-cat  .sc-cat { background: #16a34a; color: white; }
 
  .sample-card .sc-body {
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #cdd6f4;
    line-height: 1.6;
  }
 
  /* Use Cases */
  .use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
  }
 
  .use-case-tag {
    background: #f5f3ff;
    border: 1px solid #c4b5fd;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #4c1d95;
  }
 
  /* Comparison Table */
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92rem;
  }
 
  .compare-table th {
    background: #7c3aed;
    color: white;
    padding: 12px 16px;
    text-align: left;
  }
 
  .compare-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
  }
 
  .compare-table tr:nth-child(even) td { background: #f5f3ff; }
 
  /* FAQ */
  .faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
  }
 
  .faq-q {
    background: #f9fafb;
    padding: 14px 18px;
    font-weight: 600;
    color: #4c1d95;
    font-size: 0.95rem;
  }
 
  .faq-a {
    padding: 12px 18px;
    color: #4b5563;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
  }
 
  .info-box {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.92rem;
    color: #4c1d95;
  }
 
  .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 20px 0;
  }
 
  .tip-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.9rem;
    color: #374151;
  }
 
  .tip-card strong { color: #0f172a; display: block; margin-bottom: 4px; }
 
  @media (max-width: 600px) {
    .prompt-compare { grid-template-columns: 1fr; }
  }
/* ─── HEADER ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 800;
  color: var(--text); text-decoration: none;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.18);
}
.logo-accent { color: var(--primary); }

.limit-pill {
  display: flex; align-items: center; gap: 7px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px;
  font-family: var(--font-body); font-size: 0.8rem;
  color: var(--text-soft); box-shadow: var(--shadow-sm);
}
.limit-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
  animation: blink 2.5s ease-in-out infinite;
}
.limit-dot.red { background: var(--danger); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ─── SCREENS ─── */
.screen { display: none; min-height: 100vh; padding: 104px 20px 64px; }
.screen.active { display: block; }
.container { max-width: 760px; margin: 0 auto; }
.container.centered {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: calc(100vh - 104px); text-align: center; gap: 20px;
}

/* ─── SCREEN 1: WELCOME ─── */
.welcome-top { margin-bottom: 32px; }

.tag-chip {
  display: inline-block;
  background: var(--primary-lt);
  color: var(--primary);
  border: 1px solid var(--primary-mid);
  border-radius: 20px; padding: 5px 14px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3px;
  margin-bottom: 20px;
}
.welcome-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.5px; color: var(--text);
  margin-bottom: 16px;
}
.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.welcome-desc {
  font-size: 1rem; color: var(--text-soft);
  line-height: 1.7; max-width: 580px;
}

/* Use case chips */
.use-cases { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 7px 16px;
  font-family: var(--font-body); font-size: 0.82rem;
  color: var(--text-mid); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Input section */
.input-section { margin-bottom: 40px; }
.input-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.08), var(--shadow-sm);
}
.input-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-mid); letter-spacing: 0.2px; margin-bottom: 10px;
}
.textarea {
  width: 100%; background: transparent; border: none; outline: none;
  font-family: var(--font-body); font-size: 0.97rem;
  color: var(--text); line-height: 1.7; resize: vertical;
}
.textarea::placeholder { color: var(--text-faint); }
.input-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--bg-mid);
}
.input-hint { font-size: 0.77rem; color: var(--text-faint); }
.char-count { font-family: var(--font-code); font-size: 0.72rem; color: var(--text-faint); }

/* Buttons */
.btn-main {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
  padding: 14px 28px; border-radius: var(--radius);
  border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
  transition: all 0.2s ease;
}
.btn-main:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.4);
}
.btn-main:disabled {
  background: var(--border-dark); color: var(--text-faint);
  box-shadow: none; cursor: not-allowed; transform: none;
}
.btn-main svg { transition: transform 0.2s; }
.btn-main:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: transparent; border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text-soft);
  font-family: var(--font-body); font-size: 0.9rem;
  padding: 12px 22px; cursor: pointer;
  transition: all 0.18s;
}
.btn-ghost:hover { border-color: var(--border-dark); color: var(--text-mid); background: var(--white); }

.btn-outline {
  background: var(--white); border: 1.5px solid var(--primary);
  border-radius: var(--radius); color: var(--primary);
  font-family: var(--font-head); font-size: 0.88rem; font-weight: 600;
  padding: 11px 22px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: all 0.18s;
}
.btn-outline:hover { background: var(--primary-lt); box-shadow: var(--shadow-md); }

/* Steps row */
.steps-row {
  display: flex; align-items: center; gap: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 28px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap; gap: 12px;
}
.step-item { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 140px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-info { display: flex; flex-direction: column; gap: 1px; }
.step-title { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.step-sub { font-size: 0.74rem; color: var(--text-soft); }
.step-line { width: 24px; height: 2px; background: var(--border); flex-shrink: 0; }

/* ─── LOADING ─── */
.loader-box {
  display: flex; flex-direction: column;
  align-items: center; gap: 24px; max-width: 380px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 40px;
  box-shadow: var(--shadow-md);
}
.spinner {
  position: relative; width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.spin-ring {
  position: absolute; border-radius: 50%;
  border: 2.5px solid transparent; animation: spin 1.4s linear infinite;
}
.r1 { width: 72px; height: 72px; border-top-color: var(--primary); animation-duration: 1.2s; }
.r2 { width: 50px; height: 50px; border-right-color: var(--accent); animation-direction: reverse; animation-duration: 1.8s; }
.spin-core { font-size: 1.4rem; color: var(--primary); animation: pop 1.5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0%,100%{transform:scale(1)} 50%{transform:scale(0.85); opacity:0.6} }

.loader-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--text); }
.loader-sub { font-size: 0.85rem; color: var(--text-soft); }
.progress-track {
  width: 240px; height: 4px; background: var(--bg-mid);
  border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px; width: 0%;
  animation: fill 3.5s ease forwards;
}
@keyframes fill { 0%{width:0%} 35%{width:40%} 70%{width:68%} 95%{width:88%} }

/* ─── SCREEN 2: QUESTIONS ─── */
.q-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.q-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-faint);
}
.bc-item { font-weight: 500; }
.bc-item.active { color: var(--primary); }
.bc-sep { color: var(--text-faint); }
.q-score { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.score-answered { color: var(--success); font-weight: 600; }
.score-divider { color: var(--border-dark); }
.score-skipped { color: var(--text-soft); }

.progress-wrap {
  height: 6px; background: var(--bg-mid);
  border-radius: 6px; overflow: hidden; margin-bottom: 6px;
}
.progress-bar-light {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.q-progress-label {
  font-size: 0.78rem; color: var(--text-soft);
  text-align: right; margin-bottom: 24px;
}
.q-progress-label strong { color: var(--text-mid); }

/* Question Panel */
.question-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.35s ease;
}
@keyframes slideUp {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: translateY(0); }
}
.q-tag {
  display: inline-flex; align-items: center;
  background: var(--primary-lt); color: var(--primary);
  border-radius: 8px; padding: 4px 10px;
  font-family: var(--font-code); font-size: 0.72rem; font-weight: 500;
  margin-bottom: 16px;
}
.q-question {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700; line-height: 1.45;
  color: var(--text); margin-bottom: 24px;
}
.options-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.option-btn {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
  font-family: var(--font-body); font-size: 0.93rem;
  color: var(--text-mid); cursor: pointer; text-align: left;
  transition: all 0.18s ease;
}
.option-letter {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  background: var(--white); border: 1.5px solid var(--border);
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 700;
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
}
.option-btn:hover {
  border-color: var(--primary);
  background: var(--primary-lt);
  color: var(--text);
  transform: translateX(4px);
}
.option-btn:hover .option-letter {
  border-color: var(--primary); color: var(--primary);
  background: var(--white);
}
.option-btn.selected {
  border-color: var(--primary);
  background: var(--primary-lt);
  color: var(--text);
}
.option-btn.selected .option-letter {
  background: var(--primary); border-color: var(--primary);
  color: var(--white);
}
.skip-btn {
  background: none; border: none;
  font-family: var(--font-body); font-size: 0.82rem;
  color: var(--text-faint); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.18s; padding: 4px;
}
.skip-btn:hover { color: var(--text-soft); }

/* ─── SCREEN 3: FINAL NOTE ─── */
.final-wrap {
  max-width: 580px; width: 100%;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 40px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}
.final-emoji { font-size: 3rem; }
.final-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--text); }
.final-desc { font-size: 0.95rem; color: var(--text-soft); line-height: 1.7; max-width: 440px; }
.final-desc strong { color: var(--text-mid); }
.final-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%; }

/* ─── SCREEN 4: RESULT ─── */
.result-header { margin-bottom: 24px; }
.result-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--success-lt); color: var(--success);
  border-radius: 20px; padding: 5px 14px;
  font-size: 0.78rem; font-weight: 600;
  margin-bottom: 14px;
}
.result-title { font-family: var(--font-head); font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; color: var(--text); margin-bottom: 8px; }
.result-desc { font-size: 0.92rem; color: var(--text-soft); }

/* Prompt Card */
.prompt-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.prompt-card-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 1px solid var(--border);
  background: var(--bg); flex-wrap: wrap; gap: 10px;
}
.prompt-label { font-size: 0.82rem; font-weight: 600; color: var(--text-mid); }
.prompt-actions { display: flex; gap: 8px; }
.action-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 14px;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  color: var(--text-soft); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: all 0.18s;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-md); }
.action-btn.success { border-color: var(--success); color: var(--success); background: var(--success-lt); }

.prompt-body {
  padding: 28px;
  font-family: var(--font-code); font-size: 0.875rem;
  line-height: 1.8; color: var(--text-mid);
  white-space: pre-wrap; word-break: break-word;
  max-height: 460px; overflow-y: auto;
  background: #fafbff;
}
.prompt-body::-webkit-scrollbar { width: 4px; }
.prompt-body::-webkit-scrollbar-track { background: transparent; }
.prompt-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.typing-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--primary); margin-left: 2px;
  animation: blink 0.7s step-end infinite;
  vertical-align: text-bottom;
}

.result-footer {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
  box-shadow: var(--shadow-sm);
}
.remain-text { font-size: 0.85rem; color: var(--text-soft); }
.remain-text strong { color: var(--text); }

/* ─── LIMIT SCREEN ─── */
.limit-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 52px 44px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  align-items: center; gap: 18px; max-width: 420px;
}
.limit-icon-wrap { font-size: 3.5rem; }
.limit-title { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--danger); }
.limit-desc { font-size: 0.95rem; color: var(--text-soft); line-height: 1.6; text-align: center; }
.timer-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 24px;
}
.timer-label { font-size: 0.82rem; color: var(--text-soft); }
.timer-val { font-family: var(--font-code); font-size: 1.35rem; color: var(--primary); letter-spacing: 2px; font-weight: 500; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text); color: var(--white);
  border-radius: 10px; padding: 12px 22px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.875rem;
  box-shadow: var(--shadow-lg); z-index: 9999; opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .header-inner { padding: 12px 16px; }
  .screen { padding: 84px 14px 50px; }
  .question-panel { padding: 22px 18px; }
  .prompt-body { padding: 18px; font-size: 0.82rem; }
  .steps-row { padding: 16px 18px; }
  .step-line { display: none; }
  .final-wrap { padding: 32px 22px; }
  .limit-card { padding: 36px 24px; }
  .result-footer { flex-direction: column; }
  .input-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .final-btns { flex-direction: column; }
  .final-btns .btn-main,
  .final-btns .btn-ghost { width: 100%; justify-content: center; }
  .btn-main { width: 100%; justify-content: center; }
}

.hidden { display: none !important; }
