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

/* ═══════════════════════════════════════════════════════════
   VARIABLES — Palette imposée
═══════════════════════════════════════════════════════════ */
:root {
  --bg:           #0B0B0B;
  --bg2:          #111111;
  --bg3:          #161616;
  --card:         #161616;
  --card-hover:   #1C1C1C;
  --sidebar:      #0D0D0D;
  --stroke:       rgba(255,255,255,0.06);
  --stroke2:      rgba(255,255,255,0.10);
  --stroke3:      rgba(255,255,255,0.15);
  --text:         #EDEDED;
  --text-strong:  #FFFFFF;
  --text-muted:   #888888;
  --text-dim:     #555555;
  --accent:       #5B6AD4;
  --accent-glow:  rgba(91,106,212,0.20);
  --accent-hover: #4A59C3;
  --cta:          #FF6B35;
  --cta-hover:    #E55A24;
  --cta-glow:     rgba(255,107,53,0.25);
  --success:      #22C55E;
  --warning:      #F59E0B;
  --danger:       #EF4444;
  --radius:       10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --transition:   0.16s cubic-bezier(0.4,0,0.2,1);
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 32px rgba(91,106,212,0.15);
}

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

html { font-size: 15px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ═══════════════════════════════════════════════════════════
   TOPBAR — glassmorphism
═══════════════════════════════════════════════════════════ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: rgba(11,11,11,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(10);
  opacity: 0.9;
}

.brand-link { cursor: pointer; }
.brand-link:hover .brand-logo { opacity: 1; }
.brand-link:hover #brandName { opacity: 0.8; transition: opacity var(--transition); }

#brandName {
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role-banner {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg3);
  border: 1px solid var(--stroke2);
  color: var(--text-muted);
}

.role-banner.neutral {
  color: var(--accent);
  border-color: var(--accent-glow);
  background: rgba(91,106,212,0.08);
}

.topbar .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.net-status {
  font-size: 0.7rem;
  color: var(--success);
  background: rgba(34,197,94,0.10);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(34,197,94,0.22);
  font-weight: 700;
}

.session-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 2px 8px;
}

/* ═══════════════════════════════════════════════════════════
   LANG SWITCHER
═══════════════════════════════════════════════════════════ */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: inherit;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--stroke2);
  background: var(--bg3);
  color: var(--text);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--card-hover);
  border-color: var(--stroke3);
  color: var(--text-strong);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 28px rgba(91,106,212,0.35);
  transform: translateY(-1px);
}

.btn.cta {
  background: var(--cta) !important;
  border-color: var(--cta) !important;
  color: #fff !important;
  box-shadow: 0 0 20px var(--cta-glow) !important;
  font-weight: 700 !important;
}

.btn.cta:hover {
  background: var(--cta-hover) !important;
  border-color: var(--cta-hover) !important;
  box-shadow: 0 0 30px var(--cta-glow), 0 4px 16px rgba(255,107,53,0.3) !important;
  transform: translateY(-1px) !important;
}

.btn.ghost {
  background: transparent;
  border-color: var(--stroke2);
  color: var(--text-muted);
}

.btn.ghost:hover {
  background: var(--bg3);
  border-color: var(--stroke3);
  color: var(--text);
}

.btn.danger {
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.25);
  color: var(--danger);
}

.btn.danger:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.45);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none !important;
}

/* ═══════════════════════════════════════════════════════════
   STATUS BANNER
═══════════════════════════════════════════════════════════ */
.status-banner {
  padding: 10px 24px;
  background: rgba(91,106,212,0.10);
  border-bottom: 1px solid rgba(91,106,212,0.20);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

.status-banner.error {
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.20);
  color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════════════════ */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ═══════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
}

.card:hover { border-color: var(--stroke2); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════════ */
body.login-only main {
  min-height: calc(100vh - 60px);
  justify-content: center;
  align-items: center;
  max-width: 420px;
}

.login-card {
  width: 100%;
  background: rgba(22,22,22,0.9);
  border: 1px solid var(--stroke2);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow), 0 0 60px rgba(91,106,212,0.06);
  backdrop-filter: blur(12px);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(91,106,212,0.12);
  border: 1px solid rgba(91,106,212,0.28);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.login-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.login-header .note {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--stroke2);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form input::placeholder,
.form select::placeholder,
.form textarea::placeholder { color: var(--text-muted); opacity: 0.7; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px var(--cta-glow);
}

.form.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form.two-columns .form-section {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form.two-columns .form-section strong {
  color: var(--text-strong);
  font-size: 0.85rem;
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--stroke);
}

.form.two-columns button[type="submit"],
.form.two-columns .status {
  grid-column: 1 / -1;
}

.form.inline {
  flex-direction: row;
  flex-wrap: wrap;
}

.status {
  font-size: 0.83rem;
  color: var(--accent);
  min-height: 20px;
}

.status.error, .status.danger { color: var(--danger); }
.status.success { color: var(--success); }

/* ═══════════════════════════════════════════════════════════
   NOTE
═══════════════════════════════════════════════════════════ */
.note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.note.subtle { opacity: 0.55; }

/* ═══════════════════════════════════════════════════════════
   TOGGLE
═══════════════════════════════════════════════════════════ */
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
}

.toggle input[type="checkbox"] {
  width: 36px;
  height: 20px;
  appearance: none;
  background: var(--bg3);
  border: 1.5px solid var(--stroke2);
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}

.toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.toggle input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle input[type="checkbox"]:checked::before {
  transform: translateX(16px);
  background: #fff;
}

/* ═══════════════════════════════════════════════════════════
   METRICS GRID
═══════════════════════════════════════════════════════════ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.metric-tile {
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

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

.metric-tile .metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.04em;
  display: block;
}

.metric-tile .metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   MINI KPIs
═══════════════════════════════════════════════════════════ */
.mini-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.mini-kpi {
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color var(--transition);
}

.mini-kpi:hover { border-color: var(--stroke2); }

.mini-kpi span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mini-kpi strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.03em;
}

.tile-1 { border-left: 3px solid var(--accent); }
.tile-3 { border-left: 3px solid var(--success); }
.tile-5 { border-left: 3px solid var(--warning); }
.tile-4 { border-left: 3px solid var(--cta); }

/* ═══════════════════════════════════════════════════════════
   MINI CHARTS
═══════════════════════════════════════════════════════════ */
.mini-charts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.mini-chart {
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px;
}

.mini-chart strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.mini-bars { display: flex; flex-direction: column; gap: 6px; }
.mini-bar-row { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; }
.mini-bar-label { color: var(--text-muted); min-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-bar-track { flex: 1; height: 5px; background: rgba(255,255,255,0.04); border-radius: 3px; overflow: hidden; }
.mini-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.5s; }
.mini-bar-count { color: var(--text-muted); min-width: 24px; text-align: right; }

.mini-volume { display: flex; align-items: flex-end; gap: 3px; height: 50px; }
.mini-vol-bar { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; opacity: 0.55; transition: opacity var(--transition); min-height: 2px; }
.mini-vol-bar:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--stroke); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead tr { background: var(--bg3); }

th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--stroke);
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--stroke);
  color: var(--text);
}

tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.025); }

/* ─── TABLE ROW ── */
.table-row {
  display: grid;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--stroke);
  font-size: 0.85rem;
  transition: background var(--transition);
}

.table-row:hover { background: rgba(255,255,255,0.025); }
.table-row:last-child { border-bottom: none; }

/* ─── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge.open, .badge.new    { background: rgba(91,106,212,0.14); color: var(--accent); }
.badge.resolved, .badge.closed { background: rgba(34,197,94,0.12); color: var(--success); }
.badge.pending, .badge.waiting { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge.urgent, .badge.high { background: rgba(239,68,68,0.12); color: var(--danger); }
.badge.medium  { background: rgba(34,197,94,0.10); color: var(--success); }
.badge.low     { background: rgba(136,136,136,0.12); color: var(--text-muted); }

/* ─── TAG (alias) ── */
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; }
.tag.open, .tag.new      { background: rgba(91,106,212,0.14); color: var(--accent); }
.tag.resolved, .tag.closed { background: rgba(34,197,94,0.12); color: var(--success); }
.tag.pending, .tag.waiting { background: rgba(245,158,11,0.12); color: var(--warning); }
.tag.urgent, .tag.high   { background: rgba(239,68,68,0.12); color: var(--danger); }
.tag.medium { background: rgba(34,197,94,0.10); color: var(--success); }
.tag.low    { background: rgba(136,136,136,0.12); color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   TABS
═══════════════════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--stroke);
  padding: 0 4px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}

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

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── TAB SWITCH (segmented) ── */
.tab-switch {
  display: flex;
  gap: 3px;
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 3px;
}

.tab-switch .btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 5px 12px;
  font-size: 0.82rem;
}

.tab-switch .btn.active {
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
}

.tab-panel { display: block; }
.tab-panel.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden { display: none !important; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--stroke2);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  animation: fadeInUp 0.2s ease both;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.pagination .page-btn {
  min-width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--bg3);
  border: 1px solid var(--stroke);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.pagination .page-btn:hover { border-color: var(--stroke2); color: var(--text); }
.pagination .page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   HERO / HERO START
═══════════════════════════════════════════════════════════ */
.hero-start {
  background: linear-gradient(135deg, var(--card) 0%, var(--bg3) 100%);
  border: 1px solid var(--stroke2);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.hero-card { max-width: 560px; margin: 0 auto; }

.hero-start h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.04em;
  margin: 12px 0;
}

.hero-start p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.hero-highlights {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-pill {
  padding: 6px 14px;
  background: var(--bg3);
  border: 1px solid var(--stroke2);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: default;
}

.hero-pill:hover {
  background: rgba(91,106,212,0.10);
  border-color: rgba(91,106,212,0.30);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════
   CHAT AREA (generic)
═══════════════════════════════════════════════════════════ */
.chat-wrapper {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
}

.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 80%;
}

.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.bot { align-self: flex-start; align-items: flex-start; }

.msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 100%);
  color: #fff;
  border-radius: 12px 12px 2px 12px;
}

.msg.bot .msg-bubble {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  border-radius: 4px 12px 12px 12px;
}

.msg-time { font-size: 0.7rem; color: var(--text-muted); }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--stroke);
  background: var(--bg3);
}

.chat-input-row textarea,
.chat-input-row input[type="text"] {
  flex: 1;
  background: var(--card);
  border: 1.5px solid var(--stroke2);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  outline: none;
  min-height: 40px;
  max-height: 120px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.chat-input-row textarea:focus,
.chat-input-row input[type="text"]:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px var(--cta-glow);
}

/* ═══════════════════════════════════════════════════════════
   #chatInput / #sendBtn — IMPOSÉS
═══════════════════════════════════════════════════════════ */
.chat-input-bar {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, transparent, rgba(11,11,11,0.95));
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

#chatInput {
  background: var(--bg3);
  border: 1.5px solid var(--stroke2);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  resize: none;
  min-height: 44px;
  max-height: 140px;
  flex: 1;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}

#chatInput::placeholder { color: var(--text-muted); opacity: 0.7; }

#chatInput:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px var(--cta-glow);
  outline: none;
}

#sendBtn {
  background: var(--cta) !important;
  border-color: var(--cta) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 0 20px !important;
  height: 44px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  box-shadow: 0 0 20px var(--cta-glow) !important;
  transition: all var(--transition) !important;
  flex-shrink: 0;
  border: 1px solid;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

#sendBtn:hover {
  background: var(--cta-hover) !important;
  box-shadow: 0 0 30px var(--cta-glow), 0 4px 16px rgba(255,107,53,0.3) !important;
  transform: translateY(-1px) !important;
}

#sendBtn:active { transform: scale(0.97) translateY(0) !important; }

/* ─── CHAT MESSAGES ── */
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  gap: 5px;
  animation: fadeInUp 0.22s ease both;
}

.chat-msg.user {
  align-self: flex-end;
  align-items: flex-end;
  animation-name: slideInRight;
}

.chat-msg.bot {
  align-self: flex-start;
  align-items: flex-start;
  animation-name: slideInLeft;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 10px;
}

.chat-msg.bot .bubble { grid-column: 2; }
.chat-msg.bot .ts     { grid-column: 2; }

.chat-msg.bot::before {
  content: 'AI';
  grid-column: 1; grid-row: 1;
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(91,106,212,0.22), rgba(124,58,237,0.18));
  border: 1px solid rgba(91,106,212,0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.63rem; font-weight: 800; color: #8b9cf7;
  letter-spacing: 0.02em;
  margin-top: 2px; align-self: flex-start;
}

.chat-msg.user .bubble {
  background: linear-gradient(135deg, #5B6AD4 0%, #7C3AED 100%);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 12px 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: 0 4px 20px rgba(91,106,212,0.30);
}

.chat-msg.bot .bubble {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  border-radius: 4px 18px 18px 18px;
  padding: 14px 18px;
  font-size: 0.92rem;
  line-height: 1.65;
}

.chat-msg .ts { font-size: 0.67rem; color: var(--text-dim); padding: 0 4px; }

/* ─── QUICK BAR ── */
.quick-bar {
  padding: 9px 20px 7px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-shrink: 0;
  border-top: 1px solid var(--stroke);
  background: rgba(11,11,11,0.7);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.quick-bar::-webkit-scrollbar { display: none; }

/* ─── CHAT INPUT ZONE (legacy) ── */
.chat-input-zone {
  display: flex;
  gap: 10px;
  padding: 14px 20px 16px;
  background: rgba(11,11,11,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--stroke);
  flex-shrink: 0;
  align-items: flex-end;
}

#chatMessageInput {
  flex: 1;
  background: var(--bg3);
  border: 1.5px solid var(--stroke2);
  border-radius: 12px;
  padding: 13px 20px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  resize: none;
  outline: none;
  min-height: 52px;
  max-height: 140px;
  line-height: 1.5;
  transition: all var(--transition);
}

#chatMessageInput:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px var(--cta-glow);
  background: rgba(255,107,53,0.025);
}

#chatMessageInput::placeholder { color: var(--text-muted); opacity: 0.6; }

.send-btn {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--cta);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  box-shadow: 0 4px 20px var(--cta-glow);
}

.send-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,53,0.45); background: var(--cta-hover); }
.send-btn:active { transform: scale(0.95) translateY(0); }

/* ═══════════════════════════════════════════════════════════
   TICKET PANEL / CARDS
═══════════════════════════════════════════════════════════ */
.tickets-panel {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.tickets-panel-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-strong);
}

.ticket-list-inner {
  display: flex;
  flex-direction: column;
}

.ticket-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-card {
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--transition);
}

.ticket-card:hover { border-color: var(--stroke2); }

.ticket-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ticket-title { font-weight: 600; color: var(--text-strong); flex: 1; font-size: 0.9rem; }
.ticket-meta { font-size: 0.78rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   CHIPS / TAGS / FILTER ROW
═══════════════════════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--stroke2);
  background: var(--bg3);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.chip:hover, .chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.filter-row input[type="search"] {
  background: var(--bg3);
  border: 1.5px solid var(--stroke2);
  border-radius: var(--radius);
  padding: 6px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  min-width: 200px;
}

.filter-row input[type="search"]:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px var(--cta-glow);
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  aspect-ratio: 4/3;
  background: var(--bg3);
}

.gallery-item:hover { border-color: var(--stroke3); transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ═══════════════════════════════════════════════════════════
   ACTIONS INLINE / KB
═══════════════════════════════════════════════════════════ */
.actions-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.kb-export-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.kb-filter {
  background: var(--bg3);
  border: 1.5px solid var(--stroke2);
  border-radius: var(--radius);
  padding: 7px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.kb-filter:focus { border-color: var(--cta); }

/* ═══════════════════════════════════════════════════════════
   STATUS GRID / STATUS PILL
═══════════════════════════════════════════════════════════ */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.status-item {
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 0.85rem;
}

.status-item strong {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(91,106,212,0.10);
  border: 1px solid rgba(91,106,212,0.22);
  color: var(--accent);
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════
   SETUP CHECKLIST
═══════════════════════════════════════════════════════════ */
#setupChecklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.88rem;
}

.checklist-item.ok { border-left: 3px solid var(--success); }
.checklist-item.warn { border-left: 3px solid var(--warning); }
.checklist-item.fail { border-left: 3px solid var(--danger); }

.checklist-icon { font-size: 1rem; flex-shrink: 0; }
.checklist-label { flex: 1; color: var(--text); }
.checklist-detail { font-size: 0.78rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   GUIDE LIST
═══════════════════════════════════════════════════════════ */
.guide-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-list li {
  color: var(--text);
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--stroke);
}

.guide-list li:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   QUICK LOGIN / INVITE
═══════════════════════════════════════════════════════════ */
.quick-login, .invite-activate {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.invite-activate h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   IMAGE LIGHTBOX
═══════════════════════════════════════════════════════════ */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox.hidden { display: none !important; }

.image-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
}

.image-lightbox-content {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--stroke2);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.image-lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.image-lightbox-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer, .page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 24px;
  background: rgba(11,11,11,0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 50;
}

.page-footer { justify-content: center; }

.footer-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
}

.footer-link:hover { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   MISC / TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
h2 { font-size: 1.4rem; font-weight: 800; color: var(--text-strong); letter-spacing: -0.03em; }
h3 { font-size: 1rem; font-weight: 700; color: var(--text-strong); }
h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); }

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

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.gap-2 { gap: 8px; }

/* ═══════════════════════════════════════════════════════════
   SUPPORT CARD
═══════════════════════════════════════════════════════════ */
.support-card {
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   GRID / QUICK ISSUES
═══════════════════════════════════════════════════════════ */
.grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quick-issues {
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.quick-search {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.quick-search input {
  flex: 1;
  background: var(--card);
  border: 1.5px solid var(--stroke2);
  border-radius: var(--radius);
  padding: 7px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.quick-search input:focus { border-color: var(--cta); box-shadow: 0 0 0 3px var(--cta-glow); }

.quick-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chip-icon { display: none; }
.chip-label { font-size: 0.82rem; }

.chip-count {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0 5px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   SUMMARY / PRESENTATION KPIs
═══════════════════════════════════════════════════════════ */
.summary-card, .presentation-kpis {
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.quick-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 60px;
}

.summary-item strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.04em;
}

.summary-item span, .summary-item > span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.summary-item.clickable { cursor: pointer; }
.summary-item.clickable:hover strong { color: var(--accent); }

.summary-last {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--stroke);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

.summary-last strong { color: var(--text); }

.presentation-kpis {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.presentation-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 80px;
  padding: 10px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--stroke);
}

.kpi-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.04em;
}

.kpi-value-small { font-size: 0.88rem; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   STATUS CARD / TIMELINE
═══════════════════════════════════════════════════════════ */
.status-card {
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.timeline {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  flex-wrap: wrap;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-step.active { color: var(--accent); }
.timeline-step.done { color: var(--success); }

.timeline-step .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stroke2);
  flex-shrink: 0;
}

.timeline-step.active .dot { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.timeline-step.done .dot { background: var(--success); }

.status-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

/* ═══════════════════════════════════════════════════════════
   CONTEXT CARD
═══════════════════════════════════════════════════════════ */
.context-card {
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.context-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.context-grid select {
  background: var(--card);
  border: 1.5px solid var(--stroke2);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
}

.context-grid select:focus { border-color: var(--cta); }

/* ═══════════════════════════════════════════════════════════
   USER HINTS / BEGINNER STEP
═══════════════════════════════════════════════════════════ */
.user-hint {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.user-hint span {
  background: var(--bg3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 140px;
}

.user-hint span strong { color: var(--accent); display: block; margin-bottom: 2px; }

.beginner-step {
  background: rgba(91,106,212,0.07);
  border: 1px solid rgba(91,106,212,0.18);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 16px var(--accent-glow); }
  50%       { box-shadow: 0 0 32px rgba(91,106,212,0.40); }
}

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

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%            { transform: translateY(-5px); opacity: 1; }
}

/* ─── SHIMMER SKELETON ── */
.shimmer {
  background: linear-gradient(90deg, var(--card) 25%, rgba(255,255,255,0.04) 50%, var(--card) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
  min-height: 20px;
}

/* ─── TYPING INDICATOR ── */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px 18px 18px 18px;
  width: fit-content;
}

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

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

/* ═══════════════════════════════════════════════════════════
   COMPAT EXISTING CLASSES
═══════════════════════════════════════════════════════════ */
.card-header .actions-inline { margin: 0; }
.with-bottom-footer main { padding-bottom: 80px; }

#diagnosticsTable td:nth-child(2) .tag { font-size: 0.75rem; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  main { padding: 20px 16px 80px; }
  .topbar { padding: 0 16px; }
  .login-card { padding: 24px 20px; }
  .card { padding: 16px; }
  .hero-start { padding: 24px 16px; }
  .hero-start h1 { font-size: 1.7rem; }
  .form.two-columns { grid-template-columns: 1fr; }
  .mini-kpis { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-charts { grid-template-columns: 1fr; }
}
