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

:root {
  --font-arabic: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-main: #05070e;
  --bg-surface: #080c18;
  --bg-card: rgba(11, 16, 28, 0.75);
  --bg-card-hover: rgba(17, 24, 42, 0.9);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-color: rgba(59, 130, 246, 0.16);
  --border-highlight: rgba(96, 165, 250, 0.45);
  
  --primary-blue: #2563eb;
  --primary-glow: #3b82f6;
  --primary-cyan: #06b6d4;
  --primary-purple: #8b5cf6;
  --primary-amber: #f59e0b;
  --primary-emerald: #10b981;
  --primary-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-arabic);
}

html, body {
  min-height: 100dvh;
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 10% 35%, rgba(139, 92, 246, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 90% 65%, rgba(6, 182, 212, 0.07) 0%, transparent 45%);
  pointer-events: none;
  z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #05070e;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
  border: 1px solid rgba(59, 130, 246, 0.15);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Liquid Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 36px -12px rgba(0, 0, 0, 0.7);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 20px 45px -12px rgba(37, 99, 235, 0.25);
  transform: translateY(-3px);
}

/* Discord Official Community Glow Box */
.discord-banner-box {
  background: linear-gradient(180deg, rgba(16, 22, 40, 0.85) 0%, rgba(9, 13, 24, 0.95) 100%);
  border: 1px solid rgba(88, 101, 242, 0.35);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 20px 50px -15px rgba(88, 101, 242, 0.25);
}

/* Badges & Glowing Status */
.badge-glow-blue {
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: inset 0 0 12px rgba(59, 130, 246, 0.1);
}
.badge-glow-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.badge-glow-green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-glow-yellow {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-glow-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.badge-glow-red {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Buttons with Tactile Feedback */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 20px rgba(37, 99, 235, 0.35);
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.55);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 20px rgba(6, 182, 212, 0.35);
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-cyan:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  box-shadow: 0 6px 28px rgba(6, 182, 212, 0.55);
  transform: translateY(-1px);
}
.btn-cyan:active {
  transform: scale(0.98);
}

.btn-discord {
  background: #5865F2;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 18px rgba(88, 101, 242, 0.35);
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}
.btn-discord:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: rgba(16, 23, 38, 0.85);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary:hover {
  background: rgba(26, 37, 60, 0.95);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: scale(0.98);
}

/* Input Fields */
.custom-input {
  background: rgba(8, 12, 22, 0.85) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: #f8fafc !important;
  border-radius: 0.85rem !important;
  padding: 0.75rem 1rem !important;
  width: 100% !important;
  outline: none !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.2s ease !important;
}
.custom-input:focus {
  border-color: var(--primary-glow) !important;
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(59, 130, 246, 0.25) !important;
  background: rgba(8, 12, 22, 0.98) !important;
}

/* Sidebar Active Navigation */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #94a3b8;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
}
.sidebar-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.2);
}
.sidebar-link.active {
  color: #60a5fa;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.04) 100%);
  border-color: rgba(59, 130, 246, 0.4);
  font-weight: 700;
  box-shadow: inset 3px 0 0 0 #3b82f6;
}

/* Modal Overlay Backdrop */
.modal-backdrop {
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Cyber Stat Pill */
.stat-pill {
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.8) 0%, rgba(9, 13, 22, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.16);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

/* Soundwave Animation (Addons Team) */
@keyframes soundWave {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}
.wave-bar-1 { animation: soundWave 1.2s infinite ease-in-out; }
.wave-bar-2 { animation: soundWave 1.2s infinite 0.2s ease-in-out; }
.wave-bar-3 { animation: soundWave 1.2s infinite 0.4s ease-in-out; }
.wave-bar-4 { animation: soundWave 1.2s infinite 0.1s ease-in-out; }

/* Fonts */
.en-font {
  font-family: var(--font-en);
}
.mono-font {
  font-family: var(--font-mono);
}

/* Security Scanner & Certificate Styles */
.scanner-dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.45);
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, rgba(10, 14, 26, 0.95) 100%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 0 40px rgba(99, 102, 241, 0.05);
}
.scanner-dropzone:hover, .scanner-dropzone.drag-over {
  border-color: #8b5cf6;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.16) 0%, rgba(15, 20, 36, 0.98) 100%);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.25), inset 0 0 50px rgba(139, 92, 246, 0.1);
  transform: scale(1.008);
}

.btn-scanner {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border: 1px solid rgba(196, 181, 253, 0.3);
  box-shadow: 0 10px 30px -8px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-scanner:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  box-shadow: 0 16px 40px -8px rgba(124, 58, 237, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.cert-card-frame {
  background: #060914;
  border: 2px solid #3b82f6;
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.2), inset 0 0 30px rgba(59, 130, 246, 0.06);
  position: relative;
}
.cert-card-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  pointer-events: none;
  border-radius: inherit;
}

/* Security Vendor Row in Scan Results */
.vendor-row {
  background: rgba(11, 16, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}
.vendor-row:hover {
  background: rgba(16, 23, 44, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
}
.vendor-row.is-malicious {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Detection Score Meter */
.score-circle-clean {
  border: 4px solid #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}
.score-circle-malicious {
  border: 4px solid #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
  animation: pulseWarning 2s infinite ease-in-out;
}
@keyframes pulseWarning {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Grid Line Background for Hero */
.hero-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Discord Intelligence & Inspector Styles */
.btn-discord-blurple {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-discord-blurple:hover {
  background: linear-gradient(135deg, #4752C4 0%, #3c45a5 100%);
  box-shadow: 0 0 35px rgba(88, 101, 242, 0.55);
  transform: translateY(-1px);
}

.discord-hero-banner {
  background-size: cover;
  background-position: center;
  position: relative;
}
.discord-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #05070e 0%, rgba(5, 7, 14, 0.85) 40%, rgba(5, 7, 14, 0.4) 100%);
  pointer-events: none;
}

.badge-discord-feature {
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.25);
  transition: all 0.2s ease;
}
.badge-discord-feature:hover {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.widget-style-tab.active {
  background: rgba(88, 101, 242, 0.3);
  border-color: rgba(88, 101, 242, 0.6);
  color: #ffffff;
}



