* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2332;
  --bg-card-hover: #222d3f;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #d4a017;
  --accent-hover: #e5b020;
  --accent-muted: #92710e;
  --border: #2d3748;
  --success: #10b981;
  --warning: #f59e0b;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Pages */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

/* Genre Section */
.genre-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

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

@media (max-width: 600px) {
  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.genre-btn {
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

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

.genre-btn.selected {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.genre-btn .emoji {
  font-size: 2rem;
}

.genre-btn .label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Sub-genre Section */
.subgenre-section {
  margin-top: 24px;
}

.subgenre-section label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.subgenre-section select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
}

.subgenre-section select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Logline Section */
.logline-section {
  margin-top: 24px;
}

.logline-section label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.logline-section textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

.logline-section textarea::placeholder {
  color: var(--text-muted);
}

.logline-section textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.char-count {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Buttons */
.primary-btn {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 24px;
}

.primary-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.primary-btn:disabled {
  background: var(--accent-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.secondary-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: var(--bg-card-hover);
}

/* Loading */
.loading-card {
  text-align: center;
  padding: 60px 28px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

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

/* Results Page */
.assessment-card {
  text-align: center;
  padding: 40px 32px;
}

.assessment-card .sparkle {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.assessment-card blockquote {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
}

.assessment-label {
  color: var(--accent-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

.two-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Numbered List */
.numbered-list {
  list-style: none;
  counter-reset: item;
}

.numbered-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.numbered-list li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #000;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Check List */
.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Detailed Analysis Grid */
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.analysis-item {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
}

.analysis-item h4 {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Logline Options */
.logline-options-card h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.logline-options-card > .subtitle {
  text-align: center;
  margin-bottom: 24px;
}

.logline-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .logline-options {
    grid-template-columns: 1fr;
  }
}

.logline-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.logline-option:hover {
  border-color: var(--text-muted);
}

.logline-option.selected {
  border-color: var(--accent);
}

.logline-option .option-label {
  display: inline-block;
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.logline-option p {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.logline-option .radio {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.logline-option.selected .radio {
  border-color: var(--accent);
  background: var(--accent);
}

.logline-option.selected .radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
}

/* Navigation Buttons */
.nav-buttons {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-top: 8px;
}

.nav-buttons .primary-btn,
.nav-buttons .secondary-btn {
  margin-top: 0;
}

/* Original Logline Option */
.original-option {
  margin-bottom: 16px;
  background: var(--bg-card);
  border-style: dashed;
}

.original-option .option-label {
  background: var(--bg-secondary);
}

.divider-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 16px 0;
  position: relative;
}

.divider-text::before,
.divider-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border);
}

.divider-text::before {
  left: 0;
}

.divider-text::after {
  right: 0;
}

/* =========================================
   JOURNEY PAGE STYLES
   ========================================= */

/* Selected Logline Card */
.selected-logline-card {
  position: relative;
  text-align: center;
  padding: 32px;
  border: 2px solid var(--accent);
}

.check-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.selected-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.final-logline {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 16px;
}

.genre-badge {
  display: inline-block;
  background: var(--bg-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Journey Card */
.journey-card {
  padding: 36px;
}

.journey-card h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.journey-intro {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Journey Steps */
.journey-steps {
  position: relative;
  padding-left: 32px;
}

.journey-steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border);
}

.journey-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
}

.journey-step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.journey-step.completed .step-number {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.journey-step.active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.step-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.journey-step.completed .step-status {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.journey-step.active .step-status {
  background: rgba(212, 160, 23, 0.15);
  color: var(--accent);
}

/* Why Card */
.why-card h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.why-item {
  text-align: center;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.why-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.why-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Pricing Card */
.pricing-card {
  text-align: center;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-intro {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.pricing-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .pricing-options {
    grid-template-columns: 1fr;
  }
}

.pricing-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  position: relative;
}

.pricing-option.featured {
  border-color: var(--accent);
  transform: scale(1.05);
}

.pricing-option h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.pricing-option .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-option p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.best-value {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Journey Actions */
.journey-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.journey-actions .primary-btn {
  margin-top: 0;
}

.journey-actions .primary-btn.large {
  padding: 20px 24px;
  font-size: 1.1rem;
}

/* Project Info */
.project-info {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.project-info code {
  background: var(--bg-secondary);
  padding: 4px 12px;
  border-radius: 6px;
  font-family: monospace;
  color: var(--accent);
}

.save-note {
  font-size: 0.8rem !important;
}

/* =========================================
   NAVIGATION
   ========================================= */

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-auth, .nav-user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
}

.nav-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.nav-btn.primary:hover {
  background: var(--accent-hover);
}

#user-email {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* =========================================
   MODAL
   ========================================= */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-content h2 {
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.error-message {
  color: #ef4444;
  font-size: 0.9rem;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* =========================================
   DASHBOARD
   ========================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.project-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.project-card .genre-tag {
  display: inline-block;
  background: var(--bg-secondary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.project-card .logline {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .progress-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.project-card .progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.project-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-card .phase-label {
  color: var(--accent);
}

.project-card.unpaid {
  border-color: var(--warning);
}

.project-card.unpaid .phase-label {
  color: var(--warning);
}

/* =========================================
   PRICING UPDATES
   ========================================= */

.pricing-option ul {
  list-style: none;
  text-align: left;
  margin: 16px 0;
}

.pricing-option li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 24px;
}

.pricing-option li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
}

.select-plan-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.select-plan-btn:hover {
  background: var(--bg-card-hover);
}

.select-plan-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.select-plan-btn.primary:hover {
  background: var(--accent-hover);
}

/* =========================================
   LARGE BUTTON
   ========================================= */

.primary-btn.large {
  padding: 20px 32px;
  font-size: 1.1rem;
}

/* =========================================
   PHASE 1 UI STYLES
   ========================================= */

/* Phase Header */
.phase-header {
  text-align: center;
  margin-bottom: 24px;
}

.phase-indicator {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.phase-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.phase-badge.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.phase-badge.complete {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

/* Phase Steps Progress */
.phase-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
}

.phase-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.phase-step:hover {
  background: var(--bg-secondary);
}

.phase-step.active {
  background: var(--accent);
  color: #000;
}

.phase-step.complete {
  color: var(--success);
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Revisions Counter */
.revisions-counter {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.revisions-counter strong {
  color: var(--accent);
}

/* Step Content */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

.step-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Current Logline Display */
.current-logline {
  margin-bottom: 24px;
}

.current-logline label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.logline-display {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
  border-left: 3px solid var(--accent);
}

/* AI Result Sections */
.ai-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.result-section {
  margin-bottom: 20px;
}

.result-section h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-section.highlight {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
}

.suggested-logline {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
  border-left: 3px solid var(--success);
}

.suggested-logline.alt {
  border-left-color: var(--warning);
  margin-top: 12px;
}

.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.result-actions button {
  flex: 1;
}

/* Tone Grid */
.tone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.tone-column {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
}

.tone-column h5 {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.tone-column ul {
  list-style: none;
  padding: 0;
}

.tone-column li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tone-statement {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

/* Theme Display */
.theme-display {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
}

/* Scope Styles */
.scope-badge-container {
  text-align: center;
  margin-bottom: 20px;
}

.scope-badge {
  display: inline-block;
  padding: 8px 24px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 20px;
  letter-spacing: 1px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.scope-item {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.scope-item .scope-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Review Section */
.review-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.review-section h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.review-item {
  font-size: 1rem;
  line-height: 1.6;
}

/* Quality Gate */
.quality-gate {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
}

.quality-gate h4 {
  margin-bottom: 12px;
}

.quality-gate p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.checkbox-item:hover {
  background: var(--bg-card);
}

.checkbox-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--success);
}

.checkbox-item span {
  font-size: 0.95rem;
}

/* Phase Complete Actions */
.phase-complete-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.phase-complete-actions button {
  flex: 1;
}

/* AI Loading Overlay */
.ai-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.ai-loading-content {
  text-align: center;
}

.ai-loading-content p {
  margin-top: 16px;
  color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .phase-steps {
    gap: 4px;
  }
  
  .phase-step {
    padding: 6px 8px;
    font-size: 0.7rem;
  }
  
  .step-label {
    display: none;
  }
  
  .tone-grid,
  .scope-grid {
    grid-template-columns: 1fr;
  }
  
  .result-actions {
    flex-direction: column;
  }
}
