/* ═══════════════════════════════════════════════════════
   SPECTER Platform — Sammourtech Technology Team
   Dark Theme RTL Design System
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --bg-primary: #060612;
  --bg-secondary: #0d0d22;
  --bg-card: #111128;
  --bg-card-hover: #16163a;
  --bg-input: #0a0a1e;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #a78bfa;
  --accent-purple-dark: #6d28d9;
  --accent-pink: #ec4899;
  --accent-pink-light: #f472b6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;
  --accent-blue: #3b82f6;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(139,92,246,0.15);
  --border-active: rgba(139,92,246,0.4);
  --glass-bg: rgba(17,17,40,0.8);
  --glass-border: rgba(139,92,246,0.2);
  --shadow-glow: 0 0 30px rgba(139,92,246,0.15);
  --shadow-glow-strong: 0 0 60px rgba(139,92,246,0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #6d28d9);
  --gradient-pink: linear-gradient(135deg, #ec4899, #be185d);
  --gradient-mixed: linear-gradient(135deg, #8b5cf6, #ec4899);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior:smooth; }

body {
  font-family:'Tajawal',sans-serif;
  background:var(--bg-primary);
  color:var(--text-primary);
  direction:rtl;
  text-align:right;
  line-height:1.7;
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before {
  content:'';
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(139,92,246,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(236,72,153,0.06) 0%, transparent 50%);
  pointer-events:none;
  z-index:0;
}

a { color:var(--accent-purple-light); text-decoration:none; transition:var(--transition); }
a:hover { color:var(--accent-pink); }

::selection { background:rgba(139,92,246,0.3); color:#fff; }
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--bg-secondary); }
::-webkit-scrollbar-thumb { background:var(--accent-purple-dark); border-radius:3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight:700; line-height:1.3; color:var(--text-primary); }
h1 { font-size:2.5rem; }
h2 { font-size:2rem; }
h3 { font-size:1.5rem; }
p { color:var(--text-secondary); }

/* ── Container ── */
.container { max-width:1200px; margin:0 auto; padding:0 1.5rem; }
.container-fluid { width:100%; padding:0 2rem; }

/* ── Buttons ── */
.btn {
  display:inline-flex; align-items:center; gap:0.5rem;
  padding:0.75rem 1.5rem;
  border:none; border-radius:var(--radius-md);
  font-family:'Tajawal',sans-serif; font-size:1rem; font-weight:600;
  cursor:pointer; transition:var(--transition);
  text-decoration:none; white-space:nowrap;
}
.btn i { font-size:0.9em; }
.btn-primary {
  background:var(--gradient-purple); color:#fff;
  box-shadow:0 4px 15px rgba(139,92,246,0.3);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 25px rgba(139,92,246,0.4); }
.btn-danger { background:var(--gradient-pink); color:#fff; box-shadow:0 4px 15px rgba(236,72,153,0.3); }
.btn-danger:hover { transform:translateY(-2px); box-shadow:0 8px 25px rgba(236,72,153,0.4); }
.btn-outline {
  background:transparent; color:var(--accent-purple-light);
  border:2px solid var(--border-active);
}
.btn-outline:hover { background:rgba(139,92,246,0.1); }
.btn-ghost { background:transparent; color:var(--text-secondary); }
.btn-ghost:hover { color:var(--accent-purple-light); background:rgba(139,92,246,0.08); }
.btn-sm { padding:0.5rem 1rem; font-size:0.85rem; }
.btn-lg { padding:1rem 2rem; font-size:1.1rem; }
.btn-block { width:100%; justify-content:center; }
.btn:disabled { opacity:0.5; cursor:not-allowed; transform:none !important; }

/* ── Glass Card ── */
.glass-card {
  background:var(--glass-bg);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);
  padding:1.5rem;
  transition:var(--transition);
}
.glass-card:hover { border-color:var(--border-active); box-shadow:var(--shadow-glow); }

.card {
  background:var(--bg-card);
  border:1px solid var(--border-color);
  border-radius:var(--radius-lg);
  padding:1.5rem;
  transition:var(--transition);
}
.card:hover { border-color:var(--border-active); }

/* ── Inputs ── */
.form-group { margin-bottom:1.25rem; }
.form-group label {
  display:block; margin-bottom:0.5rem;
  font-weight:600; font-size:0.9rem; color:var(--text-secondary);
}
.form-control {
  width:100%; padding:0.8rem 1rem;
  background:var(--bg-input);
  border:1px solid var(--border-color);
  border-radius:var(--radius-md);
  color:var(--text-primary);
  font-family:'Tajawal',sans-serif; font-size:1rem;
  transition:var(--transition);
  direction:rtl;
}
.form-control:focus {
  outline:none;
  border-color:var(--accent-purple);
  box-shadow:0 0 0 3px rgba(139,92,246,0.15);
}
.form-control::placeholder { color:var(--text-muted); }
select.form-control { cursor:pointer; }
textarea.form-control { resize:vertical; min-height:100px; }

/* ── Toggle Switch ── */
.toggle-wrapper { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.75rem; }
.toggle {
  position:relative; width:48px; height:26px;
  background:var(--bg-input); border:1px solid var(--border-color);
  border-radius:13px; cursor:pointer; transition:var(--transition);
  flex-shrink:0;
}
.toggle.active { background:var(--accent-purple); border-color:var(--accent-purple); }
.toggle::after {
  content:''; position:absolute;
  top:3px; right:3px;
  width:18px; height:18px;
  background:#fff; border-radius:50%;
  transition:var(--transition);
}
.toggle.active::after { right:auto; left:3px; }
.toggle-label { font-size:0.9rem; color:var(--text-secondary); cursor:pointer; user-select:none; }

/* ── Navbar ── */
.navbar {
  position:fixed; top:0; left:0; right:0;
  background:rgba(6,6,18,0.9);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border-color);
  z-index:1000; padding:0 2rem;
  height:64px; display:flex; align-items:center; justify-content:space-between;
}
.navbar-brand { display:flex; align-items:center; gap:0.75rem; font-size:1.3rem; font-weight:800; }
.navbar-brand .logo-icon {
  width:38px; height:38px;
  background:var(--gradient-purple);
  border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-size:1.2rem; color:#fff;
  box-shadow:0 0 20px rgba(139,92,246,0.4);
  position:relative;
}
.navbar-brand .logo-icon::after {
  content:''; position:absolute; inset:-2px;
  border-radius:12px; border:2px solid rgba(139,92,246,0.3);
  animation:logoPulse 2s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { opacity:0.3; transform:scale(1); }
  50% { opacity:0.7; transform:scale(1.05); }
}
.navbar-brand span { background:var(--gradient-mixed); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.navbar-links { display:flex; align-items:center; gap:1.5rem; }
.navbar-links a { color:var(--text-secondary); font-weight:500; font-size:0.95rem; }
.navbar-links a:hover { color:var(--accent-purple-light); }
.navbar-links .btn { font-size:0.9rem; }
.navbar-toggle { display:none; background:none; border:none; color:var(--text-primary); font-size:1.5rem; cursor:pointer; }

/* ── Sidebar ── */
.app-layout { display:flex; min-height:100vh; padding-top:64px; }
.sidebar {
  width:260px; background:var(--bg-secondary);
  border-left:1px solid var(--border-color);
  padding:1.5rem 0; position:fixed;
  top:64px; right:0; bottom:0;
  overflow-y:auto; z-index:100;
  transition:var(--transition);
}
.sidebar-nav { list-style:none; }
.sidebar-nav li a {
  display:flex; align-items:center; gap:0.75rem;
  padding:0.85rem 1.5rem;
  color:var(--text-secondary); font-weight:500;
  transition:var(--transition); border-right:3px solid transparent;
}
.sidebar-nav li a:hover { background:rgba(139,92,246,0.08); color:var(--accent-purple-light); }
.sidebar-nav li a.active {
  color:var(--accent-purple-light); background:rgba(139,92,246,0.1);
  border-right-color:var(--accent-purple);
}
.sidebar-nav li a i { width:20px; text-align:center; font-size:1.1rem; }
.sidebar-nav li a .badge-count {
  margin-right:auto; background:var(--accent-pink);
  color:#fff; font-size:0.7rem; padding:2px 8px;
  border-radius:10px; font-weight:700;
}
.main-content { flex:1; margin-right:260px; padding:2rem; position:relative; z-index:1; }

/* ── Stats Cards ── */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1.25rem; margin-bottom:2rem; }
.stat-card {
  background:var(--bg-card); border:1px solid var(--border-color);
  border-radius:var(--radius-lg); padding:1.5rem;
  display:flex; align-items:center; gap:1rem;
  transition:var(--transition);
}
.stat-card:hover { border-color:var(--border-active); transform:translateY(-3px); box-shadow:var(--shadow-glow); }
.stat-icon {
  width:52px; height:52px; border-radius:var(--radius-md);
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; flex-shrink:0;
}
.stat-icon.purple { background:rgba(139,92,246,0.15); color:var(--accent-purple-light); }
.stat-icon.pink { background:rgba(236,72,153,0.15); color:var(--accent-pink); }
.stat-icon.cyan { background:rgba(6,182,212,0.15); color:var(--accent-cyan); }
.stat-icon.green { background:rgba(16,185,129,0.15); color:var(--accent-green); }
.stat-icon.red { background:rgba(239,68,68,0.15); color:var(--accent-red); }
.stat-info h3 { font-size:1.8rem; font-weight:800; }
.stat-info p { font-size:0.85rem; color:var(--text-muted); margin-top:2px; }

/* ── Table ── */
.table-wrapper { overflow-x:auto; border-radius:var(--radius-lg); border:1px solid var(--border-color); }
.data-table { width:100%; border-collapse:collapse; }
.data-table th {
  background:var(--bg-secondary); padding:1rem;
  font-weight:600; font-size:0.85rem;
  color:var(--text-muted); text-transform:uppercase;
  letter-spacing:0.5px; text-align:right;
  border-bottom:1px solid var(--border-color);
}
.data-table td {
  padding:0.85rem 1rem; border-bottom:1px solid var(--border-color);
  font-size:0.9rem; vertical-align:middle;
}
.data-table tr:hover { background:rgba(139,92,246,0.04); }
.data-table .cert-id { font-family:monospace; color:var(--accent-purple-light); font-size:0.8rem; }

/* ── Badges ── */
.badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:4px 10px; border-radius:20px;
  font-size:0.75rem; font-weight:600;
}
.badge-active { background:rgba(16,185,129,0.15); color:var(--accent-green); }
.badge-suspended { background:rgba(245,158,11,0.15); color:var(--accent-orange); }
.badge-revoked { background:rgba(239,68,68,0.15); color:var(--accent-red); }
.badge-critical { background:rgba(239,68,68,0.2); color:#ff6b6b; }
.badge-high { background:rgba(245,158,11,0.2); color:var(--accent-orange); }
.badge-medium { background:rgba(59,130,246,0.2); color:var(--accent-blue); }
.badge-low { background:rgba(16,185,129,0.2); color:var(--accent-green); }

/* ── Hero Section ── */
.hero {
  min-height:calc(100vh - 64px);
  display:flex; align-items:center; justify-content:center;
  text-align:center; padding:4rem 2rem;
  position:relative; overflow:hidden;
}
.hero::before {
  content:''; position:absolute;
  width:600px; height:600px;
  background:radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  top:50%; left:50%; transform:translate(-50%,-50%);
  animation:heroGlow 4s ease-in-out infinite;
}
@keyframes heroGlow {
  0%,100% { opacity:0.5; transform:translate(-50%,-50%) scale(1); }
  50% { opacity:1; transform:translate(-50%,-50%) scale(1.15); }
}
.hero-content { position:relative; z-index:1; max-width:700px; }
.hero h1 { font-size:3.2rem; font-weight:900; margin-bottom:1rem; line-height:1.2; }
.hero h1 span { background:var(--gradient-mixed); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.hero p { font-size:1.2rem; color:var(--text-secondary); margin-bottom:2rem; max-width:550px; margin-inline:auto; }
.hero-buttons { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.hero-shield {
  font-size:8rem; margin-bottom:2rem;
  filter:drop-shadow(0 0 40px rgba(139,92,246,0.4));
  animation:shieldFloat 3s ease-in-out infinite;
}
@keyframes shieldFloat {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-15px); }
}

/* ── Features Grid ── */
.features-section { padding:5rem 0; }
.section-title { text-align:center; margin-bottom:3rem; }
.section-title h2 { font-size:2.2rem; margin-bottom:0.75rem; }
.section-title p { color:var(--text-muted); font-size:1.05rem; }
.features-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:1.5rem; }
.feature-card {
  background:var(--bg-card); border:1px solid var(--border-color);
  border-radius:var(--radius-lg); padding:2rem;
  transition:var(--transition); position:relative; overflow:hidden;
}
.feature-card::before {
  content:''; position:absolute; top:0; right:0;
  width:100px; height:100px;
  background:radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  transition:var(--transition);
}
.feature-card:hover { transform:translateY(-5px); border-color:var(--border-active); box-shadow:var(--shadow-glow); }
.feature-card:hover::before { width:200px; height:200px; }
.feature-icon {
  width:56px; height:56px;
  background:rgba(139,92,246,0.12);
  border-radius:var(--radius-md);
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; color:var(--accent-purple-light);
  margin-bottom:1rem;
}
.feature-card h3 { font-size:1.15rem; margin-bottom:0.5rem; }
.feature-card p { font-size:0.9rem; color:var(--text-muted); }

/* ── Upload Zone ── */
.upload-zone {
  border:2px dashed var(--border-active);
  border-radius:var(--radius-xl);
  padding:3rem; text-align:center;
  cursor:pointer; transition:var(--transition);
  background:rgba(139,92,246,0.03);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color:var(--accent-purple);
  background:rgba(139,92,246,0.08);
  box-shadow:var(--shadow-glow);
}
.upload-zone i { font-size:3rem; color:var(--accent-purple-light); margin-bottom:1rem; display:block; }
.upload-zone h3 { margin-bottom:0.5rem; }
.upload-zone p { color:var(--text-muted); font-size:0.9rem; }

/* ── Steps Wizard ── */
.wizard-steps {
  display:flex; justify-content:center; gap:0; margin-bottom:2.5rem;
  position:relative;
}
.wizard-step {
  display:flex; align-items:center; gap:0.5rem;
  padding:0.75rem 1.5rem; position:relative;
  color:var(--text-muted); font-weight:500;
}
.wizard-step .step-num {
  width:32px; height:32px;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--bg-input); border:2px solid var(--border-color);
  font-size:0.85rem; font-weight:700; transition:var(--transition);
}
.wizard-step.active .step-num { background:var(--accent-purple); border-color:var(--accent-purple); color:#fff; }
.wizard-step.completed .step-num { background:var(--accent-green); border-color:var(--accent-green); color:#fff; }
.wizard-step.active { color:var(--text-primary); }
.wizard-connector { width:60px; height:2px; background:var(--border-color); align-self:center; }
.wizard-connector.active { background:var(--accent-purple); }

/* ── Progress Bar ── */
.progress-bar {
  width:100%; height:8px;
  background:var(--bg-input); border-radius:4px;
  overflow:hidden; margin:1rem 0;
}
.progress-fill {
  height:100%; border-radius:4px;
  background:var(--gradient-mixed);
  transition:width 0.5s ease; width:0%;
}
.progress-label { font-size:0.85rem; color:var(--text-muted); margin-top:0.5rem; }

/* ── Notifications ── */
.notification-card {
  background:var(--bg-card); border:1px solid var(--border-color);
  border-radius:var(--radius-md); padding:1.25rem;
  margin-bottom:1rem; transition:var(--transition);
  display:flex; gap:1rem; align-items:flex-start;
}
.notification-card.critical { border-right:3px solid var(--accent-red); }
.notification-card.high { border-right:3px solid var(--accent-orange); }
.notification-card.medium { border-right:3px solid var(--accent-blue); }
.notification-card.info { border-right:3px solid var(--accent-cyan); }
.notification-card.ok { border-right:3px solid var(--accent-green); }

/* ── Kill Switch Panel ── */
.kill-panel {
  background:var(--bg-card); border:1px solid var(--border-color);
  border-radius:var(--radius-lg); padding:1.5rem;
  margin-bottom:1rem;
}
.kill-panel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.kill-actions { display:flex; gap:0.75rem; flex-wrap:wrap; margin-top:1rem; }

/* ── Certificate ── */
.cert-container {
  max-width:800px; margin:0 auto; padding:2rem;
  background:var(--bg-card); border:2px solid var(--accent-purple);
  border-radius:var(--radius-xl); position:relative;
  box-shadow:var(--shadow-glow-strong);
}
.cert-container::before {
  content:''; position:absolute; inset:-4px;
  border-radius:28px;
  background:var(--gradient-mixed);
  z-index:-1; opacity:0.3;
}
.cert-header { text-align:center; padding:2rem 0; border-bottom:1px solid var(--border-color); }
.cert-body { padding:2rem 0; }
.cert-footer { text-align:center; padding:1.5rem 0; border-top:1px solid var(--border-color); }
.cert-seal {
  width:100px; height:100px; margin:1rem auto;
  border-radius:50%; border:3px solid var(--accent-purple);
  display:flex; align-items:center; justify-content:center;
  font-size:0.7rem; font-weight:700; color:var(--accent-purple-light);
  text-align:center; background:rgba(139,92,246,0.1);
  box-shadow:0 0 30px rgba(139,92,246,0.3);
}

/* ── Alert Banner ── */
.alert-banner {
  padding:1rem 1.5rem; border-radius:var(--radius-md);
  margin-bottom:1rem; display:flex; align-items:center; gap:0.75rem;
  font-size:0.9rem;
}
.alert-banner.alert-danger { background:rgba(239,68,68,0.12); border:1px solid rgba(239,68,68,0.3); color:#ff8888; }
.alert-banner.alert-warning { background:rgba(245,158,11,0.12); border:1px solid rgba(245,158,11,0.3); color:#ffc857; }
.alert-banner.alert-success { background:rgba(16,185,129,0.12); border:1px solid rgba(16,185,129,0.3); color:#6ee7b7; }
.alert-banner.alert-info { background:rgba(59,130,246,0.12); border:1px solid rgba(59,130,246,0.3); color:#93c5fd; }

/* ── Modal ── */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.7);
  backdrop-filter:blur(5px); z-index:9999;
  display:none; align-items:center; justify-content:center; padding:2rem;
}
.modal-overlay.show { display:flex; }
.modal {
  background:var(--bg-card); border:1px solid var(--border-color);
  border-radius:var(--radius-xl); padding:2rem;
  max-width:600px; width:100%; max-height:80vh; overflow-y:auto;
  animation:modalSlide 0.3s ease;
}
@keyframes modalSlide { from { transform:translateY(20px); opacity:0; } to { transform:translateY(0); opacity:1; } }
.modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.5rem; }
.modal-close { background:none; border:none; color:var(--text-muted); font-size:1.5rem; cursor:pointer; }
.modal-close:hover { color:var(--text-primary); }

/* ── Auth Page ── */
.auth-page {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:2rem; position:relative;
}
.auth-card {
  background:var(--bg-card); border:1px solid var(--border-color);
  border-radius:var(--radius-xl); padding:2.5rem;
  max-width:440px; width:100%; position:relative;
  box-shadow:var(--shadow-glow);
}
.auth-card h2 { text-align:center; margin-bottom:0.5rem; }
.auth-tabs { display:flex; margin-bottom:2rem; border-bottom:1px solid var(--border-color); }
.auth-tab {
  flex:1; padding:0.75rem; text-align:center;
  background:none; border:none; color:var(--text-muted);
  font-family:'Tajawal',sans-serif; font-size:1rem;
  font-weight:600; cursor:pointer; border-bottom:2px solid transparent;
  transition:var(--transition);
}
.auth-tab.active { color:var(--accent-purple-light); border-bottom-color:var(--accent-purple); }

/* ── Loading ── */
.spinner {
  width:40px; height:40px; border:3px solid var(--border-color);
  border-top-color:var(--accent-purple); border-radius:50%;
  animation:spin 0.8s linear infinite; margin:2rem auto;
}
@keyframes spin { to { transform:rotate(360deg); } }
.loading-overlay {
  position:fixed; inset:0; background:rgba(6,6,18,0.9);
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:1rem; z-index:99999;
}
.loading-text { color:var(--text-secondary); font-size:1.1rem; }

/* ── Toast ── */
.toast-container { position:fixed; top:80px; left:1.5rem; z-index:99999; display:flex; flex-direction:column; gap:0.75rem; }
.toast {
  padding:1rem 1.5rem; border-radius:var(--radius-md);
  background:var(--bg-card); border:1px solid var(--border-color);
  display:flex; align-items:center; gap:0.75rem;
  animation:toastIn 0.3s ease; min-width:300px;
  box-shadow:var(--shadow-card);
}
.toast.toast-success { border-right:3px solid var(--accent-green); }
.toast.toast-error { border-right:3px solid var(--accent-red); }
.toast.toast-warning { border-right:3px solid var(--accent-orange); }
@keyframes toastIn { from { transform:translateX(-100%); opacity:0; } to { transform:translateX(0); opacity:1; } }

/* ── Map Container ── */
.map-container { border-radius:var(--radius-lg); overflow:hidden; height:400px; border:1px solid var(--border-color); }

/* ── File List ── */
.file-list { list-style:none; margin-top:1rem; }
.file-item {
  display:flex; align-items:center; gap:0.75rem;
  padding:0.75rem 1rem; background:var(--bg-input);
  border:1px solid var(--border-color); border-radius:var(--radius-md);
  margin-bottom:0.5rem; font-size:0.9rem;
}
.file-item i { color:var(--accent-purple-light); }
.file-item .file-size { margin-right:auto; color:var(--text-muted); font-size:0.8rem; }
.file-item .remove-file { background:none; border:none; color:var(--accent-red); cursor:pointer; font-size:1rem; }

/* ── Scan Results ── */
.scan-summary { display:flex; gap:1rem; margin:1.5rem 0; flex-wrap:wrap; }
.scan-count {
  display:flex; align-items:center; gap:0.5rem;
  padding:0.5rem 1rem; border-radius:var(--radius-md);
  font-weight:700; font-size:0.9rem;
}

/* ── Footer ── */
.footer {
  text-align:center; padding:2rem;
  border-top:1px solid var(--border-color);
  color:var(--text-muted); font-size:0.85rem;
  margin-top:3rem; position:relative; z-index:1;
}

/* ── Responsive ── */
@media (max-width:768px) {
  .navbar-links { display:none; }
  .navbar-links.show { display:flex; flex-direction:column; position:absolute; top:64px; right:0; left:0; background:var(--bg-secondary); padding:1rem; border-bottom:1px solid var(--border-color); }
  .navbar-toggle { display:block; }
  .sidebar { transform:translateX(260px); }
  .sidebar.show { transform:translateX(0); }
  .main-content { margin-right:0; }
  .hero h1 { font-size:2.2rem; }
  .features-grid { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .wizard-steps { flex-wrap:wrap; }
  .wizard-connector { display:none; }
  .cert-container { margin:1rem; padding:1.5rem; }
}
@media (max-width:480px) {
  .stats-grid { grid-template-columns:1fr; }
  .hero-buttons { flex-direction:column; }
  .auth-card { padding:1.5rem; }
}

/* ── Cyber Scanner Styles ── */
.scanner-tab.active {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.scanner-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
}
.upload-zone {
  position: relative;
  overflow: hidden;
}
.upload-zone:hover {
  border-color: var(--accent-purple-light) !important;
  background: rgba(139, 92, 246, 0.06) !important;
}

/* ── Progress Indicators ── */
.circular-progress-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── API pricing-cards & details ── */
.pricing-card {
  transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan) !important;
}
.pricing-card.pro-card:hover {
  border-color: var(--accent-pink) !important;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2) !important;
}

/* ── Credit Card Mockup & checkout animations ── */
.cyber-card-mockup {
  position: relative;
  background-size: 200% 200%;
  animation: cyberBgGlow 8s ease infinite;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@keyframes cyberBgGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Code documentation blocks ── */
.doc-code-block pre {
  max-height: 250px;
  border-left: 3px solid var(--accent-cyan);
}

/* ── Print Styles ── */
@media print {
  body { background:#fff; color:#000; direction:rtl; }
  .navbar, .sidebar, .btn, .toast-container, .footer { display:none !important; }
  .cert-container { border:2px solid #333; box-shadow:none; max-width:100%; }
  .main-content { margin:0; padding:0; }
}

