/* 
  BoxChat - Modern Premium Styling Sheet
  Design Style: Dark Slate, Glassmorphism, Neon Accents, Smooth Transitions, Glowing Effects
*/

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

:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette - Cyberpunk Neon Slate & Glowing Violet */
  --bg-deep: #06070a;
  --bg-dark: #0b0d16;
  --bg-card: rgba(15, 18, 36, 0.75);
  --bg-card-hover: rgba(23, 27, 51, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(0, 242, 254, 0.4);
  
  --text-main: #f3f4f6;
  --text-color: var(--text-main);
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  --primary: #8b5cf6; /* Neon Purple */
  --primary-hover: #7c3aed;
  --primary-glow: rgba(139, 92, 246, 0.4);
  
  --accent: #ff007f; /* Hot Pink */
  --accent-hover: #e00070;
  --accent-glow: rgba(255, 0, 127, 0.4);
  
  --cyan: #00f2fe; /* Cyber Cyan */
  --cyan-glow: rgba(0, 242, 254, 0.35);

  --zalo-color: #0084ff; /* Zalo Blue */
  --zalo-glow: rgba(0, 132, 255, 0.4);
  
  --success: #10b981; /* Emerald */
  --warning: #f59e0b; /* Amber */
  --danger: #ef4444;  /* Red */
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --glass-filter: blur(20px);
}

/* Light theme overrides */
:root[data-theme="light"] {
  --bg-deep: #f8fafc;
  --bg-dark: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(241, 245, 249, 0.9);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-glow: rgba(124, 58, 237, 0.3);
  
  --text-main: #0f172a;
  --text-color: var(--text-main);
  --text-muted: #64748b;
  --text-dark: #ffffff;
  
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-glow: rgba(124, 58, 237, 0.15);
  
  --accent: #db2777;
  --accent-hover: #be185d;
  --accent-glow: rgba(219, 39, 119, 0.15);
  
  --cyan: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.15);
  
  --box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
}

/* Premium VIP Cards and Hover States Overrides in Light Mode */
:root[data-theme="light"] .pricing-card {
  background: var(--bg-dark);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}

:root[data-theme="light"] .pricing-card h3 {
  color: var(--text-main);
}

:root[data-theme="light"] .pricing-card.trial {
  background: linear-gradient(135deg, #ffffff 0%, #ecfeff 100%) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08) !important;
  animation: trialPulseLight 3s infinite ease-in-out !important;
}

:root[data-theme="light"] .pricing-card.premium {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%) !important;
  border-color: rgba(219, 39, 119, 0.25) !important;
  box-shadow: 0 10px 30px rgba(219, 39, 119, 0.08) !important;
}

:root[data-theme="light"] .pricing-price {
  color: var(--text-main) !important;
}

:root[data-theme="light"] .pricing-price span {
  color: var(--text-muted) !important;
}

:root[data-theme="light"] .pricing-features li {
  color: var(--text-muted) !important;
}

:root[data-theme="light"] .pricing-features li::before {
  color: var(--primary) !important;
  text-shadow: none !important;
}

/* VIP Dashboard cards overrides in light mode */
:root[data-theme="light"] #vip-status-action .glass-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}

:root[data-theme="light"] #vip-status-action .glass-card:nth-child(2) {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%) !important;
  border-color: rgba(124, 58, 237, 0.2) !important;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.06) !important;
}

:root[data-theme="light"] #vip-status-action .glass-card:nth-child(3) {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%) !important;
  border-color: rgba(219, 39, 119, 0.2) !important;
  box-shadow: 0 10px 30px rgba(219, 39, 119, 0.06) !important;
}

:root[data-theme="light"] #vip-status-action div[style*="color: #fff"] {
  color: var(--text-main) !important;
}

/* Buttons in Light Mode */
:root[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .btn-cyan {
  color: #ffffff;
}

/* Sidebar & Navigation in Light Mode */
:root[data-theme="light"] .sidebar-link {
  color: var(--text-muted);
}

:root[data-theme="light"] .sidebar-link:hover {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

:root[data-theme="light"] .sidebar-link:hover > span:first-child {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.08);
}

:root[data-theme="light"] .sidebar-link.active {
  color: var(--primary) !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(219, 39, 119, 0.06) 100%) !important;
  border: 1px solid rgba(124, 58, 237, 0.18) !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.05) !important;
}

:root[data-theme="light"] .sidebar-link.active > span:first-child {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2) !important;
}

/* Stat Cards in Light Mode */
:root[data-theme="light"] .stat-val {
  background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

:root[data-theme="light"] .stat-card:hover .stat-val {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

:root[data-theme="light"] .stat-card:hover {
  border-color: rgba(124, 58, 237, 0.2) !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.06) !important;
}

/* Glass Card Hovers in Light Mode */
:root[data-theme="light"] .glass-card:hover {
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.06);
}

/* Conversation List Items in Light Mode */
:root[data-theme="light"] .conversation-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .conversation-item:hover {
  background: rgba(124, 58, 237, 0.04) !important;
}

:root[data-theme="light"] .inbox-container {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .chat-list-panel {
  background: #ffffff !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .conversation-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .conversation-item:hover {
  background: rgba(124, 58, 237, 0.04) !important;
}

:root[data-theme="light"] .conversation-item.active {
  background: rgba(124, 58, 237, 0.08) !important;
  border-left: 4px solid var(--primary) !important;
}

:root[data-theme="light"] .conv-name {
  color: var(--text-main) !important;
}

:root[data-theme="light"] .badge-unread {
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.25) !important;
}

:root[data-theme="light"] .chat-view-panel {
  background: #f8fafc !important;
}

:root[data-theme="light"] .chat-empty-state i,
:root[data-theme="light"] .chat-empty-state span {
  text-shadow: none !important;
  color: var(--primary) !important;
}

:root[data-theme="light"] .chat-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .chat-messages {
  background-color: #f8fafc !important;
}

:root[data-theme="light"] .chat-messages::-webkit-scrollbar-thumb,
:root[data-theme="light"] .conversation-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .chat-messages::-webkit-scrollbar-thumb:hover,
:root[data-theme="light"] .conversation-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.15) !important;
}

:root[data-theme="light"] .msg-wrapper.visitor .msg-bubble {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  color: var(--text-main) !important;
}

:root[data-theme="light"] .msg-wrapper.agent .msg-bubble {
  background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%) !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15) !important;
}

:root[data-theme="light"] .chat-input-area {
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .chat-input {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--text-main) !important;
}

:root[data-theme="light"] .chat-input:focus {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12) !important;
}

@keyframes trialPulseLight {
  0% {
    box-shadow: 0 8px 30px 0 rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
  }
  50% {
    box-shadow: 0 8px 35px 0 rgba(2, 132, 199, 0.18);
    border-color: rgba(2, 132, 199, 0.5);
  }
  100% {
    box-shadow: 0 8px 30px 0 rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
  }
}

/* Embed Website Tab Overrides in Light Mode */
:root[data-theme="light"] .code-box {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .code-box-header {
  color: #64748b !important;
}

:root[data-theme="light"] .btn-copy {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

:root[data-theme="light"] .btn-copy:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2) !important;
}

:root[data-theme="light"] code:not(#embed-code-snippet) {
  background: rgba(124, 58, 237, 0.08) !important;
  color: var(--primary) !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}

:root[data-theme="light"] body {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(219, 39, 119, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.03) 0%, transparent 50%);
}

:root[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .nav-links a:hover {
  color: var(--primary) !important;
  text-shadow: none !important;
}

@media (max-width: 768px) {
  :root[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98) !important;
  }
  :root[data-theme="light"] .nav-menu .nav-links a {
    color: var(--text-main) !important;
  }
}

:root[data-theme="light"] .sidebar {
  background: #ffffff !important;
  border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 4px 0 30px rgba(15, 23, 42, 0.04) !important;
}

:root[data-theme="light"] .sidebar-logo {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

:root[data-theme="light"] .logo {
  color: var(--text-main) !important;
}

:root[data-theme="light"] .sidebar-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

:root[data-theme="light"] .sidebar-link > span:first-child {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: var(--text-main) !important;
}

:root[data-theme="light"] .user-badge {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .user-badge:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .user-badge .avatar,
:root[data-theme="light"] .user-badge #user-avatar {
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2) !important;
}

:root[data-theme="light"] .badge-vip {
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25) !important;
}

:root[data-theme="light"] .auth-container {
  background: radial-gradient(circle at center, rgba(200, 210, 230, 0.4) 0%, var(--bg-deep) 100%);
}

:root[data-theme="light"] .glass-card::before {
  background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.01) 80%);
}

:root[data-theme="light"] .logo-dot {
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

:root[data-theme="light"] .form-control {
  background: rgba(0, 0, 0, 0.02);
}

:root[data-theme="light"] .form-control:focus {
  background: rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .user-badge {
  background: rgba(0, 0, 0, 0.02);
}

:root[data-theme="light"] .user-badge:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Admin User List Table in Light Mode */
:root[data-theme="light"] .admin-table-container {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

:root[data-theme="light"] .admin-table th,
:root[data-theme="light"] .admin-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: var(--text-main) !important;
}

:root[data-theme="light"] .admin-table th {
  background: rgba(0, 0, 0, 0.02) !important;
  color: var(--text-muted) !important;
  font-weight: 700 !important;
}

:root[data-theme="light"] .admin-table tr:hover {
  background: rgba(124, 58, 237, 0.03) !important;
}

:root[data-theme="light"] .admin-table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Form controls & selects inside tables */
:root[data-theme="light"] .admin-table .form-control,
:root[data-theme="light"] .admin-table select {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: var(--text-main) !important;
}

:root[data-theme="light"] .admin-table .form-control:focus,
:root[data-theme="light"] .admin-table select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12) !important;
}

/* All selects in light mode */
:root[data-theme="light"] select.form-control,
:root[data-theme="light"] select {
  background-color: #ffffff !important;
  color: var(--text-main) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Stat cards in admin */
:root[data-theme="light"] .stat-card {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

/* Toast Notification in Light Mode */
:root[data-theme="light"] .toast {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
  color: var(--text-main) !important;
}

:root[data-theme="light"] .toast-success {
  border-left: 4px solid var(--success) !important;
}

:root[data-theme="light"] .toast-error {
  border-left: 4px solid var(--danger) !important;
}

/* Dashboard header in light mode */
:root[data-theme="light"] .dashboard-main {
  background-color: var(--bg-deep) !important;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 127, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* Typography & Layout Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #00f2fe 0%, #8b5cf6 50%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite alternate;
  background-size: 200% auto;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02) 80%);
  z-index: 1;
}

.glass-card:hover {
  border-color: var(--border-color-glow);
  box-shadow: 0 12px 40px 0 var(--cyan-glow);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 14px;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px 0 var(--primary-glow), 0 0 12px 0 var(--cyan-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-glow);
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 14px 0 var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px 0 var(--accent-glow), 0 0 16px 0 rgba(255, 0, 127, 0.5);
  filter: brightness(1.1);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan) 0%, #00b4d8 100%);
  color: #06070a;
  box-shadow: 0 4px 14px 0 var(--cyan-glow);
  border: none;
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px 0 var(--cyan-glow), 0 0 16px 0 rgba(0, 242, 254, 0.6);
  filter: brightness(1.1);
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
  font-size: 16px;
  outline: none;
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-glow);
  transform: translateY(-1px);
  box-shadow: 0 0 10px var(--cyan-glow);
}

:root[data-theme="light"] .btn-theme-toggle {
  background: rgba(0, 0, 0, 0.03);
}

:root[data-theme="light"] .btn-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn-zalo {
  background: linear-gradient(135deg, var(--zalo-color) 0%, #006ee0 100%);
  color: white;
  box-shadow: 0 4px 14px 0 var(--zalo-glow);
  animation: zaloPulse 2s infinite;
}

.btn-zalo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px 0 var(--zalo-glow), 0 0 15px 0 rgba(0, 132, 255, 0.6);
  filter: brightness(1.15);
}

@keyframes zaloPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); box-shadow: 0 4px 18px 0 rgba(0, 132, 255, 0.6), 0 0 10px 0 rgba(0, 132, 255, 0.4); }
  100% { transform: scale(1); }
}

/* Form Fields */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

/* LANDING PAGE SPECIFIC */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: var(--glass-filter);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 7, 10, 0.85);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 102;
}

.logo-dot {
  width: 12px;
  height: 12px;
  background-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan), 0 0 20px var(--cyan);
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 8px var(--cyan); }
  100% { transform: scale(1.2); box-shadow: 0 0 16px var(--cyan), 0 0 25px var(--cyan); }
}

/* Hamburger Toggle Button - Hidden on Desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 102;
  transition: var(--transition);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.nav-toggle:hover span {
  background: var(--cyan);
}

/* Animated X state */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent);
}

/* Nav Menu - Desktop: inline flex. Mobile: collapsible overlay */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-glow);
}

/* Hero Section */
.hero {
  padding: 120px 8% 80px 8%;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(30px);
}

.hero h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Features Grid */
.features {
  padding: 60px 8%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 36px;
  text-align: left;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Pricing Section */
.pricing {
  padding: 80px 8%;
  text-align: center;
}

.pricing-title {
  margin-bottom: 48px;
  font-size: 36px;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  padding: 48px 32px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.pricing-card.premium {
  border-color: var(--accent);
  box-shadow: 0 8px 32px 0 var(--accent-glow);
  background: linear-gradient(135deg, rgba(15, 18, 36, 0.75) 0%, rgba(25, 15, 36, 0.8) 100%);
}

.pricing-card.trial {
  border-color: var(--cyan);
  box-shadow: 0 8px 32px 0 var(--cyan-glow);
  background: linear-gradient(135deg, rgba(15, 18, 36, 0.75) 0%, rgba(10, 25, 30, 0.8) 100%);
  animation: trialPulse 3s infinite ease-in-out;
}

@keyframes trialPulse {
  0% {
    box-shadow: 0 8px 32px 0 var(--cyan-glow);
    border-color: rgba(0, 242, 254, 0.4);
  }
  50% {
    box-shadow: 0 8px 40px 0 rgba(0, 242, 254, 0.65);
    border-color: rgba(0, 242, 254, 0.85);
  }
  100% {
    box-shadow: 0 8px 32px 0 var(--cyan-glow);
    border-color: rgba(0, 242, 254, 0.4);
  }
}

.pricing-card.trial::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-card.premium::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(20px);
}

/* pricing-card.premium::before (ribbon) has been removed */

.pricing-price {
  font-size: 42px;
  font-weight: 700;
  margin: 24px 0;
  display: flex;
  align-items: baseline;
  color: #fff;
}

.pricing-price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
}

.pricing-features {
  list-style: none;
  margin: 32px 0;
}

.pricing-features li {
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: bold;
  text-shadow: 0 0 5px var(--cyan);
}

/* AUTH PORTAL SPECIFIC */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(30, 34, 56, 0.4) 0%, var(--bg-deep) 100%);
}

.auth-card {
  width: 100%;
  max-width: 450px;
  padding: 48px;
  border-color: var(--border-color);
}

.auth-card:hover {
  border-color: var(--border-color-glow);
  box-shadow: 0 0 35px var(--cyan-glow);
}

.auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* DASHBOARD LAYOUT SPECIFIC */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(11, 13, 22, 0.95) 100%);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 10;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--cyan) 50%, var(--accent) 100%);
  opacity: 0.8;
}

.sidebar-logo {
  margin-bottom: 40px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-menu {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-item {
  margin-bottom: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.sidebar-link > span:first-child {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.sidebar-link > span:last-child {
  transition: transform 0.3s ease;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.sidebar-link:hover > span:first-child {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.2);
  transform: scale(1.08);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.sidebar-link:hover > span:last-child {
  transform: translateX(2px);
}

.sidebar-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(255, 0, 127, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 
    0 4px 20px rgba(139, 92, 246, 0.12),
    inset 0 0 12px rgba(0, 242, 254, 0.05);
}

.sidebar-link.active > span:first-child {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.sidebar-link.active > span:last-child {
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--primary) 100%);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px var(--cyan);
}

.sidebar-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.user-badge:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

.user-info {
  overflow: hidden;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-vip {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* Main Dashboard Panel */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 40px;
  background-color: var(--bg-deep);
  min-height: 100vh;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dashboard-tab-content {
  display: none;
  animation: fadeInTab 0.4s ease forwards;
}

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

.dashboard-tab-content.active {
  display: block;
}

/* Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.stat-val {
  font-size: 32px;
  font-weight: 700;
  margin: 12px 0 4px 0;
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:hover .stat-val {
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   LIVE CHAT MODULE (INBOX)
   ========================================== */
.inbox-container {
  display: flex;
  height: calc(100vh - 160px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(10, 11, 22, 0.6);
}

.inbox-container:hover {
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  border-color: var(--border-color);
}

/* Chat Sidebar (Conversation list) */
.chat-list-panel {
  width: 320px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: rgba(8, 10, 20, 0.85);
}

.chat-list-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.chat-list-header h3 {
  font-size: 18px;
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

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

.conversation-item.active {
  background: rgba(139, 92, 246, 0.09);
  border-left: 4px solid var(--primary);
}

.conversation-item-details {
  flex: 1;
  overflow: hidden;
  margin-left: 12px;
}

.conv-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.conv-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

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

.conv-preview {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  margin-right: 8px;
}

.status-dot.closed {
  background: var(--text-muted);
  box-shadow: none;
}

.badge-unread {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  right: 20px;
  bottom: 16px;
  box-shadow: 0 0 8px var(--accent);
}

/* Chat Main View */
.chat-view-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(6, 7, 12, 0.2);
}

.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.chat-empty-state i, .chat-empty-state span {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.chat-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 10, 20, 0.85);
}

.chat-header-info {
  display: flex;
  align-items: center;
}

.chat-header-title {
  font-size: 16px;
  font-weight: 600;
}

.chat-header-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.msg-wrapper.visitor {
  align-self: flex-start;
}

.msg-wrapper.agent {
  align-self: flex-end;
}

.msg-bubble {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.msg-wrapper.visitor .msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.msg-wrapper.agent .msg-bubble {
  background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.msg-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
}

.msg-wrapper.agent .msg-meta {
  text-align: right;
}

/* Chat Input Area */
.chat-input-area {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: rgba(8, 10, 20, 0.85);
}

.chat-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition);
}

.chat-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-glow);
}

.typing-indicator-text {
  font-size: 12px;
  color: var(--text-muted);
  height: 18px;
  margin-bottom: 4px;
  padding-left: 4px;
  font-style: italic;
}

/* ==========================================
   WIDGET CONFIGURATION MODULE
   ========================================== */
.config-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.config-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.question-list-edit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.question-item-edit {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.btn-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--danger);
  color: white;
}

/* Widget Live Preview Container */
.preview-container {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

/* Simulated Widget UI inside Admin Panel */
.widget-mockup {
  width: 340px;
  height: 500px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
}

.mock-header {
  padding: 16px 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
}

.mock-status {
  font-size: 11px;
  opacity: 0.8;
}

.mock-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  color: var(--text-dark);
}

.mock-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.mock-msg.incoming {
  background: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.mock-msg.outgoing {
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.mock-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.mock-faq-item {
  background: white;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--primary);
  font-weight: 500;
  text-align: center;
}

.mock-faq-item:hover {
  background: #f1f5f9;
}

.mock-footer {
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
}

.mock-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  outline: none;
}

.mock-send {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================
   INSTALLATION SECTION
   ========================================== */
.code-box {
  background: #040508;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  position: relative;
  margin: 20px 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  overflow-x: auto;
  color: var(--cyan);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* ==========================================
   ADMIN PORTAL USER LIST
   ========================================== */
.admin-table-container {
  overflow-x: auto;
  margin-top: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color-glow);
  box-shadow: 0 8px 32px 0 var(--cyan-glow);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .config-layout {
    grid-template-columns: 1fr;
  }
  
  .preview-container {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  /* Show hamburger button */
  .nav-toggle {
    display: flex;
  }

  /* Mobile nav-menu: full-width dropdown overlay */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 7, 10, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .nav-menu .nav-links a {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
  }

  .nav-menu .btn {
    font-size: 16px;
    padding: 14px 36px;
  }

  /* Dashboard sidebar collapse */
  .sidebar {
    width: 70px;
    padding: 24px 8px;
  }
  
  .sidebar-logo, .user-info, .sidebar-link span {
    display: none;
  }
  
  .dashboard-main {
    margin-left: 70px;
    padding: 20px;
  }
  
  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
  }
  
  .pricing-grid {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    min-width: 100%;
  }
  
  .inbox-container {
    flex-direction: column;
    height: calc(100vh - 120px);
  }
  
  .chat-list-panel {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 16px 5%;
  }

  .hero {
    padding: 80px 5% 60px 5%;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .features {
    padding: 40px 5%;
    grid-template-columns: 1fr;
  }

  .pricing {
    padding: 40px 5%;
  }

  .pricing-title {
    font-size: 26px;
  }

  .pricing-price {
    font-size: 32px;
  }
}
