/* styles.css — BrandOS 360 Konsept Tur · Tasarım sistemi */

/* ============================================
   0. CSS Variables (Design Tokens)
   ============================================ */

:root {
  /* Nötr zemin — saf beyaz değil, kağıt beyazı */
  --bg: #FBFBFA;
  --surface: #FFFFFF;
  --surface-2: #F4F4F2;
  --hairline: rgba(17, 19, 26, 0.08);
  --hairline-2: rgba(17, 19, 26, 0.14);

  /* Metin */
  --text: #14151A;
  --text-2: #5E6066;
  --text-3: #9A9CA3;

  /* Tek aksan — rafine kobalt */
  --accent: #1F5AFF;
  --accent-press: #1747CC;
  --accent-tint: rgba(31, 90, 255, 0.08);

  /* Durum */
  --ok: #1C8C5B;
  --ok-tint: rgba(28, 140, 91, 0.1);
  --warn: #B7791F;
  --warn-tint: rgba(183, 121, 31, 0.1);

  /* Yarıçap */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Gölge — düşük opaklık, katmanlı */
  --shadow-1: 0 1px 2px rgba(17,19,26,.04), 0 1px 1px rgba(17,19,26,.03);
  --shadow-2: 0 4px 12px rgba(17,19,26,.06), 0 1px 3px rgba(17,19,26,.04);
  --shadow-3: 0 16px 48px rgba(17,19,26,.10), 0 4px 12px rgba(17,19,26,.05);

  /* Boşluk skalası (4-tabanlı) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  /* Tipografi */
  --font-family: 'Geist', -apple-system, 'SF Pro Text', system-ui, sans-serif;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0C0F;
    --surface: #141518;
    --surface-2: #1C1D22;
    --hairline: rgba(255,255,255,.08);
    --hairline-2: rgba(255,255,255,.14);
    --text: #F2F2F0;
    --text-2: #A6A8AE;
    --text-3: #6E7077;
    --accent: #4D7CFF;
    --accent-press: #3C68E6;
    --accent-tint: rgba(77,124,255,.12);
    --ok: #3FB37F;
    --ok-tint: rgba(63, 179, 127, 0.15);
    --warn: #D7A04A;
    --warn-tint: rgba(215, 160, 74, 0.15);
    --shadow-1: none;
    --shadow-2: 0 4px 16px rgba(0,0,0,.4);
    --shadow-3: 0 24px 64px rgba(0,0,0,.5);
  }
}

/* ============================================
   1. Reset & Base
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Subtle radial glow at top */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at center top, var(--accent-tint), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   2. Top Bar
   ============================================ */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s3) var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text);
}

.logo svg {
  flex-shrink: 0;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.demo-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  padding: var(--s1) var(--s3);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ============================================
   3. Progress Bar
   ============================================ */

.progress-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  padding: var(--s4) var(--s5);
  overflow-x: auto;
}

.progress-bar.hidden {
  display: none;
}

.progress-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-md);
  transition: background 200ms var(--ease-in-out);
  white-space: nowrap;
}

.progress-step:not(:disabled):hover {
  background: var(--surface-2);
}

.progress-step:disabled {
  cursor: default;
}

.progress-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-3);
  transition: all 200ms var(--ease-in-out);
}

.progress-step.completed .progress-number {
  background: var(--text);
  color: var(--surface);
}

.progress-step.active .progress-number {
  background: var(--accent);
  color: white;
}

.progress-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  transition: color 200ms var(--ease-in-out);
}

.progress-step.completed .progress-label,
.progress-step.active .progress-label {
  color: var(--text);
}

.progress-connector {
  width: 24px;
  height: 1px;
  background: var(--hairline-2);
  flex-shrink: 0;
}

/* Hide labels on mobile */
@media (max-width: 640px) {
  .progress-label {
    display: none;
  }

  .progress-step {
    padding: var(--s2);
  }

  .progress-connector {
    width: 16px;
  }
}

/* ============================================
   4. Main Content & Stage Container
   ============================================ */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stage-container {
  flex: 1;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: var(--s7) var(--s5);
  overflow-x: hidden;
}

@media (max-width: 480px) {
  .stage-container {
    padding: var(--s5) var(--s3);
  }
}

/* Wider container for content stage */
.stage-content .content-grid {
  max-width: none;
  margin-left: calc(-1 * var(--s5));
  margin-right: calc(-1 * var(--s5));
  padding-left: var(--s5);
  padding-right: var(--s5);
  overflow: hidden;
}

@media (max-width: 480px) {
  .stage-content .content-grid {
    margin-left: calc(-1 * var(--s3));
    margin-right: calc(-1 * var(--s3));
    padding-left: 0;
    padding-right: 0;
  }
}

.stage {
  display: none;
  opacity: 0;
}

.stage.active {
  display: block;
  animation: stageEnter 320ms var(--ease-out) forwards;
}

.stage.exiting {
  animation: stageExit 180ms var(--ease-in-out) forwards;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .stage.active,
  .stage.exiting {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.stage-header {
  text-align: center;
  margin-bottom: var(--s7);
}

.stage-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
}

.stage-description {
  font-size: 16px;
  color: var(--text-2);
}

/* ============================================
   5. Intro Stage
   ============================================ */

.intro-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--s8) 0;
}

.intro-headline {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
}

.intro-subheadline {
  font-size: 22px;
  color: var(--text-2);
  margin-bottom: var(--s7);
  line-height: 1.5;
}

.tenant-diagram {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin-bottom: var(--s6);
  box-shadow: var(--shadow-2);
}

.tenant-brands {
  display: flex;
  justify-content: center;
  gap: var(--s5);
  margin-bottom: var(--s4);
}

.tenant-brand-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 14px;
  color: var(--text-2);
}

.tenant-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.tenant-brand-item:nth-child(2) .tenant-brand-dot {
  background: var(--ok);
}

.tenant-brand-item:nth-child(3) .tenant-brand-dot {
  background: var(--warn);
}

.tenant-arrow {
  color: var(--text-3);
  margin: var(--s3) 0;
}

.tenant-engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  padding: var(--s4);
  background: var(--surface-2);
  border-radius: var(--r-md);
}

.tenant-engine-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.tenant-engine-sublabel {
  font-size: 13px;
  color: var(--text-3);
}

.intro-positioning {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: var(--s6);
  font-style: italic;
}

.intro-cta {
  margin: 0 auto;
}

/* Intro Mobile Responsive */
@media (max-width: 480px) {
  .intro-content {
    padding: var(--s5) var(--s3);
  }

  .intro-headline {
    font-size: 36px;
  }

  .intro-subheadline {
    font-size: 18px;
    margin-bottom: var(--s5);
  }

  .tenant-diagram {
    padding: var(--s4);
  }

  .tenant-brands {
    flex-direction: column;
    align-items: center;
    gap: var(--s3);
  }

  .tenant-engine {
    padding: var(--s3);
  }

  .tenant-engine-label {
    font-size: 13px;
  }

  .tenant-engine-sublabel {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .intro-headline {
    font-size: 28px;
  }

  .intro-subheadline {
    font-size: 16px;
  }
}

/* ============================================
   6. Brief Stage
   ============================================ */

.brief-fields {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.brief-field {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--s4);
}

.brief-label {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: var(--s1);
}

.brief-value {
  font-size: 16px;
  color: var(--text);
}

/* Staggered animation for brief fields */
.brief-field {
  opacity: 0;
  animation: fadeSlideUp 300ms var(--ease-out) forwards;
}

.brief-field:nth-child(1) { animation-delay: 50ms; }
.brief-field:nth-child(2) { animation-delay: 100ms; }
.brief-field:nth-child(3) { animation-delay: 150ms; }
.brief-field:nth-child(4) { animation-delay: 200ms; }
.brief-field:nth-child(5) { animation-delay: 250ms; }
.brief-field:nth-child(6) { animation-delay: 300ms; }

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

@media (prefers-reduced-motion: reduce) {
  .brief-field {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   7. Brand Brain Stage
   ============================================ */

.brain-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s5);
}

@media (max-width: 640px) {
  .brain-panel {
    grid-template-columns: 1fr;
  }
}

.brain-group {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-1);
  opacity: 0;
  animation: fadeSlideUp 300ms var(--ease-out) forwards;
}

.brain-group:nth-child(1) { animation-delay: 50ms; }
.brain-group:nth-child(2) { animation-delay: 100ms; }
.brain-group:nth-child(3) { animation-delay: 150ms; }
.brain-group:nth-child(4) { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  .brain-group {
    animation: none;
    opacity: 1;
  }
}

.brain-group-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--s3);
}

.brain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.brain-chip {
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface-2);
  padding: var(--s1) var(--s3);
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
}

/* ============================================
   8. Strategy Stage
   ============================================ */

.strategy-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s6);
}

.agents-tracker {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}

.agent-step {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 13px;
  color: var(--text-3);
  transition: color 200ms var(--ease-in-out);
}

.agent-step.active {
  color: var(--accent);
}

.agent-step.completed {
  color: var(--ok);
}

.agent-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-icon svg {
  width: 16px;
  height: 16px;
}

.agent-spinner {
  animation: spin 1s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .agent-spinner {
    animation: none;
  }
}

.agent-connector {
  width: 24px;
  height: 1px;
  background: var(--hairline-2);
}

.strategy-card {
  width: 100%;
  max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s6);
  box-shadow: var(--shadow-2);
}

.strategy-card.hidden {
  display: none;
}

.strategy-agents-note {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.strategy-agents-note svg {
  color: var(--ok);
}

.strategy-section {
  margin-bottom: var(--s5);
}

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

.strategy-label {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: var(--s1);
}

.strategy-value {
  font-size: 16px;
  color: var(--text);
}

.strategy-value.highlight {
  font-size: 18px;
  font-weight: 500;
}

.strategy-channels {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.strategy-channel {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  background: var(--surface-2);
  border-radius: var(--r-md);
}

.strategy-channel-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  min-width: 80px;
}

.strategy-channel-focus {
  font-size: 14px;
  color: var(--text-2);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: var(--r-sm);
}

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

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
    background: var(--surface-2);
  }
}

.skeleton-line {
  height: 16px;
  margin-bottom: var(--s3);
}

.skeleton-line:last-child {
  width: 60%;
  margin-bottom: 0;
}

/* ============================================
   9. Content Stage
   ============================================ */

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

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

.content-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  opacity: 0;
  animation: fadeSlideUp 300ms var(--ease-out) forwards;
}

.content-card:nth-child(1) { animation-delay: 100ms; }
.content-card:nth-child(2) { animation-delay: 170ms; }
.content-card:nth-child(3) { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .content-card {
    animation: none;
    opacity: 1;
  }
}

.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.content-channel {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.content-channel svg {
  width: 18px;
  height: 18px;
  color: var(--text-2);
}

.content-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}

.content-actions {
  display: flex;
  gap: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline);
}

.content-action {
  flex: 1;
  padding: var(--s2) var(--s3);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all 200ms var(--ease-in-out);
}

.content-action-approve {
  color: var(--ok);
  background: var(--ok-tint);
}

.content-action-approve:hover {
  background: var(--ok);
  color: white;
}

.content-action-revision {
  color: var(--warn);
  background: var(--warn-tint);
}

.content-action-revision:hover {
  background: var(--warn);
  color: white;
}

.content-action:active {
  transform: scale(0.98);
}

/* Status pills */
.status-pill {
  font-size: 12px;
  font-weight: 500;
  padding: var(--s1) var(--s2);
  border-radius: var(--r-pill);
  transition: all 200ms var(--ease-in-out);
}

.status-pill.pending {
  color: var(--text-3);
  background: var(--surface-2);
}

.status-pill.approved {
  color: var(--ok);
  background: var(--ok-tint);
}

.status-pill.revision {
  color: var(--warn);
  background: var(--warn-tint);
}

/* ============================================
   10. Approval Stage
   ============================================ */

.approval-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s6);
  text-align: center;
}

.approval-summary {
  width: 100%;
  max-width: 500px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s6);
  box-shadow: var(--shadow-2);
}

.approval-summary-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: var(--s4);
}

.approval-items {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.approval-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3);
  background: var(--surface-2);
  border-radius: var(--r-md);
}

.approval-item-channel {
  font-size: 14px;
  color: var(--text);
}

.export-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
}

.export-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
}

.export-success.hidden {
  display: none;
}

.success-icon {
  color: var(--ok);
  animation: successPop 400ms var(--ease-out);
}

@keyframes successPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .success-icon {
    animation: none;
  }
}

.success-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--ok);
}

.next-phases {
  font-size: 13px;
  color: var(--text-3);
  max-width: 400px;
}

/* ============================================
   11. Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s3) var(--s5);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: all 200ms var(--ease-in-out);
  white-space: nowrap;
}

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

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

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

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--hairline);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--hairline-2);
  box-shadow: var(--shadow-1);
}

.btn-large {
  padding: var(--s4) var(--s6);
  font-size: 16px;
  border-radius: var(--r-lg);
}

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

.btn-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-spinner.hidden {
  display: none;
}

.spinner-icon {
  animation: spin 1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .spinner-icon {
    animation: none;
  }
}

/* ============================================
   12. Bottom Navigation
   ============================================ */

.bottom-nav {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: var(--s4) var(--s5);
}

.bottom-nav-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
}

.nav-back[hidden],
.nav-next[hidden] {
  visibility: hidden;
}

/* ============================================
   13. Utilities
   ============================================ */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   14. Responsive
   ============================================ */

@media (max-width: 640px) {
  .intro-headline {
    font-size: 40px;
  }

  .intro-subheadline {
    font-size: 18px;
  }

  .stage-title {
    font-size: 22px;
  }

  .stage-container {
    padding: var(--s6) var(--s4);
  }

  .tenant-brands {
    flex-direction: column;
    gap: var(--s3);
  }
}

/* ============================================
   15. Parallel Agents Grid
   ============================================ */

.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  width: 100%;
  max-width: 700px;
}

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

.agent-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--agent-color, var(--accent));
  opacity: 0.3;
  transition: opacity 300ms var(--ease-in-out);
}

.agent-card.active::before,
.agent-card.completed::before {
  opacity: 1;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--agent-color, var(--accent));
  transition: all 300ms var(--ease-in-out);
}

.agent-card.active .agent-avatar {
  background: var(--agent-color, var(--accent));
  color: white;
}

.agent-card.completed .agent-avatar {
  background: var(--ok);
  color: white;
}

.agent-avatar svg {
  width: 20px;
  height: 20px;
}

.agent-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.agent-card-task {
  font-size: 12px;
  color: var(--text-3);
}

.agent-progress {
  width: 100%;
  height: 4px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.agent-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--agent-color, var(--accent));
  border-radius: var(--r-pill);
  transition: width 400ms var(--ease-out);
}

.agent-card.active .agent-progress-bar {
  animation: progressPulse 1.5s ease-in-out infinite;
}

.agent-card.completed .agent-progress-bar {
  width: 100%;
  background: var(--ok);
  animation: none;
}

@keyframes progressPulse {
  0%, 100% { width: 20%; }
  50% { width: 80%; }
}

@media (prefers-reduced-motion: reduce) {
  .agent-card.active .agent-progress-bar {
    animation: none;
    width: 50%;
  }
}

.parallel-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-tint);
  padding: var(--s1) var(--s3);
  border-radius: var(--r-pill);
  margin-bottom: var(--s4);
}

.parallel-badge svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   16. Enhanced Content Cards with Previews
   ============================================ */

.content-scroll {
  display: flex;
  gap: var(--s5);
  overflow-x: auto;
  padding: var(--s2) 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.content-scroll::-webkit-scrollbar {
  height: 6px;
}

.content-scroll::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: var(--r-pill);
}

.content-scroll::-webkit-scrollbar-thumb {
  background: var(--hairline-2);
  border-radius: var(--r-pill);
}

.content-card-enhanced {
  flex: 0 0 340px;
  max-width: 340px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeSlideUp 400ms var(--ease-out) forwards;
}

.content-card-enhanced:nth-child(1) { animation-delay: 100ms; }
.content-card-enhanced:nth-child(2) { animation-delay: 180ms; }
.content-card-enhanced:nth-child(3) { animation-delay: 260ms; }
.content-card-enhanced:nth-child(4) { animation-delay: 340ms; }
.content-card-enhanced:nth-child(5) { animation-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  .content-card-enhanced {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .content-card-enhanced {
    flex: 0 0 300px;
    max-width: 300px;
  }
}

/* ============================================
   17. Channel Preview Header
   ============================================ */

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.preview-channel {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.preview-channel-icon {
  width: 20px;
  height: 20px;
  color: var(--text-2);
}

.preview-channel-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.preview-format {
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 2px var(--s2);
  border-radius: var(--r-pill);
}

/* ============================================
   18. Image/Video Preview Area
   ============================================ */

.preview-media {
  position: relative;
  background: var(--surface-2);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-media.landscape {
  aspect-ratio: 16/9;
}

.preview-media.portrait {
  aspect-ratio: 4/5;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  padding: var(--s5);
  text-align: center;
  color: var(--text-3);
  position: relative;
  overflow: hidden;
}

/* Coffee-themed gradient backgrounds for previews */
.preview-media {
  background: linear-gradient(145deg, #F5E6D3 0%, #E8D4C0 30%, #D4B896 60%, #C4A67A 100%);
}

@media (prefers-color-scheme: dark) {
  .preview-media {
    background: linear-gradient(145deg, #2A2318 0%, #3D3125 30%, #4A3D2E 60%, #5C4A38 100%);
  }
}

/* Decorative coffee elements */
.preview-media::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.preview-placeholder-icon {
  width: 64px;
  height: 64px;
  color: rgba(139, 69, 19, 0.6);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@media (prefers-color-scheme: dark) {
  .preview-placeholder-icon {
    color: rgba(210, 180, 140, 0.7);
  }
}

.preview-placeholder-text {
  font-size: 11px;
  line-height: 1.5;
  max-width: 200px;
  color: rgba(139, 69, 19, 0.8);
  font-style: italic;
  background: rgba(255,255,255,0.5);
  padding: var(--s1) var(--s2);
  border-radius: var(--r-sm);
}

@media (prefers-color-scheme: dark) {
  .preview-placeholder-text {
    color: rgba(210, 180, 140, 0.9);
    background: rgba(0,0,0,0.3);
  }
}

/* Video overlay */
.preview-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

.preview-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-3);
}

.preview-play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.preview-duration {
  position: absolute;
  bottom: var(--s3);
  right: var(--s3);
  font-size: 12px;
  font-weight: 500;
  color: white;
  background: rgba(0,0,0,0.7);
  padding: 2px var(--s2);
  border-radius: var(--r-sm);
}

/* Carousel indicators */
.preview-carousel-dots {
  position: absolute;
  bottom: var(--s3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--s1);
}

.preview-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.preview-carousel-dot.active {
  background: white;
}

/* ============================================
   19. Content Body (Caption, Text)
   ============================================ */

.preview-body {
  padding: var(--s4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.preview-account {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.preview-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B4513, #D2691E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.preview-handle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.preview-caption {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-line;
}

.preview-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.preview-hashtag {
  font-size: 12px;
  color: var(--accent);
  cursor: default;
}

.preview-cta-text {
  font-size: 12px;
  color: var(--text-2);
  font-style: italic;
}

.preview-music {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 12px;
  color: var(--text-3);
  padding-top: var(--s2);
  border-top: 1px solid var(--hairline);
}

.preview-music svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   20. Twitter/X Thread Preview
   ============================================ */

.preview-thread {
  display: flex;
  flex-direction: column;
}

.preview-tweet {
  padding: var(--s4);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.preview-tweet:last-child {
  border-bottom: none;
}

.preview-tweet::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--hairline-2);
}

.preview-tweet:last-child::before {
  display: none;
}

.preview-tweet-header {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s2);
}

.preview-tweet-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 36px;
  white-space: pre-line;
}

.preview-thread-count {
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 2px var(--s2);
  border-radius: var(--r-pill);
  margin-left: auto;
}

/* ============================================
   21. Email Preview
   ============================================ */

.preview-email {
  display: flex;
  flex-direction: column;
}

.preview-email-header {
  padding: var(--s4);
  border-bottom: 1px solid var(--hairline);
}

.preview-email-subject {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--s1);
}

.preview-email-preheader {
  font-size: 12px;
  color: var(--text-3);
}

.preview-email-hero {
  background: var(--surface-2);
  padding: var(--s6);
  text-align: center;
}

.preview-email-hero-img {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--surface-2), var(--hairline));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s4);
  color: var(--text-3);
  font-size: 12px;
}

.preview-email-headline {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.preview-email-body {
  padding: var(--s4);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  white-space: pre-line;
}

.preview-email-cta {
  display: block;
  margin: var(--s4);
  padding: var(--s3) var(--s5);
  background: var(--accent);
  color: white;
  text-align: center;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* ============================================
   22. LinkedIn Preview
   ============================================ */

.preview-linkedin {
  display: flex;
  flex-direction: column;
}

.preview-linkedin-header {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
}

.preview-linkedin-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B4513, #D2691E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.preview-linkedin-info {
  flex: 1;
}

.preview-linkedin-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.preview-linkedin-title {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

.preview-linkedin-time {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.preview-linkedin-text {
  padding: 0 var(--s4) var(--s4);
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-line;
}

.preview-linkedin-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 12px;
}

/* ============================================
   23. Card Actions Footer
   ============================================ */

.preview-footer {
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  background: var(--surface);
}

.preview-actions {
  display: flex;
  gap: var(--s2);
}

.preview-action {
  padding: var(--s2) var(--s3);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all 200ms var(--ease-in-out);
}

.preview-action-approve {
  color: var(--ok);
  background: var(--ok-tint);
}

.preview-action-approve:hover {
  background: var(--ok);
  color: white;
}

.preview-action-revision {
  color: var(--warn);
  background: var(--warn-tint);
}

.preview-action-revision:hover {
  background: var(--warn);
  color: white;
}

/* ============================================
   24. Strategy Result Enhanced
   ============================================ */

.strategy-insight {
  padding: var(--s4);
  background: var(--accent-tint);
  border-radius: var(--r-md);
  margin-bottom: var(--s5);
}

.strategy-insight-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--s2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.strategy-insight-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.strategy-channel-enhanced {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--surface-2);
  border-radius: var(--r-md);
}

.strategy-channel-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
}

.strategy-channel-icon svg {
  width: 18px;
  height: 18px;
}

.strategy-channel-content {
  flex: 1;
}

.strategy-channel-name-enhanced {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.strategy-channel-focus-enhanced {
  font-size: 13px;
  color: var(--text-2);
}

.strategy-channel-format {
  font-size: 11px;
  color: var(--text-3);
  margin-top: var(--s1);
}

/* ============================================
   25. Platform Chrome (Instagram, LinkedIn, etc.)
   ============================================ */

/* Instagram engagement bar */
.ig-engagement-bar {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--hairline);
}

.ig-engagement-icons {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex: 1;
}

.ig-engagement-icon {
  width: 24px;
  height: 24px;
  color: var(--text);
  cursor: pointer;
  transition: transform 150ms var(--ease-out);
}

.ig-engagement-icon:hover {
  transform: scale(1.1);
}

.ig-engagement-icon:active {
  transform: scale(0.95);
}

.ig-save-icon {
  margin-left: auto;
}

.ig-likes {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* LinkedIn reaction bar */
.li-reactions {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.li-reaction-icons {
  display: flex;
  margin-right: var(--s2);
}

.li-reaction-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-left: -4px;
}

.li-reaction-icon:first-child {
  margin-left: 0;
}

.li-reaction-like { background: #0A66C2; color: white; }
.li-reaction-celebrate { background: #44712E; color: white; }
.li-reaction-love { background: #B24020; color: white; }

.li-reaction-count {
  font-size: 12px;
  color: var(--text-3);
}

.li-actions {
  display: flex;
  gap: var(--s5);
  padding: var(--s2) var(--s3);
}

.li-action {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-size: 12px;
  color: var(--text-2);
  padding: var(--s2);
  border-radius: var(--r-sm);
  transition: background 150ms;
}

.li-action:hover {
  background: var(--surface-2);
}

.li-action svg {
  width: 16px;
  height: 16px;
}

/* Twitter/X engagement */
.tweet-engagement {
  display: flex;
  justify-content: space-between;
  padding: var(--s2) var(--s4);
  padding-left: 44px;
  color: var(--text-3);
}

.tweet-stat {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-size: 12px;
}

.tweet-stat svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   26. AI Metrics & Predictions
   ============================================ */

.ai-metrics {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s3) var(--s4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}

.ai-metric {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 11px;
}

.ai-metric-icon {
  width: 14px;
  height: 14px;
}

.ai-metric-label {
  color: var(--text-3);
}

.ai-metric-value {
  font-weight: 500;
  color: var(--text);
}

.ai-metric-value.good {
  color: var(--ok);
}

.ai-metric-value.warning {
  color: var(--warn);
}

.ai-score {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 2px var(--s2);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
}

.ai-score.high {
  background: var(--ok-tint);
  color: var(--ok);
}

.ai-score.medium {
  background: var(--warn-tint);
  color: var(--warn);
}

/* ============================================
   27. Scroll Indicators
   ============================================ */

.scroll-container {
  position: relative;
}

.scroll-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  z-index: 10;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  opacity: 0.9;
}

.scroll-hint:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.scroll-hint-left {
  left: var(--s2);
}

.scroll-hint-right {
  right: var(--s2);
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Fade edges on scrollable area */
.content-scroll {
  mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

/* ============================================
   28. Approval Success Animation
   ============================================ */

.approval-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 140, 91, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}

.approval-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
  animation: approvalFlash 600ms var(--ease-out);
}

@keyframes approvalFlash {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

.content-card-enhanced.just-approved {
  animation: approvedPulse 500ms var(--ease-out);
}

@keyframes approvedPulse {
  0% { box-shadow: var(--shadow-2); }
  50% { box-shadow: 0 0 0 4px var(--ok-tint), var(--shadow-2); }
  100% { box-shadow: var(--shadow-2); }
}

.content-card-enhanced.just-revised {
  animation: revisedPulse 500ms var(--ease-out);
}

@keyframes revisedPulse {
  0% { box-shadow: var(--shadow-2); }
  50% { box-shadow: 0 0 0 4px var(--warn-tint), var(--shadow-2); }
  100% { box-shadow: var(--shadow-2); }
}

@media (prefers-reduced-motion: reduce) {
  .content-card-enhanced.just-approved,
  .content-card-enhanced.just-revised,
  .approval-success-overlay.active {
    animation: none;
  }
}

/* ============================================
   29. Content Loading Shimmer
   ============================================ */

.content-card-skeleton {
  flex: 0 0 340px;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.skeleton-header {
  height: 48px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}

.skeleton-media {
  height: 280px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-body {
  padding: var(--s4);
}

.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-sm);
  margin-bottom: var(--s2);
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

.skeleton-footer {
  height: 52px;
  border-top: 1px solid var(--hairline);
  background: var(--surface-2);
}

/* ============================================
   30. Alternative Suggestions
   ============================================ */

.alternatives-toggle {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 12px;
  color: var(--accent);
  padding: var(--s2) var(--s4);
  cursor: pointer;
  transition: background 150ms;
}

.alternatives-toggle:hover {
  background: var(--accent-tint);
}

.alternatives-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms;
}

.alternatives-toggle.expanded svg {
  transform: rotate(180deg);
}

.alternatives-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-out);
  background: var(--surface-2);
}

.alternatives-panel.expanded {
  max-height: 200px;
}

.alternative-item {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: background 150ms;
}

.alternative-item:hover {
  background: var(--surface);
}

.alternative-item:last-child {
  border-bottom: none;
}

.alternative-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--s1);
}

/* ============================================
   31. Enhanced Content Cards
   ============================================ */

.scroll-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.content-scroll {
  display: flex;
  gap: var(--s5);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: var(--s2) var(--s4);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.content-scroll::-webkit-scrollbar {
  display: none;
}

/* Full screen cards on mobile */
@media (max-width: 768px) {
  .stage-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    height: calc(100dvh - 140px);
  }

  .stage-content .stage-header {
    padding: var(--s3) var(--s4);
    flex-shrink: 0;
    background: var(--bg);
    position: relative;
    z-index: 10;
  }

  .stage-content .stage-header .stage-title {
    font-size: 20px;
    margin-bottom: var(--s1);
  }

  .stage-content .stage-header .stage-description {
    font-size: 13px;
  }

  .stage-content .content-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  .scroll-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
  }

  .content-scroll {
    flex: 1;
    height: 100%;
    gap: 0;
    padding: 0;
    scroll-snap-type: x mandatory;
  }

  .content-card-enhanced {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  .content-card-enhanced .preview-footer {
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--hairline);
    z-index: 5;
  }

  /* Hide desktop scroll hints on mobile */
  .scroll-hint {
    display: none !important;
  }
}

/* Slide indicator dots for mobile */
.slide-indicators {
  display: none;
}

@media (max-width: 768px) {
  .slide-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: var(--s2) var(--s4);
    background: var(--bg);
    flex-shrink: 0;
  }

  .slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hairline-2);
    transition: all 200ms var(--ease-out);
    cursor: pointer;
  }

  .slide-dot:active {
    transform: scale(0.9);
  }

  .slide-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
  }
}

/* Better card content on mobile full screen */
@media (max-width: 768px) {
  .preview-instagram,
  .preview-linkedin,
  .preview-thread,
  .preview-email {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .preview-carousel-slide {
    aspect-ratio: 1;
    min-height: 280px;
  }

  .preview-video {
    min-height: 320px;
  }

  .preview-body {
    flex: 1;
  }

  .preview-linkedin-text,
  .preview-email-body {
    flex: 1;
  }
}

.scroll-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  color: var(--text);
}

.scroll-hint:hover {
  background: var(--surface-2);
  box-shadow: var(--shadow-3);
  transform: translateY(-50%) scale(1.05);
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint-left {
  left: -22px;
}

.scroll-hint-right {
  right: -22px;
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
}

/* Enhanced Content Card */
.content-card-enhanced {
  flex: 0 0 360px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  opacity: 0;
  animation: fadeSlideUp 400ms var(--ease-out) forwards;
  transition: box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}

/* Mobile card widths */
@media (max-width: 400px) {
  .content-card-enhanced {
    flex: 0 0 calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
}

@media (min-width: 401px) and (max-width: 480px) {
  .content-card-enhanced {
    flex: 0 0 320px;
  }
}

@media (min-width: 481px) and (max-width: 640px) {
  .content-card-enhanced {
    flex: 0 0 340px;
  }
}

.content-card-enhanced:nth-child(1) { animation-delay: 100ms; }
.content-card-enhanced:nth-child(2) { animation-delay: 170ms; }
.content-card-enhanced:nth-child(3) { animation-delay: 240ms; }
.content-card-enhanced:nth-child(4) { animation-delay: 310ms; }
.content-card-enhanced:nth-child(5) { animation-delay: 380ms; }

.content-card-enhanced:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .content-card-enhanced {
    animation: none;
    opacity: 1;
  }
  .content-card-enhanced:hover {
    transform: none;
  }
}

/* Preview Header */
.preview-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.preview-channel {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.preview-channel-icon {
  display: flex;
  align-items: center;
  color: var(--text-2);
}

.preview-channel-icon svg {
  width: 18px;
  height: 18px;
}

.preview-channel-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.preview-format {
  font-size: 12px;
  color: var(--text-3);
  padding: var(--s1) var(--s2);
  background: var(--surface-2);
  border-radius: var(--r-pill);
  margin-left: auto;
}

.preview-thread-count {
  font-size: 12px;
  color: var(--text-3);
}

/* AI Metrics Bar */
.ai-metrics {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}

.ai-metric {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-size: 11px;
  color: var(--text-2);
}

.ai-metric svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.ai-metric-value {
  font-weight: 500;
  color: var(--text);
}

.ai-score {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-size: 11px;
  font-weight: 500;
  padding: 2px var(--s2);
  border-radius: var(--r-pill);
}

.ai-score.high {
  background: var(--ok-tint);
  color: var(--ok);
}

.ai-score.medium {
  background: var(--warn-tint);
  color: var(--warn);
}

/* ============================================
   32. Instagram Preview Styles
   ============================================ */

.preview-instagram {
  display: flex;
  flex-direction: column;
}

/* Instagram Header */
.preview-ig-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--surface);
}

.preview-ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.preview-ig-username {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.preview-ig-verified {
  color: #0095F6;
  display: flex;
}

.preview-ig-verified svg {
  width: 14px;
  height: 14px;
}

/* Instagram Carousel */
.preview-carousel {
  position: relative;
}

.preview-carousel-slides {
  display: flex;
  overflow: hidden;
}

.preview-carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #F5E6D3 0%, #E8D4C0 30%, #D4B896 60%, #C4A67A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s6);
  position: relative;
  overflow: hidden;
}

.preview-carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 40 L100 70 M85 55 L100 70 L115 55' stroke='%238B7355' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M100 90 C100 90 85 105 85 120 C85 135 92 145 100 145 C108 145 115 135 115 120 C115 105 100 90 100 90Z' stroke='%238B7355' stroke-width='1.5' fill='none'/%3E%3Cellipse cx='100' cy='155' rx='25' ry='8' stroke='%238B7355' stroke-width='1' fill='none' opacity='0.4'/%3E%3C/svg%3E") center center no-repeat;
  opacity: 0.3;
}

.preview-carousel-slide-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  color: #8B7355;
  opacity: 0.6;
}

.preview-carousel-slide-text {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: #8B7355;
  text-align: center;
  max-width: 200px;
  margin-top: var(--s3);
  line-height: 1.5;
}

.preview-carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--s1);
  padding: var(--s3);
  background: var(--surface);
}

.preview-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hairline-2);
}

.preview-carousel-dot.active {
  background: #0095F6;
}

/* Instagram Engagement Bar */
.ig-engagement {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--hairline);
}

.ig-engagement-icon {
  cursor: pointer;
  color: var(--text);
  display: flex;
  transition: transform 100ms;
}

.ig-engagement-icon:hover {
  transform: scale(1.1);
}

.ig-engagement-icon svg {
  width: 24px;
  height: 24px;
}

.ig-engagement-icon.bookmark {
  margin-left: auto;
}

/* Instagram Caption */
.preview-caption {
  padding: var(--s3) var(--s4);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.preview-caption-username {
  font-weight: 500;
  margin-right: var(--s1);
}

/* Preview Body & Hashtags */
.preview-body {
  padding: var(--s3) var(--s4);
}

.preview-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.preview-hashtag {
  font-size: 12px;
  color: #0095F6;
}

.preview-cta {
  font-size: 12px;
  color: var(--text-3);
  padding-top: var(--s2);
  display: block;
}

/* Video Preview (Reels) */
.preview-video {
  position: relative;
  aspect-ratio: 9/16;
  max-height: 320px;
  background: linear-gradient(145deg, #2C1810 0%, #4A2C1A 50%, #6B3D22 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='70' r='8' stroke='%23D4A574' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3Ccircle cx='70' cy='30' r='12' stroke='%23D4A574' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3Ccircle cx='50' cy='50' r='6' stroke='%23D4A574' stroke-width='0.5' fill='none' opacity='0.2'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.preview-video-play {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.preview-video-play svg {
  width: 32px;
  height: 32px;
  color: white;
  margin-left: 4px;
}

.preview-video-duration {
  position: relative;
  z-index: 1;
  margin-top: var(--s3);
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  padding: var(--s1) var(--s2);
  background: rgba(0,0,0,0.3);
  border-radius: var(--r-pill);
}

.preview-video-desc {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  max-width: 260px;
  margin-top: var(--s3);
  padding: 0 var(--s4);
  line-height: 1.4;
}

.preview-music {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-2);
}

.preview-music svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   33. Twitter/X Preview Styles
   ============================================ */

.preview-thread {
  display: flex;
  flex-direction: column;
}

.preview-tweet {
  padding: var(--s4);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.preview-tweet::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: var(--hairline-2);
}

.preview-tweet:last-child::before {
  display: none;
}

.preview-tweet-header {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s2);
}

.preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B4513, #D2691E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.preview-handle {
  font-size: 13px;
  color: var(--text-2);
}

.preview-tweet-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  padding-left: 52px;
  margin-bottom: var(--s3);
}

.tweet-engagement {
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding-left: 52px;
}

.tweet-stat {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  transition: color 150ms;
}

.tweet-stat:hover {
  color: var(--text-2);
}

.tweet-stat svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   34. LinkedIn Preview Styles
   ============================================ */

.preview-linkedin {
  display: flex;
  flex-direction: column;
}

.preview-linkedin-header {
  display: flex;
  gap: var(--s3);
  padding: var(--s4);
}

.preview-linkedin-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B4513, #D2691E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.preview-linkedin-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-linkedin-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.preview-linkedin-title {
  font-size: 12px;
  color: var(--text-2);
}

.preview-linkedin-time {
  font-size: 12px;
  color: var(--text-3);
}

.preview-linkedin-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  padding: 0 var(--s4) var(--s4);
  white-space: pre-wrap;
}

.preview-linkedin-image {
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, #F5E6D3 0%, #E8D4C0 30%, #D4B896 60%, #C4A67A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #8B7355;
  text-align: center;
  padding: var(--s4);
  position: relative;
}

.preview-linkedin-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='120' height='80' viewBox='0 0 120 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 60 L30 40 L45 30 L60 40 L60 60 Z' stroke='%238B7355' stroke-width='1' fill='none' opacity='0.3'/%3E%3Ccircle cx='80' cy='35' r='15' stroke='%238B7355' stroke-width='1' fill='none' opacity='0.3'/%3E%3Cpath d='M75 50 L85 50 L80 65 Z' stroke='%238B7355' stroke-width='1' fill='none' opacity='0.3'/%3E%3C/svg%3E") center center no-repeat;
  opacity: 0.5;
}

.li-reactions {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--hairline);
}

.li-reaction-icons {
  display: flex;
}

.li-reaction-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 50%;
  margin-left: -4px;
}

.li-reaction-icon:first-child {
  margin-left: 0;
}

.li-reaction-like {
  background: #0A66C2;
}

.li-reaction-celebrate {
  background: #44712E;
}

.li-reaction-love {
  background: #B24020;
}

.li-reaction-count {
  font-size: 12px;
  color: var(--text-3);
  margin-left: var(--s1);
}

.li-actions {
  display: flex;
  padding: var(--s2) var(--s4);
}

.li-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s3);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: background 150ms;
}

.li-action:hover {
  background: var(--surface-2);
}

.li-action svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   35. Email Preview Styles
   ============================================ */

.preview-email {
  display: flex;
  flex-direction: column;
}

.preview-email-header {
  padding: var(--s4);
  border-bottom: 1px solid var(--hairline);
}

.preview-email-subject {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--s1);
}

.preview-email-preheader {
  font-size: 12px;
  color: var(--text-3);
}

.preview-email-hero {
  position: relative;
}

.preview-email-hero-img {
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, #2C1810 0%, #4A2C1A 50%, #6B3D22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: var(--s4);
  position: relative;
}

.preview-email-hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='60' viewBox='0 0 100 60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='35' y='10' width='30' height='45' rx='3' stroke='%23D4A574' stroke-width='1' fill='none' opacity='0.4'/%3E%3Cellipse cx='50' cy='15' rx='8' ry='3' stroke='%23D4A574' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3Cpath d='M42 55 L50 48 L58 55' stroke='%23D4A574' stroke-width='0.5' fill='none' opacity='0.2'/%3E%3C/svg%3E") center center no-repeat;
  opacity: 0.6;
}

.preview-email-headline {
  position: absolute;
  bottom: var(--s4);
  left: var(--s4);
  right: var(--s4);
  font-size: 18px;
  font-weight: 500;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.preview-email-body {
  padding: var(--s4);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
}

.preview-email-cta {
  margin: 0 var(--s4) var(--s4);
  padding: var(--s3) var(--s5);
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-md);
  text-align: center;
  transition: background 150ms;
}

.preview-email-cta:hover {
  background: var(--accent-press);
}

/* ============================================
   36. Card Footer & Actions
   ============================================ */

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

.preview-actions {
  display: flex;
  gap: var(--s2);
}

.preview-action {
  padding: var(--s2) var(--s3);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all 150ms;
}

.preview-action-approve {
  color: var(--ok);
  background: var(--ok-tint);
}

.preview-action-approve:hover {
  background: var(--ok);
  color: white;
}

.preview-action-revision {
  color: var(--warn);
  background: var(--warn-tint);
}

.preview-action-revision:hover {
  background: var(--warn);
  color: white;
}

.preview-action:active {
  transform: scale(0.96);
}

/* Approval Pulse Animation */
.preview-footer .status-pill.approved {
  animation: approvalPulse 600ms var(--ease-out);
}

@keyframes approvalPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(28, 140, 91, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(28, 140, 91, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(28, 140, 91, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-footer .status-pill.approved {
    animation: none;
  }
}

/* ============================================
   37. Content Skeleton (Enhanced)
   ============================================ */

.content-card-skeleton {
  flex: 0 0 360px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

/* ============================================
   38. PWA & Mobile Enhancements
   ============================================ */

/* Safe Area Insets for Notched Devices */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* Standalone mode adjustments */
@media (display-mode: standalone) {
  .top-bar {
    padding-top: var(--safe-top);
  }

  .bottom-nav {
    padding-bottom: var(--safe-bottom);
  }

  body {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide demo badge in standalone for cleaner look */
  .demo-badge {
    font-size: 10px;
    padding: 2px 8px;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 48px;
    min-width: 48px;
  }

  .progress-step {
    min-width: 48px;
    min-height: 48px;
  }

  .preview-action {
    min-height: 44px;
    padding: var(--s3) var(--s4);
  }

  /* Remove hover effects on touch */
  .content-card-enhanced:hover {
    transform: none;
    box-shadow: var(--shadow-2);
  }

  .btn:hover {
    transform: none;
  }

  /* Active states for touch feedback */
  .btn:active {
    transform: scale(0.96);
    opacity: 0.9;
  }

  .content-card-enhanced:active {
    transform: scale(0.99);
  }

  /* Scroll hints larger on mobile */
  .scroll-hint {
    width: 48px;
    height: 48px;
  }
}

/* Pull-to-refresh prevention in standalone */
@media (display-mode: standalone) {
  html, body {
    overscroll-behavior: none;
  }
}

/* ============================================
   39. Enhanced Mobile Responsiveness
   ============================================ */

/* Extra small screens (< 360px) */
@media (max-width: 359px) {
  :root {
    font-size: 14px;
  }

  .top-bar-inner {
    padding: var(--s2) var(--s3);
  }

  .logo-text {
    font-size: 16px;
  }

  .demo-badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  .progress-bar {
    padding: var(--s2);
  }

  .progress-label {
    display: none;
  }

  .progress-step {
    padding: var(--s2);
  }

  .stage {
    padding: var(--s4) var(--s3);
  }

  .stage-title {
    font-size: 22px;
  }

  .intro-headline {
    font-size: 32px;
  }

  .intro-subheadline {
    font-size: 16px;
  }

  .content-card-enhanced {
    flex: 0 0 280px;
  }

  .bottom-nav-inner {
    padding: var(--s3);
  }
}

/* Small screens (360px - 480px) */
@media (min-width: 360px) and (max-width: 480px) {
  .progress-label {
    font-size: 10px;
  }

  .stage {
    padding: var(--s5) var(--s4);
  }

  .intro-headline {
    font-size: 36px;
  }

  .content-card-enhanced {
    flex: 0 0 300px;
  }
}

/* Medium screens (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .content-card-enhanced {
    flex: 0 0 340px;
  }

  .intro-headline {
    font-size: 44px;
  }
}

/* Mobile-specific layout improvements */
@media (max-width: 768px) {
  /* Full-width stages on mobile */
  .stage-container {
    padding: 0;
  }

  .stage {
    padding: var(--s5) var(--s4);
    padding-top: calc(var(--s5) + var(--safe-top));
  }

  /* Better scroll behavior */
  .content-scroll {
    padding: var(--s2) var(--s4);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .content-card-enhanced {
    scroll-snap-align: center;
  }

  /* Hide scroll hints on small screens, use swipe */
  .scroll-hint {
    display: none;
  }

  /* Mobile progress bar */
  .progress-inner {
    gap: var(--s1);
  }

  .progress-connector {
    flex: 0 0 12px;
  }

  /* Stack brief fields */
  .brief-fields {
    gap: var(--s3);
  }

  /* Brain panel improvements */
  .brain-group {
    padding: var(--s3);
  }

  .brain-chips {
    gap: var(--s2);
  }

  .brain-chip {
    font-size: 12px;
    padding: var(--s2) var(--s3);
  }

  /* Strategy improvements */
  .agents-tracker {
    gap: var(--s3);
  }

  .agent-item {
    flex-direction: column;
    text-align: center;
    padding: var(--s3);
  }

  /* Bottom nav safe area */
  .bottom-nav {
    padding-bottom: max(var(--s3), var(--safe-bottom));
  }

  .bottom-nav-inner {
    padding-left: max(var(--s4), var(--safe-left));
    padding-right: max(var(--s4), var(--safe-right));
  }

  /* Better touch targets for approval actions */
  .preview-actions {
    flex-direction: column;
    gap: var(--s2);
    width: 100%;
  }

  .preview-action {
    width: 100%;
    justify-content: center;
  }

  .preview-footer {
    flex-direction: column;
    gap: var(--s3);
    align-items: stretch;
  }

  .preview-footer .status-pill {
    align-self: flex-start;
  }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .content-card-enhanced {
    flex: 0 0 380px;
  }

  .scroll-hint-left {
    left: -12px;
  }

  .scroll-hint-right {
    right: -12px;
  }
}

/* ============================================
   40. Touch Gestures & Swipe Support
   ============================================ */

/* Swipe indicator */
.swipe-indicator {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 150ms, transform 150ms;
  pointer-events: none;
  z-index: 1000;
}

.swipe-indicator.left {
  left: 0;
  border-radius: 0 2px 2px 0;
}

.swipe-indicator.right {
  right: 0;
  border-radius: 2px 0 0 2px;
}

.swipe-indicator.active {
  opacity: 0.6;
}

.swipe-indicator.left.active {
  transform: translateY(-50%) translateX(8px);
}

.swipe-indicator.right.active {
  transform: translateY(-50%) translateX(-8px);
}

/* Swipe feedback on stage container */
.stage-container {
  touch-action: pan-y pinch-zoom;
}

.stage-container.swiping {
  user-select: none;
  -webkit-user-select: none;
}

/* Stage transition during swipe */
.stage.swipe-transition {
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
}

/* ============================================
   41. Install Prompt UI
   ============================================ */

.install-prompt {
  position: fixed;
  bottom: calc(var(--s6) + var(--safe-bottom));
  left: var(--s4);
  right: var(--s4);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s4);
  box-shadow: var(--shadow-3);
  display: flex;
  align-items: center;
  gap: var(--s4);
  z-index: 1000;
  transform: translateY(calc(100% + var(--s6)));
  transition: transform 400ms var(--ease-out);
}

.install-prompt.visible {
  transform: translateY(0);
}

.install-prompt-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-prompt-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.install-prompt-content {
  flex: 1;
  min-width: 0;
}

.install-prompt-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.install-prompt-desc {
  font-size: 12px;
  color: var(--text-2);
}

.install-prompt-actions {
  display: flex;
  gap: var(--s2);
  flex-shrink: 0;
}

.install-prompt-btn {
  padding: var(--s2) var(--s3);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all 150ms;
}

.install-prompt-btn.primary {
  background: var(--accent);
  color: white;
}

.install-prompt-btn.secondary {
  background: var(--surface-2);
  color: var(--text-2);
}

@media (max-width: 480px) {
  .install-prompt {
    flex-direction: column;
    text-align: center;
    left: var(--s3);
    right: var(--s3);
  }

  .install-prompt-actions {
    width: 100%;
  }

  .install-prompt-btn {
    flex: 1;
  }
}

/* ============================================
   42. Offline Indicator
   ============================================ */

.offline-indicator {
  position: fixed;
  top: calc(var(--safe-top) + var(--s3));
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: var(--warn);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-2);
  z-index: 1001;
  transition: transform 300ms var(--ease-out);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.offline-indicator.visible {
  transform: translateX(-50%) translateY(0);
}

.offline-indicator svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   43. Haptic-like Visual Feedback
   ============================================ */

@keyframes tapFeedback {
  0% {
    background-color: var(--accent-tint);
  }
  100% {
    background-color: transparent;
  }
}

.tap-feedback {
  animation: tapFeedback 200ms var(--ease-out);
}

/* Button press states */
.btn-primary:active {
  background: var(--accent-press);
  transform: scale(0.97);
}

.btn-secondary:active {
  background: var(--hairline);
  transform: scale(0.97);
}

/* Card tap states */
.content-card-enhanced:active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-tint);
  opacity: 0;
  animation: tapFeedback 200ms var(--ease-out);
  pointer-events: none;
  border-radius: inherit;
}

/* ============================================
   44. Performance Optimizations
   ============================================ */

/* GPU acceleration for animated elements */
.stage,
.content-card-enhanced,
.scroll-hint,
.install-prompt,
.offline-indicator,
.swipe-indicator {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Reduce paint areas */
.content-scroll {
  contain: layout style;
}

.stage-container {
  contain: layout;
}

/* Optimize images and icons */
svg {
  shape-rendering: geometricPrecision;
}

/* Prevent layout shifts */
.preview-carousel-slide,
.preview-video,
.preview-linkedin-image,
.preview-email-hero-img {
  aspect-ratio: 1;
  contain: layout;
}
