/* ==========================================================================
   SLOANDESK — CORE DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep Obsidian Dark Mode, Emerald & Amber Sloth Glow, Glassmorphism
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-darkest: #070a0d;
  --bg-primary: #0a0f14;
  --bg-surface: rgba(16, 24, 32, 0.75);
  --bg-surface-elevated: rgba(22, 33, 44, 0.85);
  --bg-surface-hover: rgba(28, 42, 56, 0.9);
  --bg-code: #05080b;

  /* Accent Colors */
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;

  /* Text Colors */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0f172a;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-active: rgba(245, 158, 11, 0.45);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.15);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #111a24 0%, #070a0d 75%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   AMBIENT BACKGROUND GLOWS
   ========================================================================== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: ambientFloat 20s infinite alternate ease-in-out;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
  top: -100px;
  left: 10%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  top: 20%;
  right: -150px;
  animation-delay: -7s;
}

.glow-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  bottom: 5%;
  left: 20%;
  animation-delay: -14s;
}

@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-announcement {
  position: relative;
  z-index: 20;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.15));
  border-bottom: 1px solid var(--border-glass);
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

.announcement-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge-hf {
  background: var(--accent-gold);
  color: #101820;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.announcement-text {
  color: #e2e8f0;
}

.announcement-text strong {
  color: var(--accent-gold);
}

.announcement-badge-offline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
}

.brand-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}

.brand-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.brand-avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.85rem;
  background: var(--bg-primary);
  border-radius: 50%;
  padding: 1px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-version {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Nav Engine Pills */
.nav-engine-pills {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.engine-selector-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

.engine-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.engine-select {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.engine-select option {
  background: #0f172a;
  color: #f1f5f9;
}

.sloth-meter-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

.meter-icon {
  font-size: 1.1rem;
}

.meter-info {
  display: flex;
  flex-direction: column;
}

.meter-label {
  font-size: 0.65rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
}

.meter-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.mini-progress-bar {
  width: 48px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
}

.btn-zen-quick-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-zen-quick-toggle:hover {
  background: rgba(139, 92, 246, 0.28);
  border-color: rgba(139, 92, 246, 0.6);
  transform: translateY(-1px);
}

.btn-zen-quick-toggle.playing {
  background: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

/* ==========================================================================
   APP LAYOUT & GLASS PANELS
   ========================================================================== */
.app-layout {
  position: relative;
  z-index: 10;
  max-width: 1300px;
  margin: 1.5rem auto 4rem;
  padding: 0 1.5rem;
}

.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  margin-bottom: 2rem;
}

.hero-card {
  padding: 2.25rem;
  background: linear-gradient(135deg, rgba(16, 24, 32, 0.85) 0%, rgba(11, 18, 24, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #10b981, #06b6d4, #8b5cf6);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.chip-sloth {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.chip-privacy {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.chip-free {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #10b981 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.8rem;
  max-width: 620px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(5, 8, 11, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  max-width: 600px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.1;
}

.stat-desc {
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* Mascot Display in Hero */
.mascot-display-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mascot-image-wrapper {
  position: relative;
  width: 270px;
  height: 270px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.15);
}

.mascot-large-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mascot-large-image:hover {
  transform: scale(1.04);
}

.mascot-status-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(7, 10, 13, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.sloth-quote-box {
  text-align: center;
  max-width: 320px;
}

.sloth-quote {
  font-size: 0.85rem;
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.45;
}

.sloth-quote-author {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ==========================================================================
   MODULE TABS NAVIGATION
   ========================================================================== */
.module-tabs-nav {
  margin-bottom: 1.5rem;
}

.tabs-scroller {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.tabs-scroller::-webkit-scrollbar {
  height: 4px;
}

.tabs-scroller::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.85rem 1.25rem;
  background: rgba(16, 24, 32, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-normal);
  min-width: 190px;
  text-align: left;
}

.tab-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(16, 24, 32, 0.95) 100%);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
  color: var(--text-main);
}

.tab-icon {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.tab-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.tab-tag {
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.tab-btn.active .tab-tag {
  color: var(--accent-gold);
}

/* ==========================================================================
   MODULE CONTAINERS (COMMON STYLES)
   ========================================================================== */
.module-container {
  display: none;
  animation: fadeIn 0.3s ease;
}

.module-container.active {
  display: block;
}

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

.module-card {
  padding: 2rem;
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.module-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}

.module-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.module-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 800px;
  line-height: 1.55;
}

.module-header-actions {
  display: flex;
  gap: 0.6rem;
}

/* Module Body Grid */
.module-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.75rem;
}

.input-pane, .output-pane {
  display: flex;
  flex-direction: column;
}

.pane-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.pane-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
}

.token-estimate {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.textarea-code {
  width: 100%;
  height: 320px;
  background: var(--bg-code);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast);
}

.textarea-code:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

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

.select-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.select-group label {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.form-select, .form-input {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: #f1f5f9;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  border-color: var(--accent-gold);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-copy, .btn-copy-small {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-gold);
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-copy {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-copy-small {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
}

.btn-copy:hover, .btn-copy-small:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: var(--accent-gold);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   DIGEST OUTPUT CARD (MODULE 1)
   ========================================================================== */
.digest-output-card, .standup-output-card, .clutter-output-card {
  background: var(--bg-code);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  padding: 2rem 1rem;
  color: var(--text-subtle);
}

.empty-emoji {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}

.empty-state p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 0.4rem;
}

.empty-hint {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.badge-status-local {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Involvement Banners */
.involvement-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.banner-safe {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.banner-urgent {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-gold);
}

.banner-icon {
  font-size: 1.4rem;
}

.banner-text strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.banner-text span {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.result-block {
  margin-bottom: 1.2rem;
}

.result-subtitle {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.45rem;
}

.summary-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-gold);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.action-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.action-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
}

.canned-replies-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.canned-reply-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(16, 24, 32, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  gap: 0.75rem;
}

.canned-reply-text {
  font-size: 0.82rem;
  color: #94a3b8;
  font-style: italic;
}

.btn-mini-copy {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.btn-mini-copy:hover {
  background: var(--accent-gold);
  color: #111827;
}

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

.save-tag {
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 700;
}

/* ==========================================================================
   STANDUP OUTPUT CARD (MODULE 2)
   ========================================================================== */
.standup-preview-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.standup-section {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.standup-section-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.standup-section-header h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.standup-list {
  list-style: disc inside;
  font-size: 0.85rem;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.standup-blocker-text {
  font-size: 0.85rem;
  color: #94a3b8;
}

.slack-markdown-preview {
  background: #020406;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.slack-preview-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.slack-code-block {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================================================================
   DECLINER MODULE (MODULE 3)
   ========================================================================== */
.decliner-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
}

.decliner-controls-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.controls-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.control-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-label {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 700;
}

.decliner-results-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.deflection-item-card {
  background: var(--bg-code);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-normal);
  position: relative;
}

.deflection-item-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

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

.deflection-flavor-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}

.deflection-body {
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.55;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-cyan);
}

.deflection-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.energy-saved-note {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* ==========================================================================
   CLUTTER TAMER (MODULE 4)
   ========================================================================== */
.triage-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.triage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.triage-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-gold);
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.triage-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  color: #cbd5e1;
}

.triage-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.script-box-container {
  background: #030608;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

.script-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

.badge-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}

.script-code-block {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #a7f3d0;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* ==========================================================================
   SLOTH SANCTUARY (MODULE 5 - AUDIO SYNTHESIZER)
   ========================================================================== */
.sanctuary-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
}

.sound-mixer-card, .story-generator-card {
  background: var(--bg-code);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.mixer-header h3, .story-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.master-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.visualizer-container {
  position: relative;
  background: #020406;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-sm);
  height: 120px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

#audio-visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.visualizer-status {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.7rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

.sound-tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sound-track-box {
  background: rgba(16, 24, 32, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.track-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.track-icon {
  font-size: 1.3rem;
}

.track-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.track-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
}

.track-type {
  font-size: 0.68rem;
  color: var(--text-subtle);
}

.track-toggle {
  accent-color: var(--accent-emerald);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Styled Range Sliders */
.styled-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
}

.styled-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-gold);
  cursor: pointer;
}

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

.story-action-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.story-output-box {
  background: rgba(5, 8, 11, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  min-height: 230px;
  max-height: 320px;
  overflow-y: auto;
}

.story-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 180px;
  color: var(--text-subtle);
  text-align: center;
}

.story-emoji {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.story-text-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.story-text-body p {
  margin-bottom: 0.9rem;
}

/* ==========================================================================
   MODULE 6: SUBMISSION VIEWER
   ========================================================================== */
.submission-viewer {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.submission-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sub-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.markdown-preview-container {
  background: var(--bg-code);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #e2e8f0;
  max-height: 600px;
  overflow-y: auto;
}

.markdown-preview-container h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 1.5rem 0 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.35rem;
}

.markdown-preview-container h2:first-of-type {
  margin-top: 0;
}

.markdown-preview-container h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #38bdf8;
  margin: 1rem 0 0.4rem;
}

.markdown-preview-container p {
  margin-bottom: 0.85rem;
}

.markdown-preview-container ul {
  list-style: disc inside;
  margin-bottom: 0.85rem;
  padding-left: 0.5rem;
}

.markdown-preview-container li {
  margin-bottom: 0.3rem;
}

.markdown-preview-container code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #fca5a5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #f1f5f9;
  margin-right: 0.75rem;
}

.footer-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.75rem;
}

.footer-link-group a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link-group a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-gold);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg), 0 0 15px rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideToast {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Utilities */
.hidden {
  display: none !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-right {
    order: -1;
  }

  .module-body-grid, .decliner-grid, .sanctuary-grid {
    grid-template-columns: 1fr;
  }

  .sound-tracks-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-stats-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-engine-pills {
    width: 100%;
    flex-wrap: wrap;
  }

  .module-header {
    flex-direction: column;
  }

  .action-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary {
    width: 100%;
  }
}
