:root {
  --bg: #090d16;
  --surface: #101726;
  --surface-hover: #162035;
  --surface-card: #131c2e;
  --text: #f0f4fc;
  --text-muted: #8b9bb4;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.15);
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.15);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.15);
  --orange: #f59e0b;
  --orange-soft: rgba(245, 158, 11, 0.15);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.15);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: #0d121f;
  border-right: 1px solid var(--line);
  color: #e8edfa;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 6px 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.brand-mark {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

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

.brand-info strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.2px;
}

.sub-brand {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.profile-select {
  width: 100%;
  padding: 4px 6px;
  font-size: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.nav-item .icon {
  font-size: 15px;
}

.nav-item:hover {
  background: var(--surface-hover);
  color: white;
  transform: translateX(2px);
}

.nav-item.active {
  background: var(--primary-soft);
  color: #93c5fd;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.sidebar-note {
  margin-top: auto;
  padding: 16px 12px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.infra-status {
  display: flex;
  align-items: center;
  color: #e2e8f0;
  font-size: 12px;
  margin-bottom: 2px;
}

.project-tag {
  font-family: monospace;
  font-size: 9px;
  color: #64748b;
  margin-top: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.dot.green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.dot.blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }

/* MAIN CONTENT */
.main {
  min-width: 0;
  flex: 1;
  padding: 0 36px;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #60a5fa;
  font-weight: 700;
  margin-bottom: 4px;
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  font-size: 11px;
  color: #94a3b8;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
}

/* BUTTONS */
.btn {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-soft {
  background: var(--primary-soft);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}
.btn-soft:hover {
  background: rgba(59, 130, 246, 0.25);
}

.btn-danger {
  color: #fca5a5;
  background: var(--red-soft);
  border-color: rgba(239, 68, 68, 0.3);
}

/* GRID & CARDS */
.content {
  padding: 28px 0 36px;
  flex: 1;
}

.loading {
  padding: 60px;
  text-align: center;
  color: var(--text-muted);
}

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

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

.stat-icon {
  float: right;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: #60a5fa;
  font-size: 16px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 800;
  margin: 8px 0 4px;
}

.stat-foot {
  font-size: 11px;
  color: var(--text-muted);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 16px;
}
.section-head:first-child { margin-top: 0; }
.section-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  margin: 14px 0 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 20px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 11px;
}

.phase-list { display: grid; gap: 12px; }
.phase-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.phase-number {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: #60a5fa;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.phase-row p { margin: 2px 0 0; color: var(--text-muted); font-size: 11px; }
.phase-count { text-align: right; font-weight: 700; }
.phase-count small { display: block; font-weight: 400; color: var(--text-muted); font-size: 10px; }

/* TOOLBAR & INPUTS */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.input, select, textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
  background: #0d1322;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.input:focus, select:focus, textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.toolbar .input { max-width: 320px; }

/* TABLES */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

.table th {
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table-title { font-weight: 600; color: #fff; }

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  white-space: nowrap;
}
.badge.green { background: var(--green-soft); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge.orange { background: var(--orange-soft); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge.blue { background: var(--primary-soft); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge.purple { background: var(--purple-soft); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge.red { background: var(--red-soft); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* CALENDAR */
.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.cal-day-name {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
}

.cal-cell {
  min-height: 125px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.cal-cell:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.cal-cell.outside {
  opacity: 0.3;
  background: transparent;
}

.cal-num {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.cal-item {
  font-size: 10px;
  line-height: 1.4;
  border-radius: 6px;
  background: var(--primary-soft);
  color: #bfdbfe;
  padding: 5px 7px;
  margin: 4px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: transform 0.15s ease;
}

.cal-item:hover {
  transform: scale(1.02);
  background: rgba(59, 130, 246, 0.3);
}

.cal-item.carousel {
  background: var(--purple-soft);
  color: #e9d5ff;
  border-color: rgba(139, 92, 246, 0.2);
}

.cal-item.done {
  opacity: 0.5;
  text-decoration: line-through;
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
}

/* IDEAS & CARDS GRID (ETAPA C) */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.idea-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  cursor: pointer;
}

.idea-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.idea-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.idea-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.hook-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: #93c5fd;
}
.hook-box strong { display: block; font-size: 10px; color: #60a5fa; text-transform: uppercase; margin-bottom: 2px; }

.retention-pill {
  font-size: 11px;
  color: #34d399;
  background: var(--green-soft);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.idea-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-muted);
}

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

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.75);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

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

.modal {
  background: #111827;
  border: 1px solid var(--line-strong);
  width: min(780px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.icon-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-btn:hover { color: white; background: rgba(255, 255, 255, 0.1); }

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

.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: white;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-width: 380px;
}

.note {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.6;
}

footer {
  padding: 22px 0;
  color: #64748b;
  font-size: 11px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ideas-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { width: 68px; padding: 18px 8px; }
  .brand { justify-content: center; padding: 0 0 16px; }
  .brand-info, .sidebar-note, .nav-item span, .user-meta, .logout-btn span { display: none; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .main { padding: 0 16px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
  .sidebar-user { justify-content: center; padding: 8px 4px; }
}

/* ==========================================================================
   TELA DE LOGIN - PADRÃO DARK-FIRST WEBMETA GROUP
   ========================================================================== */
.login-view {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 50% 18%, #151e36 0%, #090d16 65%, #05070c 100%);
  padding: 24px;
  overflow: hidden;
  box-sizing: border-box;
}

.login-backdrop-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(50px);
}

.login-card {
  position: relative;
  z-index: 10;
  width: min(440px, 100%);
  background: rgba(16, 23, 38, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(59, 130, 246, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.login-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-mark-lg {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
  color: white;
  font-weight: 800;
  font-size: 19px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.45);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.login-title-group h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.4px;
}

.login-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-top: 2px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 22px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.6px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  pointer-events: none;
  opacity: 0.7;
}

.input-icon-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.input-icon-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: #0c1222;
}

.input-icon-wrap input::placeholder {
  color: #4b5563;
  font-size: 13px;
}

.pass-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.pass-toggle-btn:hover {
  color: #ffffff;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  margin-top: 4px;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #1e40af 100%);
}

.login-btn:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  display: grid;
  gap: 6px;
}

.login-security-tag {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-meta {
  color: #64748b;
  font-size: 10px;
}

/* Shake Animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Sidebar User Badge & Logout */
.sidebar-user {
  margin-top: auto;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.user-role {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.2;
}

.logout-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.5);
}
