/* ============================================================
   LEO COMMAND CENTER — STYLESHEET
   ============================================================ */

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

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

:root {
  --bg-deep:       #07070d;
  --bg-surface:    #0d0d1a;
  --bg-card:       #111120;
  --bg-card-hover: #161628;
  --bg-input:      #0f0f1e;
  --border:        rgba(255,255,255,0.06);
  --border-accent: rgba(0, 212, 255, 0.25);

  --accent:        #00d4ff;
  --accent-dim:    rgba(0, 212, 255, 0.15);
  --accent-glow:   rgba(0, 212, 255, 0.35);
  --accent2:       #7c3aed;

  --text-primary:  #f0f0f8;
  --text-secondary:#8888aa;
  --text-muted:    #444466;

  --green:  #00e676;
  --yellow: #ffb300;
  --red:    #ff5252;
  --purple: #b388ff;

  --sidebar-w: 220px;
  --nav-h:     56px;
  --radius:    10px;
  --radius-lg: 16px;

  --transition: 0.18s ease;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TOP NAV
   ============================================================ */
#topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 0;
  background: rgba(7,7,13,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-logo {
  width: var(--sidebar-w);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 0 16px var(--accent-glow);
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.nav-logo-text span {
  color: var(--accent);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
}

.nav-center .live-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,230,118,0.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 4px rgba(0,230,118,0); }
}

#clock {
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

#date-display {
  color: var(--text-secondary);
  font-size: 12px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-mic {
  display: flex; align-items: center; justify-content: center;
  gap: 7px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-mic:hover {
  background: rgba(0,212,255,0.22);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-mic svg { width: 13px; height: 13px; fill: currentColor; }

.nav-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent2), #4f46e5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
#layout {
  display: flex;
  height: 100vh;
  padding-top: var(--nav-h);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
  width: var(--sidebar-w);
  height: calc(100vh - var(--nav-h));
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
  padding: 12px 0 24px;
}

#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 14px 18px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  margin: 1px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  user-select: none;
}

.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-item-icon {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.7;
  flex-shrink: 0;
}

.nav-item.active .nav-item-icon { opacity: 1; }

.nav-item-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid var(--border-accent);
}

.nav-item-expand {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.5;
  transition: transform var(--transition);
}

.nav-item.expanded .nav-item-expand { transform: rotate(90deg); }

.sub-nav {
  display: none;
  flex-direction: column;
  padding: 2px 0 2px 16px;
}

.sub-nav.open { display: flex; }

.sub-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px 7px 10px;
  margin: 1px 8px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 1px solid var(--border);
}

.sub-nav-item:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border-left-color: var(--accent);
}

.sub-nav-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.sub-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 18px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 0 18px;
}

.system-status {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.system-status-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--text-secondary);
}

.status-row:last-child { margin-bottom: 0; }

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.green { background: var(--green); box-shadow: 0 0 6px rgba(0,230,118,0.6); }
.status-dot.yellow { background: var(--yellow); box-shadow: 0 0 6px rgba(255,179,0,0.6); }
.status-dot.red { background: var(--red); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
#main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-deep);
}

#main::-webkit-scrollbar { width: 6px; }
#main::-webkit-scrollbar-track { background: transparent; }
#main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   VIEWS
   ============================================================ */
.view { display: none; animation: fadeIn 0.2s ease; }
.view.active { display: block; }

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

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: 28px 32px 0;
  margin-bottom: 24px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 400;
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  padding: 0 32px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: default;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--border-accent);
}

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

.stat-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-change {
  font-size: 11px;
  font-weight: 500;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.up   { color: var(--green); }
.stat-change.down { color: var(--red); }
.stat-change.neutral { color: var(--text-muted); }

/* ============================================================
   GRID LAYOUT: ACTIVITY + PROJECTS
   ============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  padding: 0 32px 32px;
}

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

/* ============================================================
   PANEL / CARD COMMON
   ============================================================ */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.panel-action {
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.panel-action:hover { opacity: 1; }

/* ============================================================
   ACTIVITY FEED
   ============================================================ */
.activity-list { padding: 8px 0; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 20px;
  transition: background var(--transition);
  cursor: default;
}

.activity-item:hover { background: rgba(255,255,255,0.02); }

.activity-source-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.activity-body { flex: 1; min-width: 0; }

.activity-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.activity-source-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}

.activity-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

.activity-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-text strong { color: var(--text-primary); font-weight: 600; }

/* Source tag colors */
.tag-telegram  { background: rgba(0,136,204,0.15); color: #29b6f6; }
.tag-whatsapp  { background: rgba(37,211,102,0.15); color: #4caf50; }
.tag-terminal  { background: rgba(188,0,255,0.12);  color: #ce93d8; }
.tag-claude    { background: rgba(255,179,0,0.12);  color: #ffb300; }

/* Source icon backgrounds */
.icon-telegram  { background: rgba(0,136,204,0.15); }
.icon-whatsapp  { background: rgba(37,211,102,0.15); }
.icon-terminal  { background: rgba(188,0,255,0.12); }
.icon-claude    { background: rgba(255,179,0,0.12); }

/* ============================================================
   ACTIVE PROJECTS PANEL
   ============================================================ */
.project-list { padding: 8px 0; }

.project-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background var(--transition);
}

.project-item:hover { background: rgba(255,255,255,0.025); }

.project-color-bar {
  width: 3px; height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}

.project-info { flex: 1; min-width: 0; }

.project-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.status-active   { background: rgba(0,230,118,0.12);  color: var(--green); }
.status-build    { background: rgba(0,212,255,0.12);  color: var(--accent); }
.status-planning { background: rgba(255,179,0,0.12);  color: var(--yellow); }
.status-hold     { background: rgba(136,136,170,0.1); color: var(--text-muted); }

/* ============================================================
   PROJECT VIEW
   ============================================================ */
.project-hero {
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0,212,255,0.04), transparent 60%);
}

.project-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.project-big-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.project-hero-info { flex: 1; }

.project-hero-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.project-hero-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 20px 32px;
  margin-bottom: 8px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: all 0.2s;
}

.metric-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 3px;
}

.project-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 32px 32px;
}

@media (max-width: 1000px) {
  .project-sections { grid-template-columns: 1fr; }
}

/* ============================================================
   FILE ROWS
   ============================================================ */
.file-list { padding: 4px 0; }

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background var(--transition);
}

.file-row:hover { background: rgba(255,255,255,0.025); }

.file-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.file-info { flex: 1; min-width: 0; }

.file-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.file-source-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}

.source-mac        { background: rgba(120,120,200,0.15); color: #9090d0; }
.source-sharepoint { background: rgba(0,120,212,0.15);   color: #4fc3f7; }
.source-teams      { background: rgba(100,65,165,0.15);  color: #b388ff; }

/* ============================================================
   CONVO EXCERPT
   ============================================================ */
.convo-list { padding: 8px 0; }

.convo-item {
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  cursor: default;
}

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

.convo-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.convo-source {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.convo-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

.convo-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   NOTES SECTION
   ============================================================ */
.notes-area {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.notes-area p { margin-bottom: 8px; }
.notes-area p:last-child { margin-bottom: 0; }

.notes-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  margin: 3px 3px 3px 0;
  letter-spacing: 0.3px;
}

/* ============================================================
   DOCUMENTS VIEW
   ============================================================ */
.docs-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px 20px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  transition: border-color var(--transition);
}

.search-box:focus-within {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.06);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
}

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

.search-icon { color: var(--text-muted); font-size: 14px; }

.filter-pills {
  display: flex;
  gap: 6px;
}

.filter-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.filter-pill:hover { border-color: var(--border-accent); color: var(--accent); }

.filter-pill.active {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.docs-panel {
  margin: 0 32px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.docs-table-header {
  display: grid;
  grid-template-columns: 1fr 100px 100px 80px;
  gap: 12px;
  padding: 10px 20px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   FLOATING VOICE BUTTON
   ============================================================ */
#voice-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0088cc);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,212,255,0.4), 0 0 0 0 rgba(0,212,255,0.3);
  z-index: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fab-pulse 3s ease-in-out infinite;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,212,255,0.4), 0 0 0 0 rgba(0,212,255,0.3); }
  50%       { box-shadow: 0 4px 28px rgba(0,212,255,0.5), 0 0 0 10px rgba(0,212,255,0); }
}

#voice-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(0,212,255,0.55);
  animation: none;
}

#voice-fab svg { width: 20px; height: 20px; fill: #fff; }

/* ============================================================
   VOICE MODAL
   ============================================================ */
#voice-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7,7,13,0.85);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}

#voice-modal.open { display: flex; }

.voice-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 40px 48px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6), 0 0 40px rgba(0,212,255,0.1);
  animation: modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.voice-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: ring-pulse 1.4s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.35); }
  50%       { box-shadow: 0 0 0 18px rgba(0,212,255,0); }
}

.voice-ring svg { width: 28px; height: 28px; fill: var(--accent); }

.voice-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.voice-modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 30px;
  margin-bottom: 24px;
}

.voice-wave span {
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  animation: wave 1.2s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 24px; animation-delay: 0.15s; }
.voice-wave span:nth-child(6) { height: 14px; animation-delay: 0.25s; }
.voice-wave span:nth-child(7) { height: 22px; animation-delay: 0.05s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

.btn-cancel {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.btn-cancel:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

/* ============================================================
   SCROLLBAR GLOBAL
   ============================================================ */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --sidebar-w: 60px; }

  .nav-logo-text, .sidebar-section-label, .nav-item span,
  .nav-item-badge, .nav-item-expand, .sub-nav { display: none !important; }

  .nav-item { justify-content: center; padding: 10px; }
  .nav-item-icon { opacity: 1; }

  .stats-grid { padding: 0 16px; }
  .dashboard-grid { padding: 0 16px 24px; }
  .page-header { padding: 20px 16px 0; }

  .project-sections { padding: 0 16px 24px; }
  .project-metrics  { padding: 16px 16px; }
  .project-hero     { padding: 20px 16px; }
}
