/*!
 * ECHO — Institutional Campus Knowledge Base
 * Premium Charcoal + Warm White + Rust Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&family=Space+Mono:wght@400;600;700&display=swap');

/* ── Design System Tokens ───────────────────────────────────────────────── */
:root {
  /* Charcoal Surfaces */
  --bg-primary:     #121316;
  --bg-secondary:   #18191e;
  --bg-card:        #1f2127;
  --bg-card-hover:  #262832;
  --bg-elevated:    #2b2e3a;
  --bg-glass:       rgba(24, 26, 32, 0.85);

  /* Borders & Strokes */
  --border:         rgba(245, 240, 232, 0.10);
  --border-hover:   rgba(224, 90, 58, 0.45);
  --border-subtle:  rgba(245, 240, 232, 0.05);

  /* Rust Core & Highlights */
  --rust:           #e05a3a;
  --rust-bright:    #f06a49;
  --rust-dark:      #c44829;
  --rust-subtle:    rgba(224, 90, 58, 0.14);
  --rust-glow:      rgba(224, 90, 58, 0.25);

  /* Typography */
  --text-primary:   #f5f0e8;
  --text-secondary: #b0aba0;
  --text-muted:     #767167;

  /* Semantics */
  --green:          #52b788;
  --green-subtle:   rgba(82, 183, 136, 0.14);
  --yellow:         #e5a952;
  --yellow-subtle:  rgba(229, 169, 82, 0.14);
  --red:            #e63946;
  --red-subtle:     rgba(230, 57, 70, 0.14);

  /* Radii & Shadows */
  --radius-xs:      4px;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --radius-pill:    999px;

  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:      0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:    0 0 24px rgba(224, 90, 58, 0.22);

  --transition:     all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Global Reset & Ambient Background ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow orbs */
.ambient-glow {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(150px);
  z-index: 0;
  opacity: 0.18;
}

.glow-top-left {
  top: -160px;
  left: -160px;
  background: radial-gradient(circle, #e05a3a 0%, transparent 70%);
}

.glow-top-right {
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, #e5a952 0%, transparent 70%);
  opacity: 0.12;
}

.glow-bottom-center {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #e05a3a 0%, transparent 70%);
  opacity: 0.10;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.page-main {
  flex: 1;
}

a {
  color: var(--rust-bright);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #ff7d5c;
}

/* ── Scroll Reveal Dynamic Animations ───────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Typography & Headings ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.page-title {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

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

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-rust { color: var(--rust-bright); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-center { text-align: center; }
.dot-sep { margin: 0 0.4rem; color: var(--text-muted); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rust), var(--rust-dark));
  color: #ffffff !important;
  border-color: rgba(240, 106, 73, 0.4);
  box-shadow: 0 2px 10px rgba(224, 90, 58, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--rust-bright), var(--rust));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(224, 90, 58, 0.45);
  color: #ffffff !important;
}

.btn-glow {
  box-shadow: 0 0 16px rgba(224, 90, 58, 0.35);
}

.btn-secondary {
  background-color: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary) !important;
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary) !important;
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-secondary) !important;
}

.btn-ghost:hover {
  background-color: var(--bg-card);
  border-color: var(--border-hover);
  color: var(--text-primary) !important;
}

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.75rem; }
.btn-md { padding: 0.6rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

.btn-text-action {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.btn-text-action:hover {
  color: var(--rust-bright);
}

/* ── Badges & Tags ──────────────────────────────────────────────────────── */
.echo-badge-id {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rust-bright);
  background: var(--rust-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(224, 90, 58, 0.3);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
}

.badge-tag.tag-subtle {
  color: var(--text-secondary);
  background: transparent;
}

.health-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
}

.health-fresh {
  background: var(--green-subtle);
  color: var(--green);
  border: 1px solid rgba(82, 183, 136, 0.35);
}

.health-aging {
  background: var(--yellow-subtle);
  color: var(--yellow);
  border: 1px solid rgba(229, 169, 82, 0.35);
}

.health-stale {
  background: var(--red-subtle);
  color: var(--red);
  border: 1px solid rgba(230, 57, 70, 0.35);
}

/* ── Header Navigation (Glassmorphic) ──────────────────────────────────── */
.app-header {
  height: 60px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-badge-container {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-pulse-halo {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 90, 58, 0.4) 0%, transparent 70%);
  animation: halo-pulse 2.8s ease-in-out infinite alternate;
}

@keyframes halo-pulse {
  from { transform: scale(0.9); opacity: 0.4; }
  to   { transform: scale(1.2); opacity: 0.8; }
}

.echo-ring-spin {
  transform-origin: center;
  animation: radar-spin 16s linear infinite;
}

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

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-echo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.brand-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--rust-bright);
  box-shadow: 0 0 8px var(--rust-bright);
  animation: live-blink 1.8s infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.brand-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rust);
}

.header-divider {
  width: 1px;
  height: 20px;
  background-color: var(--border);
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-item {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--text-primary);
  background-color: rgba(245, 240, 232, 0.06);
}

.nav-item.active {
  color: var(--text-primary);
  font-weight: 600;
  background-color: var(--rust-subtle);
  border: 1px solid rgba(224, 90, 58, 0.25);
}

/* Nav CTA Button */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: linear-gradient(135deg, rgba(224, 90, 58, 0.2), rgba(196, 72, 41, 0.25));
  border: 1px solid rgba(224, 90, 58, 0.45);
  border-radius: var(--radius-sm);
  color: var(--text-primary) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta-btn:hover {
  background: linear-gradient(135deg, var(--rust), var(--rust-dark));
  border-color: var(--rust-bright);
  box-shadow: 0 0 16px rgba(224, 90, 58, 0.4);
  transform: translateY(-1px);
}

.cta-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--rust-bright);
  box-shadow: 0 0 8px var(--rust-bright);
}

.cta-arrow {
  transition: transform 0.2s ease;
}

.nav-cta-btn:hover .cta-arrow {
  transform: translateX(3px);
}

/* ── Hero Section ───────────────────────────────────────────────────────── */
.hero-fancy {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  max-width: 940px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 16px rgba(224, 90, 58, 0.12);
}

.eyebrow-signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--rust-bright);
  box-shadow: 0 0 8px var(--rust-bright);
}

.eyebrow-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rust-bright);
}

.eyebrow-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  background: rgba(245, 240, 232, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  color: var(--text-secondary);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

/* Live Animated Flowing Shimmer */
.hero-live-shimmer {
  background: linear-gradient(90deg, #f5f0e8 0%, #e05a3a 25%, #f06a49 50%, #e5a952 75%, #f5f0e8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: live-shimmer-flow 4s linear infinite;
  display: inline-block;
}

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

.hero-subtext-line {
  color: var(--text-primary);
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

/* ── Hero Search Box (Enlarged & Roomy) ─────────────────────────────────── */
.hero-search-form,
.search-fancy-form {
  max-width: 980px;
  margin: 0 auto 1.75rem;
  width: 100%;
}

.hero-search-wrap {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem 0.6rem 1.5rem;
  min-height: 72px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.48), 0 0 28px rgba(224, 90, 58, 0.2);
  transition: var(--transition);
  position: relative;
}

.hero-search-wrap:focus-within {
  border-color: var(--rust);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 36px rgba(224, 90, 58, 0.38);
}

.search-icon-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.85rem;
  color: var(--rust-bright);
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  color: var(--text-primary);
  padding: 0.7rem 0.35rem;
  line-height: 1.4;
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

.hero-search-btn {
  flex: 0 0 auto;
  margin-left: 0.85rem;
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  min-height: 52px;
  white-space: nowrap;
}

.hero-category-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.chips-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.chips-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-chip {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.category-chip:hover {
  color: var(--text-primary);
  border-color: var(--rust);
  background: var(--rust-subtle);
  transform: translateY(-1px);
}

/* ── Live Stats Ribbon ──────────────────────────────────────────────────── */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 4rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-card-alert {
  border-color: rgba(230, 57, 70, 0.25);
  background: rgba(230, 57, 70, 0.05);
}

/* ── How Echo Works (3-Step Cards) ──────────────────────────────────────── */
.how-it-works-section {
  padding: 1rem 0 4rem;
}

.section-title-wrap {
  margin-bottom: 2.25rem;
}

.section-badge-tiny {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rust-bright);
  background: var(--rust-subtle);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-main-title {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.section-main-sub {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(224, 90, 58, 0.15);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.step-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rust-bright);
}

.step-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--rust-subtle);
  color: var(--rust-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── The Unwritten Syllabus ─────────────────────────────────────────────── */
.syllabus-section {
  padding: 1rem 0 4rem;
}

.syllabus-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.syllabus-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rust-bright);
  display: block;
  margin-bottom: 0.25rem;
}

.syllabus-heading {
  font-size: 1.5rem;
}

.popular-questions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
}

.pq-card:hover {
  transform: translateY(-3px);
  border-color: var(--rust);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.pq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pq-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
}

.pq-tag-prof   { background: rgba(224, 90, 58, 0.14); color: var(--rust-bright); border: 1px solid rgba(224, 90, 58, 0.3); }
.pq-tag-lab    { background: rgba(229, 169, 82, 0.14); color: var(--yellow); border: 1px solid rgba(229, 169, 82, 0.3); }
.pq-tag-campus { background: rgba(82, 183, 136, 0.14); color: var(--green); border: 1px solid rgba(82, 183, 136, 0.3); }
.pq-tag-exam   { background: rgba(224, 90, 58, 0.14); color: var(--rust-bright); border: 1px solid rgba(224, 90, 58, 0.3); }

.pq-arrow {
  color: var(--text-muted);
  transition: var(--transition);
}

.pq-card:hover .pq-arrow {
  color: var(--rust-bright);
  transform: translateX(3px);
}

.pq-question {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  flex: 1;
}

.pq-hint {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Dashboard Duo ──────────────────────────────────────────────────────── */
.dashboard-duo-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding-bottom: 4rem;
}

.duo-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.duo-title {
  font-size: 1.15rem;
}

.duo-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

.duo-link {
  font-size: 0.8125rem;
  font-weight: 600;
}

.echo-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fancy-echo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}

.fancy-echo-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.fancy-echo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.fancy-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.echo-time-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

.fancy-echo-quote {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.fancy-echo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
}

.footer-mentor-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mentor-dot {
  color: var(--rust-bright);
  font-size: 0.5rem;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gaps-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.gap-fancy-box {
  background: var(--bg-card);
  border: 1px solid rgba(230, 57, 70, 0.25);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: var(--transition);
}

.gap-fancy-box:hover {
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.06);
}

.gap-fancy-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gap-fancy-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--red);
}

.gap-fancy-query {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.gap-fancy-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.senior-cta-card {
  background: linear-gradient(135deg, rgba(224, 90, 58, 0.12), rgba(25, 27, 33, 0.9));
  border: 1px solid rgba(224, 90, 58, 0.35);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.senior-cta-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.senior-cta-body h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.senior-cta-body p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Echoes Tab / Dynamic Archive Styles ────────────────────────────────── */
.echoes-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  flex-wrap: wrap;
}

.echoes-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--rust-bright);
  margin-bottom: 0.5rem;
}

.echoes-main-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.echoes-sub-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.echoes-header-right {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.echoes-interactive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.echoes-search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  width: 260px;
  transition: var(--transition);
}

.echoes-search-wrap:focus-within {
  border-color: var(--rust);
  box-shadow: 0 0 12px rgba(224, 90, 58, 0.25);
}

.search-tiny-icon {
  color: var(--rust-bright);
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.echoes-live-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--text-primary);
  width: 100%;
}

.echoes-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.filter-pill.active {
  background: var(--rust-subtle) !important;
  border-color: var(--rust) !important;
  color: var(--rust-bright) !important;
}

.echoes-sort-view-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sort-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.sort-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.sort-tab-btn.active {
  background: var(--rust);
  color: #ffffff;
}

.view-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.view-btn.active {
  background: var(--rust-subtle);
  color: var(--rust-bright);
}

.echoes-dynamic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.echoes-dynamic-grid.list-view {
  grid-template-columns: 1fr;
}

.echo-interactive-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: var(--transition);
  position: relative;
}

.echo-interactive-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-badges-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.card-meta-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-date-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-transcript-wrap {
  flex: 1;
}

.card-quote-teaser, .card-quote-full {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.expand-text-btn {
  background: transparent;
  border: none;
  color: var(--rust-bright);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0;
  margin-top: 0.35rem;
  display: inline-block;
}
.expand-text-btn:hover {
  text-decoration: underline;
}

.card-waveform-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}

.wave-visualizer {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 20px;
  flex: 1;
}

.wave-bar {
  width: 3px;
  height: 4px;
  background-color: var(--border);
  border-radius: 1px;
  transition: height 0.15s ease, background-color 0.15s ease;
}

.card-waveform-player.playing .wave-bar {
  background-color: var(--rust-bright);
  animation: wave-pulse 0.6s ease infinite alternate;
}

.card-waveform-player.playing .wave-bar:nth-child(2n) { animation-delay: 0.1s; }
.card-waveform-player.playing .wave-bar:nth-child(3n) { animation-delay: 0.2s; }
.card-waveform-player.playing .wave-bar:nth-child(4n) { animation-delay: 0.3s; }

@keyframes wave-pulse {
  from { height: 3px; }
  to   { height: 18px; }
}

.card-footer-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-footer-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.confirm-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  color: var(--green);
}

.card-footer-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Record Studio Styles (Interactive & Tactile) ───────────────────────── */
.record-hero-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.record-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--rust-bright);
  margin-bottom: 0.6rem;
}

.record-main-title {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.record-sub-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 600px;
}

.record-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.step-num-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rust);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-section-title {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.card-section-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Category Picker */
.record-category-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.category-select-pill {
  padding: 0.6rem 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.category-select-pill:hover {
  border-color: var(--rust);
  color: var(--text-primary);
  background: var(--bg-card);
}

.category-select-pill.active {
  background: var(--rust-subtle);
  border-color: var(--rust);
  color: var(--rust-bright);
  box-shadow: 0 0 12px rgba(224, 90, 58, 0.2);
}

/* Studio Recorder Box */
.studio-recorder-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.studio-mic-anchor {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 90, 58, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.studio-recorder-box.recording .mic-pulse-ring {
  opacity: 1;
  animation: halo-pulse 1.6s ease-in-out infinite alternate;
}

.studio-record-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rust), var(--rust-dark));
  border: 2px solid rgba(240, 106, 73, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(224, 90, 58, 0.35);
}

.studio-record-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(224, 90, 58, 0.5);
}

.studio-record-btn.recording {
  background: var(--red);
  border-color: #ff8080;
  animation: live-blink 1.2s infinite;
}

.studio-timer-row {
  text-align: center;
}

.studio-timer-digits {
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.studio-status-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Inspiration Prompts */
.inspiration-prompts-bar {
  margin-bottom: 0.85rem;
}

.inspiration-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  display: block;
  margin-bottom: 0.4rem;
}

.inspiration-chips {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inspiration-chip {
  padding: 0.4rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.inspiration-chip:hover {
  border-color: var(--rust);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.transcript-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}

/* Live Memory Preview Card */
.live-preview-section {
  margin-top: 0.5rem;
}

.preview-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rust-bright);
  display: block;
  margin-bottom: 0.5rem;
}

.preview-echo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-glow);
}

/* ── Ask Tab & Gaps Styles (Preserved) ──────────────────────────────────── */
.search-mood-wrap { text-align: center; margin-bottom: 3.5rem; }
.search-mood-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.85rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-family: 'Space Mono', monospace; font-size: 0.6875rem; font-weight: 700; color: var(--rust-bright); margin-bottom: 1.25rem;
}
.pulse-beacon { width: 7px; height: 7px; border-radius: 50%; background-color: var(--rust-bright); box-shadow: 0 0 8px var(--rust-bright); }
.search-mood-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.search-mood-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 2.25rem; }
.search-fancy-form { max-width: 720px; margin: 0 auto 1.5rem; position: relative; }
.search-vault-meta { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--text-muted); }

.search-scanning { display: none; flex-direction: column; gap: 0.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; margin-top: 1rem; text-align: left; }
.search-scanning.visible { display: flex; }
.scan-step { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8125rem; color: var(--text-muted); transition: var(--transition); }
.scan-step.active { color: var(--rust-bright); font-weight: 600; }
.scan-step.done { color: var(--green); }
.scan-dot { width: 6px; height: 6px; border-radius: 50%; background-color: var(--text-muted); }
.scan-step.active .scan-dot { background-color: var(--rust-bright); box-shadow: 0 0 8px var(--rust-bright); }
.scan-step.done .scan-dot { background-color: var(--green); }

.whisper-chips-section { margin-bottom: 3.5rem; }
.whisper-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.whisper-title { font-family: 'Space Mono', monospace; font-size: 0.7rem; font-weight: 700; color: var(--rust-bright); letter-spacing: 0.08em; }
.whisper-hint { font-size: 0.75rem; color: var(--text-muted); }
.whisper-chips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.whisper-chip-card { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); text-align: left; cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif; }
.whisper-chip-card:hover { border-color: var(--rust); background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.chip-query-text { font-size: 0.875rem; font-weight: 500; line-height: 1.4; }
.chip-query-arrow { color: var(--text-muted); flex-shrink: 0; margin-left: 0.5rem; transition: var(--transition); }
.whisper-chip-card:hover .chip-query-arrow { color: var(--rust-bright); transform: translateX(3px); }

.search-intel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.intel-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.35rem; }
.intel-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.intel-card h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.intel-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.55; }

.gaps-hero-wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; flex-wrap: wrap; }
.gaps-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; background: rgba(230, 57, 70, 0.12); border: 1px solid rgba(230, 57, 70, 0.3); border-radius: var(--radius-pill); font-family: 'Space Mono', monospace; font-size: 0.6875rem; font-weight: 700; color: var(--red); margin-bottom: 0.75rem; }
.radar-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background-color: var(--red); box-shadow: 0 0 8px var(--red); animation: live-blink 1.5s infinite; }
.gaps-hero-title { font-size: 2rem; margin-bottom: 0.35rem; }
.gaps-hero-sub { color: var(--text-secondary); font-size: 0.9375rem; max-width: 580px; }
.gaps-dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.gap-stat-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; transition: var(--transition); }
.gap-stat-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.stat-tag { font-family: 'Space Mono', monospace; font-size: 0.65rem; font-weight: 700; color: var(--text-muted); }
.stat-val { font-family: 'Space Mono', monospace; font-size: 2.2rem; font-weight: 700; line-height: 1.1; margin-bottom: 0.25rem; }
.stat-name { font-size: 0.75rem; font-family: 'Space Mono', monospace; text-transform: uppercase; color: var(--text-muted); }
.gap-stat-critical { border-color: rgba(230, 57, 70, 0.3); background: rgba(230, 57, 70, 0.05); }
.gap-stat-success { border-color: rgba(82, 183, 136, 0.3); background: rgba(82, 183, 136, 0.05); }

.gaps-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.gaps-filter-group { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.toolbar-label { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--text-muted); margin-right: 0.3rem; }
.gaps-filter-btn.active { background: var(--rust-subtle); border-color: var(--rust); color: var(--rust-bright) !important; }
.gaps-quick-search { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.4rem 0.8rem; font-size: 0.8125rem; color: var(--text-primary); outline: none; width: 220px; }
.gaps-quick-search:focus { border-color: var(--rust); }
.gaps-container-box { margin-bottom: 2rem; }
.gaps-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.gaps-section-heading { font-size: 1.15rem; }
.gaps-count-badge { font-family: 'Space Mono', monospace; font-size: 0.7rem; font-weight: 700; color: var(--red); background: var(--red-subtle); padding: 0.15rem 0.5rem; border-radius: var(--radius-pill); }

.interactive-gaps-list { display: flex; flex-direction: column; gap: 0.85rem; }
.interactive-gap-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; transition: var(--transition); }
.interactive-gap-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gap-severity-critical { border-left: 4px solid var(--red); }
.gap-severity-high { border-left: 4px solid var(--yellow); }
.gap-severity-open { border-left: 4px solid var(--border); }
.gap-header-tags { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.gap-severity-pill { font-family: 'Space Mono', monospace; font-size: 0.65rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: var(--radius-pill); }
.pill-critical { background: var(--red-subtle); color: var(--red); }
.pill-high { background: var(--yellow-subtle); color: var(--yellow); }
.pill-open { background: rgba(245, 240, 232, 0.08); color: var(--text-secondary); }
.gap-ask-counter { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--text-muted); }
.gap-query-heading { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.4rem; }
.gap-meta-footer { font-size: 0.75rem; color: var(--text-muted); }

.resolved-cards-list { display: flex; flex-direction: column; gap: 0.65rem; }
.resolved-gap-card { background: var(--bg-card); border: 1px solid rgba(82, 183, 136, 0.25); border-left: 3px solid var(--green); border-radius: var(--radius-sm); padding: 0.85rem 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.resolved-left { display: flex; align-items: center; gap: 0.75rem; }
.resolved-check { width: 24px; height: 24px; border-radius: 50%; background: var(--green-subtle); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8125rem; }
.resolved-query { font-size: 0.875rem; font-weight: 600; }
.resolved-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ── Form Controls & Record UI ──────────────────────────────────────────── */
.form-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.required-star {
  color: var(--red);
}

.form-input, .form-textarea {
  width: 100%;
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--text-primary) !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  outline: none;
  transition: var(--transition);
  -webkit-text-fill-color: var(--text-primary) !important;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--rust);
  background-color: var(--bg-elevated) !important;
  box-shadow: 0 0 12px rgba(224, 90, 58, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rec-equalizer {
  display: none;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}
.rec-equalizer.active {
  display: flex;
}

.rec-eq-bar {
  width: 3px;
  background-color: var(--rust-bright);
  border-radius: 1px;
  height: 6px;
  animation: eq-bounce 0.5s ease infinite alternate;
}
.rec-eq-bar:nth-child(2) { animation-delay: 0.12s; }
.rec-eq-bar:nth-child(3) { animation-delay: 0.24s; }
.rec-eq-bar:nth-child(4) { animation-delay: 0.08s; }
.rec-eq-bar:nth-child(5) { animation-delay: 0.18s; }
.rec-eq-bar:nth-child(6) { animation-delay: 0.14s; }
.rec-eq-bar:nth-child(7) { animation-delay: 0.28s; }

@keyframes eq-bounce {
  from { height: 4px; }
  to   { height: 22px; }
}

.audio-preview {
  width: 100%;
  margin-top: 0.5rem;
}

.upload-alternative-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.file-upload-simple {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.file-upload-simple:hover {
  border-color: var(--rust);
  color: var(--text-primary);
}

.hidden-file-input { display: none; }

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.app-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 0.5rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--rust-bright);
}

/* ── Alerts & Empty Boxes ───────────────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.alert-success { background: var(--green-subtle); border: 1px solid rgba(82, 183, 136, 0.35); color: var(--green); }
.alert-error   { background: var(--red-subtle); border: 1px solid rgba(230, 57, 70, 0.35); color: var(--red); }
.alert-info    { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); }

.clean-empty-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.dev-seed-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hidden { display: none !important; }

/* ── Responsive Rules ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .record-category-picker {
    grid-template-columns: repeat(2, 1fr);
  }
  .echoes-dynamic-grid {
    grid-template-columns: 1fr;
  }
  .popular-questions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-duo-grid {
    grid-template-columns: 1fr;
  }
  .search-intel-grid {
    grid-template-columns: 1fr;
  }
  .whisper-chips-grid {
    grid-template-columns: 1fr;
  }
  .gaps-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-left .app-nav {
    display: none;
  }
  .record-category-picker {
    grid-template-columns: 1fr;
  }
  .stats-ribbon {
    grid-template-columns: 1fr;
  }
  .popular-questions-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-search-wrap {
    flex-direction: column;
    padding: 0.75rem;
  }
  .hero-search-btn {
    width: 100%;
    margin-top: 0.5rem;
    margin-left: 0;
  }
  .echoes-interactive-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .echoes-search-wrap {
    width: 100%;
  }
  .gaps-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .gaps-quick-search {
    width: 100%;
  }
  .interactive-gap-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .gap-right-action {
    width: 100%;
  }
  .gap-right-action .btn {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM ANIMATIONS & POLISH LAYER — Echo v2 Demo
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Page Entry Fade ──────────────────────────────────────────────────────── */
@keyframes pageEntryFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-main {
  animation: pageEntryFade 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Hero Title Shimmer Effect ────────────────────────────────────────────── */
@keyframes shimmerFlow {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero-live-shimmer {
  background: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--rust-bright) 30%,
    #ffb347 50%,
    var(--rust-bright) 70%,
    var(--text-primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerFlow 3.5s linear infinite;
}

/* ── Ghost Card — Premium Entry with Stagger ─────────────────────────────── */
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ghost-result-card,
.echo-interactive-card,
.fancy-echo-card,
.gap-fancy-box,
.interactive-gap-card {
  animation: cardSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ghost-result-card:nth-child(1), .echo-interactive-card:nth-child(1) { animation-delay: 0.04s; }
.ghost-result-card:nth-child(2), .echo-interactive-card:nth-child(2) { animation-delay: 0.09s; }
.ghost-result-card:nth-child(3), .echo-interactive-card:nth-child(3) { animation-delay: 0.13s; }
.ghost-result-card:nth-child(4), .echo-interactive-card:nth-child(4) { animation-delay: 0.17s; }
.ghost-result-card:nth-child(5), .echo-interactive-card:nth-child(5) { animation-delay: 0.21s; }
.ghost-result-card:nth-child(6), .echo-interactive-card:nth-child(6) { animation-delay: 0.25s; }

/* ── Card Hover Lift & Glow ───────────────────────────────────────────────── */
.ghost-result-card,
.echo-interactive-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.ghost-result-card:hover,
.echo-interactive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(224,90,58,0.25);
  border-color: rgba(224, 90, 58, 0.3);
}

/* ── Consensus / Synthesis Panel Entrance ───────────────────────────────── */
@keyframes panelReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.consensus-fancy-panel {
  animation: panelReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* ── Consensus Fill Bar Animated ────────────────────────────────────────── */
.consensus-fill {
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Search Bar Pulse Glow on Focus ─────────────────────────────────────── */
.hero-search-wrap:focus-within {
  box-shadow: 0 0 0 2px rgba(224, 90, 58, 0.35), 0 8px 32px rgba(0,0,0,0.35);
  border-color: rgba(224, 90, 58, 0.5) !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-search-input:focus {
  outline: none;
}

/* ── Stat Numbers — Pulse on mount ──────────────────────────────────────── */
@keyframes statPop {
  0%   { transform: scale(0.85); opacity: 0; }
  70%  { transform: scale(1.06); }
  100% { transform: scale(1);    opacity: 1; }
}

.stat-num {
  animation: statPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* ── Mic Pulse Ring (recorder page) ─────────────────────────────────────── */
@keyframes micPulseExpand {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(2.2);  opacity: 0; }
}

.mic-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(224, 90, 58, 0.6);
  pointer-events: none;
  opacity: 0;
}

.mic-pulse-ring.active {
  animation: micPulseExpand 1.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Micro-animation on record button */
.studio-record-btn {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease;
}

.studio-record-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(224, 90, 58, 0.5);
}

.studio-record-btn.recording {
  animation: recordBtnPulse 1s ease-in-out infinite;
}

@keyframes recordBtnPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(224, 90, 58, 0.5); }
  50%       { box-shadow: 0 0 36px rgba(224, 90, 58, 0.85); }
}

/* ── Equalizer Bars ─────────────────────────────────────────────────────── */
.rec-equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 36px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rec-equalizer.active {
  opacity: 1;
}

.rec-eq-bar {
  width: 4px;
  background: var(--rust);
  border-radius: 2px 2px 0 0;
  height: 6px;
  transition: height 0.15s ease;
}

.rec-equalizer.active .rec-eq-bar:nth-child(1) { animation: eqBounce 0.7s 0.00s ease-in-out infinite alternate; }
.rec-equalizer.active .rec-eq-bar:nth-child(2) { animation: eqBounce 0.7s 0.10s ease-in-out infinite alternate; }
.rec-equalizer.active .rec-eq-bar:nth-child(3) { animation: eqBounce 0.7s 0.20s ease-in-out infinite alternate; }
.rec-equalizer.active .rec-eq-bar:nth-child(4) { animation: eqBounce 0.7s 0.05s ease-in-out infinite alternate; }
.rec-equalizer.active .rec-eq-bar:nth-child(5) { animation: eqBounce 0.7s 0.15s ease-in-out infinite alternate; }
.rec-equalizer.active .rec-eq-bar:nth-child(6) { animation: eqBounce 0.7s 0.25s ease-in-out infinite alternate; }
.rec-equalizer.active .rec-eq-bar:nth-child(7) { animation: eqBounce 0.7s 0.08s ease-in-out infinite alternate; }

@keyframes eqBounce {
  from { height: 4px; }
  to   { height: 32px; }
}

/* ── Popular Question Cards — Hover Arrow ────────────────────────────────── */
.pq-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
}
.pq-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 0 1px rgba(224,90,58,0.2);
}
.pq-card:hover .pq-arrow {
  transform: translateX(5px);
  color: var(--rust-bright);
  transition: transform 0.2s ease, color 0.2s ease;
}
.pq-arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}

/* ── Filter Pills — Active Indicator Animation ───────────────────────────── */
@keyframes pillActivate {
  from { transform: scale(0.92); }
  to   { transform: scale(1); }
}
.filter-pill.active,
.sort-tab-btn.active,
.gaps-filter-btn.active {
  animation: pillActivate 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Knowledge Gap Badge — Glitch/Alert Pulse ───────────────────────────── */
@keyframes gapBadgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
.gap-pulse-indicator,
.eyebrow-signal-dot,
.pulse-beacon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: gapBadgePulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.eyebrow-signal-dot {
  background: var(--green);
}
.pulse-beacon {
  background: var(--rust);
  animation: gapBadgePulse 2s ease-in-out infinite;
}

/* ── Nav item active underline slide ────────────────────────────────────── */
.nav-item {
  position: relative;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item.active::after,
.nav-item:hover::after {
  transform: scaleX(1);
}

/* ── Header CTA button — shimmer on hover ───────────────────────────────── */
.nav-cta-btn {
  position: relative;
  overflow: hidden;
}
.nav-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.nav-cta-btn:hover::before {
  left: 150%;
}

/* ── Gaps Page — Severity Progress Bar ──────────────────────────────────── */
.gap-severity-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--bg-elevated);
  overflow: hidden;
  margin-top: 0.5rem;
}
.gap-severity-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rust), var(--red));
  animation: severityFillIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  transform-origin: left;
}
@keyframes severityFillIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Live Feed Toast — Slide In ─────────────────────────────────────────── */
@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.alert {
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Audio Preview Player Polish ─────────────────────────────────────────── */
audio.audio-preview {
  width: 100%;
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
  accent-color: var(--rust);
  background: var(--bg-elevated);
}

/* ── Results Page — Answer text typing entrance ─────────────────────────── */
@keyframes answerFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.consensus-answer-text {
  animation: answerFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* ── Match Score Badge — Color by score ─────────────────────────────────── */
.match-score-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Highlight high match scores */
.ghost-result-card[data-high-match] .match-score-badge {
  background: rgba(82, 183, 136, 0.15);
  color: var(--green);
  border-color: rgba(82, 183, 136, 0.3);
}

/* ── WhatsApp Source Tag Glow ────────────────────────────────────────────── */
@keyframes whatsappGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(37, 211, 102, 0.2); }
  50%       { box-shadow: 0 0 12px rgba(37, 211, 102, 0.45); }
}
.echo-interactive-card[data-source="whatsapp"],
.ghost-result-card .tag[style*="25d366"] {
  animation: whatsappGlow 2.5s ease-in-out infinite;
}

/* ── Echoes Page — Empty State Bounce ────────────────────────────────────── */
@keyframes emptyBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.clean-empty-box {
  animation: emptyBounce 3s ease-in-out infinite;
}

/* ── Record Form — Step card stagger entrance ───────────────────────────── */
.form-section-card:nth-child(1) { animation-delay: 0.05s; }
.form-section-card:nth-child(2) { animation-delay: 0.12s; }
.form-section-card:nth-child(3) { animation-delay: 0.19s; }
.form-section-card:nth-child(4) { animation-delay: 0.26s; }

/* ── Category Pills — Bounce on select ──────────────────────────────────── */
.category-select-pill {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              border-color 0.2s ease;
}
.category-select-pill.active {
  animation: pillActivate 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-select-pill:hover {
  transform: translateY(-2px);
}

/* ── Inspiration Chips — Hover glow ─────────────────────────────────────── */
.inspiration-chip {
  transition: transform 0.2s ease,
              background 0.2s ease,
              box-shadow 0.2s ease;
}
.inspiration-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(224, 90, 58, 0.25);
}

/* ── Live Preview Card — Update shimmer ─────────────────────────────────── */
@keyframes previewUpdateFlash {
  0%   { border-color: rgba(224, 90, 58, 0.6); }
  100% { border-color: var(--border); }
}
.preview-echo-card.updated {
  animation: previewUpdateFlash 0.4s ease-out forwards;
}

/* ── Stats Ribbon — Hover tilt ──────────────────────────────────────────── */
.stat-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease;
}
.stat-card:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* ── Scrollbar Styling ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(224, 90, 58, 0.35);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(224, 90, 58, 0.55);
}

/* ── Selection color ─────────────────────────────────────────────────────── */
::selection {
  background: rgba(224, 90, 58, 0.3);
  color: var(--text-primary);
}

/* ── Focus Ring — Accessible ─────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid rgba(224, 90, 58, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Smooth hover transitions on all interactive elements ────────────────── */
button, a, .btn, input, textarea, select {
  transition-property: background, border-color, color, box-shadow, transform, opacity;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
