/* ═══════════════════════════════════════════════════════════════
   PLURAL — Design System
   "Think Plural."
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ───────────────────────────────────── */
:root {
  --bg:             #0A0A0F;
  --surface:        #111118;
  --surface-hover:  #16161f;
  --border:         #1E1E2E;
  --border-light:   #2a2a3d;
  --primary:        #7C3AED;
  --primary-dim:    #6d28d9;
  --secondary:      #06B6D4;
  --secondary-dim:  #0891b2;
  --text:           #F1F5F9;
  --text-muted:     #64748B;
  --text-dim:       #475569;
  --success:        #10B981;
  --warning:        #F59E0B;
  --error:          #EF4444;
  --glow-purple:    rgba(124, 58, 237, 0.4);
  --glow-cyan:      rgba(6, 182, 212, 0.4);
  --glow-purple-sm: rgba(124, 58, 237, 0.15);
  --glow-cyan-sm:   rgba(6, 182, 212, 0.15);

  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sidebar-w:      300px;
  --navbar-h:       56px;
  --input-h:        72px;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-xs:      6px;
  --transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: #07070c;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cosmic constellation background animation / nodes */
  background-image: 
    radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.08) 0, transparent 50%),
    radial-gradient(at 50% 0%, rgba(6, 182, 212, 0.05) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.06) 0, transparent 50%);
  background-size: cover;
}

a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

::selection {
  background: var(--primary);
  color: white;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  background: rgba(13, 13, 20, 0.45);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

/* Hide default top navbar on desktop floating layout */
.navbar {
  display: none;
}

/* ── Sidebar (Glowing Tinted Reverted) ───────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100%;
  background: rgba(17, 17, 24, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding-top: 0;
  z-index: 90;
  transition: transform var(--transition-slow);
}

.sidebar-header {
  padding: 16px 16px 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sidebar-brand-img {
  max-height: 75px;
  max-width: 95%;
  object-fit: contain;
  display: block;
  transition: var(--transition);
  mix-blend-mode: screen;
}

.sidebar-brand-img:hover {
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.3));
}

/* ── Mode Selector ───────────────────────────────────────────── */
.mode-selector {
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-selector-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 0 8px 4px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.02);
}

.mode-btn.active {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.15);
}

.mode-btn.active[data-mode="clone"] {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
}

.mode-btn.active[data-mode="vault"] {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.mode-btn-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.mode-btn.active .mode-btn-icon {
  color: var(--text);
}

.mode-btn-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.mode-btn-tagline {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── New Chat Button ─────────────────────────────────────────── */
.new-chat-section {
  padding: 8px 16px;
}

.new-chat-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.new-chat-btn:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(124, 58, 237, 0.06);
}

/* ── Chat History ────────────────────────────────────────────── */
.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px;
}

.chat-history-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 8px 8px 4px;
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  gap: 8px;
  position: relative;
}

.chat-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.chat-item.active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-left: 2px solid var(--primary);
}

.chat-item-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-delete {
  opacity: 0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-dim);
  transition: var(--transition);
  margin-left: 0;
}

.chat-item:hover .chat-item-delete { opacity: 0.6; }
.chat-item-delete:hover { color: var(--error) !important; background: rgba(239, 68, 68, 0.1); opacity: 1 !important; }

/* Sidebar Chat History Search */
.chat-search-container {
  position: relative;
  margin: 8px 8px 12px;
}

.chat-search-container input {
  width: 100%;
  padding: 8px 12px 8px 30px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 12px;
  transition: var(--transition);
}

.chat-search-container input:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.1);
  outline: none;
}

.chat-search-container .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* Sidebar Chat Item Rename Button */
.chat-item-rename {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 4px;
  opacity: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: auto; /* Push rename/delete to right */
}

.chat-item-rename svg {
  stroke: currentColor;
}

.chat-item-rename:hover {
  color: var(--secondary) !important;
  opacity: 1 !important;
}

.chat-item:hover .chat-item-rename {
  opacity: 0.6;
}

/* ── Sidebar Footer (Claude Styled) ──────────────────────────── */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: #181819;
}

.user-profile-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.user-profile-section:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.user-email {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.logout-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════════ */

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
  min-width: 0;
  position: relative;
}

.chat-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* ── Mode Header (Mockup Capsule Bar) ───────────────────────── */
.mode-header-container {
  padding: 20px 24px 8px;
  flex-shrink: 0;
}

.mode-header {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(20, 20, 30, 0.45);
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.mode-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-header-icon {
  font-size: 16px;
}

.mode-title-select {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

#modeTitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.dropdown-arrow {
  font-size: 10px;
  color: var(--text-muted);
}

.mode-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  animation: badgePulse 2s ease-in-out infinite;
}

.badge-purple {
  background: var(--glow-purple-sm);
  color: var(--primary);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge-cyan {
  background: var(--glow-cyan-sm);
  color: var(--secondary);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Style profile button */
.style-profile-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary);
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: var(--glow-cyan-sm);
  transition: var(--transition);
}
.style-profile-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--secondary);
}

/* ═══════════════════════════════════════════════════════════════
   CHAT MESSAGES
   ═══════════════════════════════════════════════════════════════ */

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px 140px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  position: relative;
}

/* Constellation glowing blobs */
.chat-messages::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(124, 58, 237, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── Welcome Screen ──────────────────────────────────────────── */
.welcome-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 40px;
  animation: fadeIn 0.6s ease-out;
}

.welcome-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.welcome-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

/* ── Message Bubbles ─────────────────────────────────────────── */
.message {
  display: flex;
  gap: 12px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  animation: messageSlideIn 0.3s ease-out;
}

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.message.user .message-avatar {
  background: var(--primary);
  color: white;
}

.message.assistant .message-avatar {
  background: var(--surface);
  border: 1px solid var(--border);
}

.message-content {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.8;
  max-width: 85%;
  overflow-wrap: break-word;
}

.message.user .message-content {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
  font-size: 15px;
}

.message.assistant .message-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

/* ── Markdown Typography (upgraded) ──────────────────────────── */
.message-content h1 {
  font-size: 1.5em;
  font-weight: 800;
  color: var(--text);
  margin: 20px 0 10px;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.message-content h2 {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.message-content h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary);
  margin: 14px 0 6px;
}

.message-content h1:first-child,
.message-content h2:first-child,
.message-content h3:first-child {
  margin-top: 0;
}

.message-content p {
  margin: 8px 0;
}

.message-content ul, .message-content ol {
  margin: 10px 0;
  padding-left: 22px;
}

.message-content li {
  margin: 5px 0;
  line-height: 1.7;
}

.message-content li::marker {
  color: var(--primary);
}

.message-content code {
  background: rgba(124, 58, 237, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'Fira Code', 'Consolas', monospace;
}

.message-content pre {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  overflow-x: auto;
  margin: 12px 0;
}

.message-content pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
}

.message-content strong {
  font-weight: 700;
  color: var(--text);
}

.message-content em {
  font-style: italic;
  color: #94a3b8;
}

.message-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 8px 14px;
  margin: 12px 0;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  color: #cbd5e1;
  font-style: italic;
}

.message-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* ═══════════════════════════════════════════════════════════════
   COUNCIL — THINKING PANEL + FINAL ANSWER
   ═══════════════════════════════════════════════════════════════ */

.council-response-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto 16px;
  animation: messageSlideIn 0.3s ease-out;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Timeline connecting line on left of the panels */
.council-response-wrapper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  bottom: 80px;
  width: 1px;
  background: rgba(124, 58, 237, 0.2);
  z-index: 1;
}

/* Bullet indicator on the line */
.council-response-wrapper::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  z-index: 2;
}

.thinking-panel {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(17, 17, 24, 0.25);
  backdrop-filter: blur(10px);
  margin-left: 36px;
  position: relative;
}

.thinking-toggle {
  width: 100%;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  text-align: left;
}

.thinking-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.thinking-toggle-arrow {
  transition: transform var(--transition);
  font-size: 10px;
  color: var(--primary);
}

.thinking-agents {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(10, 10, 15, 0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.thinking-panel.open .thinking-toggle {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

.thinking-panel.open .thinking-agents {
  max-height: 500px;
}

/* Agent cards - horizontal layout */
.agent-card {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  padding: 1.5px; /* Border thickness */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: var(--transition);
}

.agent-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: var(--transition);
}

.agent-card.active::before {
  background: linear-gradient(135deg, #06b6d4 0%, #7c3aed 50%, #f43f5e 100%);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.agent-card-inner {
  background: rgba(17, 17, 24, 0.85);
  border-radius: 11px;
  padding: 12px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agent-card-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-card-icon-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.agent-card-model {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.agent-card-content {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 4px;
  flex: 1;
  word-break: break-word;
}

.agent-card-content.streaming::after {
  content: '▊';
  animation: cursorBlink 0.8s step-end infinite;
  color: var(--primary);
  margin-left: 2px;
}

.agent-card.error .agent-card-content {
  color: var(--warning);
}

/* ── Final Answer ────────────────────────────────────────────── */
.final-answer {
  background: rgba(17, 17, 24, 0.45);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 20px 24px;
  margin-left: 36px;
  position: relative;
  box-shadow: 0 0 30px var(--glow-purple-sm), 0 0 60px rgba(124, 58, 237, 0.05);
  animation: glowPulse 4s ease-in-out infinite;
}

.final-answer-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.final-answer-header > span {
  font-size: 20px;
  margin-top: 2px;
}

.final-answer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.final-answer-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
}

.final-answer-content {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
}

/* Typography inside final answer — premium feel */
.final-answer-content h1 {
  font-size: 1.5em;
  font-weight: 800;
  margin: 16px 0 10px;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.final-answer-content h2 {
  font-size: 1.25em;
  font-weight: 700;
  margin: 14px 0 8px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.final-answer-content h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary);
  margin: 12px 0 6px;
}

.final-answer-content h1:first-child,
.final-answer-content h2:first-child,
.final-answer-content h3:first-child {
  margin-top: 0;
}

.final-answer-content p { margin: 8px 0; }

.final-answer-content ul, .final-answer-content ol {
  margin: 10px 0;
  padding-left: 22px;
}

.final-answer-content li {
  margin: 5px 0;
  line-height: 1.7;
}

.final-answer-content li::marker { color: var(--primary); }

.final-answer-content strong {
  font-weight: 700;
  color: var(--text);
}

.final-answer-content em {
  font-style: italic;
  color: #94a3b8;
}

.final-answer-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 8px 14px;
  margin: 12px 0;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  color: #cbd5e1;
  font-style: italic;
}

.final-answer-content code {
  background: rgba(124, 58, 237, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'Fira Code', 'Consolas', monospace;
}

.final-answer-content pre {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  overflow-x: auto;
  margin: 12px 0;
}

.final-answer-content pre code {
  background: none;
  padding: 0;
}

.final-answer-content.streaming::after {
  content: '▊';
  animation: cursorBlink 0.8s step-end infinite;
  color: var(--primary);
  margin-left: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   INPUT BAR (Premium Mockup Dual-Row Box)
   ═══════════════════════════════════════════════════════════════ */

.input-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 24px 20px;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  z-index: 10;
}

.input-panel {
  background: rgba(17, 17, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.input-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.twin-toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.twin-toggle-icon {
  font-size: 14px;
}

.twin-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Custom switch toggle capsule */
.switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(14px);
}

.panel-collapse-btn {
  color: var(--text-dim);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-collapse-btn:hover {
  color: var(--text);
}

.input-panel-bottom {
  padding: 10px 16px 14px;
}

.input-box-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 6px 12px;
  transition: var(--transition);
}

.image-attach-btn, .web-search-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
  flex-shrink: 0;
}

.image-attach-btn:hover {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
}

.web-search-toggle-btn:hover {
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.08);
}

.web-search-toggle-btn.active {
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ── Web Search Citations ────────────────────────────────────── */
.sources-container {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sources-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.source-badge:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
  color: var(--secondary);
  transform: translateY(-1px);
}

.input-box-wrapper:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

#messageInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  resize: none;
  min-height: 24px;
  max-height: 120px;
  line-height: 1.5;
  padding: 6px 0;
}

#messageInput::placeholder {
  color: var(--text-dim);
}

/* Send button - premium text pill */
.send-btn {
  padding: 6px 20px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.send-btn:hover {
  background: var(--primary-dim);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── User Onboarding Styling ────────────────── */
.onboard-input, .onboard-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  margin-top: 8px;
  margin-bottom: 20px;
  outline: none;
  transition: var(--transition);
}

.onboard-input:focus, .onboard-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.onboard-select option {
  background: #111118;
  color: var(--text);
}

.apiKeyGuide {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
}

.btn-guide-toggle {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.btn-guide-toggle:hover {
  background: rgba(124, 58, 237, 0.04);
}

.guide-content {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 300px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.guide-content.hidden {
  display: none;
}

.guide-steps {
  padding-left: 20px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.guide-steps li {
  margin-bottom: 24px;
}

.guide-steps li a {
  color: var(--primary);
  text-decoration: none;
}

.guide-steps li a:hover {
  text-decoration: underline;
}

.guide-img {
  width: 100%;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.97);
  transition: var(--transition-slow);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-icon { font-size: 40px; text-align: center; margin-bottom: 16px; }

.modal-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

/* ── Onboarding Questions ────────────────────────────────────── */
.onboarding-step {
  display: none;
}

.onboarding-step.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.onboarding-question {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

.onboarding-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.onboarding-option {
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  flex: 0 0 auto;
}

.onboarding-option:hover {
  border-color: var(--primary);
  color: var(--text);
}

.onboarding-option.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Clone mode cyan override */
.modal-card.cyan .onboarding-option.selected {
  background: var(--secondary);
  border-color: var(--secondary);
}

.modal-card.cyan .onboarding-option:hover {
  border-color: var(--secondary);
}

/* ── Slider ──────────────────────────────────────────────────── */
.onboarding-slider-container {
  margin-bottom: 20px;
}

.onboarding-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.onboarding-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}

.onboarding-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--glow-purple);
}

.modal-card.cyan .onboarding-slider::-webkit-slider-thumb {
  background: var(--secondary);
  box-shadow: 0 0 10px var(--glow-cyan);
}

.onboarding-slider-value {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.modal-card.cyan .onboarding-slider-value {
  color: var(--secondary);
}

/* ── Onboarding Textarea ─────────────────────────────────────── */
.onboarding-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
  margin-bottom: 16px;
  transition: var(--transition);
}

.onboarding-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--glow-purple-sm);
}

.onboarding-textarea::placeholder {
  color: var(--text-dim);
}

/* ── Modal Buttons ───────────────────────────────────────────── */
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--glow-purple-sm);
}
.btn-primary:hover {
  background: var(--primary-dim);
  box-shadow: 0 0 25px var(--glow-purple);
}

.btn-primary.cyan {
  background: var(--secondary);
  box-shadow: 0 0 15px var(--glow-cyan-sm);
}
.btn-primary.cyan:hover {
  background: var(--secondary-dim);
  box-shadow: 0 0 25px var(--glow-cyan);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-light); }

/* ═══════════════════════════════════════════════════════════════
   STYLE PROFILE DRAWER
   ═══════════════════════════════════════════════════════════════ */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 195;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.drawer-close:hover { background: var(--surface-hover); color: var(--text); }

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.profile-item {
  margin-bottom: 20px;
}

.profile-item-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.profile-item-value {
  font-size: 14px;
  color: var(--text);
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.profile-item-value.editable {
  cursor: pointer;
  transition: var(--transition);
}
.profile-item-value.editable:hover {
  border-color: var(--secondary);
}

/* ═══════════════════════════════════════════════════════════════
   MODE THEMES — Clone (Cyan) / Twin (Purple)
   ═══════════════════════════════════════════════════════════════ */

/* Clone mode — cyan accents */
.app-layout.mode-clone .input-wrapper:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 20px var(--glow-cyan-sm);
}

.app-layout.mode-clone .send-btn {
  background: var(--secondary);
  box-shadow: 0 0 15px var(--glow-cyan-sm);
}

.app-layout.mode-clone .send-btn:hover {
  background: var(--secondary-dim);
  box-shadow: 0 0 25px var(--glow-cyan);
}

.app-layout.mode-clone .message.user .message-content {
  background: var(--secondary);
}

.app-layout.mode-clone .chat-messages {
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: var(--radius);
  margin: 8px;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.05);
}

/* Twin mode — purple glow everything */
.app-layout.mode-twin .chat-messages {
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius);
  margin: 8px;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.08);
}

.app-layout.mode-twin .input-wrapper {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.25);
}

.app-layout.mode-twin .input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--glow-purple-sm);
}

.app-layout.mode-twin .message.assistant .message-content {
  border-color: rgba(124, 58, 237, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: toastSlideIn 0.3s ease-out, toastFadeOut 0.3s ease-in 3.7s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.error { border-color: var(--error); color: var(--error); }
.toast.success { border-color: var(--success); color: var(--success); }
.toast.warning { border-color: var(--warning); color: var(--warning); }

/* ═══════════════════════════════════════════════════════════════
   LOADING / TYPING INDICATOR
   ═══════════════════════════════════════════════════════════════ */

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--glow-purple-sm), 0 0 40px rgba(124, 58, 237, 0.05); }
  50%      { box-shadow: 0 0 30px var(--glow-purple), 0 0 60px rgba(124, 58, 237, 0.1); }
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-6px); }
}

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

@keyframes toastFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}

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

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* ── Navbar Styling (Responsive Mobile Header) ── */
.navbar {
  display: none;
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    background: rgba(10, 10, 15, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }

  .navbar-hamburger {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
  }

  .navbar-hamburger:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
  }

  .navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: -8px;
  }

  .navbar-logo {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .navbar-tagline {
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .navbar-right {
    display: flex;
    align-items: center;
  }

  .style-profile-btn {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
  }

  .style-profile-btn:hover {
    background: rgba(6, 182, 212, 0.15);
  }

  /* Layout shifts — use dvh for real viewport on mobile browsers */
  .app-layout {
    height: calc(100dvh - 56px) !important;
    height: calc(100vh - 56px) !important; /* fallback for older browsers */
    margin-top: 56px;
  }

  @supports (height: 100dvh) {
    .app-layout {
      height: calc(100dvh - 56px) !important;
    }
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100% !important;
    transform: translateX(-100%);
    z-index: 1000 !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  }

  .sidebar.open { transform: translateX(0); }

  .main-content { padding-left: 0; }

  .chat-view {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .chat-messages {
    padding: 16px 16px 160px; /* extra clearance for fixed input-bar */
  }

  /* Fixed input bar on mobile — stays above virtual keyboard */
  .input-bar {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: 100%;
    z-index: 50;
    transition: bottom 0.15s ease-out;
  }

  .modal-card { padding: 24px; }

  .drawer { width: 100vw; }

  .mode-header {
    padding: 12px 16px 8px;
  }

  /* ── Swipeable Council Agents ── */
  .thinking-agents {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    display: flex;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .agent-card {
    flex: 0 0 280px !important;
    scroll-snap-align: start;
  }

  /* ── Stacked Dev Mode View ── */
  .dev-view {
    flex-direction: column;
    overflow-y: auto;
  }

  .dev-left-panel {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px !important;
    height: auto !important;
    overflow-y: visible !important;
  }

  .dev-right-panel {
    width: 100% !important;
    height: auto !important;
    padding: 16px !important;
    overflow-y: visible !important;
  }

  .dev-thinking-panel {
    margin-bottom: 20px;
  }

  /* ── Stacked Knowledge Vault View ── */
  .vault-view {
    flex-direction: column;
    overflow-y: auto;
  }

  .vault-sidebar-panel {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px !important;
    height: auto !important;
  }

  .vault-chat-panel {
    width: 100% !important;
    height: 500px !important; /* fixed scroll height when stacked */
  }

  /* ── Clone/Twin mode mobile fix ── */
  .app-layout.mode-clone .chat-messages,
  .app-layout.mode-twin .chat-messages {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* ── Onboarding modal mobile fix ── */
  .modal-card {
    width: 95% !important;
    max-height: 85vh;
    padding: 20px !important;
  }

  .onboarding-options {
    flex-direction: column !important;
  }

  .onboarding-option {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .navbar-tagline { display: none; }
  .mode-btn-tagline { display: none; }
  .mode-badges { display: none; }
  .welcome-title { font-size: 22px; }
  
  .dev-agent-cards {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE UPLOAD IN CHAT
   ═══════════════════════════════════════════════════════════════ */

/* Image attach button */
.image-attach-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.image-attach-btn:hover {
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.08);
}

.image-attach-btn svg {
  pointer-events: none;
}

/* Image preview strip above input */
.image-preview-strip {
  display: none;
  gap: 8px;
  padding: 8px 16px 4px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.image-preview-strip.has-images {
  display: flex;
}

.image-preview-item {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  padding: 0;
  transition: var(--transition);
}

.image-preview-remove:hover {
  background: rgba(220, 38, 38, 0.8);
}

/* Images displayed in chat messages */
.message-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.message-image {
  max-width: 280px;
  max-height: 200px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: var(--transition);
  object-fit: cover;
}

.message-image:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

/* Full-screen image viewer */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
  cursor: zoom-out;
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .message-image {
    max-width: 220px;
    max-height: 160px;
  }

  .image-preview-item {
    width: 56px;
    height: 56px;
  }
}

/* ── Sidebar Backdrop for Mobile ─────────────────────────────── */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 93;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ═══════════════════════════════════════════════════════════════
   AUTHENTICATION SCREEN
   ═══════════════════════════════════════════════════════════════ */
.auth-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #15102a 0%, #06050b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(17, 17, 24, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 58, 237, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: messageSlideIn 0.4s ease-out;
}

.auth-logo-wrapper {
  margin-bottom: 24px;
  text-align: center;
}

.auth-logo-img {
  height: 52px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-input-group input {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.auth-input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
}

.auth-error-msg {
  font-size: 13px;
  color: var(--warning);
  text-align: center;
  min-height: 18px;
}

.auth-info-msg {
  font-size: 13px;
  color: var(--secondary);
  text-align: center;
  margin-top: 14px;
  min-height: 18px;
}

.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.auth-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.auth-btn.login-btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.auth-btn.login-btn:hover {
  background: var(--primary-dim);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.auth-btn.signup-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-btn.signup-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── User Profile Bottom Section ── */
.user-profile-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 8px;
  width: 100%;
}

.user-email {
  font-size: 11px;
  color: var(--text-dim);
  word-break: break-all;
  text-align: left;
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  transition: var(--transition);
  width: 100%;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.logout-btn svg {
  margin-top: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   KNOWLEDGE VAULT PANEL (Amber Theme)
   ═══════════════════════════════════════════════════════════════ */
.vault-view {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
  animation: messageSlideIn 0.3s ease-out;
}

.vault-sidebar-panel {
  width: 320px;
  background: rgba(10, 10, 15, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex-shrink: 0;
}

.vault-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 16px;
}

.vault-panel-icon {
  font-size: 26px;
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

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

.vault-panel-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.3px;
}

.vault-panel-tagline {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

.vault-upload-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vault-upload-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
}

.vault-upload-btn:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.vault-upload-btn span {
  font-size: 15px;
}

/* Hidden Upload Forms */
.vault-form-container {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 10px;
  padding: 12px;
}

.vault-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vault-form input, .vault-form textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 12.5px;
  outline: none;
  font-family: var(--font);
}

.vault-form textarea {
  resize: vertical;
  min-height: 80px;
}

.vault-form input:focus, .vault-form textarea:focus {
  border-color: #f59e0b;
}

.vault-form-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.vault-action-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  transition: var(--transition);
}

.vault-action-btn.confirm {
  background: #f59e0b;
  color: #000;
}

.vault-action-btn.cancel {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.vault-status-log {
  font-size: 11px;
  padding: 0 4px;
  min-height: 15px;
  font-weight: 500;
}

.vault-status-log.success { color: #10b981; }
.vault-status-log.error { color: #ef4444; }
.vault-status-log.info { color: #f59e0b; }

.vault-items-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
}

.vault-items-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.vault-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.vault-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 12px;
  transition: var(--transition);
}

.vault-item-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.vault-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vault-item-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.vault-item-name {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-item-del-btn {
  color: var(--text-dim);
  transition: var(--transition);
  font-size: 10px;
  padding: 2px 6px;
  cursor: pointer;
}

.vault-item-del-btn:hover {
  color: #ef4444;
}

/* Right panel: Vault Chat */
.vault-chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.vault-chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vault-input-bar {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  z-index: auto;
  padding: 12px 24px 20px;
  width: 100%;
  max-width: none;
}

.vault-input-bar .input-panel {
  border-color: rgba(245, 158, 11, 0.15) !important;
}

.vault-input-bar .input-panel:focus-within {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.vault-input-bar .send-btn {
  background: #f59e0b !important;
  color: #000 !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25) !important;
}

.vault-input-bar .send-btn:hover {
  background: #d97706 !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

#vaultMessageInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  resize: none;
  min-height: 24px;
  max-height: 120px;
  line-height: 1.5;
  padding: 6px 0;
}

#vaultMessageInput::placeholder {
  color: var(--text-dim);
}

/* ── Vault Badge above Chat Input ── */
.vault-status-badge-container {
  display: flex;
  margin-bottom: 8px;
}

.vault-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: var(--transition);
}

.vault-status-badge.active {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
  animation: glowPulse 4s ease-in-out infinite;
}

.vault-status-badge.empty {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

/* Adjust sidebar active state for Vault */
.mode-btn.mode-btn-vault.active {
  background: rgba(245, 158, 11, 0.06) !important;
  border-color: #f59e0b !important;
  color: #f59e0b !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.12) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PLURAL DEV MODE STYLING 🔍
   ═══════════════════════════════════════════════════════════════ */

:root {
  --dev-accent: #10B981;
  --dev-accent-glow: rgba(16, 185, 129, 0.15);
  --dev-accent-glow-lg: rgba(16, 185, 129, 0.35);
  --dev-bg-dim: rgba(16, 185, 129, 0.05);
  --dev-border: rgba(16, 185, 129, 0.25);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* ── Sidebar Section Divider ── */
.sidebar-section-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 16px 16px;
}

.dev-mode-selector {
  padding: 0 16px;
  margin-bottom: 12px;
}

/* Sidebar active states for Dev Mode */
.mode-btn.mode-btn-dev.active {
  background: var(--dev-bg-dim) !important;
  border-color: var(--dev-accent) !important;
  color: var(--dev-accent) !important;
  box-shadow: 0 0 20px var(--dev-accent-glow) !important;
}

/* ── Dev Mode App Layout Override ── */
.app-layout.mode-dev {
  background: radial-gradient(circle at 50% 50%, #03150d 0%, #040806 100%) !important;
}

.app-layout.mode-dev .sidebar {
  border-right: 1px solid rgba(16, 185, 129, 0.1);
}

/* ── Split Panel dev-view Layout ── */
.dev-view {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

/* Left Panel: Inputs & Past Audits */
.dev-left-panel {
  width: 380px;
  border-right: 1px solid rgba(16, 185, 129, 0.15);
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: rgba(4, 10, 8, 0.7);
  backdrop-filter: blur(15px);
  overflow-y: auto;
  flex-shrink: 0;
}

.dev-panel-title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--dev-accent);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  text-shadow: 0 0 10px var(--dev-accent-glow);
}

.dev-panel-tagline {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.dev-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.dev-input-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dev-accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.dev-input-group input {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  transition: var(--transition);
}

.dev-input-group input:focus {
  outline: none;
  border-color: var(--dev-accent);
  box-shadow: 0 0 10px var(--dev-accent-glow);
}

.dev-input-group textarea.monospace {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  height: 220px;
  resize: none;
  transition: var(--transition);
}

.dev-input-group textarea.monospace:focus {
  outline: none;
  border-color: var(--dev-accent);
  box-shadow: 0 0 12px var(--dev-accent-glow);
  background: rgba(0, 0, 0, 0.6);
}

/* Dev Mode Run Button */
.btn-dev-run {
  width: 100%;
  padding: 14px;
  background: var(--dev-accent);
  border: none;
  color: #03150d;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--dev-accent-glow-lg);
  margin-bottom: 16px;
}

.btn-dev-run:hover {
  background: #34d399;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

/* Status Log Terminal Style */
.dev-status-log {
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 24px;
  border-left: 3px solid var(--text-muted);
}

.dev-status-log.info {
  border-left-color: #3b82f6;
  color: #93c5fd;
}

.dev-status-log.success {
  border-left-color: var(--dev-accent);
  color: #6ee7b7;
  text-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

.dev-status-log.error {
  border-left-color: var(--error);
  color: #fca5a5;
}

/* ── Past Reports Section ── */
.dev-past-reports-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.dev-past-reports-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dev-accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.dev-past-reports-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.dev-report-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.dev-report-item:hover {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.15);
}

.dev-report-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dev-report-item-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-report-item-date {
  font-size: 10px;
  color: var(--text-muted);
}

.dev-report-item-delete {
  padding: 4px;
  font-size: 11px;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.2;
  transition: var(--transition);
}

.dev-report-item:hover .dev-report-item-delete {
  opacity: 1;
}

.dev-report-item-delete:hover {
  color: var(--error) !important;
}

/* ── Right Panel: Workspace ── */
.dev-right-panel {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.2);
}

/* ── Collapsible thinking panel ── */
.dev-thinking-panel {
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
  background: rgba(5, 15, 10, 0.5);
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.dev-thinking-header {
  padding: 12px 18px;
  background: rgba(16, 185, 129, 0.08);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--dev-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dev-agent-cards {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}

.dev-agent-card {
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.dev-agent-card.active {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.08);
  background: rgba(16, 185, 129, 0.02);
}

.dev-agent-card.error {
  border-color: rgba(239, 68, 68, 0.3);
}

.dev-agent-card-header {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.dev-agent-card.active .dev-agent-card-header {
  color: var(--dev-accent);
}

.dev-agent-content {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #a1a1aa;
}

.dev-agent-card.active .dev-agent-content {
  color: #fafafa;
}

/* ── Final Report Card ── */
.dev-report-card {
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  background: rgba(3, 10, 7, 0.7);
  box-shadow: 0 0 30px var(--dev-accent-glow);
  padding: 24px;
}

.dev-report-header {
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.dev-report-header span {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--dev-accent);
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px var(--dev-accent-glow);
}

/* Scores Grid */
.dev-scores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.dev-score-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-score-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.dev-score-num {
  font-family: var(--font-mono);
  color: var(--dev-accent);
}

.dev-score-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.dev-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overall Big box */
.dev-overall-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.dev-overall-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.dev-overall-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--dev-accent);
  text-shadow: 0 0 12px var(--dev-accent-glow);
}

/* Final Report Content */
.dev-final-report-content {
  font-size: 15.5px;
  line-height: 1.7;
  color: #f4f4f5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-bottom: 24px;
}

.dev-final-report-content h2 {
  font-family: var(--font-mono);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--dev-accent);
  margin: 28px 0 14px;
  text-shadow: 0 0 6px var(--dev-accent-glow);
}

.dev-final-report-content p {
  margin-bottom: 18px;
}

.dev-final-report-content ul {
  margin-left: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dev-final-report-content li {
  margin-bottom: 8px;
}

/* Dev Report Action Buttons */
.dev-report-actions {
  display: flex;
  gap: 12px;
}

.btn.green {
  background: rgba(16, 185, 129, 0.06) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: var(--dev-accent) !important;
}

.btn.green:hover {
  background: var(--dev-accent) !important;
  color: #03150d !important;
  box-shadow: 0 0 20px var(--dev-accent-glow) !important;
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Fonts Override for Headers */
.landing-container h1,
.landing-container h2,
.landing-container h3,
.landing-logo-text {
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: #06060a;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1), opacity 1.2s cubic-bezier(0.76, 0, 0.24, 1);
  transform-origin: center bottom;
  background-image: 
    radial-gradient(at 10% 10%, rgba(124, 58, 237, 0.12) 0, transparent 40%),
    radial-gradient(at 90% 10%, rgba(6, 182, 212, 0.1) 0, transparent 40%),
    radial-gradient(at 50% 80%, rgba(16, 185, 129, 0.05) 0, transparent 45%),
    radial-gradient(at 50% 30%, rgba(124, 58, 237, 0.05) 0, transparent 50%);
  background-size: cover;
}

.landing-container.slide-up {
  transform: perspective(1200px) scale(0.9) rotateX(-15deg) translateY(-100vh);
  opacity: 0;
  pointer-events: none;
}

/* ── Landing Header ─────────────────────────────────────────── */
.landing-header {
  position: sticky;
  top: 0;
  height: 72px;
  min-height: 72px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-header.visible {
  opacity: 1;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--glow-cyan);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.landing-nav-link:hover {
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.landing-header-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.landing-header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ── Scroll Content ─────────────────────────────────────────── */
.landing-scroll-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Hero Section ───────────────────────────────────────────── */
.landing-hero {
  width: 100%;
  max-width: 1300px;
  min-height: calc(100vh - 72px);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  font-size: 12.5px;
  font-weight: 600;
  color: #c084fc;
}

.badge-icon {
  color: var(--primary);
  font-size: 14px;
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-size: 58px;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.text-glow-purple {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.text-glow-cyan {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.hero-description {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.landing-primary-btn {
  padding: 16px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px var(--glow-purple-sm);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.landing-primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.landing-primary-btn:hover::before {
  left: 100%;
}

.landing-primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--glow-purple);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-primary-btn.logged-in-glow {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dim) 100%);
  box-shadow: 0 8px 30px var(--glow-cyan-sm);
}

.landing-primary-btn.logged-in-glow:hover {
  box-shadow: 0 12px 40px var(--glow-cyan);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  width: 100%;
  max-width: 540px;
}

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

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.robot-spline-container {
  width: 100%;
  height: 520px;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  touch-action: pan-y;
}

.robot-spline-container spline-viewer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  touch-action: pan-y;
}

/* ── Features Section ───────────────────────────────────────── */
.landing-features {
  width: 100%;
  max-width: 1300px;
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

/* 3D Tilt Card Primitive */
.tilt-card {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 36px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.25s ease, transform 0.1s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Conic Glowing Border Overlay */
.tilt-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent 15%, 
    var(--primary) 30%, 
    transparent 45%, 
    transparent 65%, 
    var(--secondary) 80%, 
    transparent 95%
  );
  animation: rotateConic 6s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

@keyframes rotateConic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tilt-card:hover::before {
  opacity: 1;
}

/* Inner Background Mask to keep 1px border */
.tilt-card::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: rgba(17, 17, 24, 0.95);
  border-radius: 19px;
  z-index: 2;
  transition: background 0.3s ease;
  pointer-events: none;
}

.tilt-card:hover::after {
  background: rgba(22, 22, 31, 0.98);
}

/* Ensure contents stay above layers */
.tilt-card > * {
  position: relative;
  z-index: 3;
}

/* Feature card column spans */
.feature-card:nth-child(1),
.feature-card:nth-child(2) {
  grid-column: span 3; /* Top row takes half each */
}

.feature-card:nth-child(3),
.feature-card:nth-child(4),
.feature-card:nth-child(5) {
  grid-column: span 2; /* Bottom row takes a third each */
}

.glare-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: overlay;
  transition: background 0.1s ease;
}

.card-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tilt-card:hover .card-glow {
  opacity: 0.25;
}

.card-glow.purple { background: var(--primary); }
.card-glow.cyan { background: var(--secondary); }
.card-glow.green-glow { background: var(--success); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transform: translateZ(30px);
}

.feature-card:nth-child(even) .card-icon {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.15);
  color: var(--secondary);
}

.feature-card:nth-child(5) .card-icon {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  transform: translateZ(40px);
}

.card-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
  transform: translateZ(25px);
}

.card-tags {
  display: flex;
  gap: 8px;
  transform: translateZ(20px);
}

.card-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* ── Consensus Flow Section ─────────────────────────────────── */
.landing-flow {
  width: 100%;
  max-width: 1300px;
  padding: 80px 40px 140px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 17, 24, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 50px 40px;
  position: relative;
  backdrop-filter: blur(10px);
}

.flow-node {
  padding: 20px 28px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.input-node {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.synthesis-node {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #c084fc;
  box-shadow: 0 8px 30px var(--glow-purple-sm);
}

.final-node {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  box-shadow: 0 8px 30px var(--glow-cyan-sm);
}

.flow-arrow {
  font-size: 24px;
  color: var(--text-dim);
  user-select: none;
}

.flow-agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.flow-agent-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(25, 25, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.flow-agent-icon {
  font-size: 16px;
}

.flow-agent-box.strategist svg, .flow-agent-box.strategist { color: #818cf8; border-color: rgba(129, 140, 248, 0.2); }
.flow-agent-box.analyst svg, .flow-agent-box.analyst { color: #38bdf8; border-color: rgba(56, 189, 248, 0.2); }
.flow-agent-box.creative svg, .flow-agent-box.creative { color: #fb7185; border-color: rgba(251, 113, 133, 0.2); }
.flow-agent-box.devil svg, .flow-agent-box.devil { color: #f43f5e; border-color: rgba(244, 63, 94, 0.2); }

/* ── Footer ─────────────────────────────────────────────────── */
.landing-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  background: rgba(6, 6, 10, 0.8);
}

/* ── Scroll Animations (Reveal On Scroll) ─────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* ── Responsive Styling ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 80px;
    gap: 40px;
  }
  .hero-left {
    align-items: center;
  }
  .hero-description {
    margin: 0 auto;
  }
  .hero-stats {
    justify-content: center;
    margin: 24px auto 0;
  }
  .robot-spline-container {
    height: 440px;
    min-height: 440px;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4),
  .feature-card:nth-child(5) {
    grid-column: span 1;
  }
  .flow-container {
    flex-direction: column;
    gap: 32px;
    padding: 40px 24px;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .landing-header {
    padding: 0 20px;
  }
  .landing-nav {
    display: none; /* Hide nav links on mobile */
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-stats {
    gap: 24px;
  }
  .stat-num {
    font-size: 20px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .flow-agents-grid {
    grid-template-columns: 1fr;
  }
  .landing-hero {
    gap: 20px;
    padding: 40px 20px;
  }
  .robot-spline-container {
    height: 360px;
    min-height: 360px;
  }
}

/* ── Scroll Progress Bar ───────────────────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--dev-accent) 100%);
  box-shadow: 0 0 8px var(--primary-glow);
  z-index: 100000;
  transition: width 0.1s ease-out;
}

/* ── Parallax Background Glowing Orbs ───────────────────────── */
.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  transition: transform 0.2s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: rgba(124, 58, 237, 0.25); /* Purple glow */
  top: 15%;
  right: 5%;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(6, 182, 212, 0.2); /* Cyan glow */
  top: 45%;
  left: -5%;
}

/* ── Staggered Entrance Animations for Feature Cards ─────────── */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.3s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.4s; }

/* Premium 3D perspective fold-in reveals for feature cards */
.features-grid .feature-card.reveal-on-scroll {
  opacity: 0;
  transform: perspective(1200px) rotateX(25deg) rotateY(-8deg) translateZ(-120px) translateY(60px);
  transform-style: preserve-3d;
  transition: 
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.features-grid .feature-card.reveal-on-scroll.revealed {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translateZ(0) translateY(0);
}

/* ── High-Tech SVG Animated Consensus Pipeline ───────────────── */
.pipeline-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 400px;
  margin: 60px auto 40px;
  background: rgba(10, 10, 15, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  padding: 0;
}

.pipeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Animated Neon Lines */
.pipeline-line {
  fill: none;
  stroke: url(#glowGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: url(#svgGlow);
  stroke-dasharray: 8 12;
  animation: pulsePath 30s linear infinite;
  opacity: 0.75;
}

@keyframes pulsePath {
  0% { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}

/* Specific agent delay animations to stagger the data flow */
.line-to-agent-1 { animation-duration: 22s; }
.line-to-agent-2 { animation-duration: 25s; }
.line-to-agent-3 { animation-duration: 28s; }
.line-to-agent-4 { animation-duration: 32s; }

.line-from-agent-1 { animation-duration: 24s; }
.line-from-agent-2 { animation-duration: 27s; }
.line-from-agent-3 { animation-duration: 30s; }
.line-from-agent-4 { animation-duration: 33s; }

.line-to-output {
  stroke-dasharray: 6 8;
  animation-duration: 15s;
}

/* Coordinate Mapped HTML Nodes */
.pipeline-nodes {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.p-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 17, 24, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.p-node:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15);
}

/* Custom dimensions and glows for nodes */
.node-input, .node-synthesis, .node-output {
  width: 150px;
  height: 70px;
  text-align: center;
  padding: 8px;
}

.node-input {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}
.node-input:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.25);
}

.node-synthesis {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}
.node-synthesis:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
}

.node-output {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}
.node-output:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

.p-node-label {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.p-node-sub {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Agent node design */
.node-agent {
  width: 220px;
  height: 60px;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.p-node-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-node-details {
  display: flex;
  flex-direction: column;
}

.p-node-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.p-node-role {
  font-size: 10.5px;
  color: var(--text-dim);
}

/* responsive overrides for pipeline container */
@media (max-width: 1024px) {
  .pipeline-container {
    height: auto;
    padding: 30px 20px;
  }
  .pipeline-svg {
    display: none; /* Hide svg paths on small tablets/mobile to stack elements natively */
  }
  .pipeline-nodes {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: static;
    height: auto;
    gap: 16px;
  }
  .p-node {
    position: static !important;
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
    padding: 12px 20px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 16px;
    text-align: left !important;
  }
  .p-node-icon {
    font-size: 22px;
  }
  .p-node-details, .p-node-sub {
    margin-top: 0;
  }
}

#cyberNetworkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ── Search Status Indicator ── */
.search-status-indicator {
  display: flex;
  margin: 12px 0 12px 14px;
  animation: fadeIn 0.3s ease;
}

.search-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  font-size: 13px;
  color: var(--secondary);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
}

.search-status-icon-spin {
  animation: searchSpin 1.5s linear infinite;
}

@keyframes searchSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   PREMIUM 3D MESSAGE BUBBLE EFFECTS
   ═══════════════════════════════════════════ */
.message-container {
  perspective: 1200px;
}

.message {
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-bottom: 24px !important;
}

.message-content {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.25, 1);
  transform: translateZ(5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.message.user .message-content {
  transform: translateZ(10px);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.18), 0 4px 8px rgba(124, 58, 237, 0.1);
  background: linear-gradient(135deg, var(--primary), #8b5cf6) !important;
  border-bottom-right-radius: 4px;
}

.message.user .message-content:hover {
  transform: translateY(-8px) translateZ(40px) rotateX(3deg) rotateY(-3deg);
  box-shadow: 0 30px 45px rgba(124, 58, 237, 0.35), 0 15px 15px rgba(124, 58, 237, 0.2), 0 0 30px rgba(124, 58, 237, 0.45);
}

.message.assistant .message-content {
  transform: translateZ(10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
  background: var(--surface) !important;
  border-color: rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 4px;
}

.message.assistant .message-content:hover {
  transform: translateY(-8px) translateZ(40px) rotateX(3deg) rotateY(3deg);
  box-shadow: 0 35px 50px rgba(0, 0, 0, 0.6), 0 15px 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.message-avatar {
  transform: translateZ(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.message:hover .message-avatar {
  transform: translateY(-5px) translateZ(35px) rotate(10deg);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════
   28 COMPULSORY INTERACTIVE WEB ANIMATIONS
   ═══════════════════════════════════════════ */

/* 1. perspectiveMessageIn */
@keyframes perspectiveMessageIn {
  0% { opacity: 0; transform: translateY(40px) translateZ(-100px) rotateX(-15deg); }
  100% { opacity: 1; transform: translateY(0) translateZ(0) rotateX(0); }
}
.animate-msg-in {
  animation: perspectiveMessageIn 0.65s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

/* 2. perspectiveMessageHover */
/* Defined above directly as utility class hovers for micro-performance. */

/* 3. claudeSidebarSlide */
@keyframes claudeSidebarSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}
.animate-sidebar-slide {
  animation: claudeSidebarSlide 0.5s cubic-bezier(0.25, 1, 0.25, 1) forwards;
}

/* 4. button3DClick */
@keyframes button3DClick {
  0% { transform: scale(1) translateZ(0); }
  50% { transform: scale(0.94) translateZ(-5px); }
  100% { transform: scale(1) translateZ(0); }
}
.animate-btn-3d {
  animation: button3DClick 0.18s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 5. textPulseCyan */
@keyframes textPulseCyan {
  0%, 100% { text-shadow: 0 0 5px rgba(6, 182, 212, 0.2); }
  50% { text-shadow: 0 0 16px rgba(6, 182, 212, 0.7), 0 0 2px rgba(6, 182, 212, 0.8); }
}
.animate-pulse-cyan {
  animation: textPulseCyan 3s infinite ease-in-out;
}

/* 6. gradientMove */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient-move {
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
}

/* 7. cardGlowPulse */
@keyframes cardGlowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(124, 58, 237, 0.05); }
  50% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.25); }
}
.animate-card-glow {
  animation: cardGlowPulse 3s infinite ease-in-out;
}

/* 8. listSwipeIn */
@keyframes listSwipeIn {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-list-item {
  animation: listSwipeIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* 9. iconRotate */
@keyframes iconRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.animate-icon-rotate:hover {
  animation: iconRotate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 10. shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.animate-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* 11. typingIndicatorBounce */
@keyframes typingIndicatorBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.animate-typing-dot {
  animation: typingIndicatorBounce 1s infinite ease-in-out;
}

/* 12. activeBorderGlow */
@keyframes activeBorderGlow {
  0%, 100% { border-color: rgba(124, 58, 237, 0.15); box-shadow: 0 0 5px rgba(124, 58, 237, 0.05); }
  50% { border-color: rgba(124, 58, 237, 0.5); box-shadow: 0 0 15px rgba(124, 58, 237, 0.2); }
}
.animate-border-glow {
  animation: activeBorderGlow 2s infinite ease-in-out;
}

/* 13. toastPop */
@keyframes toastPop {
  0% { opacity: 0; transform: translateY(30px) scale(0.9); }
  85% { opacity: 1; transform: translateY(-4px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-toast-pop {
  animation: toastPop 0.35s cubic-bezier(0.25, 1.25, 0.25, 1) forwards;
}

/* 14. modalOpen3D */
@keyframes modalOpen3D {
  0% { opacity: 0; transform: scale(0.7) rotateX(-20deg) translateZ(-150px); }
  100% { opacity: 1; transform: scale(1) rotateX(0) translateZ(0); }
}
.animate-modal-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
  animation: modalOpen3D 0.45s cubic-bezier(0.25, 1, 0.25, 1) forwards;
}

/* 15. drawerOpen */
@keyframes drawerOpen {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}
.animate-drawer {
  animation: drawerOpen 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 16. sparkleEntry */
@keyframes sparkleEntry {
  0% { transform: scale(0) rotate(0deg); opacity: 0; filter: blur(5px); }
  100% { transform: scale(1) rotate(360deg); opacity: 1; filter: blur(0); }
}
.animate-sparkle {
  animation: sparkleEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 17. avatarReveal */
@keyframes avatarReveal {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.animate-avatar {
  animation: avatarReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 18. dropdownFade */
@keyframes dropdownFade {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-dropdown {
  animation: dropdownFade 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* 19. badgePulse */
@keyframes badgePulse {
  0%, 100% { outline: 1px solid rgba(124, 58, 237, 0.1); outline-offset: 0; }
  50% { outline: 1px solid rgba(124, 58, 237, 0.5); outline-offset: 3px; }
}
.animate-badge-pulse {
  animation: badgePulse 2s infinite ease-in-out;
}

/* 20. iconHoverWobble */
@keyframes iconHoverWobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}
.animate-icon-wobble:hover {
  animation: iconHoverWobble 0.45s ease-in-out;
}

/* 21. panelSlideUp */
@keyframes panelSlideUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.animate-panel-slide-up {
  animation: panelSlideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 22. glowShadowTransition */
@keyframes glowShadowTransition {
  0% { box-shadow: 0 0 0 rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.15); }
}
.animate-shadow-glow:focus-within {
  animation: glowShadowTransition 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* 23. backdropFade */
@keyframes backdropFade {
  0% { opacity: 0; backdrop-filter: blur(0); }
  100% { opacity: 1; backdrop-filter: blur(10px); }
}
.animate-backdrop {
  animation: backdropFade 0.3s ease forwards;
}

/* 24. ripple */
@keyframes ripple {
  0% { width: 0; height: 0; opacity: 0.5; }
  100% { width: 400px; height: 400px; opacity: 0; }
}
.ripple-effect {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple 0.6s ease-out;
}

/* 25. floatFloating */
@keyframes floatFloating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-floating {
  animation: floatFloating 4s infinite ease-in-out;
}

/* 26. neonTextGlow */
@keyframes neonTextGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(255,255,255,0.1); }
  50% { text-shadow: 0 0 15px rgba(124,58,237,0.5), 0 0 25px rgba(124,58,237,0.3); }
}
.animate-neon-glow:hover {
  animation: neonTextGlow 1.5s infinite ease-in-out;
}

/* 27. tabElasticSwitch */
@keyframes tabElasticSwitch {
  0% { transform: scaleX(0.8); }
  100% { transform: scaleX(1); }
}
.animate-elastic-tab {
  animation: tabElasticSwitch 0.3s cubic-bezier(0.25, 1.25, 0.25, 1) forwards;
}

/* 28. chatScrollPhysics */
@keyframes chatScrollPhysics {
  0% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}
.animate-scroll-physics {
  animation: chatScrollPhysics 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ═══════════════════════════════════════════
   CREATOR PROFILE CARD
   ═══════════════════════════════════════════ */
.author-card {
  max-width: 650px;
  margin: 32px auto 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px 30px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.author-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.06), 0 0 30px rgba(6, 182, 212, 0.04);
}

.author-header {
  margin-bottom: 12px;
}

.author-label {
  font-size: 11px;
  color: #06B6D4;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 4px;
}

.author-name {
  font-size: 20px;
  font-weight: 700;
  color: #cbd5e1;
  margin: 0;
}

.highlight-name {
  background: linear-gradient(135deg, #a78bfa, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: 800;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.45));
}

.author-bio {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.author-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 550;
  transition: all 0.2s ease;
  text-decoration: none;
}

.author-link-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #06B6D4;
  transform: translateY(-2px);
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* Share to X Message Action button */
.message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.message:hover .message-actions {
  opacity: 1;
}

.share-to-x-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.share-to-x-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #06B6D4;
}

/* ── Standalone Scroll Sequence Intro ───────────────────────── */
.scroll-sequence-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #000;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none; /* Hide scrollbar for clean visual experience */
}

.scroll-sequence-intro::-webkit-scrollbar {
  display: none;
}

.scroll-sequence-headroom {
  width: 100%;
  height: 350vh; /* headroom to control scroll animation speed */
  pointer-events: none;
}

.scroll-sequence-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#scrollSeqCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.scroll-sequence-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.scroll-seq-text {
  position: absolute;
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
  text-shadow: 0 0 20px rgba(0,0,0,0.9), 0 0 40px rgba(124,58,237,0.4);
  max-width: 80%;
  line-height: 1.2;
}

.scroll-seq-text.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-sequence-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-sequence-indicator.fade-out {
  opacity: 0;
}

.mouse-icon {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelAnim 1.8s infinite ease-in-out;
}

@keyframes scrollWheelAnim {
  0% {
    opacity: 0;
    top: 6px;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    top: 20px;
  }
  100% {
    opacity: 0;
    top: 20px;
  }
}

.scroll-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Inter', sans-serif;
}

.landing-logo-img {
  mix-blend-mode: screen;
}
