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

:root {
  /* Cores Primárias */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;

  /* Cores de Fundo (Dark) */
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f2e;
  --bg-tertiary: #141432;
  --bg-card: rgba(20, 20, 50, 0.8);
  --bg-card-hover: rgba(30, 30, 65, 0.9);
  --bg-glass: rgba(15, 15, 46, 0.6);
  --bg-input: rgba(20, 20, 55, 0.8);

  /* Cores de Texto */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;

  /* Cores de Estado */
  --online: #22c55e;
  --online-glow: rgba(34, 197, 94, 0.4);
  --offline: #ef4444;
  --offline-glow: rgba(239, 68, 68, 0.4);
  --warning: #f59e0b;

  /* Bordas */
  --border-color: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.3);
  --border-focus: rgba(99, 102, 241, 0.5);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

  /* Layout */
  --header-height: 64px;
  --sidebar-width: 250px;

  /* Transições */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse-online {
  0%, 100% { box-shadow: 0 0 0 0 var(--online-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes particleFloat {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(360deg); opacity: 0; }
}

/* ==================== GLASS MORPHISM ==================== */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.glass-header {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.glass-sidebar {
  background: rgba(10, 10, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-color);
}

/* ==================== AUTH SCREEN ==================== */
.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.auth-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

.auth-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.auth-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-400);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  opacity: 0;
}

.auth-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  animation: fadeInScale var(--transition-slow) ease-out;
}

.auth-card {
  padding: 2.5rem;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 1rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-300), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.auth-form {
  animation: fadeIn var(--transition-base) ease-out;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.form-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* ==================== INPUTS ==================== */
.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.input-wrapper input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.input-wrapper input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
  color: var(--primary-400);
}

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

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

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

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-400);
  border-color: var(--border-color);
}

.btn-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-sm:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-400);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--offline);
  border-color: rgba(239, 68, 68, 0.2);
}

/* ==================== FORM ERRORS ==================== */
.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  animation: fadeIn var(--transition-fast);
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-brand {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-300), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 400px;
  margin: 0 2rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stat-dot.online {
  background: var(--online);
  box-shadow: 0 0 6px var(--online-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.stat-dot.offline {
  background: var(--offline);
}

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.view-btn.active {
  background: var(--primary-600);
  color: white;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  z-index: 50;
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.sidebar-title-row .sidebar-title {
  margin-bottom: 0;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.8rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.filter-btn:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--text-primary);
}

.filter-btn.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-300);
  border-color: rgba(99, 102, 241, 0.15);
}

.filter-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  color: var(--text-tertiary);
}

.filter-btn.active .filter-count {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-300);
}

.groups-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.group-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.group-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.group-item.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.15);
}

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

.group-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
}

.group-item.active .group-name {
  color: var(--text-primary);
}

.group-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.server-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.server-uptime {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  margin-top: var(--header-height);
  margin-left: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 1.5rem;
}

.main-content::-webkit-scrollbar {
  width: 6px;
}

.main-content::-webkit-scrollbar-track {
  background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.4);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
  text-align: center;
  animation: fadeIn var(--transition-slow);
}

.empty-icon {
  margin-bottom: 1.5rem;
}

.empty-state h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 450px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.empty-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary-600);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step code {
  background: rgba(99, 102, 241, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--primary-300);
}

/* ==================== DEVICES GRID ==================== */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  animation: fadeIn var(--transition-base);
}

.devices-grid.list-view {
  grid-template-columns: 1fr;
}

.device-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  animation: fadeInScale var(--transition-base) ease-out;
  animation-fill-mode: backwards;
  position: relative;
}

.device-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.05);
}

.device-card.offline {
  opacity: 0.6;
}

.device-card.offline:hover {
  opacity: 0.8;
}

.device-screenshot {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.device-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.device-card:hover .device-screenshot img {
  transform: scale(1.02);
}

.device-screenshot .no-screenshot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  gap: 0.5rem;
}

.no-screenshot svg {
  opacity: 0.3;
}

.no-screenshot span {
  font-size: 0.75rem;
}

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-card:hover .screenshot-overlay {
  opacity: 1;
}

.screenshot-overlay .expand-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transform: scale(0.8);
  transition: transform var(--transition-base);
}

.device-card:hover .expand-icon {
  transform: scale(1);
}

.device-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  font-size: 0.7rem;
  font-weight: 600;
}

.device-status-badge.online {
  color: var(--online);
}

.device-status-badge.offline {
  color: var(--offline);
}

.device-group-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.device-info {
  padding: 0.9rem 1rem;
}

.device-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.device-platform {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

/* ==================== LIST VIEW ==================== */
.devices-grid.list-view .device-card {
  display: flex;
  flex-direction: row;
  height: 80px;
}

.devices-grid.list-view .device-screenshot {
  width: 120px;
  height: 100%;
  aspect-ratio: unset;
  flex-shrink: 0;
}

.devices-grid.list-view .device-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.devices-grid.list-view .device-name {
  min-width: 150px;
}

.devices-grid.list-view .device-meta {
  flex: 1;
}

/* ==================== MODALS ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 200ms ease-out;
}

.modal-fullscreen {
  width: 92vw;
  height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInScale 200ms ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.modal-device-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-device-info h3 {
  font-size: 1rem;
  font-weight: 600;
}

.modal-device-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #000;
}

.modal-body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-timestamp {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Settings Modal */
.modal-settings {
  width: 480px;
  max-width: 95vw;
  max-height: 85vh;
  overflow-y: auto;
  animation: fadeInScale 200ms ease-out;
  padding: 0;
}

.modal-settings .modal-header {
  position: sticky;
  top: 0;
  background: var(--bg-glass);
  z-index: 1;
}

.settings-body {
  padding: 1.5rem;
}

.settings-group {
  margin-bottom: 1.5rem;
}

.settings-group h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.setting-row label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.setting-row input[type="number"] {
  width: 100px;
  padding: 0.4rem 0.6rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  text-align: center;
  outline: none;
  transition: border-color var(--transition-fast);
}

.setting-row input[type="number"]:focus {
  border-color: var(--primary-500);
}

.setting-value {
  padding: 0.4rem 0.8rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--primary-300);
  user-select: all;
}

.setting-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==================== COLOR PICKER ==================== */
.color-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.color-option:hover {
  transform: scale(1.15);
}

.color-option.active {
  border-color: white;
  box-shadow: 0 0 0 2px var(--primary-500);
}

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

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  animation: slideInRight var(--transition-base) ease-out;
  min-width: 280px;
  max-width: 380px;
}

.toast-icon {
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.toast-message {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.toast.success { border-left: 3px solid var(--online); }
.toast.error { border-left: 3px solid var(--offline); }
.toast.info { border-left: 3px solid var(--primary-400); }
.toast.warning { border-left: 3px solid var(--warning); }

/* ==================== HEADER TABS ==================== */
.header-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 1.5rem;
  padding: 3px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

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

.tab-btn.active {
  background: var(--primary-600);
  color: white;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--offline);
  color: white;
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  animation: fadeInScale var(--transition-fast);
}

/* ==================== DOWNLOADS PANEL ==================== */
.downloads-panel {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
  animation: fadeIn var(--transition-base);
}

.downloads-header {
  margin-bottom: 2rem;
}

.downloads-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.downloads-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-base);
}

.download-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.download-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.download-icon.win-icon {
  background: rgba(0, 120, 215, 0.15);
  color: #0078D7;
}

.download-icon.android-icon {
  background: rgba(60, 175, 100, 0.15);
  color: #3CAF64;
}

.download-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.download-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.download-meta {
  margin-bottom: 1rem;
}

.download-size {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.download-btn {
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  max-width: 180px;
}

.downloads-footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.downloads-footer p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.downloads-footer code {
  background: rgba(99, 102, 241, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--primary-300);
}

/* ==================== MESSAGES PANEL ==================== */
.messages-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - 3rem);
}

.messages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.messages-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.msg-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.msg-filter-btn:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--border-hover);
}

.msg-filter-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary-500);
  color: var(--primary-300);
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 0.5rem;
}

.messages-list::-webkit-scrollbar {
  width: 5px;
}

.messages-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 3px;
}

.messages-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 50vh;
  text-align: center;
  gap: 0.75rem;
}

.messages-empty p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.messages-empty span {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 400px;
}

/* Message Card */
.message-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  animation: slideInRight 200ms ease-out;
  transition: background var(--transition-fast);
}

.message-card:hover {
  background: var(--bg-card-hover);
}

.message-app-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.message-app-icon.whatsapp { background: rgba(37, 211, 102, 0.15); }
.message-app-icon.telegram { background: rgba(0, 136, 204, 0.15); }
.message-app-icon.instagram { background: rgba(225, 48, 108, 0.15); }
.message-app-icon.sms { background: rgba(59, 130, 246, 0.15); }
.message-app-icon.messenger { background: rgba(0, 132, 255, 0.15); }
.message-app-icon.teams { background: rgba(80, 80, 180, 0.15); }
.message-app-icon.slack { background: rgba(74, 21, 75, 0.15); }
.message-app-icon.discord { background: rgba(88, 101, 242, 0.15); }
.message-app-icon.default { background: rgba(99, 102, 241, 0.15); }

.message-content {
  flex: 1;
  min-width: 0;
}

.message-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.message-sender {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.message-group {
  font-size: 0.7rem;
  color: var(--primary-400);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.message-app-name {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

.message-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

.message-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.3rem;
}

.message-device {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-base);
  }

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

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

  .devices-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-center {
    display: none;
  }

  .header-stats {
    display: none;
  }

  .devices-grid {
    grid-template-columns: 1fr;
  }

  .modal-fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }

  .view-toggle {
    display: none;
  }
}

/* ==================== WHATSAPP PANEL ==================== */

.whatsapp-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  overflow-y: auto;
}

.wa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.18);
  border-radius: 16px;
  padding: 20px 24px;
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wa-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.25), rgba(18, 140, 126, 0.25));
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
  flex-shrink: 0;
}

.wa-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.wa-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.wa-connect-btn {
  white-space: nowrap;
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3) !important;
}

.wa-connect-btn:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
  transform: translateY(-1px);
}

/* How-to steps */
.wa-how-to {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  flex-wrap: wrap;
}

.wa-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.wa-step-num {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.wa-step-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Sessions grid */
.wa-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.wa-session-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.wa-session-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #25D366, #128C7E);
  opacity: 0;
  transition: opacity 0.2s;
}

.wa-session-card.connected::before { opacity: 1; }
.wa-session-card.qr_waiting::before {
  background: linear-gradient(90deg, #f59e0b, #f97316);
  opacity: 1;
  animation: pulse-bar 1.5s ease infinite;
}
.wa-session-card.disconnected::before {
  background: var(--error-color);
  opacity: 0.6;
}

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.wa-session-card:hover {
  border-color: rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.wa-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-card-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(37,211,102,0.2), rgba(18,140,126,0.2));
  border: 1.5px solid rgba(37,211,102,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.wa-card-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-card-phone {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.wa-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}

.wa-card-status.connected {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.wa-card-status.qr_waiting {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.wa-card-status.connecting {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-400);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.wa-card-status.disconnected {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.wa-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.wa-card-status.connected .wa-status-dot { animation: blink 2s ease infinite; }

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

.wa-card-actions {
  display: flex;
  gap: 8px;
}

.wa-card-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.wa-card-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.wa-card-btn.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.wa-card-btn.show-qr {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
}

.wa-card-btn.show-qr:hover {
  background: rgba(245, 158, 11, 0.15);
}

/* Empty state WhatsApp */
.wa-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 12px;
  text-align: center;
  color: var(--text-muted);
}

.wa-empty p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.wa-empty span {
  font-size: 0.82rem;
  max-width: 360px;
}

/* ==================== MODAL QR CODE ==================== */

.modal-wa-qr {
  width: 90%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
}

.wa-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-modal-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(37,211,102,0.2), rgba(18,140,126,0.2));
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
}

.wa-qr-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.wa-qr-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 8px;
}

@media (max-width: 560px) {
  .wa-qr-body { grid-template-columns: 1fr; }
}

.wa-qr-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 16px;
}

.wa-qr-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(37, 211, 102, 0.15);
  border-top-color: #25D366;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.wa-qr-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.wa-qr-img {
  width: 280px;
  height: 280px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.wa-qr-refresh-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  font-size: 0.9rem;
  border-radius: 10px;
}

.wa-qr-refresh-overlay.visible {
  display: flex;
}

.wa-qr-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.wa-success-icon {
  font-size: 3.5rem;
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.wa-qr-success h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #25D366;
}

.wa-qr-success p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Instructions */
.wa-qr-instructions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  align-self: flex-start;
}

.wa-inst-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.wa-inst-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-inst-list li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.wa-inst-note {
  font-size: 0.78rem;
  color: #25D366;
  padding: 8px 12px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 8px;
  margin: 0;
}

.wa-card-btn.bot-active {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.4);
}
.wa-card-btn.bot-active:hover {
  background: rgba(99, 102, 241, 0.35);
}

/* Custom Scrollbar no Modal do Bot */
#wa-bot-modal .modal-settings::-webkit-scrollbar {
  width: 6px;
}
#wa-bot-modal .modal-settings::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
#wa-bot-modal .modal-settings::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
#wa-bot-modal .modal-settings::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}



