/* ==========================================================================
   [SOTA 2026] Sovereign Luxury Black Matte & Velvety Rubberized Design System
   ========================================================================== */
:root {
  --bg-app: #060709;
  --bg-matte-base: #060709;
  --bg-matte-deep: #030405;
  --bg-matte-elevated: #0e1015;
  --bg-matte-surface: #13151c;
  --bg-matte-highlight: #1c1f28;

  /* Carbon Velvet Tactile Gradients */
  --gradient-matte-canvas: radial-gradient(135% 100% at 50% 0%, #151821 0%, #0d0f14 38%, #07080a 78%, #030405 100%);
  --gradient-matte-card: linear-gradient(168deg, rgba(24, 27, 35, 0.96) 0%, rgba(15, 17, 23, 0.97) 48%, rgba(9, 10, 14, 0.99) 100%);
  --gradient-matte-card-hover: linear-gradient(168deg, rgba(30, 34, 44, 0.97) 0%, rgba(19, 21, 28, 0.98) 48%, rgba(11, 12, 17, 0.99) 100%);
  --gradient-matte-input: linear-gradient(168deg, #171922 0%, #101218 52%, #090a0e 100%);
  --gradient-matte-pill: linear-gradient(160deg, #1c1f28 0%, #12141a 100%);
  --gradient-matte-recessed: linear-gradient(180deg, #060709 0%, #090b0e 100%);

  /* Rubberized Tactile Bevels & Dual-Tone Hairlines */
  --rubber-border-hairline: 1px solid rgba(255, 255, 255, 0.085);
  --rubber-border-top: rgba(255, 255, 255, 0.16);
  --rubber-border-bottom: rgba(0, 0, 0, 0.9);
  --rubber-bevel-inner: inset 0 1px 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.85);
  --rubber-bevel-subtle: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 1px rgba(0, 0, 0, 0.7);
  --rubber-shadow-card: 0 18px 45px -8px rgba(0, 0, 0, 0.85), 0 4px 14px -2px rgba(0, 0, 0, 0.65);
  --rubber-shadow-floating: 0 24px 60px -12px rgba(0, 0, 0, 0.92), 0 8px 24px -4px rgba(0, 0, 0, 0.75);

  /* Matte Velvet Metal Accents */
  --gold-matte: #e2c068;
  --gold-matte-dim: rgba(226, 192, 104, 0.14);
  --gold-matte-border: rgba(226, 192, 104, 0.35);
  --gold-matte-glow: 0 0 24px rgba(226, 192, 104, 0.12);

  --card-bg: var(--gradient-matte-card);
  --card-border: rgba(255, 255, 255, 0.085);
  --card-border-hover: rgba(255, 255, 255, 0.18);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  /* Accent Callouts */
  --amber-bg: rgba(245, 158, 11, 0.08);
  --amber-border: rgba(245, 158, 11, 0.3);
  --amber-text: #FBBF24;

  --red-bg: rgba(239, 68, 68, 0.08);
  --red-border: rgba(239, 68, 68, 0.3);
  --red-text: #F87171;

  --blue-bg: rgba(59, 130, 246, 0.08);
  --blue-border: rgba(59, 130, 246, 0.3);
  --blue-text: #60A5FA;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--gradient-matte-canvas) fixed !important;
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.message-body {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Card Principal do Agente - Luxury Black Matte Rubberized Texture */
.agent-card,
.copilot-suggestion-card {
  background: var(--gradient-matte-card) !important;
  backdrop-filter: blur(24px) saturate(140%) contrast(105%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) contrast(105%) !important;
  border: 1px solid var(--card-border) !important;
  border-top: 1px solid var(--rubber-border-top) !important;
  border-bottom: 1px solid var(--rubber-border-bottom) !important;
  outline: none !important;
  border-radius: 16px !important;
  padding: 22px !important;
  box-shadow: var(--rubber-shadow-card), var(--rubber-bevel-inner) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}

.agent-card::before,
.copilot-suggestion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 25%, rgba(226, 192, 104, 0.28) 50%, rgba(255, 255, 255, 0.16) 75%, transparent 100%);
  pointer-events: none;
}

.agent-card:hover,
.copilot-suggestion-card:hover {
  background: var(--gradient-matte-card-hover) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-top-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 22px 52px -10px rgba(0, 0, 0, 0.9), var(--rubber-bevel-inner) !important;
  transform: translateY(-1px);
}

/* Blocos de Chamada / Destaque - Dark Matte Velvet Callouts */
.callout-speak {
  background: linear-gradient(145deg, rgba(28, 30, 38, 0.95) 0%, rgba(18, 20, 26, 0.96) 50%, rgba(12, 13, 17, 0.98) 100%) !important;
  border: 1px solid rgba(226, 192, 104, 0.28) !important;
  border-top: 1px solid rgba(226, 192, 104, 0.42) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.9) !important;
  border-left: 4px solid var(--gold-matte) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary) !important;
  border-radius: 10px;
  padding: 16px 22px;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.65), var(--rubber-bevel-inner), var(--gold-matte-glow) !important;
}

.callout-avoid {
  background: linear-gradient(145deg, rgba(34, 18, 22, 0.95) 0%, rgba(22, 12, 15, 0.96) 50%, rgba(14, 8, 10, 0.98) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  border-top: 1px solid rgba(239, 68, 68, 0.4) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.9) !important;
  border-left: 4px solid var(--red-text) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary) !important;
  border-radius: 10px;
  padding: 14px 20px;
  line-height: 1.5;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.65), var(--rubber-bevel-inner) !important;
  cursor: pointer !important;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.callout-avoid:hover {
  background: linear-gradient(145deg, rgba(44, 22, 27, 0.97) 0%, rgba(28, 14, 18, 0.98) 50%, rgba(18, 9, 12, 0.99) 100%) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  border-top-color: rgba(239, 68, 68, 0.65) !important;
  box-shadow: 0 12px 30px -4px rgba(239, 68, 68, 0.25), var(--rubber-bevel-inner) !important;
  transform: translateY(-1px);
}

.callout-avoid:active {
  transform: translateY(0) scale(0.99);
}

.callout-ask {
  background: linear-gradient(145deg, rgba(18, 26, 40, 0.95) 0%, rgba(12, 17, 28, 0.96) 50%, rgba(8, 11, 19, 0.98) 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-top: 1px solid rgba(59, 130, 246, 0.4) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.9) !important;
  border-left: 4px solid var(--blue-text) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--blue-text) !important;
  border-radius: 10px;
  padding: 14px 20px;
  line-height: 1.5;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.65), var(--rubber-bevel-inner) !important;
  cursor: pointer !important;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.callout-ask:hover {
  background: linear-gradient(145deg, rgba(22, 34, 52, 0.97) 0%, rgba(15, 22, 36, 0.98) 50%, rgba(10, 14, 24, 0.99) 100%) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  border-top-color: rgba(59, 130, 246, 0.65) !important;
  box-shadow: 0 12px 30px -4px rgba(59, 130, 246, 0.25), var(--rubber-bevel-inner) !important;
  transform: translateY(-1px);
}

.callout-ask:active {
  transform: translateY(0) scale(0.99);
}

/* Badges de Cabeçalho & Header Text - Sculpted Rubberized Micro-Pill */
.badge-tag {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  background: linear-gradient(160deg, #1e212b 0%, #13151c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
  flex-shrink: 0 !important;
}

.copilot-copy-card-btn,
.copilot-download-card-audio-btn {
  background: linear-gradient(160deg, #1b1e26 0%, #111318 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.copilot-copy-card-btn:hover,
.copilot-download-card-audio-btn:hover {
  background: linear-gradient(160deg, #242833 0%, #161920 100%) !important;
  border-color: rgba(226, 192, 104, 0.4) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.copilot-suggestion-card .badge-tag ~ span,
.agent-card .badge-tag ~ span,
.copilot-suggestion-card span.truncate,
.agent-card span.truncate {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
  display: inline-block !important;
}

/* ==========================================================================
   [SOTA 2026] Elegant Staggered Downward Cascade & Reverse Re-emergence for Lecture HUD
   ========================================================================== */

/* 1. Base transitions on floating bar and its children */
#live-voice-floating-bar {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

#live-voice-copilot-flyout,
#live-voice-copilot-menu,
#live-voice-copilot-tools {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) 180ms, opacity 0.3s ease 180ms;
}

#live-voice-floating-buttons-pill,
.live-voice-floating-buttons-pill {
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0ms, opacity 0.35s ease 0ms, box-shadow 0.3s ease;
}

#live-voice-floating-mute-btn {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) 60ms, opacity 0.3s ease 60ms, background 0.2s, color 0.2s;
}

#live-voice-floating-copilot-btn {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) 110ms, opacity 0.3s ease 110ms, background 0.2s, color 0.2s;
}

#live-voice-floating-end-btn {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) 160ms, opacity 0.3s ease 160ms, background 0.2s, color 0.2s;
}

/* 2. Staggered Downward Disappearance Cascade (when Lecture HUD is Active) */
body.lecture-hud-active #live-voice-copilot-flyout,
body.lecture-hud-active #live-voice-copilot-menu,
body.lecture-hud-active #live-voice-copilot-tools,
#live-voice-floating-bar.lecture-retracted #live-voice-copilot-flyout,
#live-voice-floating-bar.lecture-retracted #live-voice-copilot-menu,
#live-voice-floating-bar.lecture-retracted #live-voice-copilot-tools {
  transform: translateY(35px) scale(0.9) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.22s ease 0ms !important;
}

body.lecture-hud-active #live-voice-floating-end-btn,
#live-voice-floating-bar.lecture-retracted #live-voice-floating-end-btn {
  transform: translateY(45px) scale(0.7) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1) 40ms, opacity 0.25s ease 40ms !important;
}

body.lecture-hud-active #live-voice-floating-copilot-btn,
#live-voice-floating-bar.lecture-retracted #live-voice-floating-copilot-btn {
  transform: translateY(45px) scale(0.7) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1) 90ms, opacity 0.25s ease 90ms !important;
}

body.lecture-hud-active #live-voice-floating-mute-btn,
#live-voice-floating-bar.lecture-retracted #live-voice-floating-mute-btn {
  transform: translateY(45px) scale(0.7) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1) 140ms, opacity 0.25s ease 140ms !important;
}

body.lecture-hud-active #live-voice-floating-buttons-pill,
body.lecture-hud-active .live-voice-floating-buttons-pill,
#live-voice-floating-bar.lecture-retracted #live-voice-floating-buttons-pill,
#live-voice-floating-bar.lecture-retracted .live-voice-floating-buttons-pill {
  transform: translateY(60px) scale(0.85) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1) 180ms, opacity 0.28s ease 180ms !important;
}

body.lecture-hud-active #live-voice-floating-bar,
#live-voice-floating-bar.lecture-retracted {
  pointer-events: none !important;
}

/* 3. Player Inferior e Linhas de Conexão */
#continuous-lecture-hud {
  bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem)) !important;
  z-index: 999990 !important;
  animation: lecture-hud-entrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#continuous-lecture-hud.lecture-hud-exiting {
  animation: lecture-hud-exit 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
  pointer-events: none !important;
}

@keyframes lecture-hud-entrance {
  0% {
    opacity: 0;
    transform: translate(-50%, 40px) scale(0.92);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: blur(0px);
  }
}

@keyframes lecture-hud-exit {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 35px) scale(0.92);
    filter: blur(4px);
  }
}

#continuous-lecture-hud,
.enterprise-player-bar {
  background: var(--gradient-matte-card) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.9) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), var(--rubber-bevel-inner) !important;
}

/* Linhas de Fluxo de Fundo Sutis */
.flow-connection-line,
svg path.flow-line {
  stroke: rgba(255, 255, 255, 0.15) !important;
  stroke-dasharray: 4 4;
}



/* [SOTA 2026] Elegant Progressive Component Cascade (Message Body & Copilot Cards) */
@keyframes componentGlideIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* [SOTA 2026] Tranquil Zen Reading & Stress-Free Study Focus */
.message-body > *,
.copilot-suggestion-card > *,
.copilot-suggestion-card .callout-speak,
.copilot-suggestion-card .callout-avoid,
.copilot-suggestion-card .callout-ask,
.copilot-suggestion-card .point-capsule {
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.5s ease, background 0.65s cubic-bezier(0.22, 1, 0.36, 1), color 0.5s ease;
}

/* Progressive reveal state for TTS active reading (Soft Ambient Staging) */
.component-progressive-item {
  opacity: 0.45;
  transform: translateY(0);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.component-progressive-item.is-revealed {
  opacity: 0.85 !important;
  filter: none !important;
  transform: translateY(0) !important;
}

/* [SOTA 2026] W3C Native CSS Custom Highlight API Wavefront */
::highlight(agent-speech) {
  background-color: rgba(245, 197, 66, 0.16);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(245, 197, 66, 0.35);
}

/* [SOTA 2026] UNVPE: Unified Neuro-Visual Presentation Engine (Zero Layout Shift, Relaxing Zen Focus) */
.card-progressive-step {
  contain: layout style;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.65s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.65s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Guard against inner text clipping & left shift */
.card-progressive-step *,
.card-progressive-step .speaking-anchor-text,
.card-progressive-step .reading-active-component,
.card-progressive-step .reading-read-component {
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-left: none !important;
  transform: none !important;
}

.card-progressive-step[data-read-state="staged"] {
  opacity: 0.65 !important;
}

.card-progressive-step[data-read-state="active"],
.card-progressive-step.reading-active-component {
  opacity: 1 !important;
  box-shadow: 0 0 24px rgba(245, 197, 66, 0.22), inset 0 0 0 1.5px rgba(245, 197, 66, 0.55) !important;
  background-color: rgba(245, 197, 66, 0.09) !important;
  border-color: rgba(245, 197, 66, 0.6) !important;
  margin-left: 0 !important;
}

.card-progressive-step[data-read-state="finalized"],
.card-progressive-step[data-read-state="read"],
.card-progressive-step.reading-read-component,
[data-card-finalized="true"] .card-progressive-step {
  opacity: 0.88 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  margin-left: 0 !important;
}

/* [SOTA 2026] Decoupled Optical Lumen Pillar & Dual-Lobe Gaussian Diffusion (Zero Text Crowding) */
.reading-active-component:not(.card-progressive-step) {
  position: relative;
  opacity: 1 !important;
  color: #f9fafb !important;
  border: none !important;
  border-left: none !important;
  background: radial-gradient(ellipse 120% 100% at 0% 50%, rgba(245, 197, 66, 0.09) 0%, rgba(245, 197, 66, 0.02) 65%, transparent 100%) !important;
  border-radius: 8px !important;
  padding: 0.45rem 0.85rem 0.45rem 1.25rem !important;
  margin-left: -1.25rem !important;
  transform: translateY(0) !important;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), background 0.65s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease !important;
}

.reading-active-component:not(.card-progressive-step)::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 15%;
  height: 70%;
  width: 3.5px;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.95) 0%, rgba(245, 197, 66, 0.35) 100%);
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.45);
  pointer-events: none;
}

.reading-active-component:not(.card-progressive-step) p,
.reading-active-component:not(.card-progressive-step) span,
.reading-active-component:not(.card-progressive-step) div {
  color: #f9fafb !important;
}

/* Restful Preceding State: Soft Ambient Relaxation for Maximum Cognitive Comfort */
.reading-read-component:not(.card-progressive-step) {
  position: relative;
  opacity: 0.70 !important;
  color: #9ca3af !important;
  border: none !important;
  border-left: none !important;
  background: transparent !important;
  padding: 0.45rem 0.85rem 0.45rem 1.25rem !important;
  margin-left: -1.25rem !important;
  border-radius: 8px !important;
  transition: opacity 0.85s ease, color 0.85s ease, background 0.85s ease !important;
}

/* [SOTA 2026] Enterprise Modal: Autonomous Continuous Lecture Reader */
#continuous-lecture-modal .lecture-modal-card {
  background: var(--gradient-matte-card) !important;
  backdrop-filter: blur(32px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.9) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), var(--rubber-bevel-inner) !important;
}

#continuous-lecture-modal input,
#continuous-lecture-modal textarea {
  background: var(--gradient-matte-input) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.8) !important;
  color: #F3F4F6 !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.75) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#continuous-lecture-modal input:focus,
#continuous-lecture-modal textarea:focus {
  border-color: rgba(212, 175, 55, 0.5) !important;
  border-top-color: rgba(245, 218, 122, 0.65) !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.75) !important;
  background: linear-gradient(168deg, #181a24 0%, #11131a 50%, #0a0b10 100%) !important;
}

#continuous-lecture-modal .lecture-tab-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}



/* Presentation Layout - Adaptive & Responsive */
.presentation-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
    scroll-padding-top: 6rem;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .presentation-container {
        scroll-snap-type: none; /* Disable snap on mobile to allow natural scroll */
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
    }
}

.slide {
    min-height: 100vh;
    height: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 12rem;
    padding-bottom: 8rem;
    will-change: transform, opacity;
}

@media (max-width: 768px) {
    .slide {
        padding-top: 8rem; /* Less padding on mobile */
        padding-bottom: 4rem;
        scroll-snap-align: none;
    }
}

.slide-bg { 
    position: absolute; 
    inset: 0; 
    z-index: -1; 
}

.slide-bg img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.25); 
}

/* Cybernetic Grid Overlay */
.slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
}

.presentation-nav {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Tooltip on Hover */
.nav-dot::before {
    content: attr(data-title);
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    color: white;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dot:hover::before {
    opacity: 1;
    left: 30px;
}

.nav-dot.active {
    background: #ffffff;
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

::selection {
    background: #ffffff;
    color: #050505;
}

.page-section {
    display: none;
    animation: fadeIn 0.8s ease-in-out forwards;
}

.page-section.active {
    display: block;
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #ffffff;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    50% { opacity: 0; }
}

.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.08), transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.security-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* CUSTOM CURSOR REFINEMENT */
#custom-cursor {
    transform: translate(-50%, -50%);
    will-change: transform;
    pointer-events: none;
}

#custom-cursor.hovering {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.8);
}

/* CYBER SCANNING EFFECT */
.cursor-scanner {
    position: absolute;
    inset: -2px;
    border-top: 2px solid #ffffff;
    animation: scan 2s linear infinite;
    opacity: 0;
}

#custom-cursor.hovering .cursor-scanner {
    opacity: 0.5;
}

@keyframes scan {
    0% { top: -2px; }
    100% { top: 100%; }
}

/* PREMIUM HUD GLASSMORPHISM */
/* Neural Scroll Progress */
#neural-progress {
    position: fixed;
    top: 6rem; /* Just below header */
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    z-index: 1000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: width 0.2s ease-out;
}

#performance-hud > div {
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    transition: all 0.5s ease; /* Smooth transition for HUD updates */
}

.hud-label {
    transition: color 0.3s ease;
}

.hud-value {
    font-weight: bold;
    color: #ffffff;
    transition: all 0.3s ease;
}

.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* CYBER BORDER BEAM EFFECT */
.cyber-border-container {
    position: relative;
    overflow: hidden;
}

.cyber-border-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at var(--beam-x, -100%) var(--beam-y, -100%), rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

.cyber-border-beam::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: beam-move 4s linear infinite;
    top: -1px;
    left: 0;
    transform: translateX(-150px);
}

@keyframes beam-move {
    0% { transform: translateX(-150px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(100vw); opacity: 0; }
}

/* STAGGERED LIST ANIMATION */
.stagger-list li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active .stagger-list li:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
.reveal.active .stagger-list li:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
.reveal.active .stagger-list li:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
.reveal.active .stagger-list li:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }
.reveal.active .stagger-list li:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateX(0); }
.reveal.active .stagger-list li:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateX(0); }

/* SKELETON LOADERS */
.skeleton {
    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: skeleton-loading 1.5s infinite;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

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

/* PROGRESS BAR ANIMATIONS */
.progress-bar-fill {
    width: 0% !important;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.progress-bar-fill.animated {
    width: var(--target-width) !important;
}
/* Global SOTA Styles Clean */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Impact Title Blocks: White background with black text - Tight Fit */
.title-block-impact {
    background-color: #fff;
    color: #000 !important;
    display: inline-block;
    padding: 0; /* Zero padding for exact word fit */
    line-height: 1;
    transform: skewX(-5deg);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.title-block-impact span, 
.title-block-impact i,
.title-block-impact em {
    color: #000 !important; /* Force black on accented or italicized text inside the block */
}

.reveal.active .title-block-impact {
    animation: impact-slide-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes impact-slide-in {
    from {
        transform: translateX(-20px) skewX(-5deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) skewX(-5deg);
        opacity: 1;
    }
}

/* [SOTA] Sovereign HUD Styles */
.sovereign-hud {
    padding: 0.6rem 1.5rem;
    background: #050505;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.6rem;
    font-family: 'Fira Code', monospace;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
    color: #444;
    position: relative;
    z-index: 10002;
    width: 100%;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.hud-item span {
    color: #ffd700;
    font-weight: 700;
}

@media (max-width: 768px) {
    .sovereign-hud {
        gap: 1rem;
        padding: 0.5rem 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sovereign-hud::-webkit-scrollbar {
        display: none;
    }
    .hud-item:last-child {
        margin-left: 0;
    }
}

/* ==========================================================================
   [SOTA] Sovereign Black Matte Gold Circular Checkbox Architecture
   ========================================================================== */
input[type="checkbox"]:not(.sr-only):not(.peer):not(.native-checkbox) {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 1.05rem !important;
    height: 1.05rem !important;
    min-width: 1.05rem !important;
    min-height: 1.05rem !important;
    border-radius: 9999px !important;
    border: 1.5px solid rgba(255, 215, 0, 0.4) !important;
    background-color: rgba(12, 12, 12, 0.9) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    position: relative !important;
    outline: none !important;
    flex-shrink: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
    margin: 0 !important;
}

input[type="checkbox"]:not(.sr-only):not(.peer):not(.native-checkbox):hover {
    border-color: #ffd700 !important;
    background-color: rgba(255, 215, 0, 0.12) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.35), inset 0 1px 2px rgba(0, 0, 0, 0.6) !important;
    transform: scale(1.08) !important;
}

input[type="checkbox"]:not(.sr-only):not(.peer):not(.native-checkbox):focus-visible {
    border-color: #ffd700 !important;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.35), 0 0 10px rgba(255, 215, 0, 0.4) !important;
}

input[type="checkbox"]:not(.sr-only):not(.peer):not(.native-checkbox):checked {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%) !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
}

input[type="checkbox"]:not(.sr-only):not(.peer):not(.native-checkbox):after {
    content: "" !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #050505 !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) scale(0) !important;
    transform-origin: center !important;
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    margin-bottom: 2px !important;
    display: block !important;
}

input[type="checkbox"]:not(.sr-only):not(.peer):not(.native-checkbox):checked:after {
    transform: rotate(45deg) scale(1) !important;
}

input[type="checkbox"]:not(.sr-only):not(.peer):not(.native-checkbox):disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   [SOTA 2026] Enterprise Webmail: Black Matte Velvet & Rubberized Aesthetics
   ========================================================================== */

/* Split Dock & Base Viewport */
#email-split-dock {
    background: var(--gradient-matte-canvas) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: -14px 0 45px -10px rgba(0, 0, 0, 0.95) !important;
}

#email-split-dock .webmail-viewport-container {
    background: transparent !important;
}

/* Top Navigation Bar */
.webmail-viewport-container > div:first-child {
    background: var(--gradient-matte-card) !important;
    backdrop-filter: blur(24px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), var(--rubber-bevel-inner) !important;
}

/* Webmail Search Inputs */
#webmail-search-input,
#webmail-mobile-search-input {
    background: var(--gradient-matte-input) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.85) !important;
    border-radius: 9999px !important;
    color: #fff !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#webmail-search-input:focus,
#webmail-mobile-search-input:focus {
    border-color: rgba(212, 175, 55, 0.5) !important;
    border-top-color: rgba(245, 218, 122, 0.65) !important;
    background: linear-gradient(168deg, #181a24 0%, #11131a 50%, #0a0b10 100%) !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Top Action Buttons & Control Micro-Pills */
.webmail-viewport-container button:not(#email-restore-chat-btn):not(.webmail-mobile-compose-fab) {
    background: linear-gradient(160deg, #1b1e26 0%, #111318 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.8) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.webmail-viewport-container button:not(#email-restore-chat-btn):not(.webmail-mobile-compose-fab):hover {
    background: linear-gradient(160deg, #252833 0%, #161920 100%) !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

/* Left Sidebar Desktop */
.webmail-sidebar-desktop {
    background: linear-gradient(180deg, #12141a 0%, #0a0b0e 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
}

#webmail-account-card {
    background: var(--gradient-matte-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.8) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
}

#webmail-account-select {
    background: var(--gradient-matte-input) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.8) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Folder Navigation Items */
#webmail-folder-nav button {
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#webmail-folder-nav button:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    border-top-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    transform: translateX(2px);
}

/* Mobile Folder Navigation Pills */
.webmail-mobile-folder-pills {
    background: linear-gradient(180deg, #12141a 0%, #0d0e12 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.webmail-mobile-folder-pills button {
    background: var(--gradient-matte-pill) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.8) !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* Middle Column: Email List */
.webmail-list-col {
    background: linear-gradient(180deg, #0e1015 0%, #08090d 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.webmail-list-col > div:first-child {
    background: linear-gradient(180deg, #14161e 0%, #0f1015 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

#webmail-quick-filter-chips {
    background: #090a0e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

#webmail-quick-filter-chips button {
    background: linear-gradient(160deg, #181a22 0%, #101117 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

#webmail-email-list-container > div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#webmail-email-list-container > div:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
}

/* Right Column: Detail & Reading Pane */
.webmail-detail-col {
    background: linear-gradient(180deg, #0e1015 0%, #07080a 100%) !important;
}

.webmail-detail-col > div:first-child {
    background: linear-gradient(180deg, #14161e 0%, #0f1016 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Email Rendered Content Container */
.email-rendered-content {
    background: linear-gradient(168deg, #12141c 0%, #0a0b10 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.9) !important;
    border-radius: 14px !important;
    padding: 1.5rem !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 12px 36px rgba(0, 0, 0, 0.5) !important;
}

/* Quick Reply Box */
#quick-reply-text {
    background: var(--gradient-matte-input) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.85) !important;
    border-radius: 12px !important;
    color: #fff !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#quick-reply-text:focus {
    border-color: rgba(212, 175, 55, 0.5) !important;
    border-top-color: rgba(245, 218, 122, 0.65) !important;
    background: linear-gradient(168deg, #181a24 0%, #11131a 50%, #0a0b10 100%) !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Compose Card & Form Inputs */
.webmail-compose-card {
    background: var(--gradient-matte-card) !important;
    backdrop-filter: blur(28px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
    border-top: 2px solid rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.92), var(--rubber-bevel-inner) !important;
}

#compose-email-to,
#compose-email-subject,
#compose-sender-profile {
    background: var(--gradient-matte-input) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.85) !important;
    border-radius: 10px !important;
    color: #fff !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.2s ease !important;
}

#compose-email-to:focus,
#compose-email-subject:focus,
#compose-sender-profile:focus {
    border-color: rgba(212, 175, 55, 0.5) !important;
    border-top-color: rgba(245, 218, 122, 0.65) !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

#compose-email-body {
    background: var(--gradient-matte-input) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.85) !important;
    border-radius: 12px !important;
    color: #fff !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.2s ease !important;
}

#compose-email-body:focus {
    border-color: rgba(212, 175, 55, 0.5) !important;
    border-top-color: rgba(245, 218, 122, 0.65) !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Modals & Dropdowns */
#webmail-account-manager-modal .sota-modal-card,
#webmail-account-manager-modal > div > div,
#webmail-snooze-modal > div > div,
#webmail-schedule-send-modal > div > div,
#webmail-shortcuts-modal > div > div,
#webmail-signature-modal > div > div,
#webmail-rules-modal > div > div,
#webmail-top-account-dropdown {
    background: var(--gradient-matte-card) !important;
    backdrop-filter: blur(28px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.9) !important;
    border-radius: 16px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), var(--rubber-bevel-inner) !important;
}

/* Mobile Floating Action Button */
.webmail-mobile-compose-fab {
    background: linear-gradient(135deg, #f5da7a 0%, #d4af37 60%, #b8860b 100%) !important;
    color: #08090c !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35), 0 4px 12px rgba(0, 0, 0, 0.8) !important;
}

#chat-3d-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    background: var(--gradient-matte-canvas, radial-gradient(135% 100% at 50% 0%, #151821 0%, #0d0f14 38%, #07080a 78%, #030405 100%)) !important;
}

/* [SOTA 2026] WhatsApp Sovereign Rubberized Velvet Gold Suite */
#whatsapp-split-dock {
    background: radial-gradient(135% 100% at 50% 0%, #151821 0%, #0d0f14 38%, #07080a 78%, #030405 100%) !important;
    border-left: 1px solid rgba(226, 192, 104, 0.35) !important;
    box-shadow: -18px 0 50px -8px rgba(0, 0, 0, 0.95), var(--rubber-bevel-inner) !important;
}

.wa-velvet-header {
    background: linear-gradient(180deg, #161922 0%, #0e1016 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(226, 192, 104, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), var(--rubber-bevel-subtle) !important;
}

.wa-velvet-card {
    background: var(--gradient-matte-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-top: 1px solid var(--rubber-border-top) !important;
    border-bottom: 1px solid var(--rubber-border-bottom) !important;
    box-shadow: var(--rubber-shadow-card), var(--rubber-bevel-inner) !important;
}

.wa-velvet-modal {
    background: linear-gradient(168deg, rgba(22, 25, 33, 0.98) 0%, rgba(14, 16, 22, 0.99) 50%, rgba(7, 8, 11, 1) 100%) !important;
    backdrop-filter: blur(28px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
    border: 1px solid rgba(226, 192, 104, 0.35) !important;
    border-top: 1px solid rgba(226, 192, 104, 0.6) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.95) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 35px rgba(226, 192, 104, 0.1), var(--rubber-bevel-inner) !important;
}

.wa-velvet-btn-gold {
    background: linear-gradient(135deg, #f5da7a 0%, #e2c068 50%, #c49f45 100%) !important;
    color: #060709 !important;
    font-weight: 800 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 4px 14px rgba(226, 192, 104, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wa-velvet-btn-gold:hover {
    background: linear-gradient(135deg, #fae498 0%, #eed07e 50%, #d4af55 100%) !important;
    box-shadow: 0 6px 20px rgba(226, 192, 104, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    transform: translateY(-1px);
}

.wa-bubble-out {
    background: linear-gradient(145deg, #272014 0%, #1c170e 55%, #120e08 100%) !important;
    border: 1px solid rgba(226, 192, 104, 0.28) !important;
    border-top: 1px solid rgba(226, 192, 104, 0.55) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.95) !important;
    border-radius: 18px 4px 18px 18px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(226, 192, 104, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
    color: #f8f9fa !important;
}

.wa-bubble-in {
    background: linear-gradient(168deg, #181c25 0%, #11141c 55%, #090c10 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.95) !important;
    border-radius: 4px 18px 18px 18px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), var(--rubber-bevel-subtle) !important;
    color: #e5e7eb !important;
}

.wa-gold-glow-icon {
    color: #e2c068 !important;
    filter: drop-shadow(0 0 8px rgba(226, 192, 104, 0.45));
}

.wa-msg-selected .wa-message-bubble-content {
    outline: 2px solid #e2c068 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 22px rgba(226, 192, 104, 0.45), 0 4px 18px rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.015);
}

.wa-long-pressing {
    transform: scale(0.975);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(226, 192, 104, 0.3) !important;
}

.wa-msg-select-check {
    user-select: none;
    -webkit-user-select: none;
}

/* [SOTA 2026] Sovereign Rubberized Velvet Gold Architecture */
#wa-messages-stream {
    background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(28, 22, 14, 0.38) 0%, rgba(11, 13, 18, 0.95) 55%, #06070a 100%) !important;
    background-attachment: local !important;
}

.wa-date-pill {
    background: linear-gradient(168deg, rgba(24, 27, 36, 0.92) 0%, rgba(14, 16, 22, 0.96) 100%) !important;
    border: 1px solid rgba(226, 192, 104, 0.25) !important;
    border-top: 1px solid rgba(226, 192, 104, 0.45) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    color: #e2c068 !important;
}

.wa-chat-item {
    position: relative;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

.wa-chat-item:hover {
    background: linear-gradient(90deg, rgba(226, 192, 104, 0.06) 0%, rgba(20, 24, 32, 0.7) 100%) !important;
}

.wa-chat-item.active {
    background: linear-gradient(90deg, rgba(226, 192, 104, 0.18) 0%, rgba(28, 24, 16, 0.82) 42%, rgba(13, 15, 20, 0.96) 100%) !important;
    border-left: 3px solid #e2c068 !important;
    box-shadow: inset 0 1px 0 rgba(226, 192, 104, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.7), 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

.wa-audio-capsule {
    background: linear-gradient(160deg, rgba(16, 19, 26, 0.9) 0%, rgba(9, 11, 15, 0.95) 100%) !important;
    border: 1px solid rgba(226, 192, 104, 0.22) !important;
    border-top: 1px solid rgba(226, 192, 104, 0.4) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 3px 10px rgba(0, 0, 0, 0.5) !important;
    border-radius: 14px !important;
}

.wa-reaction-badge {
    background: linear-gradient(160deg, #181c25 0%, #0e1016 100%) !important;
    border: 1px solid rgba(226, 192, 104, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.wa-hover-actions {
    background: linear-gradient(160deg, rgba(22, 26, 35, 0.96) 0%, rgba(12, 14, 19, 0.98) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(226, 192, 104, 0.35) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 14px rgba(226, 192, 104, 0.12) !important;
}

.wa-quoted-card {
    background: rgba(226, 192, 104, 0.06) !important;
    border-left: 3px solid #e2c068 !important;
    border-radius: 8px !important;
}

.wa-velvet-input {
    background: linear-gradient(180deg, rgba(7, 8, 12, 0.88) 0%, rgba(12, 14, 19, 0.92) 100%) !important;
    border: 1px solid rgba(226, 192, 104, 0.28) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
}

.wa-velvet-input:focus {
    border-color: #e2c068 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.75), 0 0 0 1px #e2c068, 0 0 14px rgba(226, 192, 104, 0.25) !important;
}


