/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #0f1117; color: #e2e8f0; min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; }
input, textarea, select { outline: none; font-family: inherit; }
.hidden { display: none !important; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1f2e; }
::-webkit-scrollbar-thumb { background: #2d3748; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #25d366; }

/* ===== LOGIN ===== */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f1117 0%, #1a1f2e 50%, #0d1320 100%);
  position: relative;
}
.login-screen::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(37,211,102,0.08) 0%, transparent 70%);
}
.login-card {
  background: #1a1f2e; border: 1px solid #2d3748; border-radius: 20px;
  padding: 48px 40px; width: 100%; max-width: 420px; position: relative; z-index: 1;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.login-logo { text-align: center; margin-bottom: 36px; }
.logo-icon {
  width: 72px; height: 72px; background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 20px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 36px; color: white; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}
.login-logo h1 { font-size: 1.6rem; font-weight: 700; color: #f7fafc; margin-bottom: 6px; }
.login-logo p { color: #718096; font-size: 0.875rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: #a0aec0; margin-bottom: 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.input-wrapper { position: relative; }
.input-wrapper input {
  width: 100%; padding: 12px 44px 12px 16px; background: #0f1117;
  border: 1.5px solid #2d3748; border-radius: 10px; color: #f7fafc; font-size: 0.95rem;
  transition: border-color 0.2s;
}
.input-wrapper input:focus { border-color: #25d366; }
.toggle-pwd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; color: #718096; padding: 4px;
}
.toggle-pwd:hover { color: #25d366; }
.btn-login {
  width: 100%; padding: 13px; background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 10px; color: white; font-size: 1rem; font-weight: 600;
  transition: all 0.2s; box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.login-error { margin-top: 12px; padding: 10px 14px; background: rgba(229,62,62,0.15); border: 1px solid rgba(229,62,62,0.4); border-radius: 8px; color: #fc8181; font-size: 0.875rem; text-align: center; }

/* ===== APP LAYOUT ===== */
.app { display: flex; height: 100vh; overflow: hidden; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: 240px; min-width: 240px; background: #1a1f2e; border-right: 1px solid #2d3748;
  display: flex; flex-direction: column; transition: width 0.3s ease; overflow: hidden; z-index: 100;
}
.sidebar.collapsed { width: 64px; min-width: 64px; }
.sidebar-header {
  padding: 20px 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #2d3748; min-height: 64px;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.logo-circle {
  width: 36px; height: 36px; background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: white; flex-shrink: 0;
}
.logo-text { font-weight: 700; font-size: 0.95rem; white-space: nowrap; color: #f7fafc; }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .sidebar-nav .nav-item span,
.sidebar.collapsed .sidebar-footer .btn-logout span,
.sidebar.collapsed .connection-status span { display: none; }
.sidebar.collapsed .sidebar-toggle { margin-left: 0; }
.sidebar-toggle { background: none; color: #718096; padding: 6px; border-radius: 6px; font-size: 1rem; }
.sidebar-toggle:hover { color: #25d366; background: rgba(37,211,102,0.1); }

.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: #718096; font-weight: 500; font-size: 0.9rem; transition: all 0.2s; white-space: nowrap;
  position: relative; margin-bottom: 2px;
}
.nav-item i { font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item:hover { background: rgba(37,211,102,0.08); color: #e2e8f0; }
.nav-item.active { background: rgba(37,211,102,0.15); color: #25d366; font-weight: 600; }
.nav-item .badge {
  margin-left: auto; background: #e53e3e; color: white; font-size: 0.7rem;
  font-weight: 700; padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center;
}

.sidebar-footer { padding: 12px 8px; border-top: 1px solid #2d3748; }
.connection-status {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 6px;
  background: #0f1117; border-radius: 8px; font-size: 0.8rem; color: #a0aec0; overflow: hidden;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #718096; flex-shrink: 0;
  transition: background 0.3s;
}
.status-dot.online { background: #25d366; box-shadow: 0 0 6px rgba(37,211,102,0.6); animation: pulse 2s infinite; }
.status-dot.offline { background: #e53e3e; box-shadow: 0 0 6px rgba(229,62,62,0.5); }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.5;} }

.btn-logout {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  background: none; border-radius: 8px; color: #718096; font-size: 0.875rem; transition: all 0.2s;
}
.btn-logout:hover { background: rgba(229,62,62,0.1); color: #fc8181; }

/* ===== MAIN CONTENT ===== */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 64px; background: #1a1f2e; border-bottom: 1px solid #2d3748;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.mobile-menu-btn { display: none; background: none; color: #718096; font-size: 1.1rem; padding: 6px; }
.page-title { font-size: 1.1rem; font-weight: 600; color: #f7fafc; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-status { font-size: 0.8rem; color: #718096; }

.tab-content { flex: 1; overflow-y: auto; padding: 24px; }

/* ===== CARDS & GRID ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #1a1f2e; border: 1px solid #2d3748; border-radius: 12px; padding: 20px;
  display: flex; align-items: center; gap: 16px; transition: border-color 0.2s;
}
.stat-card:hover { border-color: #25d366; }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.green { background: rgba(37,211,102,0.15); color: #25d366; }
.stat-icon.blue { background: rgba(66,153,225,0.15); color: #63b3ed; }
.stat-icon.yellow { background: rgba(236,201,75,0.15); color: #f6e05e; }
.stat-icon.red { background: rgba(229,62,62,0.15); color: #fc8181; }
.stat-icon.purple { background: rgba(159,122,234,0.15); color: #b794f4; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: #f7fafc; line-height: 1; }
.stat-label { font-size: 0.8rem; color: #718096; margin-top: 4px; }

.card {
  background: #1a1f2e; border: 1px solid #2d3748; border-radius: 12px; padding: 20px; margin-bottom: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid #2d3748;
}
.card-title { font-size: 1rem; font-weight: 600; color: #f7fafc; display: flex; align-items: center; gap: 8px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; }
.btn-primary { background: linear-gradient(135deg, #25d366, #128c7e); color: white; box-shadow: 0 2px 8px rgba(37,211,102,0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,211,102,0.4); }
.btn-secondary { background: #2d3748; color: #e2e8f0; }
.btn-secondary:hover { background: #3d4a5c; }
.btn-danger { background: rgba(229,62,62,0.15); color: #fc8181; border: 1px solid rgba(229,62,62,0.3); }
.btn-danger:hover { background: rgba(229,62,62,0.25); }
.btn-ghost { background: none; color: #718096; padding: 6px 10px; }
.btn-ghost:hover { color: #25d366; background: rgba(37,211,102,0.08); }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }

/* ===== FORMS ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.8rem; font-weight: 600; color: #a0aec0; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 10px 14px; background: #0f1117; border: 1.5px solid #2d3748;
  border-radius: 8px; color: #f7fafc; font-size: 0.9rem; transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #25d366; }
.form-field select option { background: #1a1f2e; }
.form-field textarea { resize: vertical; min-height: 80px; }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; border-radius: 10px; border: 1px solid #2d3748; }
table { width: 100%; border-collapse: collapse; }
thead th { background: #0f1117; padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 600; color: #718096; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
tbody tr { border-top: 1px solid #2d3748; transition: background 0.15s; }
tbody tr:hover { background: rgba(37,211,102,0.04); }
tbody td { padding: 12px 16px; font-size: 0.875rem; color: #e2e8f0; }
.table-empty { text-align: center; padding: 40px; color: #718096; }
.table-empty i { font-size: 2rem; display: block; margin-bottom: 8px; }

/* ===== BADGES/TAGS ===== */
.tag-pill {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.tag-pill.green { background: rgba(37,211,102,0.15); color: #25d366; }
.tag-pill.blue { background: rgba(66,153,225,0.15); color: #63b3ed; }
.tag-pill.yellow { background: rgba(236,201,75,0.15); color: #f6e05e; }
.tag-pill.red { background: rgba(229,62,62,0.15); color: #fc8181; }
.tag-pill.purple { background: rgba(159,122,234,0.15); color: #b794f4; }
.tag-pill.gray { background: rgba(113,128,150,0.15); color: #a0aec0; }

/* Status pills */
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-pill.approved,.status-pill.active,.status-pill.completed { background: rgba(37,211,102,0.15); color: #25d366; }
.status-pill.pending,.status-pill.running { background: rgba(236,201,75,0.15); color: #f6e05e; }
.status-pill.rejected,.status-pill.failed,.status-pill.inactive { background: rgba(229,62,62,0.15); color: #fc8181; }
.status-pill.draft { background: rgba(113,128,150,0.15); color: #a0aec0; }

/* ===== SEARCH BAR ===== */
.search-bar { position: relative; }
.search-bar i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #718096; }
.search-bar input { padding-left: 36px; }

/* ===== TOOLBAR ===== */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }

/* ===== MESSAGES CRM ===== */
.crm-layout { display: flex; height: calc(100vh - 112px); gap: 0; border-radius: 12px; overflow: hidden; border: 1px solid #2d3748; }
.crm-sidebar { width: 320px; min-width: 280px; background: #1a1f2e; border-right: 1px solid #2d3748; display: flex; flex-direction: column; }
.crm-sidebar-header { padding: 16px; border-bottom: 1px solid #2d3748; }
.crm-conversation-list { flex: 1; overflow-y: auto; }
.crm-conv-item {
  padding: 14px 16px; border-bottom: 1px solid #1a2030; cursor: pointer; transition: background 0.15s;
  display: flex; align-items: center; gap: 12px;
}
.crm-conv-item:hover { background: rgba(37,211,102,0.06); }
.crm-conv-item.active { background: rgba(37,211,102,0.1); border-left: 3px solid #25d366; }
.conv-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700;
  color: white; flex-shrink: 0;
}
.conv-info { flex: 1; overflow: hidden; }
.conv-name { font-weight: 600; font-size: 0.9rem; color: #f7fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-preview { font-size: 0.78rem; color: #718096; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.conv-time { font-size: 0.72rem; color: #718096; white-space: nowrap; }
.conv-unread { background: #25d366; color: white; font-size: 0.7rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.crm-main { flex: 1; display: flex; flex-direction: column; background: #0f1117; }
.crm-header { padding: 14px 20px; background: #1a1f2e; border-bottom: 1px solid #2d3748; display: flex; align-items: center; gap: 12px; }
.crm-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.crm-empty { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #718096; }
.crm-empty i { font-size: 3rem; }

.msg-bubble {
  max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.5;
  position: relative; word-break: break-word;
}
.msg-bubble.inbound { background: #1a1f2e; color: #e2e8f0; border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-bubble.outbound { background: linear-gradient(135deg, #1a4731, #1a5c3a); color: #e2e8f0; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-meta { font-size: 0.7rem; color: #718096; margin-top: 4px; display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.msg-status-icon { font-size: 0.7rem; }
.msg-status-icon.read { color: #25d366; }

.crm-input-area { padding: 16px 20px; background: #1a1f2e; border-top: 1px solid #2d3748; display: flex; gap: 10px; align-items: flex-end; }
.crm-input-area textarea { flex: 1; padding: 10px 14px; background: #0f1117; border: 1.5px solid #2d3748; border-radius: 10px; color: #f7fafc; resize: none; max-height: 120px; overflow-y: auto; font-size: 0.9rem; }
.crm-input-area textarea:focus { border-color: #25d366; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  background: #1a1f2e; border: 1px solid #2d3748; border-radius: 16px;
  width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5); animation: modalIn 0.2s ease;
}
@keyframes modalIn { from{opacity:0;transform:scale(0.95)translateY(10px)} to{opacity:1;transform:none} }
.modal-header { padding: 20px 24px; border-bottom: 1px solid #2d3748; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.05rem; font-weight: 700; color: #f7fafc; }
.modal-close { background: none; color: #718096; font-size: 1.1rem; padding: 6px; border-radius: 6px; }
.modal-close:hover { color: #fc8181; background: rgba(229,62,62,0.1); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #2d3748; display: flex; gap: 10px; justify-content: flex-end; }

/* ===== AUTOMATION BUILDER ===== */
.flow-builder { width: 100%; height: 520px; background: #0a0d15; border: 1px solid #2d3748; border-radius: 10px; position: relative; overflow: hidden; cursor: grab; }
.flow-builder:active { cursor: grabbing; }
.flow-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.flow-node {
  position: absolute; background: #1a1f2e; border: 2px solid #2d3748; border-radius: 10px;
  padding: 12px 16px; min-width: 160px; cursor: move; user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s; z-index: 10;
}
.flow-node:hover, .flow-node.selected { border-color: #25d366; box-shadow: 0 0 12px rgba(37,211,102,0.3); }
.flow-node.start { border-color: #25d366; }
.flow-node.end { border-color: #e53e3e; }
.node-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.node-icon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.node-type { font-size: 0.75rem; font-weight: 700; color: #a0aec0; text-transform: uppercase; letter-spacing: 0.05em; }
.node-content { font-size: 0.82rem; color: #e2e8f0; }
.node-port {
  position: absolute; width: 12px; height: 12px; background: #25d366; border-radius: 50%;
  border: 2px solid #0f1117; cursor: crosshair; transition: transform 0.2s;
}
.node-port:hover { transform: scale(1.4); }
.node-port.out { right: -6px; top: 50%; transform: translateY(-50%); }
.node-port.out:hover { transform: translateY(-50%) scale(1.4); }
.node-port.in { left: -6px; top: 50%; transform: translateY(-50%); }
.node-port.in:hover { transform: translateY(-50%) scale(1.4); }

.flow-toolbar { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 20; }
.flow-node-palette { position: absolute; top: 12px; right: 12px; z-index: 20; background: #1a1f2e; border: 1px solid #2d3748; border-radius: 10px; padding: 10px; }
.palette-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px;
  font-size: 0.8rem; cursor: pointer; color: #a0aec0; transition: all 0.15s; white-space: nowrap;
}
.palette-item:hover { background: rgba(37,211,102,0.1); color: #25d366; }

/* ===== TEMPLATE BUILDER ===== */
.template-preview {
  background: #075e54; border-radius: 12px; padding: 20px; max-width: 380px;
  font-family: 'Inter', sans-serif;
}
.tpl-bubble { background: #dcf8c6; color: #111b21; border-radius: 12px 12px 12px 4px; padding: 12px 14px; font-size: 0.9rem; line-height: 1.5; }
.tpl-header { font-weight: 700; margin-bottom: 8px; }
.tpl-footer { font-size: 0.78rem; color: #667781; margin-top: 6px; }
.tpl-buttons { margin-top: 4px; }
.tpl-btn { display: block; text-align: center; padding: 8px; background: #25d366; color: white; border-radius: 8px; margin-top: 4px; font-size: 0.85rem; font-weight: 500; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column-reverse; gap: 8px; }
.toast {
  background: #1a1f2e; border: 1px solid #2d3748; border-radius: 10px; padding: 12px 16px;
  font-size: 0.875rem; color: #e2e8f0; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); animation: toastIn 0.3s ease; min-width: 240px; max-width: 380px;
}
.toast.success { border-left: 3px solid #25d366; }
.toast.error { border-left: 3px solid #e53e3e; }
.toast.info { border-left: 3px solid #63b3ed; }
.toast.warning { border-left: 3px solid #f6e05e; }
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:none} }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 16px; justify-content: center; }
.page-btn { width: 32px; height: 32px; border-radius: 8px; background: #2d3748; color: #e2e8f0; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.page-btn:hover,.page-btn.active { background: #25d366; color: white; }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed #2d3748; border-radius: 10px; padding: 32px; text-align: center;
  color: #718096; cursor: pointer; transition: all 0.2s;
}
.upload-zone:hover,.upload-zone.drag-over { border-color: #25d366; background: rgba(37,211,102,0.05); color: #25d366; }
.upload-zone i { font-size: 2rem; display: block; margin-bottom: 8px; }

/* ===== PROGRESS BAR ===== */
.progress-bar { height: 6px; background: #2d3748; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #25d366, #128c7e); border-radius: 3px; transition: width 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -240px; height: 100vh; transition: left 0.3s; }
  .sidebar.mobile-open { left: 0; }
  .mobile-menu-btn { display: block; }
  .crm-sidebar { display: none; }
  .crm-layout { border-radius: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== MISC ===== */
.divider { height: 1px; background: #2d3748; margin: 20px 0; }
.empty-state { text-align: center; padding: 60px 20px; color: #718096; }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 12px; opacity: 0.5; }
.empty-state h3 { color: #a0aec0; margin-bottom: 8px; }
.loading-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #2d3748; border-top-color: #25d366; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #2d3748 25%, #3d4a5c 50%, #2d3748 75%); background-size: 200% 100%; animation: skeleton-load 1.5s infinite; border-radius: 6px; }
@keyframes skeleton-load { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
