:root {
  --bg-dark: #000000;
  --bg-card: #0a0a0a;
  --text-main: #ededed;
  --text-muted: #888888;
  --text-soft: #a1a1aa;
  --accent-blue: #0070f3;
  --accent-purple: #7928ca;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.08);
  --profit-green: #10b981;
  --profit-green-bg: rgba(16, 185, 129, 0.1);
  --profit-green-glow: rgba(16, 185, 129, 0.3);
  --warning-red: #ef4444;
  --warning-bg: rgba(239, 68, 68, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
  background-color: var(--bg-dark); 
  color: var(--text-main); 
  overflow-x: hidden; 
  -webkit-font-smoothing: antialiased; 
  min-height: 100vh; 
}

/* Premium Background & Scrollbar */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background-color: #000; background-image: radial-gradient(circle at 15% 0%, rgba(121, 40, 202, 0.1) 0%, transparent 40%), radial-gradient(circle at 85% 80%, rgba(0, 112, 243, 0.1) 0%, transparent 40%); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.15); border-radius: 10px; border: 3px solid rgba(0, 0, 0, 0); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.3); }

/* Nav, Hero, Search */
.top-nav { position: absolute; top: 0; width: 100%; padding: 24px 40px; display: flex; z-index: 100; }
.logo { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.5px; display: flex; align-items: center; gap: 12px; color: #fff; }
.logo-icon { width: 16px; height: 16px; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); border-radius: 4px; box-shadow: 0 0 12px rgba(121, 40, 202, 0.5); }
.hero { padding: 120px 20px 60px; text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 10; }
.hero h1 { font-size: 4rem; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 12px; background: linear-gradient(to right, #fff, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.search-container { position: relative; width: 100%; max-width: 600px; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
#searchInput { width: 100%; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(12px); border: 1px solid var(--border-color); color: #fff; padding: 16px 20px 16px 48px; border-radius: 12px; font-size: 1rem; outline: none; transition: all 0.2s ease; }
#searchInput:focus { border-color: rgba(255,255,255,0.3); box-shadow: 0 0 0 1px rgba(255,255,255,0.1); background: rgba(255, 255, 255, 0.05); }

/* Layout & Sidebar */
.layout-container { max-width: 1400px; margin: 0 auto; padding: 0 40px 80px; display: flex; gap: 40px; align-items: flex-start; }
.filter-sidebar { 
  width: 260px; 
  flex-shrink: 0; 
  position: sticky; 
  top: 40px; 
  height: fit-content; /* This makes the sticky feature work in Flexbox! */
  background: rgba(255, 255, 255, 0.02); /* The container background */
  border: 1px solid rgba(255, 255, 255, 0.05); /* Container border */
  border-radius: 16px; 
  padding: 24px;
  max-height: calc(100vh - 80px); /* Prevents it from going off-screen if you add 50+ niches */
  overflow-y: auto; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Hide scrollbar for a sleek look */
.filter-sidebar::-webkit-scrollbar { display: none; }


.sticky-panel { position: static; } 
.sticky-panel h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; font-weight: 600; }

.filter-list { display: flex; flex-direction: column; gap: 6px; }
.filter-item { background: transparent; border: none; color: var(--text-soft); padding: 8px 12px; border-radius: 6px; text-align: left; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; }
.filter-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.filter-item.active { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 500; }
.filter-count { font-size: 0.75rem; color: var(--text-muted); background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 4px; }

/* Grid Cards */
.grid-section { flex: 1; }
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 12px 30px rgba(0,0,0,0.8); }
.card-image-wrapper { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; position: relative; border-bottom: 1px solid var(--card-border); }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-image-wrapper img { transform: scale(1.05); }
.card-content { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card-title { font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: #fff; }
.badge { padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.price-badge { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.niche-badge { background: rgba(255, 255, 255, 0.05); color: var(--text-soft); border: 1px solid var(--card-border); }
.profit-badge { background: var(--profit-green-bg); color: var(--profit-green); border: 1px solid rgba(16, 185, 129, 0.2); text-shadow: 0 0 10px var(--profit-green-glow); }

/* =========================================
   MODAL UX/UI (Vercel Style)
   ========================================= */

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; padding: 20px; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: #050505; border: 1px solid rgba(255, 255, 255, 0.12); width: 100%; max-width: 900px; max-height: 90vh; border-radius: 16px; overflow-y: auto; position: relative; transform: scale(0.98) translateY(10px); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 40px 80px rgba(0,0,0,0.8); }
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.close-modal { position: absolute; top: 25px; right: 5px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: var(--text-muted); width: 32px; height: 32px; border-radius: 8px; font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.2s; z-index: 10; }
.close-modal:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Modal Hero */
.modal-hero { padding: 40px; border-bottom: 1px solid rgba(255,255,255,0.06); background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%); }
.modal-gallery { display: flex; gap: 24px; margin-bottom: 30px; }
.image-box { flex: 1; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); aspect-ratio: 3 / 4; background: #0a0a0a; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.image-box img { width: 100%; height: 100%; object-fit: cover; }
.image-tag { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.65); backdrop-filter: blur(8px); padding: 4px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 700; color: #fff; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

.meta-badges { display: flex; gap: 8px; margin-bottom: 16px; }
.modal-meta-header h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; color: #fff; margin-bottom: 6px; line-height: 1.1; }
.modal-subtitle { font-size: 1.1rem; color: var(--text-soft); font-weight: 400; margin-bottom: 24px; line-height: 1.4; }

/* Info Grid (Persona & Finance) */
.info-stack { display: flex; flex-direction: column; gap: 16px; }
.info-box { background: rgba(255,255,255,0.02); border-left: 2px solid #a1a1aa38; padding: 16px; border-radius: 8px; }
.financial-box { border-left-color: #10b98159; background: var(--profit-green-bg); }
.financial-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.info-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.financial-header .info-label { margin-bottom: 0; color: var(--profit-green); }
.info-box p { font-size: 0.95rem; color: #d1d5db; line-height: 1.5; }

/* KDP Profit Simulator UX */
.calculator-ui { display: flex; flex-direction: column; gap: 12px; }
.calc-chips { display: flex; gap: 12px; font-size: 0.85rem; color: #a1a1aa; font-weight: 500; }
.calc-chip span { color: #fff; font-weight: 700; }
.profit-chip span { color: var(--profit-green); font-size: 1rem; }

.profit-slider { -webkit-appearance: none; width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; outline: none; transition: opacity 0.2s; }
.profit-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--profit-green); cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
.profit-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--profit-green); cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }

/* The Vertical Stepper */
.modal-assembly-line { padding: 40px; display: flex; flex-direction: column; gap: 50px; position: relative; }
.modal-assembly-line::before { content: ''; position: absolute; top: 50px; bottom: 80px; left: 55px; width: 1px; background: rgba(255, 255, 255, 0.03); z-index: 0; }
.assembly-step { display: flex; gap: 24px; position: relative; z-index: 1; }
.subtle-step { margin: -20px 0 -10px 56px; }

.step-indicator { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #000; border: 1px solid rgba(255,255,255,0.2); display: flex; justify-content: center; align-items: center; font-size: 0.85rem; font-weight: 700; color: #a1a1aa; box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); }
.step-content { flex: 1; min-width: 0; }
.step-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.step-title { font-size: 1.15rem; font-weight: 600; color: #e5e7eb; letter-spacing: -0.2px; }
.step-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }

/* --- ETA Pills & Badges (Color Coded & Subtle) --- */
.eta-pill { 
  background: rgb(170 135 249 / 8%); /* Subtle Purple */
  border: 1px solid rgb(202 185 241 / 20%); 
  padding: 4px 10px; border-radius: 20px; font-size: 0.65rem; 
  font-weight: 600; color: #c4bfd5; text-transform: uppercase; letter-spacing: 0.5px; 
}
.total-eta { 
  background: rgba(16, 185, 129, 0.08); /* Subtle Green */
  border-color: rgba(16, 185, 129, 0.2); 
  color: #6ee7b7; 
}

/* Expected Outputs Pills (Muted to reduce noise) */
.expected-outputs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.expected-pill { 
  background: rgb(233 22 22 / 11%); 
  border: 1px solid rgba(255, 255, 255, 0.05); 
  color: #9ca3af; font-size: 0.7rem; font-weight: 500; 
  padding: 4px 10px; border-radius: 6px; letter-spacing: 0.2px;
}

/* Pro Tip UI (Removed Background & Border) */
.glass-pro-tip { 
  display: flex; gap: 12px; align-items: flex-start; 
  background: transparent; /* Removed bg */
  border: none;            /* Removed border */
  padding: 0;              /* Removed padding */
  color: #93c5fd; 
}
.glass-pro-tip svg { flex-shrink: 0; margin-top: 2px; }
.glass-pro-tip p { font-size: 0.85rem; line-height: 1.5; color: #bfdbfe; margin: 0; }
.glass-pro-tip strong { color: #60a5fa; font-weight: 600; }

/* =========================================
   GUIDED ACTION CARDS (Minimal SaaS Aesthetic)
   ========================================= */

/* Remove the bulky box completely. Let it flow organically. */
.action-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

/* Minimal "Returns:" Pills */
.action-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.action-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 2px;
}
.expected-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

/* The Sleek High-Contrast SaaS Button (Vercel Style) */
.massive-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content; /* Removes the ugly full-width */
  background: #bdd5ed; /* Crisp off-white */
  color: #000; /* Deep black text */
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}
.massive-action-btn svg { stroke: #000; } /* Make icon black */

.massive-action-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* Success State */
.massive-action-btn.copied {
  background: var(--profit-green);
  color: #fff;
  box-shadow: 0 0 15px var(--profit-green-glow);
}
.massive-action-btn.copied svg { stroke: #fff; }

/* Subtle Sub-Instruction */
.action-instruction {
  font-size: 0.8rem;
  color: #71717a;
  margin-top: -6px;
}
.action-instruction strong { color: #a1a1aa; font-weight: 500; }

/* --- PROGRESSIVE DISCLOSURE (The Hidden Code) --- */
.raw-prompt-toggle { margin-top: 4px; }

.expand-raw-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  color: #71717a;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.expand-raw-btn:hover { color: #d1d5db; background: rgba(255, 255, 255, 0.03); }
.expand-raw-btn svg { transition: transform 0.3s ease; }
.raw-prompt-toggle.expanded .expand-raw-btn svg { transform: rotate(180deg); }

/* The hidden code box */
.prompt-code-box {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: #000;
  border-radius: 8px;
  margin-top: 0;
  border: 1px solid transparent;
}

.raw-prompt-toggle.expanded .prompt-code-box {
  max-height: 2000px;
  opacity: 1;
  margin-top: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  padding: 16px;
}

/* --- Dopamine State (Step Indicator Checkmark) --- */
.step-indicator.completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--profit-green);
  color: var(--profit-green);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
/* --- Step 4 Dynamic Assembly Checklist (De-Boxed) --- */
.assembly-timeline { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.assembly-timeline li { 
  display: flex; gap: 16px; align-items: flex-start; 
  padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); 
}
.assembly-timeline li:last-child { border-bottom: none; padding-bottom: 0; }
.assembly-timeline .step-num { 
  flex-shrink: 0; background: rgba(255, 255, 255, 0.1); color: #fff; 
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; 
  padding: 4px 8px; border-radius: 4px; letter-spacing: 0.5px;
}
.assembly-timeline .step-text { font-size: 0.9rem; color: #d1d5db; line-height: 1.6; margin-top: -2px; width: 100%; }


/* Sub-Checklist Fixes (Forces it to the next line) */
.sub-checklist { margin-top: 12px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sub-checklist li { font-size: 0.85rem; color: #a1a1aa; padding: 0; border: none; display: block; }


/* Pro-Tip & Page Math Spacing */
.assembly-timeline .pro-tip-text { 
  color: var(--warning-red); font-weight: 600; font-size: 0.8rem; 
  letter-spacing: 0.5px; display: block; margin-top: 16px; margin-bottom: 6px; 
}
.assembly-timeline .page-math { 
  display: block; margin-top: 12px; font-size: 0.85rem; color: #9ca3af; 
  background: rgba(255, 255, 255, 0.03); padding: 8px 12px; border-radius: 6px; border-left: 2px solid rgba(255,255,255,0.1);
}

/* --- Sleek Publish Button UX --- */
.publish-action-container { margin-top: 20px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: center; }
.massive-publish-btn { 
  display: flex; align-items: center; justify-content: center; gap: 10px; 
  width: 100%; max-width: 320px; /* Slimmer */
  background: rgba(16, 185, 129, 0.05); /* Ghost button style */
  border: 1px solid rgba(16, 185, 129, 0.3); 
  color: #34d399; font-size: 0.95rem; font-weight: 600; 
  padding: 12px 20px; border-radius: 8px; cursor: pointer; 
  transition: all 0.3s ease; 
}
.massive-publish-btn:hover { 
  background: rgba(16, 185, 129, 0.15); 
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); 
  border-color: #6ee7b7; color: #6ee7b7;
}
.massive-publish-btn.published-state { 
  background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); 
  color: var(--text-muted); box-shadow: none; cursor: default; 
}

/* Grid Card Publish Overlay */
.card.is-published { opacity: 0.6; }
.card.is-published:hover { opacity: 1; }
.card.is-published .card-image-wrapper::after { content: 'PUBLISHED ✓'; position: absolute; top: 12px; right: 12px; background: var(--profit-green); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; z-index: 10; letter-spacing: 0.5px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }

/* --- Mobile Filter Elements (Hidden on Desktop) --- */
.mobile-filter-overlay { display: none; }
.mobile-filter-fab { display: none; }

/* =========================================
   NEW SAAS ELEMENTS (Blueprint, Warnings, Tips)
   ========================================= */

/* Title Clarification */
.title-clarification {
  font-size: 0.85rem;
  color: #9ca3af; 
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* --- The Blueprint (Vertical Stack Layout) --- */
.blueprint-container {
  display: flex;
  flex-direction: column;
  gap: 10px; 
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px; 
  padding: 20px 24px;
  margin-bottom: 40px;
}

.blueprint-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.5;
}

/* Quality Checklist Warning (Step 2) */
.quality-warning-box {
  background: rgba(245, 158, 11, 0.08); 
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-left: 3px solid #f59e0b; 
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  color: #fcd34d; 
  font-size: 0.85rem;
  line-height: 1.6;
}

.quality-warning-box strong {
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* --- Step 6: Income Tip (Golden Treasure Box) --- */
.gold-info-box {
  background: rgba(251, 191, 36, 0.03);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-left: 3px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.05);
}

.gold-info-box .info-text {
  font-size: 0.9rem;
  color: #fde68a; 
  line-height: 1.7;
  margin: 0;
}

.gold-info-box .info-text strong {
  color: #fbbf24; 
  font-weight: 700;
} 

/* =========================================
   MOMENTUM & PROGRESSION UI
   ========================================= */

/* The Global Progress Bar */
.progress-container {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.progress-title { color: #a1a1aa; }
.progress-percentage { color: var(--profit-green); }

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669 0%, var(--profit-green) 100%);
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Cascade Unlocking (The Dimming Effect) */
.assembly-step {
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}


/* Focus State Glow */
.assembly-step.focus-glow .prompt-wrapper,
.assembly-step.focus-glow .gold-info-box {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
  transition: all 1s ease;
}

/* --- KDP Categories Box (Header) --- */
.categories-info-box {
  border-left-color: #60a5fa; /* Sleek blue accent */
  background: rgba(96, 165, 250, 0.05); /* Subtle blue tint */
}

.categories-info-box .info-label {
  color: #60a5fa; 
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin-bottom:20px;
}

.category-list li {
  font-size: 0.9rem;
  color: #d1d5db;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

/* Custom slick arrow for list items */
.category-list li::before {
  content: '→';
  color: #3b82f6;
  font-weight: 800;
}

/* =========================================
   SCALING PLAYBOOK (Apple / Linear Aesthetic)
   ========================================= */

/* The Premium Sidebar Button */
.premium-tab-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  color:#f1cf75; padding: 12px 16px; border-radius: 10px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.3s ease; margin-bottom: 24px;
}
.premium-tab-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.premium-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-color: rgba(245, 158, 11, 0.4); color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

/* Playbook Container */
.playbook-section { display: none; flex: 1; animation: fadeInBlur 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.playbook-section.active { display: block; }
.grid-section.hidden { display: none; }

@keyframes fadeInBlur { 
  from { opacity: 0; transform: translateY(20px); filter: blur(10px); } 
  to { opacity: 1; transform: translateY(0); filter: blur(0); } 
}

/* Glass Card Layout */
.playbook-content {
  position: relative; max-width: 900px; margin: 0 auto;
  background: rgba(10, 10, 12, 0.4); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px;
  padding: 80px 60px; color: #a1a1aa; font-size: 1.05rem; line-height: 1.8;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
}

/* Header & Glow Orb */
.playbook-glow-orb {
  position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.playbook-header { position: relative; text-align: center; margin-bottom: 60px; z-index: 1; }
.playbook-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); color: #fbbf24; padding: 6px 16px; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; margin-bottom: 24px; }
.playbook-header h1 { font-size: 3.5rem; font-weight: 900; letter-spacing: -2px; margin: 0 0 16px 0; line-height: 1.1; background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.playbook-subtitle { color: #d1d5db; font-size: 1.25rem; font-weight: 400; }

.section-lead { font-size: 1.1rem; color: #e5e7eb; text-align: center; margin: 40px 0 20px; font-weight: 500;}

/* Feature Grid (Replaces old bullet points) */
.playbook-feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 40px;
}
.feature-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  padding: 16px 20px; border-radius: 12px; color: #e5e7eb; font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s ease;
}
.feature-card svg { color: #60a5fa; flex-shrink: 0; width: 20px; height: 20px; }
.feature-card:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); border-color: rgba(255,255,255,0.1); }

/* Playbook Steps */
.playbook-step { position: relative; z-index: 1; }
.step-header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.metallic-badge {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 6px;
  color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.playbook-step h2 { color: #fff; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.step-intro { color: #d1d5db; font-size: 1.15rem; margin-bottom: 24px; font-weight: 500; }

.playbook-list { list-style: none; padding: 0; margin: 20px 0; border-left: 2px solid rgba(255,255,255,0.1); }
.playbook-list li { position: relative; padding: 8px 0 8px 24px; color: #d1d5db; }
.playbook-list li::before { content: ''; position: absolute; left: -2px; top: 18px; width: 12px; height: 2px; background: rgba(255,255,255,0.2); }

.bold-callout { font-size: 1.1rem; color: #fff; background: rgba(255,255,255,0.03); padding: 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }

/* Glowing Glass Panels */
.playbook-glass-panel {
  position: relative; display: flex; gap: 20px; overflow: hidden;
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px; padding: 24px; margin: 32px 0; z-index: 1;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.playbook-glass-panel::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top left, var(--glow-color), transparent 70%);
  opacity: 0.15; z-index: -1; pointer-events: none;
}
.danger-panel { --glow-color: #ef4444; }
.gold-panel { --glow-color: #f59e0b; }
.blue-panel { --glow-color: #3b82f6; }
.green-panel { --glow-color: #10b981; }

.panel-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); color: var(--glow-color); }
.panel-content { flex: 1; }
.panel-content strong { display: block; font-size: 1.1rem; color: #fff; margin-bottom: 8px; font-weight: 700; letter-spacing: -0.2px; }
.panel-content p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: #d1d5db; }
.panel-subtext { font-size: 0.85rem !important; color: #a1a1aa !important; margin-top: 12px !important; font-style: italic; }
.highlight-red { color: #fca5a5; font-weight: 600; }

/* Specific Panel Internal Elements */
.sleek-ordered-list { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.sleek-ordered-list li { display: flex; align-items: center; gap: 12px; color: #e5e7eb; font-size: 0.95rem; }
.sleek-ordered-list span { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: rgba(59, 130, 246, 0.2); color: #93c5fd; font-size: 0.75rem; font-weight: 800; border-radius: 6px; }

.pricing-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; background: rgba(0,0,0,0.3); padding: 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); }
.price-item { display: flex; justify-content: space-between; align-items: center; color: #d1d5db; }
.price-item strong { color: #fff; margin-bottom: 0; }
.sweet-spot { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.1); color: #34d399; }
.sweet-spot strong { color: #10b981; font-size: 1.2rem; }

.mock-ad-box { background: #000; border: 1px solid rgba(255,255,255,0.1); padding: 16px; border-radius: 8px; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.ad-title { font-weight: 700; color: #fff; }
.ad-price { color: #34d399; font-size: 0.9rem; }

.playbook-divider { border: none; border-top: 1px solid rgba(255,255,255,0.05); margin: 60px 0; }

/* Grand Conclusion */
.playbook-grand-conclusion {
  position: relative; text-align: center; padding: 60px 40px; margin-top: 40px;
  background: rgba(245, 158, 11, 0.05); border: 1px solid rgba(245, 158, 11, 0.2); border-radius: 20px; overflow: hidden;
}
.conclusion-glow { position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%); width: 300px; height: 200px; background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%); filter: blur(20px); pointer-events: none; }
.playbook-grand-conclusion h2 { color: #fbbf24; font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; position: relative; z-index: 1;}
.playbook-grand-conclusion h3 { color: #fff; font-size: 1.2rem; font-weight: 500; margin-bottom: 24px; position: relative; z-index: 1;}
.playbook-grand-conclusion p { color: #d1d5db; max-width: 600px; margin: 0 auto 16px; position: relative; z-index: 1;}

/* =========================================
   PLAYBOOK ACCORDIONS (Deep Dives)
   ========================================= */

.playbook-accordion-wrapper {
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 16px;
}

.playbook-expand-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #60a5fa;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.3s;
}

.playbook-expand-btn:hover { color: #93c5fd; }
.playbook-expand-btn svg { transition: transform 0.3s ease; }
.playbook-accordion-wrapper.expanded .playbook-expand-btn svg { transform: rotate(180deg); }

.playbook-accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #a1a1aa;
}

.playbook-accordion-wrapper.expanded .playbook-accordion-content {
  max-height: 2000px; /* Big enough to fit text */
  opacity: 1;
  padding-top: 16px;
  padding-bottom: 16px;
}

.playbook-accordion-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.playbook-accordion-content ul {
  list-style: none;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 2px solid rgba(255,255,255,0.1);
}
.playbook-accordion-content ul li {
  margin-bottom: 8px;
}

/* Mobile Playbook Adjustments */
@media (max-width: 768px) {
  .playbook-content { padding: 40px 16px; border-radius: 16px; border-left: none; border-right: none;}
  .playbook-header h1 { font-size: 2.2rem; }
  .playbook-feature-grid { grid-template-columns: 1fr; }
  .step-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .playbook-step h2 { font-size: 1.5rem; }
  .playbook-glass-panel { flex-direction: column; gap: 12px; padding: 20px; }
  .panel-icon { width: 32px; height: 32px; }
  .panel-icon svg { width: 16px; height: 16px; }
  .playbook-grand-conclusion { padding: 40px 20px; }
  .playbook-grand-conclusion h2 { font-size: 1.8rem; }
}

/* --- Sanity Check Warning (Step 1) --- */
.sanity-check-box {
    background: rgb(245 158 11 / 3%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 1px solid #f59e0bb0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 16px;
    color: #fcd34d;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --- KDP Publishing Hub (Step 4) --- */
.hub-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.hub-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #fbbf2414;
  border-radius: 12px;
  padding: 20px;
}

.a-plus-card {
  border-color: rgb(139 92 246 / 12%);
  background: rgb(139 92 246 / 1%);
}

.hub-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.a-plus-card .hub-card-title {
  color: #c4b5fd;
}

.hub-text {
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.6;
}

/* --- Batch Button Stack & System Rule (Step 2) --- */

.batch-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

/* Secondary Buttons for Micro-Batches */
.massive-action-btn.secondary-btn {
  background: #c0dcf70f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db; /* Softer white */
  padding: 12px 20px;
  font-size: 0.85rem;
  justify-content: flex-start; /* Aligns text to the left for a neat list */
  box-shadow: none;
}

.massive-action-btn.secondary-btn svg {
  stroke: #a1a1aa; /* Softer icon color */
}

.massive-action-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateX(4px); /* Sleek slide-right effect instead of floating up */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.massive-action-btn.secondary-btn:hover svg {
  stroke: #fff;
}

/* System Rule Box (Replaces the anxious red box) */
.critical-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgb(168 131 251 / 4%);
    border: 1px solid rgb(139 92 246 / 9%);
    border-left: 1px solid #8b5cf6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.critical-warning-box svg {
  flex-shrink: 0;
  color: #8b5cf6;
  margin-top: 2px;
}

.critical-warning-box p {
  font-size: 0.85rem;
  color: #c4b5fd; /* Soft purple text */
  margin: 0;
  line-height: 1.6;
}

.critical-warning-box strong {
  color: #ddd6fe; /* Brighter purple for emphasis */
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* =========================================
   PREMIUM DEMO BANNER (Desktop)
   ========================================= */

/* Push body down so banner doesn't cover nav */
body { padding-top: 66px; }
.top-nav { top: 66px; }

.demo-cta-banner {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  z-index: 9999; 
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.demo-cta-content {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: 1400px; margin: 0 auto;
}

.demo-cta-left { display: flex; align-items: center; gap: 16px; }

.demo-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(245, 158, 11, 0.1); color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 4px 10px; border-radius: 20px; font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px; height: 8px; background-color: #f59e0b;
  border-radius: 50%; box-shadow: 0 0 8px #f59e0b;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.demo-cta-left p { color: #d1d5db; font-size: 0.95rem; margin: 0; }
.demo-cta-left strong { color: #fca5a5; font-weight: 600; }

.demo-buy-btn {
  background: linear-gradient(0deg, #FFD400 0%, #f7de9c 100%);
  color: #000; text-decoration: none; font-weight: 800; font-size: 0.9rem;
  padding: 10px 24px; border-radius: 30px; transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4); /* Adds a subtle crisp edge */
}

.demo-buy-btn:hover {
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
  background: linear-gradient(90deg, #FFE033 0%, #FF9D00 100%); /* Slightly brighter on hover */
}


/* Hide Mobile Elements on Desktop */
.mobile-dock { display: none; }

/* =========================================
   DEMO MODE LOCK ANIMATIONS & BLUR
   ========================================= */

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake-animation {
  animation: shakeError 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Blur effect for the raw text boxes */
.prompt-text.blurred-demo {
  filter: blur(6px);
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

.prompt-code-box {
  position: relative; /* Ensures overlay is trapped inside */
}

/* The Glowing Gold Lock Overlay */
.demo-lock-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fbbf24;
  text-align: center;
  width: 100%;
  z-index: 10;
}

.demo-lock-overlay svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 15px rgba(251,191,36,0.6));
}

.demo-lock-overlay span {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* =========================================
   DEMO MODE LOCK ANIMATIONS & BLUR
   ========================================= */

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake-animation {
  animation: shakeError 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Blur effect for the raw text boxes */
.prompt-text.blurred-demo {
  filter: blur(6px);
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

.prompt-code-box {
  position: relative; /* Ensures overlay is trapped inside */
}

/* The Glowing Gold Lock Overlay */
.demo-lock-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fbbf24;
  text-align: center;
  width: 100%;
  z-index: 10;
}

.demo-lock-overlay svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 15px rgba(251,191,36,0.6));
}

.demo-lock-overlay span {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}


/* =========================================
   MOBILE RESPONSIVE UX (Vercel Style)
   ========================================= */

/* Tablets / Smaller screens trigger the FAB early */
@media (max-width: 1024px) {
  .layout-container { flex-direction: column; padding: 0 20px 100px; gap: 20px; }
  .filter-sidebar { display: none; } 
  .mobile-filter-fab { display: flex; } 
}

@media (max-width: 768px) {
  /* Layout & Spacing */
  .hero { padding: 100px 16px 40px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }

  /* FLOATING FILTER BUTTON */
  .mobile-filter-fab {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15); color: #fff;
    padding: 12px 24px; border-radius: 30px; font-weight: 600; font-size: 0.9rem;
    z-index: 90; box-shadow: 0 10px 30px rgba(0,0,0,0.8); cursor: pointer;
  }

  /* BOTTOM SHEET OVERLAY */
  .mobile-filter-overlay {
    display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
    z-index: 95; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  }
  .mobile-filter-overlay.active { opacity: 1; pointer-events: all; }

  /* SIDEBAR BECOMES A SLIDING BOTTOM SHEET */
  .filter-sidebar { 
    display: block; /* Override tablet hidden state */
    position: fixed; top: auto; bottom: 0; left: 0; width: 100%; max-width: 100%; 
    height: auto; max-height: 80vh;
    z-index: 100; background: #050505; border: none; border-top: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 20px 20px 0 0; padding: 30px 24px 50px; 
    transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
  }
  .filter-sidebar.active { transform: translateY(0); }
  
  .sticky-panel { position: static; }
  .sticky-panel h3 { display: block; font-size: 1rem; color: #fff; text-align: center; margin-bottom: 24px; }
  .filter-list { flex-direction: column; overflow-x: visible; }
  .filter-item { padding: 12px 16px; font-size: 0.95rem; border-radius: 10px; background: rgba(255,255,255,0.02); } /* Fixed typo */

  /* 2x2 GRID DISPLAY */
  .vault-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
  }
  .card-content { padding: 12px; gap: 8px; }
  .card-title { font-size: 0.85rem; line-height: 1.2; }
  .badge { font-size: 0.55rem; padding: 3px 6px; border-radius: 4px; }
  
  /* Grid Card Publish Overlay for Mobile */
  .card.is-published .card-image-wrapper::after { font-size: 0.6rem; padding: 3px 6px; top: 8px; right: 8px; }

  /* MODAL MOBILE FIXES */
  .modal-overlay { padding: 12px; margin-top:30px; }
  .modal-content { max-height: 95vh; border-radius: 12px; }
  .close-modal { top: 40px; right: 0px; width: 28px; height: 28px; font-size: 1rem; }
  
  /* Hero Section */
  .modal-hero { padding: 24px 16px; }
  
  /* Side-by-Side Images on Mobile */
  .modal-gallery { flex-direction: row; gap: 12px; margin-bottom: 20px; } /* Fixed typo */
  .image-box { aspect-ratio: 3 / 4; height: auto; width: 50%; border-radius: 8px; }
  
  .modal-meta-header h2 { font-size: 1.5rem; margin-bottom: 4px; }
  .modal-subtitle { font-size: 0.9rem; margin-bottom: 16px; }
  .info-stack { gap: 12px; }
  .info-box { padding: 12px; }
  .calc-chips { flex-direction: column; gap: 6px; }

  /* Assembly Line & Timeline Alignments */
  .modal-assembly-line { padding: 24px 8px; gap: 32px; }
  .modal-assembly-line::before { left: 22px; top: 30px; bottom: 80px; } 
  
  .assembly-step { gap: 12px; }
  .step-indicator { width: 30px; height: 30px; font-size: 0.8rem; }
  .subtle-step { margin-left: 0; }
  .step-header-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .eta-pill { padding: 3px 8px; font-size: 0.6rem; }
  
  /* Prompts & Checklists */
  .prompt-text { font-size: 0.75rem; }
  .assembly-timeline li { flex-direction: column; gap: 8px; padding-bottom: 16px; }
  
  /* Publish Button */
  .publish-action-container { padding-top: 20px; margin-top: 10px; }
  .massive-publish-btn { font-size: 0.9rem; padding: 14px 20px; max-width: 100%; }
  
  .meta-badges {flex-wrap:wrap;}
  
  .massive-action-btn.secondary-btn {padding: 12px 16px;}
  .massive-action-btn {padding: 12px 16px;}
  
  .close-modal {background:rgb(135 132 132 / 84%);border: 1px solid #fbbf24; color:#f59e0b;}
  .hub-card {padding:20px 10px; }
  
/* --- MOBILE BANNER & SPLIT DOCK FIXES --- */
  
  /* Maintain top spacing so the banner doesn't cover the logo */
  body { padding-top: 66px; }
  .top-nav { top: 66px; }

  /* Keep the banner visible, but make it ultra-thin */
  .demo-cta-banner { display: block;  } 
  
  .demo-cta-content { 
    flex-direction: row; /* Keep side-by-side */
    justify-content: space-between;
    padding: 10px 16px; 
    gap: 8px;
  }
  
  /* Hide the description text on mobile to save vertical space */
  .demo-cta-left p { display: none; }
  .demo-badge { font-size: 0.6rem; padding: 4px 8px; white-space: nowrap; }
  
  /* Shrink the button slightly so it fits next to the badge */
  .demo-buy-btn { 
    width: auto; 
    padding: 8px 12px; 
    font-size: 0.75rem; 
    white-space: nowrap;
  }

  /* Premium Split Dock (Bottom) */
  .mobile-dock {
    display: flex; align-items: center; justify-content: space-evenly;
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 400px;
    background: rgba(15, 15, 17, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 40px;
    padding: 10px; z-index: 90; box-shadow: 0 20px 40px rgba(0,0,0,0.9);
  }

  .mobile-dock-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: transparent; border: none; color: #a1a1aa;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.5px; text-decoration: none; cursor: pointer;
  }
  
  .mobile-dock-btn svg { width: 20px; height: 20px; color: #a1a1aa; }
  .dock-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }
  
  /* GLOWING UNLOCK BUTTON */
  .unlock-btn { color: #fbbf24; animation: textGlow 2s infinite alternate; }
  .unlock-btn svg { color: #fbbf24; filter: drop-shadow(0 0 4px rgba(251,191,36,0.6)); }

  @keyframes textGlow {
    from { text-shadow: 0 0 2px rgba(251, 191, 36, 0.2); }
    to { text-shadow: 0 0 10px rgba(251, 191, 36, 0.8); }
  }

  /* Pad the bottom of the layout so the user can scroll past the dock */
  .layout-container { padding-bottom: 120px; }
  
  /* --- FIX: COMPACT LOCKED BUTTON ON MOBILE --- */
  .massive-action-btn.demo-locked-state {
    font-size: 0.75rem !important;
    padding: 10px 12px !important;
    white-space: nowrap !important;
  }
  .massive-action-btn.demo-locked-state svg {
    width: 16px !important;
    height: 16px !important;
  }
}