/* =============================
   LinkGuard Download - Main CSS
   ============================= */

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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #0ea5e9;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --dark: #0f172a;
  --dark-card: #1e293b;
  --dark-border: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --bg-dark: #0a0f1e;
  --bg-card: #111827;
  --bg-input: #1e2d3d;
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  padding: 0 24px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.15);
}

.nav-badge {
  background: var(--gradient-1);
  color: white;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.nav-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 20px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.2) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 80% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title .gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- URL INPUT BOX ---- */
.url-box {
  background: var(--bg-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.url-box.scanning {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.url-input-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.url-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  outline: none;
  direction: ltr;
  transition: var(--transition);
}

.url-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.url-input::placeholder {
  color: var(--text-muted);
  direction: ltr;
}

.btn-scan {
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-scan:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-scan:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.url-hints {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.url-hint-label {
  font-size: 12px;
  color: var(--text-muted);
}

.url-hint-chip {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--text-secondary);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  direction: ltr;
}

.url-hint-chip:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

/* ---- SCAN PROGRESS ---- */
.scan-progress {
  display: none;
  margin-top: 20px;
}

.scan-progress.active {
  display: block;
}

.scan-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.scan-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.scan-step.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
}

.scan-step.done {
  color: var(--success);
}

.scan-step.failed {
  color: var(--danger);
}

.step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.step-icon.pending { background: var(--dark-border); }
.step-icon.spinning { background: rgba(99, 102, 241, 0.2); animation: spin 1s linear infinite; }
.step-icon.done { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.step-icon.failed { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

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

/* ---- STATS ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- RESULT CARD ---- */
.result-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow-card);
  animation: slideIn 0.4s ease;
}

.result-card.visible {
  display: block;
}

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

.verdict-banner {
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.verdict-banner.allow {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.verdict-banner.review {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.verdict-banner.reject-policy {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.verdict-banner.reject-security {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.verdict-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.verdict-title {
  font-size: 18px;
  font-weight: 800;
}

.verdict-reason {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.6;
}

.verdict-banner.allow .verdict-title { color: var(--success); }
.verdict-banner.review .verdict-title { color: var(--warning); }
.verdict-banner.reject-policy .verdict-title { color: var(--primary-light); }
.verdict-banner.reject-security .verdict-title { color: var(--danger); }

.result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.meta-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 12px;
}

.meta-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  direction: ltr;
}

.risk-bars {
  margin-bottom: 20px;
}

.risk-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.risk-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  width: 140px;
  flex-shrink: 0;
}

.risk-bar-track {
  flex: 1;
  height: 6px;
  background: var(--dark-border);
  border-radius: 3px;
  overflow: hidden;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.risk-bar-fill.safe { background: var(--success); }
.risk-bar-fill.low { background: #86efac; }
.risk-bar-fill.medium { background: var(--warning); }
.risk-bar-fill.high { background: var(--danger); }

.risk-bar-score {
  font-size: 12px;
  font-weight: 700;
  width: 36px;
  text-align: left;
}

.btn-download {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn-report {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-report:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ---- FEATURES SECTION ---- */
.section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  background: var(--bg-card);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  counter-reset: steps;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-num {
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-glow);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- SUPPORTED TYPES ---- */
.types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.type-badge {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.type-badge.allowed { border-color: rgba(34, 197, 94, 0.3); color: var(--success); }
.type-badge.blocked { border-color: rgba(239, 68, 68, 0.3); color: var(--danger); }

/* ---- FOOTER ---- */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--dark-border);
  padding: 40px 20px 20px;
  text-align: center;
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--primary-light); }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 100px 20px 40px;
  text-align: center;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* ---- CARDS CONTAINER ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- TABLES ---- */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dark-border);
}

.table-title {
  font-size: 16px;
  font-weight: 700;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  padding: 12px 16px;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--dark-border);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- BADGES ---- */
.badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

.badge-allow { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.badge-review { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-reject { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-policy { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }

/* ---- ADMIN DASHBOARD ---- */
.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 65px;
}

.admin-sidebar {
  width: 240px;
  background: var(--bg-card);
  border-left: 1px solid var(--dark-border);
  position: fixed;
  top: 65px;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 20px 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.1);
}

.admin-nav-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 20px 20px 8px;
}

.admin-main {
  flex: 1;
  margin-right: 240px;
  padding: 30px;
}

.admin-header {
  margin-bottom: 28px;
}

.admin-header h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

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

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: attr(data-icon);
  position: absolute;
  bottom: -8px;
  left: 0;
  font-size: 60px;
  opacity: 0.06;
}

.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
}

.kpi-change {
  font-size: 12px;
  margin-top: 4px;
}

.kpi-change.up { color: var(--success); }
.kpi-change.down { color: var(--danger); }

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.chart-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- POLICY RULES ---- */
.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.policy-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy-list li::before {
  content: attr(data-icon);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- FORMS ---- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-control option { background: var(--bg-card); }

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

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

.btn-secondary:hover { background: rgba(255,255,255,0.08); }

/* ---- TOAST ---- */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-card);
  animation: toastIn 0.3s ease;
  min-width: 280px;
}

.toast.success { border-color: rgba(34, 197, 94, 0.4); }
.toast.error { border-color: rgba(239, 68, 68, 0.4); }
.toast.info { border-color: rgba(99, 102, 241, 0.4); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- MODAL ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 500px;
  width: 100%;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  margin-right: auto;
  transition: var(--transition);
}

.modal-close:hover { color: var(--text-primary); }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 60px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 16px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--dark-border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  font-family: 'Cairo', sans-serif;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover,
.page-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border-color: rgba(99, 102, 241, 0.3);
}

/* ---- SEARCH BAR ---- */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  outline: none;
  transition: var(--transition);
}

.search-input:focus { border-color: var(--primary); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-right: 0; padding: 16px; }
  .stats-bar { grid-template-columns: 1fr; }
  .url-input-wrap { flex-direction: column; }
  .nav-links { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .result-meta { grid-template-columns: repeat(2, 1fr); }
}

/* ---- PROGRESS BAR ANIMATED ---- */
.progress-bar {
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 0%; opacity: 1; }
  100% { width: 100%; opacity: 0.5; }
}

/* ---- PULSE DOT ---- */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.3);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0; }
}

/* ---- VERDICT HISTORY TIMELINE ---- */
.timeline {
  position: relative;
  padding-right: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--dark-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
  padding-right: 20px;
}

.timeline-dot {
  position: absolute;
  right: -4px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.timeline-dot.allow { background: var(--success); }
.timeline-dot.review { background: var(--warning); }
.timeline-dot.reject { background: var(--danger); }

.timeline-time { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.timeline-url { font-size: 13px; color: var(--text-secondary); direction: ltr; word-break: break-all; }
.timeline-verdict { font-size: 12px; font-weight: 600; margin-top: 4px; }

/* ---- SWITCH TOGGLE ---- */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--dark-border);
  border-radius: 12px;
  transition: var(--transition);
}

.slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

input:checked + .slider { background: var(--primary); }
input:checked + .slider::before { transform: translateX(20px); }

/* ---- TABS ---- */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--dark-border);
}

.tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  border: none;
  background: none;
  font-family: 'Cairo', sans-serif;
}

.tab.active {
  background: var(--gradient-1);
  color: white;
}
