/* ==========================================================================
   WhatsApp Cloud Pro CRM Suite - Ultra-Modern Glassmorphic Design System
   ========================================================================== */

:root {
  --bg-dark-0: #060b10;
  --bg-dark-1: #0b131b;
  --bg-dark-2: #111c26;
  --bg-dark-3: #182635;
  --bg-dark-4: #223547;
  --bg-input: #15222f;
  
  --primary: #00d793;
  --primary-glow: #00ffae;
  --primary-dark: #008f5d;
  --primary-grad: linear-gradient(135deg, #00d793 0%, #00a884 50%, #008f5d 100%);
  --primary-subtle: rgba(0, 215, 147, 0.12);
  
  --accent-cyan: #06b6d4;
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  
  --text-pure: #ffffff;
  --text-1: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --text-4: #64748b;
  
  --border-1: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(0, 215, 147, 0.35);
  
  --bubble-in: #182635;
  --bubble-out: #005c4b;
  --bubble-out-grad: linear-gradient(135deg, #005c4b 0%, #00473a 100%);
  
  --danger: #f43f5e;
  --warning: #fbbf24;
  --success: #10b981;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 215, 147, 0.25);
  --glass: blur(16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark-0);
  color: var(--text-1);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  user-select: none;
}

.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at 15% 15%, rgba(0, 215, 147, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 85% 85%, rgba(56, 189, 248, 0.04) 0%, transparent 40%);
}

/* 1. Sidebar Navigation */
.app-navbar {
  width: 80px;
  background: var(--bg-dark-1);
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 16px;
  z-index: 100;
  flex-shrink: 0;
}

.nav-brand {
  margin-bottom: 8px;
}

.nav-logo {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  background: var(--primary-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060b10;
  box-shadow: 0 8px 24px rgba(0, 215, 147, 0.4);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover {
  transform: scale(1.1) rotate(-4deg);
}

.nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: center;
  flex: 1;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-3);
  width: 58px;
  height: 54px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-tab:hover {
  color: var(--text-1);
  background: var(--bg-dark-3);
  transform: translateY(-2px);
}

.nav-tab.active {
  color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: inset 0 0 0 1px rgba(0, 215, 147, 0.3);
}

.nav-tab.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 4px;
  height: 24px;
  border-radius: 0 4px 4px 0;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.nav-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-1);
  padding-top: 14px;
  width: 100%;
  align-items: center;
}

/* 2. Main Content Canvas & Global Header */
.app-main {
  flex: 1;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.global-top-header {
  height: 60px;
  background: var(--bg-dark-1);
  border-bottom: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 50;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-title-badge {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.live-status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-badge {
  background: var(--bg-dark-3);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.contacts-count-pill {
  background: var(--primary-subtle);
  border: 1px solid rgba(0, 215, 147, 0.3);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.content-viewport {
  flex: 1;
  overflow: hidden;
  display: flex;
  position: relative;
}

.tab-view {
  display: none;
  height: 100%;
  width: 100%;
  animation: fadeIn 0.25s ease-out;
}

.tab-view.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   3. TAB 1: Live Chat Inbox & WhatsApp Web CRM
   ========================================================================== */
#view-inbox {
  display: none;
  height: 100%;
  width: 100%;
}
#view-inbox.active {
  display: flex;
}

.chats-sidebar {
  width: 360px;
  background: var(--bg-dark-1);
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-1);
}

.sidebar-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.search-box {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 215, 147, 0.15);
}

.tag-filters {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px 16px;
  overflow-x: auto;
}
.tag-filters::-webkit-scrollbar { display: none; }

.tag-pill {
  background: var(--bg-dark-3);
  border: 1px solid var(--border-1);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.tag-pill.active {
  background: var(--primary-grad);
  color: #060b10;
  font-weight: 700;
  border-color: transparent;
}

.chats-list {
  flex: 1;
  overflow-y: auto;
}
.chats-list::-webkit-scrollbar { width: 5px; }
.chats-list::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 4px; }

.chat-item {
  display: flex;
  padding: 14px 18px;
  gap: 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.15s;
}
.chat-item:hover { background: var(--bg-dark-3); }
.chat-item.active {
  background: rgba(0, 215, 147, 0.08);
  border-left: 3px solid var(--primary);
}

.chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #182635 0%, #0b131b 100%);
  border: 2px solid var(--border-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.chat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.chat-name { font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-time { font-size: 11px; color: var(--text-4); }
.chat-snippet { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Chat Main Area */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #090f15;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 28px 28px;
  height: 100%;
  position: relative;
}

.no-chat-selected {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  text-align: center;
  gap: 16px;
}

.placeholder-icon {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background: var(--bg-dark-2);
  border: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.chat-active-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  padding: 14px 24px;
  background: var(--bg-dark-1);
  border-bottom: 1px solid var(--border-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.chat-user-info { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-grad);
  color: #060b10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 215, 147, 0.35);
}

.chat-user-info h3 { font-size: 15px; font-weight: 700; color: #fff; }
.phone-number { font-size: 12px; color: var(--text-3); font-family: monospace; }
.chat-header-actions { display: flex; align-items: center; gap: 10px; }

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.messages-container::-webkit-scrollbar { width: 6px; }
.messages-container::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 4px; }

.message-bubble {
  max-width: 62%;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
  animation: slideBubble 0.2s ease-out;
}

@keyframes slideBubble {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-bubble.inbound {
  align-self: flex-start;
  background: var(--bubble-in);
  color: #fff;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-1);
}

.message-bubble.outbound {
  align-self: flex-end;
  background: var(--bubble-out-grad);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 92, 75, 0.4);
}

.msg-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.chat-input-bar {
  padding: 16px 24px;
  background: var(--bg-dark-1);
  border-top: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-wrapper { flex: 1; position: relative; }
.input-wrapper textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-full);
  padding: 12px 22px;
  color: #fff;
  font-size: 14px;
  resize: none;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
}
.input-wrapper textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 215, 147, 0.2);
}

.send-btn {
  background: var(--primary-grad);
  border: none;
  color: #060b10;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 215, 147, 0.45);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.send-btn:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 6px 24px rgba(0, 215, 147, 0.6);
}

/* CRM Drawer */
.crm-drawer {
  width: 320px;
  background: var(--bg-dark-1);
  border-left: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 14px;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-1);
  padding-bottom: 12px;
}

/* ==========================================================================
   4. Buttons & Core UI Elements
   ========================================================================== */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--primary-grad);
  color: #060b10;
  box-shadow: 0 4px 16px rgba(0, 215, 147, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 215, 147, 0.5);
}

.btn-secondary {
  background: var(--bg-dark-3);
  color: var(--text-1);
  border: 1px solid var(--border-1);
}
.btn-secondary:hover {
  background: var(--bg-dark-4);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--danger);
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: all 0.15s;
}
.icon-btn:hover { color: #fff; background: var(--bg-dark-3); }

/* ==========================================================================
   5. TAB 2: Contacts & Excel Manager (Interactive Data Table)
   ========================================================================== */
#view-contacts, #view-broadcast, #view-scheduled, #view-bot, #view-canned, #view-analytics {
  flex-direction: column;
  padding: 28px 36px;
  overflow-y: auto;
  flex: 1;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.view-header h2 { font-size: 24px; font-weight: 800; color: #fff; }
.view-header p { font-size: 13px; color: var(--text-3); margin-top: 4px; }

.contacts-toolbar {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contacts-table-container {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.contacts-table th {
  background: var(--bg-dark-1);
  padding: 14px 20px;
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-1);
}

.contacts-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-1);
}

.contacts-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge.pending {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.status-badge.pending::before { background: var(--warning); }

.status-badge.sent {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-badge.sent::before { background: var(--success); }

.status-badge.failed {
  background: rgba(244, 63, 94, 0.12);
  color: var(--danger);
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.status-badge.failed::before { background: var(--danger); }

/* ==========================================================================
   6. TAB 3: 24/7 Cloud Background Broadcaster Cards
   ========================================================================== */
.cloud-campaign-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

.badge-idle {
  background: var(--bg-dark-3);
  color: var(--text-3);
  border: 1px solid var(--border-1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-running {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(0, 215, 147, 0.35);
  animation: pulseNeon 1.5s infinite;
}

@keyframes pulseNeon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.campaign-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-box {
  background: var(--bg-dark-3);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  transition: transform 0.2s;
}
.metric-box:hover { transform: translateY(-2px); }
.metric-box.success { border-bottom: 3px solid var(--success); }
.metric-box.pending { border-bottom: 3px solid var(--warning); }
.metric-box.danger { border-bottom: 3px solid var(--danger); }

.metric-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.metric-val {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  font-family: monospace;
}

.campaign-progress-wrapper {
  margin: 20px 0;
}

.progress-bar-track {
  width: 100%;
  height: 12px;
  background: var(--bg-dark-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-grad);
  border-radius: var(--radius-full);
  box-shadow: 0 0 16px rgba(0, 215, 147, 0.5);
  transition: width 0.4s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  margin-top: 8px;
}

/* Variable helper chips */
.variable-chips {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.var-chip {
  background: var(--bg-dark-3);
  border: 1px solid var(--border-1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s;
}
.var-chip:hover {
  background: var(--primary);
  color: #060b10;
}

/* ==========================================================================
   7. Modals & Login Overlay (Frosted Glassmorphism)
   ========================================================================== */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden, .hidden { display: none !important; }

.modal-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  padding: 30px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-1);
  padding-bottom: 14px;
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: #fff; }

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 22px;
  cursor: pointer;
}
.close-btn:hover { color: #fff; }

.modal-body label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-body input, .modal-body textarea, .modal-body select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.modal-body input:focus, .modal-body textarea:focus, .modal-body select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 215, 147, 0.2);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Login Overlay (Eye-Catching Centered Masterpiece) */
.login-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(6, 11, 16, 0.96);
  backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.login-badge {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--primary-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #060b10;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 215, 147, 0.45);
}

.login-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.login-sub {
  font-size: 13px;
  color: var(--text-3);
}

.login-field {
  text-align: left;
  margin-top: 24px;
}

.login-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper input {
  width: 100% !important;
  padding: 14px 46px 14px 16px !important;
  background: var(--bg-input) !important;
  border: 1px solid var(--border-1) !important;
  border-radius: var(--radius-md) !important;
  color: #fff !important;
  font-size: 15px !important;
  outline: none !important;
  transition: all 0.2s !important;
}

.password-input-wrapper input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 215, 147, 0.2) !important;
}

.pwd-eye-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-3);
  padding: 4px;
}

.login-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-top: 18px;
}

.login-error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  margin-top: 14px;
  text-align: left;
}
