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

/* ═══════════════════════════════════════════════════════════════
   🎨 SMART SAUDI STORES SUITE — PREMIUM DARK THEME v4.0
   Design: Glassmorphism + Neon Accents + Gradient Mesh
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Core Backgrounds ── */
  --bg-root:        #050812;
  --bg-main:        #07091a;
  --bg-card:        rgba(13, 17, 38, 0.85);
  --bg-card-solid:  #0d1126;
  --bg-card-hover:  rgba(20, 26, 58, 0.9);
  --bg-glass:       rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  /* ── Brand Colors ── */
  --primary:        #6366f1;
  --primary-light:  #818cf8;
  --primary-dark:   #4f46e5;
  --primary-glow:   rgba(99, 102, 241, 0.25);
  --primary-dim:    rgba(99, 102, 241, 0.08);

  --accent-cyan:    #22d3ee;
  --accent-violet:  #a78bfa;
  --accent-pink:    #f472b6;
  --accent-emerald: #34d399;
  --accent-amber:   #fbbf24;

  /* ── Semantic Colors ── */
  --success:        #10b981;
  --success-glow:   rgba(16, 185, 129, 0.25);
  --warning:        #f59e0b;
  --warning-glow:   rgba(245, 158, 11, 0.25);
  --danger:         #ef4444;
  --danger-glow:    rgba(239, 68, 68, 0.25);
  --secondary:      #475569;

  /* ── Borders ── */
  --border-color:   rgba(99, 102, 241, 0.12);
  --border-muted:   rgba(255, 255, 255, 0.06);
  --border-focus:   #6366f1;
  --border-glass:   rgba(255, 255, 255, 0.08);

  /* ── Text ── */
  --text-main:      #e2e8f0;
  --text-bright:    #f8fafc;
  --text-muted:     #64748b;
  --text-dim:       #334155;

  /* ── Shadows & Effects ── */
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.6);
  --shadow-glow:    0 0 30px rgba(99, 102, 241, 0.15);
  --shadow-hover:   0 8px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.1);

  /* ── Radius ── */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  /* ── Transitions ── */
  --tr-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-base:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow:   0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════
   BASE RESET & GLOBALS
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.5); }

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans Arabic', 'Outfit', sans-serif;
  background-color: var(--bg-root);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(167, 139, 250, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */

header {
  background: rgba(7, 9, 26, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.875rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 0 rgba(99, 102, 241, 0.1), 0 4px 32px rgba(0, 0, 0, 0.4);
}

/* Subtle header shimmer line at top */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent-cyan), transparent);
  opacity: 0.6;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.logo-icon {
  width: 2.4rem;
  height: 2.4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), 0 2px 8px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fff, var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text p {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 1px;
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--tr-base);
  border: 1px solid transparent;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35), 0 1px 3px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5), 0 2px 6px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glass);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text-bright);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════════ */

main {
  flex: 1;
  padding: 1.75rem 2rem;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1200px) {
  main { grid-template-columns: 1fr; }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS — Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: all var(--tr-base);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
  opacity: 0;
  transition: opacity var(--tr-base);
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-bright);
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 0.75rem;
}

.card-title i {
  color: var(--primary-light);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  background: rgba(5, 8, 18, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  transition: all var(--tr-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(5, 8, 18, 0.9);
  color: var(--text-bright);
}

.form-control::placeholder { color: var(--text-dim); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  background-size: 1rem;
  padding-left: 2.4rem;
}

/* ═══════════════════════════════════════════════════════════════
   PLATFORM CHECKBOXES
   ═══════════════════════════════════════════════════════════════ */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.platform-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: all var(--tr-fast);
  font-size: 0.82rem;
}

.platform-checkbox:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.25);
}

.platform-checkbox input { display: none; }

.platform-checkbox.active {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
}

.checkbox-custom {
  width: 0.9rem;
  height: 0.9rem;
  border: 1.5px solid var(--text-muted);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
  flex-shrink: 0;
}

.platform-checkbox.active .checkbox-custom {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.platform-checkbox.active .checkbox-custom::after {
  content: "✓";
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD CONTENT
   ═══════════════════════════════════════════════════════════════ */

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: all var(--tr-base);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0.7;
}

.stat-card.primary::after  { background: linear-gradient(90deg, var(--primary), var(--accent-violet)); }
.stat-card.success::after  { background: linear-gradient(90deg, var(--success), var(--accent-cyan)); }
.stat-card.warning::after  { background: linear-gradient(90deg, var(--warning), var(--accent-amber)); }
.stat-card.secondary::after { background: linear-gradient(90deg, var(--secondary), #94a3b8); }

.stat-card::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0.05;
  transition: opacity var(--tr-base);
}

.stat-card.primary::before  { background: var(--primary); }
.stat-card.success::before  { background: var(--success); }
.stat-card.warning::before  { background: var(--warning); }
.stat-card.secondary::before { background: var(--secondary); }

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.stat-card:hover::before { opacity: 0.1; }

.stat-info h3 {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-info p {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 0.25rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text-bright);
  line-height: 1;
}

.stat-icon {
  font-size: 1.6rem;
  opacity: 0.7;
}

.stat-card.primary .stat-icon  { color: var(--primary-light); }
.stat-card.success .stat-icon  { color: var(--accent-emerald); }
.stat-card.warning .stat-icon  { color: var(--accent-amber); }
.stat-card.secondary .stat-icon { color: #94a3b8; }

/* ═══════════════════════════════════════════════════════════════
   TERMINAL / LOG
   ═══════════════════════════════════════════════════════════════ */

.terminal-card {
  background: rgba(2, 4, 10, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), inset 0 0 60px rgba(99, 102, 241, 0.02);
}

.terminal-header {
  background: rgba(10, 14, 30, 0.95);
  border-bottom: 1px solid var(--border-muted);
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-title {
  font-family: 'Outfit', monospace;
  font-size: 0.75rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.terminal-controls { display: flex; gap: 0.4rem; }

.terminal-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  transition: opacity var(--tr-fast);
}

.terminal-dot:hover { opacity: 0.7; }
.dot-red    { background: #ff5f57; box-shadow: 0 0 6px rgba(255, 95, 87, 0.5); }
.dot-yellow { background: #febc2e; box-shadow: 0 0 6px rgba(254, 188, 46, 0.5); }
.dot-green  { background: #28c840; box-shadow: 0 0 6px rgba(40, 200, 64, 0.5); }

.terminal-body {
  height: 200px;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  font-family: 'Outfit', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.log-line { display: block; }

.log-info    { color: #60a5fa; }
.log-success { color: var(--accent-emerald); }
.log-warning { color: var(--accent-amber); }
.log-error   { color: #f87171; }
.log-system  { color: var(--accent-violet); }

/* ═══════════════════════════════════════════════════════════════
   TABLE CARD
   ═══════════════════════════════════════════════════════════════ */

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.table-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.table-search { max-width: 280px; }

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.84rem;
}

th {
  background: rgba(10, 14, 30, 0.8);
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  color: var(--text-main);
  transition: background var(--tr-fast);
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

tr:hover td {
  background: rgba(99, 102, 241, 0.06) !important;
}

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-platform {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-contact {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-no-contact {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT LINKS
   ═══════════════════════════════════════════════════════════════ */

.contact-links {
  display: flex;
  gap: 0.3rem;
}

.contact-link {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: all var(--tr-fast);
}

.contact-link:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.contact-link.whatsapp:hover  { background: #25d366; border-color: #25d366; box-shadow: 0 4px 12px rgba(37,211,102,0.3); }
.contact-link.instagram:hover { background: #e1306c; border-color: #e1306c; box-shadow: 0 4px 12px rgba(225,48,108,0.3); }
.contact-link.twitter:hover   { background: #000; border-color: #333; }
.contact-link.snapchat:hover  { background: #fffc00; border-color: #fffc00; color: #000; }
.contact-link.tiktok:hover    { background: #010101; border-color: #69c9d0; }
.contact-link.email:hover     { background: #ea4335; border-color: #ea4335; box-shadow: 0 4px 12px rgba(234,67,53,0.3); }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-base);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: rgba(10, 14, 36, 0.96);
  backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99,102,241,0.08), var(--shadow-glow);
  transform: scale(0.93) translateY(10px);
  transition: transform var(--tr-slow);
  position: relative;
  overflow: hidden;
}

/* Modal top accent */
.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan), var(--accent-violet));
}

.modal-backdrop.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.01em;
}

.modal-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
}

.modal-close:hover {
  color: var(--text-bright);
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   LOADER
   ═══════════════════════════════════════════════════════════════ */

.loader {
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  width: 1.1rem;
  height: 1.1rem;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

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

/* ═══════════════════════════════════════════════════════════════
   TAB NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.tab-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0.25rem 0;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--border-muted);
  border-bottom: none;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: all var(--tr-base);
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

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

.tab-btn.active {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-violet));
  border-radius: 999px 999px 0 0;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.tab-badge {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: #fff;
  font-size: 0.62rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  min-width: 1.2rem;
  text-align: center;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

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

/* ═══════════════════════════════════════════════════════════════
   PRIORITY BADGES
   ═══════════════════════════════════════════════════════════════ */

.badge-priority-high {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.1) !important;
}

.badge-priority-medium {
  background: rgba(245, 158, 11, 0.12) !important;
  color: var(--accent-amber) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.badge-priority-low {
  background: rgba(16, 185, 129, 0.12) !important;
  color: var(--accent-emerald) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

/* ═══════════════════════════════════════════════════════════════
   LEAD PITCH REASONS
   ═══════════════════════════════════════════════════════════════ */

#lead-pitch-reasons {
  list-style: none;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#lead-pitch-reasons li {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-muted);
}

#lead-pitch-reasons li.reason-positive    { border-right: 3px solid var(--success); background: rgba(16,185,129,0.05); }
#lead-pitch-reasons li.reason-opportunity { border-right: 3px solid var(--primary); background: rgba(99,102,241,0.05); }
#lead-pitch-reasons li.reason-negative    { border-right: 3px solid var(--danger);  background: rgba(239,68,68,0.05); }
#lead-pitch-reasons li.reason-info        { border-right: 3px solid var(--text-muted); background: rgba(100,116,139,0.05); }

/* ═══════════════════════════════════════════════════════════════
   TABLE ACTIONS
   ═══════════════════════════════════════════════════════════════ */

.table-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.table-actions .btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }
  .logo-container { justify-content: center; }
  .nav-actions { flex-direction: column; width: 100%; gap: 0.4rem; }
  .nav-actions .btn { width: 100%; }
  main { padding: 1rem; gap: 1rem; }

  .tab-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
    gap: 0.25rem;
    row-gap: 0.25rem;
    padding-bottom: 0;
    margin-bottom: 1rem;
  }
  .tab-btn { font-size: 0.78rem; padding: 0.5rem 0.7rem; }

  .social-leads-header { flex-direction: column; align-items: stretch !important; text-align: center; padding: 1rem !important; gap: 1rem !important; }
  .social-leads-header div { text-align: center; }
  .social-leads-header .btn { width: 100%; justify-content: center; }
  .filter-panel { flex-direction: column; align-items: stretch !important; gap: 1rem !important; padding: 1rem !important; }
  .filter-panel > div { flex-direction: column; align-items: stretch !important; width: 100% !important; gap: 0.75rem !important; }
  .filter-panel .filter-group { width: 100%; justify-content: space-between; display: flex; align-items: center; }
  .filter-panel .filter-group select { width: 60% !important; }
  .filter-panel input.table-search { max-width: none !important; width: 100% !important; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE TABLE → CARDS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .table-container { border: none; background: transparent; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-card);
  }
  tr:hover td { background: none; }
  td {
    border: none;
    border-bottom: 1px solid var(--border-muted);
    padding: 0.6rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: normal;
    text-align: left;
  }
  td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-align: right;
    margin-left: 1rem;
    flex-shrink: 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  td a { word-break: break-all; max-width: 65%; text-align: left; }
  td:last-child { border-bottom: none; padding-bottom: 0; margin-top: 0.5rem; }
  td[data-label="إجراءات"], td[data-label="إجراءات التسويق"] { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  td[data-label="إجراءات"]::before, td[data-label="إجراءات التسويق"]::before { text-align: right; margin-bottom: 0.5rem; margin-left: 0; width: 100%; }
  .table-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .table-actions .btn { width: 100% !important; justify-content: center; padding: 0.5rem 0.8rem; font-size: 0.8rem; }
  td[data-label="التوصية التسويقية الأساسية"] { white-space: normal !important; max-width: none !important; overflow: visible !important; text-align: left; display: block; width: 100%; }
}

@media (max-width: 600px) {
  .table-header { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .table-filters { flex-direction: column; width: 100%; }
  .table-filters select, .table-filters input.table-search { width: 100% !important; max-width: none !important; }
}

@media (max-width: 480px) {
  main { padding: 0.75rem; gap: 0.75rem; }
  .card { padding: 1rem; border-radius: var(--radius-md); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .stat-card { padding: 0.85rem 1rem; border-radius: var(--radius-md); }
  .stat-info p { font-size: 1.4rem; }
  .stat-icon { font-size: 1.3rem; }
  .terminal-body { height: 150px; padding: 0.75rem; }
  .platform-checkbox { padding: 0.45rem 0.5rem; font-size: 0.78rem; }
  .modal { padding: 1.25rem; border-radius: var(--radius-lg); margin: 0 12px; width: calc(100% - 24px); }
  .modal-title { font-size: 1rem; }
  .modal > div:last-child { flex-direction: column !important; gap: 0.75rem !important; }
  .modal > div:last-child > button, .modal > div:last-child > a { width: 100% !important; flex: none !important; }
  .pagination { flex-direction: column; gap: 0.75rem; align-items: stretch; }
  .pagination button { width: 100%; }
  .pagination span { text-align: center; order: -1; }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP COLUMN WIDTHS
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 1025px) {
  table { table-layout: fixed; width: 100%; }

  #content-dashboard table { min-width: 1000px; }
  #content-leads table { min-width: 1000px; }
  #content-directories table { min-width: 1200px; }
  #content-social-audit table { min-width: 1100px; }
  #content-ssl-warnings table { min-width: 900px; }
  #content-whatsapp-campaign table { min-width: 900px; }
  #content-radar table { min-width: 1000px; }

  th, td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Dashboard */
  #stores-tbody td:nth-child(2), #content-dashboard table thead th:nth-child(2) { width: 25%; }
  #stores-tbody td:nth-child(3), #content-dashboard table thead th:nth-child(3) { width: 10%; }
  #stores-tbody td:nth-child(4), #content-dashboard table thead th:nth-child(4) { width: 15%; }
  #stores-tbody td:nth-child(5), #content-dashboard table thead th:nth-child(5) { width: 10%; }
  #stores-tbody td:nth-child(6), #content-dashboard table thead th:nth-child(6) { width: 15%; }
  #stores-tbody td:nth-child(7), #content-dashboard table thead th:nth-child(7) { width: 10%; }

  /* Social */
  #social-tbody td:nth-child(1), #content-social-audit table thead th:nth-child(1) { width: 15%; }
  #social-tbody td:nth-child(2), #content-social-audit table thead th:nth-child(2) { width: 8%; }
  #social-tbody td:nth-child(3), #content-social-audit table thead th:nth-child(3) { width: 17%; }
  #social-tbody td:nth-child(4), #content-social-audit table thead th:nth-child(4) { width: 13%; }
  #social-tbody td:nth-child(5), #content-social-audit table thead th:nth-child(5) { width: 8%; }
  #social-tbody td:nth-child(6), #content-social-audit table thead th:nth-child(6) { width: 24%; }
  #social-tbody td:nth-child(7), #content-social-audit table thead th:nth-child(7) { width: 15%; }
  #social-tbody td:nth-child(6) { white-space: normal !important; }

  /* Directories */
  #directories-tbody td:nth-child(1), #content-directories table thead th:nth-child(1) { width: 15%; }
  #directories-tbody td:nth-child(2), #content-directories table thead th:nth-child(2) { width: 20%; }
  #directories-tbody td:nth-child(3), #content-directories table thead th:nth-child(3) { width: 10%; }
  #directories-tbody td:nth-child(4), #content-directories table thead th:nth-child(4) { width: 15%; }
  #directories-tbody td:nth-child(5), #content-directories table thead th:nth-child(5) { width: 15%; }
  #directories-tbody td:nth-child(6), #content-directories table thead th:nth-child(6) { width: 10%; }
  #directories-tbody td:nth-child(7), #content-directories table thead th:nth-child(7) { width: 10%; }
  #directories-tbody td:nth-child(8), #content-directories table thead th:nth-child(8) { width: 5%; }

  /* Leads */
  #leads-tbody td:nth-child(1), #content-leads table thead th:nth-child(1) { width: 8%; }
  #leads-tbody td:nth-child(2), #content-leads table thead th:nth-child(2) { width: 18%; }
  #leads-tbody td:nth-child(3), #content-leads table thead th:nth-child(3) { width: 22%; }
  #leads-tbody td:nth-child(4), #content-leads table thead th:nth-child(4) { width: 15%; }
  #leads-tbody td:nth-child(5), #content-leads table thead th:nth-child(5) { width: 10%; }
  #leads-tbody td:nth-child(6), #content-leads table thead th:nth-child(6) { width: 10%; }
  #leads-tbody td:nth-child(7), #content-leads table thead th:nth-child(7) { width: 17%; }

  /* SSL */
  #ssl-warnings-tbody td:nth-child(1), #content-ssl-warnings table thead th:nth-child(1) { width: 20%; }
  #ssl-warnings-tbody td:nth-child(2), #content-ssl-warnings table thead th:nth-child(2) { width: 30%; }
  #ssl-warnings-tbody td:nth-child(3), #content-ssl-warnings table thead th:nth-child(3) { width: 15%; }
  #ssl-warnings-tbody td:nth-child(4), #content-ssl-warnings table thead th:nth-child(4) { width: 10%; }
  #ssl-warnings-tbody td:nth-child(5), #content-ssl-warnings table thead th:nth-child(5) { width: 13%; }
  #ssl-warnings-tbody td:nth-child(6), #content-ssl-warnings table thead th:nth-child(6) { width: 12%; }

  /* Campaign */
  #campaign-queue-body td:nth-child(1), #content-whatsapp-campaign table thead th:nth-child(1) { width: 20%; }
  #campaign-queue-body td:nth-child(2), #content-whatsapp-campaign table thead th:nth-child(2) { width: 15%; }
  #campaign-queue-body td:nth-child(3), #content-whatsapp-campaign table thead th:nth-child(3) { width: 40%; }
  #campaign-queue-body td:nth-child(4), #content-whatsapp-campaign table thead th:nth-child(4) { width: 10%; }
  #campaign-queue-body td:nth-child(5), #content-whatsapp-campaign table thead th:nth-child(5) { width: 15%; }

  /* Radar */
  #radar-results-body td:nth-child(1), #content-radar table thead th:nth-child(1) { width: 18%; }
  #radar-results-body td:nth-child(2), #content-radar table thead th:nth-child(2) { width: 25%; }
  #radar-results-body td:nth-child(3), #content-radar table thead th:nth-child(3) { width: 10%; }
  #radar-results-body td:nth-child(4), #content-radar table thead th:nth-child(4) { width: 15%; }
  #radar-results-body td:nth-child(5), #content-radar table thead th:nth-child(5) { width: 10%; }
  #radar-results-body td:nth-child(6), #content-radar table thead th:nth-child(6) { width: 12%; }
  #radar-results-body td:nth-child(7), #content-radar table thead th:nth-child(7) { width: 10%; }
}

/* ═══════════════════════════════════════════════════════════════
   TOGGLE SWITCH
   ═══════════════════════════════════════════════════════════════ */

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.06);
  transition: var(--tr-base);
  border: 1px solid var(--border-muted);
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  transition: var(--tr-base);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
  background: #fff;
}

.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* ═══════════════════════════════════════════════════════════════
   SEO LEAD CARDS
   ═══════════════════════════════════════════════════════════════ */

.seo-lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--tr-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.seo-lead-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  border-radius: 0;
}

.seo-lead-card.severity-critical::before { background: linear-gradient(180deg, #ef4444, #dc2626); }
.seo-lead-card.severity-poor::before     { background: linear-gradient(180deg, #f59e0b, #d97706); }
.seo-lead-card.severity-unaudited::before { background: var(--secondary); }

.seo-lead-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.seo-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.seo-card-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-bright);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.seo-card-url {
  font-size: 0.7rem;
  color: var(--primary-light);
  text-decoration: none;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 200px;
}

.seo-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border-muted);
  min-width: 50px;
}

.seo-score-badge .score-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.seo-score-badge .score-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.05em;
}

.seo-score-badge.critical .score-num { color: #f87171; }
.seo-score-badge.poor .score-num     { color: var(--accent-amber); }
.seo-score-badge.unaudited .score-num { color: var(--text-muted); font-size: 0.85rem; }

.seo-card-issues { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.seo-card-issues li { font-size: 0.75rem; color: #fca5a5; display: flex; align-items: flex-start; gap: 0.4rem; line-height: 1.4; }
.seo-card-issues li::before { content: '✗'; color: #ef4444; font-weight: 700; flex-shrink: 0; margin-top: 0.05rem; }

.seo-card-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.seo-meta-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  white-space: nowrap;
}

.seo-meta-tag.has-whatsapp { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: var(--accent-emerald); }
.seo-meta-tag.platform     { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.2); color: var(--primary-light); }

.seo-card-actions { display: flex; gap: 0.4rem; margin-top: 0.25rem; }

.btn-seo-audit {
  flex: 1;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.06);
  color: var(--primary-light);
  cursor: pointer;
  transition: all var(--tr-fast);
  font-family: inherit;
}

.btn-seo-audit:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.btn-seo-whatsapp {
  flex: 1;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  cursor: pointer;
  transition: all var(--tr-fast);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-seo-whatsapp:hover {
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

.btn-seo-whatsapp:disabled {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-seo-pitch {
  flex: 1;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.06);
  color: #fca5a5;
  cursor: pointer;
  transition: all var(--tr-fast);
  font-family: inherit;
}

.btn-seo-pitch:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   RADAR ANIMATION
   ═══════════════════════════════════════════════════════════════ */

.radar-visual {
  position: relative;
  width: 130px;
  height: 130px;
  background: rgba(99, 102, 241, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.radar-circle {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: radar-pulse 3s linear infinite;
  box-sizing: border-box;
}

.radar-circle.delayed { animation-delay: 1.5s; }

.radar-scanner {
  z-index: 2;
  width: 52px;
  height: 52px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: radar-scan-icon 4s ease-in-out infinite alternate;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

@keyframes radar-pulse {
  0%   { transform: scale(0.2); opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes radar-scan-icon {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   STARS / RATING
   ═══════════════════════════════════════════════════════════════ */

.fa-star.fa-solid { color: var(--accent-amber); filter: drop-shadow(0 0 4px rgba(251,191,36,0.4)); }
.fa-star.fa-regular { color: rgba(255, 255, 255, 0.15); }
.fa-star:hover { color: var(--accent-amber) !important; }

/* ═══════════════════════════════════════════════════════════════
   CRM / ANALYTICS COLUMN WIDTHS OVERRIDE
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 1025px) {
  #stores-tbody td:nth-child(1), #content-dashboard table thead th:nth-child(1) { width: 4% !important; }
  #stores-tbody td:nth-child(2), #content-dashboard table thead th:nth-child(2) { width: 14% !important; }
  #stores-tbody td:nth-child(3), #content-dashboard table thead th:nth-child(3) { width: 20% !important; }
  #stores-tbody td:nth-child(4), #content-dashboard table thead th:nth-child(4) { width: 8% !important; }
  #stores-tbody td:nth-child(5), #content-dashboard table thead th:nth-child(5) { width: 14% !important; }
  #stores-tbody td:nth-child(6), #content-dashboard table thead th:nth-child(6) { width: 8% !important; }
  #stores-tbody td:nth-child(7), #content-dashboard table thead th:nth-child(7) { width: 12% !important; }
  #stores-tbody td:nth-child(8), #content-dashboard table thead th:nth-child(8) { width: 10% !important; }
  #stores-tbody td:nth-child(9), #content-dashboard table thead th:nth-child(9) { width: 10% !important; }
}

/* ═══════════════════════════════════════════════════════════════
   CHARTS CONTAINER
   ═══════════════════════════════════════════════════════════════ */

.charts-container { margin-top: 1.5rem; }
.charts-container .card { transition: all var(--tr-base); }
.charts-container .card:hover { border-color: rgba(99, 102, 241, 0.3); box-shadow: var(--shadow-hover); }

/* ═══════════════════════════════════════════════════════════════
   KANBAN BOARD — Premium
   ═══════════════════════════════════════════════════════════════ */

.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  align-items: flex-start;
  padding: 0.25rem 0 0.75rem;
  direction: rtl;
}

.kanban-column {
  flex: 1;
  min-width: 265px;
  background: rgba(7, 9, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: 750px;
  transition: all var(--tr-base);
  backdrop-filter: blur(8px);
}

.kanban-column.drag-over {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-muted);
  background: rgba(10, 14, 30, 0.6);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  backdrop-filter: blur(12px);
}

.column-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.column-count {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.kanban-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem;
  overflow-y: auto;
  min-height: 200px;
  scrollbar-width: thin;
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: grab;
  user-select: none;
  transition: all var(--tr-base);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.kanban-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), transparent);
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.kanban-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.kanban-card:hover::before { opacity: 1; }
.kanban-card:active { cursor: grabbing; }

.kanban-card.dragging {
  opacity: 0.35;
  border: 1px dashed var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.kanban-card-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.kanban-card-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.kanban-card-actions {
  display: flex;
  gap: 0.35rem;
  border-top: 1px solid var(--border-muted);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.kanban-card-actions .btn {
  flex: 1;
  padding: 0.3rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   GLOW UTILITIES & EXTRA POLISH
   ═══════════════════════════════════════════════════════════════ */

/* Neon text helper */
.text-glow-primary { color: var(--primary-light); text-shadow: 0 0 12px rgba(99, 102, 241, 0.6); }
.text-glow-cyan    { color: var(--accent-cyan); text-shadow: 0 0 12px rgba(34, 211, 238, 0.5); }
.text-glow-emerald { color: var(--accent-emerald); text-shadow: 0 0 12px rgba(52, 211, 153, 0.5); }

/* Pulse animation for live indicators */
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: pulse-live 2s ease-in-out infinite;
}

/* Subtle entrance animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card, .stat-card, .seo-lead-card, .kanban-card {
  animation: fadeInUp 0.3s ease both;
}

/* Prevent animation re-runs on interaction */
.card:hover, .stat-card:hover, .seo-lead-card:hover, .kanban-card:hover {
  animation: none;
}

/* Selection colors */
::selection { background: rgba(99, 102, 241, 0.3); color: #fff; }


/* ============================================================
   💀 LOADING SKELETON ANIMATIONS (Phase 2)
   ============================================================ */
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 12px;
  margin: 6px 0;
  background: linear-gradient(90deg, #0d1126 25%, #1d2449 50%, #0d1126 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-badge {
  display: inline-block;
  width: 60px;
  height: 20px;
  background: linear-gradient(90deg, #0d1126 25%, #1d2449 50%, #0d1126 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 12px;
}

/* ============================================================
   📱 MOBILE KANBAN — Stack to Single Column (768px-)
   ============================================================ */
@media (max-width: 768px) {
  .kanban-board {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .kanban-column {
    min-width: 100%;
    max-height: none;
  }
  
  .kanban-cards-container {
    max-height: 400px;
  }
  
  .kanban-card {
    padding: 0.7rem;
  }
}

/* ============================================================
   📱 MOBILE KANBAN — Single Card View (480px-)
   ============================================================ */
@media (max-width: 480px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
  
  .kanban-column-header {
    padding: 0.6rem 0.8rem;
  }
  
  .column-title {
    font-size: 0.78rem;
  }
  
  .kanban-card-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .kanban-card-actions {
    flex-direction: column;
  }
  
  .kanban-card-actions .btn {
    flex: none;
    width: 100%;
  }
}

/* ============================================================
   📊 MOBILE CHARTS — Responsive Heights
   ============================================================ */
@media (max-width: 768px) {
  #stores-distribution-chart,
  #platform-chart,
  #seo-score-chart {
    height: 250px !important;
  }
}

@media (max-width: 480px) {
  #stores-distribution-chart,
  #platform-chart,
  #seo-score-chart {
    height: 200px !important;
  }
}

/* ============================================================
   🍔 MOBILE NAVIGATION — Hamburger Menu
   ============================================================ */
@media (max-width: 1024px) {
  #mobile-menu-toggle {
    display: block !important;
  }
  
  .nav-actions .btn:not(#mobile-menu-toggle) {
    display: none !important;
  }
  
  .mobile-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 9, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .mobile-nav-menu.active {
    display: flex;
  }
}

#mobile-menu-toggle {
  display: none;
}
