/* ===== WhatsApp Panel Pro - Premium Dark Theme ===== */

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ===== CSS VARIABLES ===== */
:root {
  --wa: #25D366;
  --wa-hover: #1ebe5a;
  --wa-subtle: rgba(37, 211, 102, 0.1);
  --wa-glow: rgba(37, 211, 102, 0.25);
  --bg-0: #09090b;
  --bg-1: #0f1117;
  --bg-2: #161922;
  --bg-3: #1c2030;
  --bg-hover: #1e2235;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --text-1: #f0f2f5;
  --text-2: #a1a8b8;
  --text-3: #6b7280;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(37, 211, 102, 0.15);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wa); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--wa-hover); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes orbMove1 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -40px) scale(1.1); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes orbMove2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(0.9); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes typeIn { from { width: 0; } to { width: 100%; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes msgSlide { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dotBounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.spin { animation: spin 1s linear infinite; }

/* ===== BACKGROUND EFFECTS ===== */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
}
.bg-orb-1 { width: 400px; height: 400px; background: rgba(37, 211, 102, 0.12); top: -100px; right: -100px; animation: orbMove1 15s ease-in-out infinite; }
.bg-orb-2 { width: 300px; height: 300px; background: rgba(59, 130, 246, 0.08); bottom: -50px; left: -50px; animation: orbMove2 18s ease-in-out infinite; }
.bg-orb-3 { width: 200px; height: 200px; background: rgba(168, 85, 247, 0.06); top: 40%; left: 30%; animation: orbMove1 20s ease-in-out infinite; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 100%);
}

/* ===== PUBLIC LANDING PAGE ===== */
.public-landing {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}
.landing-bg { position: absolute; inset: 0; overflow: hidden; }
/* landing-wrapper removed - using hero-inner */

/* Chat Mockup */
.chat-mockup {
  flex-shrink: 0;
  width: 340px;
  animation: fadeInUp 0.8s ease-out;
}
.chat-window {
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.chat-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
}
.chat-header-info { flex: 1; }
.chat-header-name { display: block; font-weight: 600; font-size: 14px; }
.chat-header-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wa); display: inline-block; }
.chat-header-actions { color: var(--text-3); }
.chat-body {
  position: relative;
  min-height: 280px;
  padding: 20px 16px;
}
.chat-bg-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.chat-messages { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}
.chat-bubble.incoming {
  background: var(--bg-3);
  align-self: flex-start;
}
.chat-bubble p { margin: 0; }
.msg-time { display: block; text-align: right; font-size: 10px; color: var(--text-3); margin-top: 4px; }
.anim-msg-1 { animation: msgSlide 0.5s ease-out 0.5s both; }
.anim-msg-2 { animation: msgSlide 0.5s ease-out 1.5s both; }
.anim-msg-3 { animation: msgSlide 0.5s ease-out 2.5s both; }

.typing-indicator {
  display: flex; gap: 4px; padding: 12px 16px;
  background: var(--bg-3);
  border-radius: 12px 12px 12px 4px;
  align-self: flex-start;
  width: fit-content;
}
.typing-dot {
  width: 7px; height: 7px;
  background: var(--text-3);
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.chat-input-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-1);
  border-radius: 20px;
  color: var(--text-3);
  font-size: 13px;
}
.chat-input-actions { color: var(--text-3); font-size: 18px; }

/* Landing Content */
.landing-content { flex: 1; animation: fadeInUp 0.8s ease-out 0.3s both; }
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--wa-subtle);
  border: 1px solid rgba(37, 211, 102, 0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--wa);
  margin-bottom: 20px;
}
.landing-title { font-size: 42px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em; }
.title-line { display: block; }
.title-gradient {
  background: linear-gradient(135deg, var(--wa), #34d058, #7ee787);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-desc { font-size: 16px; color: var(--text-2); line-height: 1.7; margin-bottom: 32px; max-width: 460px; }

/* CTA Button */
.cta-button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--wa), #1ebe5a);
  border-radius: var(--radius-lg);
  color: #fff !important;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: var(--shadow-glow);
  margin-bottom: 32px;
  max-width: 400px;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(37, 211, 102, 0.3);
  color: #fff !important;
}
.cta-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  font-size: 22px;
}
.cta-text { flex: 1; }
.cta-label { display: block; font-weight: 700; font-size: 16px; }
.cta-sub { display: block; font-size: 12px; opacity: 0.8; margin-top: 2px; }
.cta-arrow { font-size: 20px; opacity: 0.6; }

/* Agents */
.agents-section { margin-bottom: 32px; }
.agents-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.agents-title { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.agents-badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  background: var(--wa-subtle);
  color: var(--wa);
  border-radius: 100px;
}
.agents-list { display: flex; flex-direction: column; gap: 8px; }
.agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1);
  text-decoration: none;
  transition: all var(--transition);
  animation: fadeInUp 0.4s ease-out both;
}
.agent-card:hover {
  border-color: var(--wa);
  background: var(--bg-2);
  transform: translateX(4px);
  color: var(--text-1);
}
.agent-avatar {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.agent-info { flex: 1; }
.agent-name { display: block; font-weight: 600; font-size: 13px; }
.agent-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--wa); margin-top: 1px; }
.agent-go { color: var(--wa); font-size: 16px; opacity: 0.5; transition: opacity var(--transition); }
.agent-card:hover .agent-go { opacity: 1; }

/* Trust Bar */
.trust-bar { display: flex; gap: 20px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.trust-item i { color: var(--wa); font-size: 14px; }

/* No Agents */
.no-agents-box {
  padding: 32px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-3);
  margin-bottom: 32px;
}
.no-agents-box i { font-size: 2rem; display: block; margin-bottom: 12px; color: var(--wa); }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}
.login-bg { position: absolute; inset: 0; overflow: hidden; }
.login-container { position: relative; z-index: 1; width: 100%; max-width: 400px; }

.glass-card {
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease-out;
}
.login-brand { text-align: center; margin-bottom: 32px; }
.brand-icon-wrapper { display: flex; justify-content: center; margin-bottom: 16px; }
.brand-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--wa), #1ebe5a);
  border-radius: 18px;
  font-size: 28px;
  color: #fff;
}
.pulse-ring { animation: pulseRing 2s ease-out infinite; }
.login-brand h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.login-brand p { color: var(--text-3); font-size: 13px; }

/* Alert Box */
.alert-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 24px;
}
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; }
.alert-icon { font-size: 16px; }

/* Input Fields - Login */
.input-field {
  position: relative;
  margin-bottom: 16px;
}
.input-field .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 16px;
  z-index: 1;
  transition: color var(--transition);
}
.input-field input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
}
.input-field input::placeholder { color: var(--text-3); }
.input-field input:focus { border-color: var(--wa); background: var(--bg-3); }
.input-field input:focus ~ .input-focus-line { transform: scaleX(1); }
.input-field input:focus + .input-icon,
.input-field input:focus ~ .input-icon { color: var(--wa); }
.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--wa);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--wa), #1ebe5a);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  margin-top: 8px;
}
.login-btn:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.login-btn:disabled { opacity: 0.7; cursor: wait; }
.btn-arrow { transition: transform 0.2s; }
.login-btn:hover .btn-arrow { transform: translateX(4px); }

.login-footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ===== ADMIN LAYOUT ===== */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg-0); }

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1040;
  transition: transform 0.3s ease;
}
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-1);
}
.brand-logo {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--wa), #1ebe5a);
  border-radius: 10px;
  font-size: 18px;
  color: #fff;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-close-btn {
  background: none; border: none;
  color: var(--text-3); cursor: pointer;
  font-size: 18px; padding: 4px;
}
.sidebar-section-label {
  padding: 16px 20px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.sidebar-nav { padding: 0 12px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
  position: relative;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-1); }
.nav-item.active { background: var(--wa-subtle); color: var(--wa); font-weight: 600; }
.nav-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  transition: all var(--transition);
}
.nav-item.active .nav-icon { background: rgba(37, 211, 102, 0.15); color: var(--wa); }
.nav-active-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--wa);
  margin-left: auto;
}
.sidebar-bottom { margin-top: auto; padding: 12px; border-top: 1px solid var(--border); }
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.user-avatar {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; font-size: 10px; color: var(--text-3); }
.user-logout {
  color: var(--text-3);
  font-size: 16px;
  padding: 4px;
  transition: color var(--transition);
}
.user-logout:hover { color: #ef4444; }

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1035;
  backdrop-filter: blur(4px);
}

/* Admin Main */
.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.admin-topbar {
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-menu-btn {
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.topbar-title { flex: 1; }
.topbar-title h1 { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.3; }
.topbar-subtitle { font-size: 12px; color: var(--text-3); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-date { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }

.admin-content { padding: 28px; flex: 1; }

/* ===== PRO BUTTON ===== */
.btn-pro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--wa), #1ebe5a);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-pro:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); color: #fff; }
.btn-pro-sm { padding: 7px 14px; font-size: 12px; }
.btn-pro-lg { padding: 14px 28px; font-size: 15px; }
.btn-pro-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13px; font-weight: 500; font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-pro-ghost:hover { border-color: var(--border-light); background: var(--bg-2); }

/* ===== STAT CARDS PRO ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card-pro {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  overflow: hidden;
}
.stat-card-pro:hover { border-color: var(--border-light); transform: translateY(-2px); }
.stat-card-inner { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.stat-card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  font-size: 20px;
}
.stat-green .stat-card-icon { background: rgba(37, 211, 102, 0.1); color: var(--wa); }
.stat-blue .stat-card-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-orange .stat-card-icon { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.stat-purple .stat-card-icon { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.stat-card-data { flex: 1; }
.stat-number { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat-title { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.stat-card-bar { height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }
.stat-green .stat-bar-fill { background: var(--wa); }
.stat-blue .stat-bar-fill { background: #3b82f6; }
.stat-orange .stat-bar-fill { background: #f97316; }
.stat-purple .stat-bar-fill { background: #a855f7; }

/* ===== CARD PRO ===== */
.card-pro {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-pro-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-pro-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}
.card-pro-title i { color: var(--wa); }
.card-pro-body { padding: 22px; }
.card-pro-highlight {
  border-color: rgba(37, 211, 102, 0.15);
  background: linear-gradient(135deg, var(--bg-1), rgba(37, 211, 102, 0.03));
}

/* ===== PERFORMANCE LIST ===== */
.perf-list { display: flex; flex-direction: column; gap: 10px; }
.perf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  animation: slideIn 0.3s ease-out both;
}
.perf-rank { font-size: 11px; font-weight: 700; color: var(--text-3); width: 20px; text-align: center; }
.perf-avatar {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: #fff; font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.perf-info { flex: 1; min-width: 0; }
.perf-name { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perf-bar-wrap { height: 4px; background: var(--bg-0); border-radius: 2px; overflow: hidden; }
.perf-bar { height: 100%; background: linear-gradient(90deg, var(--wa), #1ebe5a); border-radius: 2px; transition: width 1s ease; min-width: 2px; }
.perf-count { text-align: right; min-width: 60px; }
.perf-count-val { display: block; font-size: 15px; font-weight: 700; color: var(--wa); }
.perf-count-label { display: block; font-size: 10px; color: var(--text-3); }
.perf-status { min-width: 50px; text-align: center; }
.status-badge { font-size: 10px; padding: 3px 8px; border-radius: 100px; font-weight: 600; }
.status-active { background: rgba(37, 211, 102, 0.1); color: var(--wa); }
.status-inactive { background: rgba(107, 114, 128, 0.1); color: var(--text-3); }

/* ===== ACTIVITY FEED ===== */
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  animation: slideIn 0.3s ease-out both;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wa);
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-content { flex: 1; }
.activity-text { display: block; font-size: 13px; color: var(--text-2); }
.activity-text strong { color: var(--text-1); font-weight: 600; }
.activity-time { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ===== QUICK LINK PRO ===== */
.quick-link-pro { display: flex; flex-direction: column; gap: 20px; }
.ql-info { display: flex; gap: 16px; align-items: flex-start; }
.ql-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa-subtle);
  border-radius: var(--radius-md);
  color: var(--wa);
  font-size: 22px;
  flex-shrink: 0;
}
.ql-info h5 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.ql-info p { font-size: 13px; color: var(--text-3); margin: 0; line-height: 1.5; }
.ql-input-wrap { display: flex; gap: 10px; }
.ql-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  outline: none;
}
.ql-copy-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 13px; font-weight: 500; font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.ql-copy-btn:hover { background: var(--wa-subtle); color: var(--wa); border-color: rgba(37, 211, 102, 0.2); }

/* ===== EMPTY STATES ===== */
.empty-state-mini {
  text-align: center; padding: 30px 20px; color: var(--text-3);
}
.empty-state-mini i { font-size: 2rem; display: block; margin-bottom: 10px; opacity: 0.3; }
.empty-state-mini p { font-size: 13px; margin-bottom: 12px; }

.empty-state-pro {
  text-align: center; padding: 60px 20px;
  background: var(--bg-1);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-xl);
}
.empty-icon {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa-subtle);
  border-radius: 24px;
  margin: 0 auto 20px;
  font-size: 32px;
  color: var(--wa);
  animation: float 3s ease-in-out infinite;
}
.empty-state-pro h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state-pro p { color: var(--text-3); font-size: 14px; margin-bottom: 20px; }

/* ===== INFO BANNER ===== */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(37, 211, 102, 0.04);
  border: 1px solid rgba(37, 211, 102, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.info-banner-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa-subtle);
  border-radius: 10px;
  color: var(--wa);
  font-size: 18px;
  flex-shrink: 0;
}
.info-banner-text strong { display: block; font-size: 13px; margin-bottom: 2px; }
.info-banner-text p { font-size: 12px; color: var(--text-3); margin: 0; line-height: 1.5; }

/* ===== NUMBERS GRID ADMIN ===== */
.numbers-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.number-card-admin {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}
.number-card-admin:hover { border-color: var(--border-light); }
.nca-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.nca-avatar {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.nca-info { flex: 1; min-width: 0; }
.nca-label { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nca-phone { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.nca-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
}
.nca-stat { text-align: center; }
.nca-stat-val { display: block; font-size: 16px; font-weight: 700; }
.nca-stat-label { display: block; font-size: 10px; color: var(--text-3); margin-top: 1px; }
.nca-actions { display: flex; gap: 8px; }
.nca-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font-size: 12px; font-family: inherit; font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.nca-btn:hover { background: var(--bg-3); }
.nca-btn-edit:hover { border-color: rgba(59, 130, 246, 0.3); color: #3b82f6; }
.nca-btn-reset { flex: 0; padding: 8px 12px; }
.nca-btn-reset:hover { border-color: rgba(249, 115, 22, 0.3); color: #f97316; }
.nca-btn-delete { flex: 0; padding: 8px 12px; }
.nca-btn-delete:hover { border-color: rgba(239, 68, 68, 0.3); color: #ef4444; }

/* ===== FORM FIELDS PRO ===== */
.input-field-pro { display: flex; flex-direction: column; gap: 6px; }
.input-field-pro label {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
}
.input-field-pro label i { color: var(--text-3); font-size: 13px; }
.input-field-pro input,
.input-field-pro textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
  resize: vertical;
}
.input-field-pro input::placeholder,
.input-field-pro textarea::placeholder { color: var(--text-3); }
.input-field-pro input:focus,
.input-field-pro textarea:focus { border-color: var(--wa); background: var(--bg-3); }
.input-hint { font-size: 11px; color: var(--text-3); }
.color-picker-wrap { display: flex; align-items: center; gap: 10px; }
.color-input {
  width: 44px; height: 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  padding: 2px;
}
.color-value { font-size: 13px; color: var(--text-3); font-family: monospace; }

/* ===== MODAL PRO ===== */
.modal-pro { background: var(--bg-1) !important; border: 1px solid var(--border-light) !important; border-radius: var(--radius-xl) !important; }
.modal-pro .modal-header { border-bottom: 1px solid var(--border) !important; padding: 20px 24px; }
.modal-pro .modal-body { padding: 24px; }
.modal-pro .modal-footer { border-top: 1px solid var(--border) !important; padding: 16px 24px; }
.modal-title-pro { display: flex; align-items: center; gap: 14px; }
.modal-title-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa-subtle);
  border-radius: 10px;
  color: var(--wa);
  font-size: 18px;
}
.modal-title-pro h5 { margin: 0; font-size: 16px; font-weight: 600; }
.modal-title-pro p { margin: 0; font-size: 12px; color: var(--text-3); }
.modal-content { background: var(--bg-1) !important; border: 1px solid var(--border-light) !important; color: var(--text-1); border-radius: var(--radius-xl) !important; }
.modal-header { border-bottom: 1px solid var(--border) !important; }
.modal-footer { border-top: 1px solid var(--border) !important; }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); opacity: 0.6; }

/* ===== TOAST BANNER ===== */
.toast-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  animation: fadeInUp 0.3s ease-out;
}
.toast-success { background: rgba(37, 211, 102, 0.08); border: 1px solid rgba(37, 211, 102, 0.15); color: var(--wa); }
.toast-error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.15); color: #ef4444; }

/* ===== LANDING SECTIONS ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}
.hero-text { flex: 1; animation: fadeInUp 0.8s ease-out 0.3s both; }

/* ===== PREMIUM CONTACT FORM ===== */
.form-section {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}
.form-section-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}
.form-left { animation: fadeInUp 0.6s ease-out; }
.form-left-badge {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  color: #3b82f6;
  font-size: 24px;
  margin-bottom: 20px;
}
.form-left h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.form-left p { font-size: 15px; color: var(--text-3); line-height: 1.7; margin-bottom: 28px; }
.form-features { display: flex; flex-direction: column; gap: 12px; }
.form-feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2); font-weight: 500;
}
.form-feat i { color: var(--wa); font-size: 16px; }

/* Form Card */
.form-right { animation: fadeInUp 0.6s ease-out 0.2s both; }
.premium-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(59, 130, 246, 0.04);
}
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-group { display: flex; flex-direction: column; gap: 6px; }
.pf-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text-2) !important;
  letter-spacing: 0.3px;
}
.pf-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pf-icon {
  position: absolute;
  left: 14px;
  color: var(--text-3);
  font-size: 14px;
  pointer-events: none;
  transition: color var(--transition);
  z-index: 2;
}
.pf-icon-top { top: 14px; }
.pf-input {
  width: 100% !important;
  padding: 13px 14px 13px 42px !important;
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-1) !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif !important;
  outline: none !important;
  transition: all 0.25s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.pf-input::placeholder { color: var(--text-3) !important; opacity: 1 !important; }
.pf-input:focus {
  border-color: #3b82f6 !important;
  background: var(--bg-3) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}
.pf-input:focus + .pf-icon,
.pf-input-wrap:focus-within .pf-icon { color: #3b82f6; }
.pf-textarea {
  resize: vertical !important;
  min-height: 100px;
}
.pf-textarea-wrap { align-items: flex-start; }

/* Submit Button */
.pf-submit {
  width: 100%;
  padding: 15px !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer;
  transition: all 0.3s !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  -webkit-appearance: none !important;
}
.pf-submit:hover { box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35) !important; transform: translateY(-2px); }
.pf-submit:disabled { opacity: 0.7; cursor: wait; transform: none !important; }
.pf-submit-text, .pf-submit-loader { display: inline-flex; align-items: center; gap: 8px; }

/* Success State */
.pf-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.5s ease-out;
}
.pf-success-circle {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--wa), #1ebe5a);
  border-radius: 50%;
  font-size: 32px;
  color: #fff;
  margin-bottom: 20px;
  animation: pulseRing 2s ease-out infinite;
}
.pf-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pf-success p { font-size: 14px; color: var(--text-3); margin-bottom: 24px; line-height: 1.6; }
.pf-again {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13px; font-weight: 500; font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.pf-again:hover { background: var(--bg-hover); border-color: var(--border-light); }

/* ===== AGENTS SECTION FULL ===== */
.agents-section-full {
  position: relative;
  z-index: 1;
  padding: 60px 24px 80px;
}
.agents-section-inner { max-width: 900px; margin: 0 auto; }
.agents-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.agents-section-header h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.agents-section-header h2 i { color: var(--wa); }
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.agent-card-pro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-1);
  transition: all 0.3s;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out both;
}
.agent-card-pro:hover { border-color: var(--wa); transform: translateY(-4px); color: var(--text-1); }
.agent-card-pro:hover .acp-glow { opacity: 1; }
.acp-glow {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.15), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.acp-avatar {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  color: #fff; font-weight: 800; font-size: 18px;
  margin-bottom: 10px;
}
.acp-name { font-weight: 600; font-size: 13px; margin-bottom: 4px; text-align: center; }
.acp-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--wa); margin-bottom: 12px; }
.acp-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  background: var(--wa-subtle);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--wa);
  transition: all var(--transition);
}
.agent-card-pro:hover .acp-btn { background: var(--wa); color: #fff; }

/* ===== LIVECHAT STYLE TABLE (Admin Messages) ===== */
.lc-tabs-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  padding: 0 28px;
  background: var(--bg-1);
  overflow-x: auto;
}
.lc-tab {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lc-tab:hover { color: var(--text-1); }
.lc-tab.active { color: var(--text-1); border-bottom-color: #3b82f6; font-weight: 600; }
.lc-tab-count { font-size: 11px; color: var(--text-3); }
.lc-count-hot {
  background: #ef4444 !important;
  color: #fff !important;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.lc-table-wrap { overflow-x: auto; }
.lc-table {
  width: 100%;
  border-collapse: collapse;
}
.lc-table thead th {
  padding: 12px 20px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--text-3) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border) !important;
  background: var(--bg-1) !important;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.lc-table tbody td {
  padding: 14px 20px !important;
  font-size: 13px !important;
  border-bottom: 1px solid var(--border) !important;
  vertical-align: middle;
  background: transparent !important;
  color: var(--text-1) !important;
}
.lc-row { transition: background var(--transition); }
.lc-row:hover { background: rgba(255,255,255,0.02); }
.lc-row-new { background: rgba(59, 130, 246, 0.03); }
.lc-row-new:hover { background: rgba(59, 130, 246, 0.06); }

/* User Cell */
.lc-user { display: flex; align-items: center; gap: 12px; }
.lc-avatar {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.lc-user-info { display: flex; flex-direction: column; }
.lc-user-name { font-weight: 600; font-size: 13px; color: var(--text-1); }
.lc-user-email { font-size: 11px; color: var(--text-3); }
.lc-phone-link { color: var(--text-2); text-decoration: none; font-size: 13px; }
.lc-phone-link:hover { color: var(--wa); }
.lc-subject { color: var(--text-2); font-size: 13px; }

/* Action Button */
.lc-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.lc-action-btn:hover { background: #2563eb; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3); }

/* Status */
.lc-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
}
.lc-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.lc-status-new .lc-status-dot { background: #3b82f6; }
.lc-status-new { color: #3b82f6; }
.lc-status-read .lc-status-dot { background: #f59e0b; }
.lc-status-read { color: #f59e0b; }
.lc-status-replied .lc-status-dot { background: var(--wa); }
.lc-status-replied { color: var(--wa); }
.lc-status-closed .lc-status-dot { background: var(--text-3); }
.lc-status-closed { color: var(--text-3); }

.lc-date { display: block; font-size: 12px; color: var(--text-2); }
.lc-time { display: block; font-size: 11px; color: var(--text-3); }

/* Icon Buttons */
.lc-actions-group { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.lc-icon-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
  background: transparent;
  color: var(--text-3);
}
.lc-icon-wa:hover { background: rgba(37, 211, 102, 0.1); color: var(--wa); }
.lc-icon-delete:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.lc-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-3);
}
.lc-empty i { font-size: 3rem; opacity: 0.15; display: block; margin-bottom: 14px; }
.lc-empty h4 { font-size: 16px; color: var(--text-2); margin-bottom: 6px; }

/* Modal Detail Extras */
.md-info-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.md-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  background: var(--bg-2);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-2);
}
.md-chip i { font-size: 11px; color: var(--text-3); }
.md-message-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.md-message-label {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.md-message-label i { color: var(--wa); }
.md-message-text { padding: 18px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.md-bottom-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.md-status-wrap { display: flex; align-items: center; gap: 8px; }
.md-status-wrap label { font-size: 12px; font-weight: 600; color: var(--text-3); }
.md-status-select {
  padding: 7px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.md-wa-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: var(--wa);
  border-radius: var(--radius-sm);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.md-wa-btn:hover { background: var(--wa-hover); color: #fff; box-shadow: var(--shadow-glow); }
.md-note-wrap { display: flex; flex-direction: column; gap: 8px; }
.md-note-wrap label { font-size: 12px; font-weight: 600; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.md-note-wrap textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  resize: vertical;
}
.md-note-wrap textarea:focus { border-color: #3b82f6; }
.md-note-save {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 12px; font-family: inherit; cursor: pointer;
  transition: all var(--transition);
}
.md-note-save:hover { background: rgba(59, 130, 246, 0.08); color: #3b82f6; border-color: rgba(59, 130, 246, 0.2); }

/* ===== CALL CENTER PANEL ===== */
.cc-layout { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg-0); }
.cc-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cc-topbar-left { display: flex; align-items: center; }
.cc-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.cc-brand-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 8px; color: #fff; font-size: 14px;
}
.cc-topbar-right { display: flex; align-items: center; gap: 12px; }
.cc-operator { display: flex; align-items: center; gap: 8px; }
.cc-op-avatar {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px; color: #fff; font-size: 11px; font-weight: 700;
}
.cc-op-name { font-size: 13px; font-weight: 500; color: var(--text-2); }
.cc-logout-btn { color: var(--text-3); font-size: 16px; padding: 6px; transition: color 0.2s; }
.cc-logout-btn:hover { color: #ef4444; }

.cc-body { display: flex; flex: 1; overflow: hidden; }

/* CC Sidebar */
.cc-sidebar {
  width: 340px;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.cc-filter-bar {
  display: flex; gap: 2px; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
}
.cc-filter {
  padding: 6px 12px;
  font-size: 12px; font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.cc-filter:hover { background: rgba(255,255,255,0.04); color: var(--text-1); }
.cc-filter.active { background: rgba(59, 130, 246, 0.1); color: #3b82f6; font-weight: 600; }
.cc-badge-hot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 10px; padding: 0 5px; margin-left: 4px;
}

.cc-msg-list { flex: 1; overflow-y: auto; }
.cc-msg-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-1);
  transition: background var(--transition);
  position: relative;
}
.cc-msg-item:hover { background: rgba(255,255,255,0.02); color: var(--text-1); }
.cc-msg-item.cc-msg-selected { background: rgba(59, 130, 246, 0.06); border-left: 3px solid #3b82f6; }
.cc-msg-item.cc-msg-new { background: rgba(59, 130, 246, 0.02); }
.cc-msg-avatar {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.cc-msg-content { flex: 1; min-width: 0; }
.cc-msg-top-row { display: flex; justify-content: space-between; margin-bottom: 2px; }
.cc-msg-name { font-weight: 600; font-size: 13px; }
.cc-msg-new .cc-msg-name { font-weight: 700; }
.cc-msg-time { font-size: 10px; color: var(--text-3); }
.cc-msg-subject { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-msg-preview { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.cc-msg-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; flex-shrink: 0; margin-top: 6px; }
.cc-list-empty { text-align: center; padding: 40px; color: var(--text-3); }
.cc-list-empty i { font-size: 2rem; opacity: 0.15; display: block; margin-bottom: 8px; }

/* CC Chat Area */
.cc-chat-area { flex: 1; display: flex; flex-direction: column; background: var(--bg-0); }
.cc-chat-header {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cc-chat-back {
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-2); width: 34px; height: 34px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cc-chat-user { display: flex; align-items: center; gap: 12px; flex: 1; }
.cc-chat-avatar {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.cc-chat-name { display: block; font-weight: 700; font-size: 14px; }
.cc-chat-meta { display: block; font-size: 11px; color: var(--text-3); }
.cc-chat-actions { display: flex; align-items: center; gap: 8px; }
.cc-btn-wa {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--wa); border-radius: 8px;
  color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 600;
  transition: all 0.2s;
}
.cc-btn-wa:hover { background: var(--wa-hover); color: #fff; box-shadow: var(--shadow-glow); }
.cc-select-status {
  padding: 8px 12px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-1); font-size: 12px; font-family: inherit; outline: none;
}

.cc-chat-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.cc-info-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  background: var(--bg-2); border-radius: 100px;
  font-size: 11px; color: var(--text-3);
}
.cc-chip i { font-size: 10px; }

/* Chat Bubbles */
.cc-bubble { max-width: 75%; padding: 14px 18px; border-radius: 16px; animation: msgSlide 0.3s ease-out; }
.cc-bubble-in {
  background: var(--bg-1); border: 1px solid var(--border);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.cc-bubble-out {
  background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.12);
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.cc-bubble-sender { font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.cc-bubble-sender span { font-weight: 400; color: var(--text-3); }
.cc-bubble-subject { font-size: 12px; font-weight: 600; color: #3b82f6; margin-bottom: 4px; }
.cc-bubble-body { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.cc-bubble-time { font-size: 10px; color: var(--text-3); text-align: right; margin-top: 4px; }

/* Chat Input */
.cc-chat-input {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 14px 20px;
  background: var(--bg-1); border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cc-chat-input textarea {
  flex: 1; padding: 12px 14px;
  background: var(--bg-2) !important; border: 1px solid var(--border) !important;
  border-radius: 12px !important; color: var(--text-1) !important;
  font-size: 13px !important; font-family: inherit !important;
  outline: none !important; resize: none;
  min-height: 44px; max-height: 120px;
  transition: border-color 0.2s;
}
.cc-chat-input textarea::placeholder { color: var(--text-3) !important; }
.cc-chat-input textarea:focus { border-color: #3b82f6 !important; }
.cc-input-btns { display: flex; gap: 6px; }
.cc-send-note, .cc-send-wa, .cc-send-main {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 10px;
  color: #fff; font-size: 16px; cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.cc-send-note { background: #6366f1; }
.cc-send-note:hover { background: #4f46e5; }
.cc-send-wa { background: var(--wa); }
.cc-send-wa:hover { background: var(--wa-hover); color: #fff; }
.cc-send-main { background: #3b82f6; }
.cc-send-main:hover { background: #2563eb; }

.cc-chat-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-3);
}
.cc-chat-empty-icon { font-size: 4rem; opacity: 0.1; margin-bottom: 16px; }
.cc-chat-empty h3 { font-size: 18px; color: var(--text-2); margin-bottom: 6px; }

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-0);
}
.error-code { font-size: 100px; font-weight: 900; color: var(--wa); opacity: 0.15; line-height: 1; }
.error-message { font-size: 16px; color: var(--text-3); margin-bottom: 24px; }

/* ===== FORM OVERRIDES (Bootstrap) ===== */
.form-check-input { background-color: var(--bg-2); border-color: var(--border-light); cursor: pointer; }
.form-check-input:checked { background-color: var(--wa); border-color: var(--wa); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-sidebar { display: none; }
  .cc-sidebar.mobile-show { display: flex; position: fixed; inset: 0; z-index: 1050; width: 100%; }
}

@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .admin-main { margin-left: 0; }
  /* panel eski stiller kaldirildi */

  .hero-inner { flex-direction: column; text-align: center; }
  .chat-mockup { width: 100%; max-width: 340px; }
  .hero-text { text-align: center; }
  .landing-desc { margin-left: auto; margin-right: auto; }
  .cta-button { margin-left: auto; margin-right: auto; }
  .trust-bar { justify-content: center; }
  .form-section-inner { grid-template-columns: 1fr; }
  .form-left { text-align: center; }
  .form-features { align-items: center; }
}

@media (max-width: 767.98px) {
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 12px 16px; flex-wrap: wrap; }
  .lc-tabs-bar { overflow-x: auto; padding: 0 16px; }
  .cc-sidebar { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card-pro { padding: 14px; }
  .stat-number { font-size: 20px; }
  .stat-card-icon { width: 38px; height: 38px; font-size: 16px; }
  .numbers-grid-admin { grid-template-columns: 1fr; }
  .perf-item { flex-wrap: wrap; }
  .perf-status { display: none; }
  .landing-title { font-size: 30px; }
  .chat-mockup { max-width: 300px; }
  .ql-input-wrap { flex-direction: column; }
  .pf-row { grid-template-columns: 1fr; }
  .premium-form { padding: 24px; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .landing-title { font-size: 26px; }
  .cta-button { max-width: 100%; }
  .glass-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card-inner { flex-direction: column; text-align: center; gap: 8px; }
  .topbar-date { display: none; }
  .form-left h2 { font-size: 24px; }
  .agents-grid { grid-template-columns: 1fr 1fr; }
}
