/* ============================================================
   BrowserScan Clone — Main Stylesheet
   Version: 1.0.0
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Primary Colors */
  --primary-1: #1267fa;
  --primary-2: #2975ff;
  --primary-3: #00b4ff;

  /* Success Colors */
  --success-1: #4affbd;
  --success-2: #64e9cb;

  /* Warning / Error Colors */
  --danger-1: #fb5138;
  --danger-2: #ff5d27;
  --warning-1: #f59e0b;

  /* Background Colors */
  --bg-1: #1d232f;
  --bg-2: #212331;
  --bg-3: #3a3d52;
  --bg-4: #2a2d40;
  --bg-card: rgba(58, 61, 82, 0.6);
  --bg-card-solid: #2d3047;

  /* Text Colors */
  --text-1: #ffffff;
  --text-2: #f9f9f9;
  --text-3: #b0b7c3;
  --text-muted: #6b7280;

  /* Border */
  --border-color: hsla(0, 0%, 100%, 0.07);
  --border-hover: hsla(0, 0%, 100%, 0.15);

  /* Glow Effects */
  --glow-primary: rgba(0, 180, 255, 0.25);
  --glow-success: rgba(74, 255, 189, 0.2);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--glow-primary);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 1000;
  --z-toast: 2000;

  /* Fonts */
  --font-base: 'Rubik', 'Cairo', 'Tajawal', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-1);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Dot Pattern Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Glow Orbs */
body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, .navbar, footer, .page-content {
  position: relative;
  z-index: 1;
}

a {
  color: var(--primary-3);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--success-1);
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { color: var(--text-3); }

.text-primary { color: var(--primary-3); }
.text-success { color: var(--success-1); }
.text-danger  { color: var(--danger-1); }
.text-warning { color: var(--warning-1); }
.text-muted   { color: var(--text-muted); }
.text-white   { color: #fff; }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.text-lg      { font-size: 1.125rem; }
.text-xl      { font-size: 1.25rem; }
.text-2xl     { font-size: 1.5rem; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.font-mono    { font-family: var(--font-mono); }
.font-bold    { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium  { font-weight: 500; }
.uppercase    { text-transform: uppercase; }
.letter-wide  { letter-spacing: 0.08em; }

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px)  { .container { padding: 0 var(--space-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-8); } }

/* Flex utilities */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* Grid utilities */
.grid       { display: grid; }
.grid-2     { grid-template-columns: repeat(2, 1fr); }
.grid-3     { grid-template-columns: repeat(3, 1fr); }
.grid-4     { grid-template-columns: repeat(4, 1fr); }
.grid-auto  { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Spacing */
.p-2  { padding: var(--space-2); }
.p-3  { padding: var(--space-3); }
.p-4  { padding: var(--space-4); }
.p-5  { padding: var(--space-5); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Display */
.hidden  { display: none !important; }
.block   { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full  { width: 100%; }
.h-full  { height: 100%; }
.overflow-hidden { overflow: hidden; }

/* ============================================================
   5. ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes pingPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px var(--glow-primary); }
  50%       { box-shadow: 0 0 25px var(--glow-primary), 0 0 50px rgba(0,180,255,0.1); }
}

.animate-fade-in  { animation: fadeIn var(--transition-base) ease forwards; }
.animate-slide-up { animation: slideUp 0.4s ease forwards; }
.animate-pulse    { animation: pulse 2s ease infinite; }
.animate-spin     { animation: spin 1s linear infinite; }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================================
   6. NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(29, 35, 47, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 64px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-1);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar-logo .logo-scan {
  color: var(--primary-3);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.navbar-nav .nav-link {
  color: var(--text-3);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.navbar-nav .nav-link:hover {
  color: var(--text-1);
  background: var(--border-color);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-3);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
}

.dropdown-toggle:hover {
  color: var(--text-1);
  background: var(--border-color);
}

.dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.dropdown.open .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--border-color);
  color: var(--text-1);
}

.dropdown-menu a svg {
  width: 16px;
  height: 16px;
  color: var(--primary-3);
  flex-shrink: 0;
}

/* Navbar actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: 0.875rem;
  cursor: pointer;
  background: transparent;
  transition: all var(--transition-fast);
}

.lang-switcher:hover {
  border-color: var(--border-hover);
  color: var(--text-1);
}

.btn-signin {
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  transition: all var(--transition-fast);
}

.btn-signin:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

@media (max-width: 1024px) {
  .navbar-nav { display: none; }
  .navbar-toggle { display: flex; }
}

@media (max-width: 640px) {
  .navbar-actions .btn-signin { display: none; }
}

/* ============================================================
   7. FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-color);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

.footer-brand .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  color: var(--primary-3);
  border-color: var(--primary-3);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer-col ul li {
  margin-bottom: var(--space-2);
}

.footer-col ul li a {
  color: var(--text-3);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary-3);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-bottom a:hover { color: var(--primary-3); }

.footer-version {
  background: var(--bg-3);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

/* ============================================================
   8. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 180, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-3), #36c9ff);
  box-shadow: 0 6px 20px rgba(0, 180, 255, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

/* Outline */
.btn-outline {
  background: transparent;
  border-color: var(--primary-3);
  color: var(--primary-3);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary-3);
  color: #fff;
}

/* Ghost */
.btn-ghost {
  background: var(--border-color);
  border-color: transparent;
  color: var(--text-3);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--border-hover);
  color: var(--text-1);
}

/* Success */
.btn-success {
  background: linear-gradient(135deg, #00c97a, var(--success-1));
  color: #0a0e1a;
  font-weight: 700;
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--success-1), #6affca);
  transform: translateY(-1px);
}

/* Danger */
.btn-danger {
  background: var(--danger-1);
  color: #fff;
}
.btn-danger:hover:not(:disabled) { background: #ff6b52; }

/* Sizes */
.btn-sm  { padding: var(--space-2) var(--space-4); font-size: 0.8rem; }
.btn-lg  { padding: var(--space-4) var(--space-8); font-size: 1rem; }
.btn-xl  { padding: var(--space-5) var(--space-10); font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* Round Start Button */
.btn-start {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #2a2f3f, var(--bg-3));
  border: 2px solid var(--border-color);
  color: var(--text-1);
  font-size: 0.9rem;
  font-weight: 600;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: 0 0 0 8px rgba(0,180,255,0.08), 0 0 0 16px rgba(0,180,255,0.04);
  transition: all var(--transition-base);
}

.btn-start:hover {
  background: radial-gradient(circle at center, #363d52, #4a4f67);
  border-color: var(--primary-3);
  box-shadow: 0 0 0 8px rgba(0,180,255,0.12), 0 0 0 16px rgba(0,180,255,0.06);
  transform: scale(1.05);
}

/* ============================================================
   9. CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-base);
}

.card:hover {
  border-color: var(--border-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.card-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary-3);
}

.card-body { /* no extra styles needed */ }

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

/* Result Card */
.result-card {
  background: linear-gradient(135deg, rgba(42, 47, 64, 0.9), rgba(58, 61, 82, 0.6));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(16px);
}

/* Icon Card (tools grid) */
.icon-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.icon-card:hover {
  border-color: var(--primary-3);
  background: rgba(0, 180, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: inherit;
}

.icon-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 180, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-3);
}

.icon-card .icon-wrap svg {
  width: 24px;
  height: 24px;
}

.icon-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--space-1);
}

.icon-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Status Card */
.status-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.status-card.status-ok    { border-color: rgba(74, 255, 189, 0.2); }
.status-card.status-warn  { border-color: rgba(245, 158, 11, 0.2); }
.status-card.status-error { border-color: rgba(251, 81, 56, 0.2); }

/* Detection Card (bot-detection style) */
.detection-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-base);
}

.detection-card.detected  { border-color: rgba(251, 81, 56, 0.35); }
.detection-card.clean     { border-color: rgba(74, 255, 189, 0.25); }

.detection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detection-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
}

/* ============================================================
   10. TABLES
   ============================================================ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead {
  background: rgba(0, 180, 255, 0.06);
}

table thead th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-fast);
}

table tbody tr:last-child { border-bottom: none; }

table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

table tbody td {
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  color: var(--text-3);
}

table tbody td:first-child {
  color: var(--text-muted);
  font-size: 0.8rem;
  width: 220px;
  font-weight: 500;
}

/* Data field value */
.field-value {
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ============================================================
   11. FORMS & INPUTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-3);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-1);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-3);
  background: rgba(0, 180, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 5h10l-5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input.error { border-color: var(--danger-1); }
.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.form-error {
  font-size: 0.75rem;
  color: var(--danger-1);
}

/* Search input */
.search-input {
  position: relative;
}

.search-input input {
  padding-left: 2.5rem;
}

.search-input svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-3);
  cursor: pointer;
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: all var(--transition-base);
}

.toggle input:checked + .toggle-slider {
  background: var(--primary-3);
}

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

/* Range slider */
.range-slider {
  width: 100%;
  appearance: none;
  height: 6px;
  background: var(--bg-3);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary-3);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px var(--glow-primary);
}

/* ============================================================
   12. BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-primary { background: rgba(0, 180, 255, 0.15); color: var(--primary-3); border: 1px solid rgba(0,180,255,0.25); }
.badge-success { background: rgba(74, 255, 189, 0.12); color: var(--success-1); border: 1px solid rgba(74,255,189,0.25); }
.badge-danger  { background: rgba(251, 81, 56, 0.12);  color: var(--danger-1);  border: 1px solid rgba(251,81,56,0.25); }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning-1); border: 1px solid rgba(245,158,11,0.25); }
.badge-neutral { background: rgba(255,255,255,0.06);   color: var(--text-3);    border: 1px solid var(--border-color); }

/* ============================================================
   13. ALERTS
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 0.875rem;
  line-height: 1.5;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-success {
  background: rgba(74, 255, 189, 0.08);
  border-color: rgba(74, 255, 189, 0.2);
  color: var(--success-1);
}

.alert-danger {
  background: rgba(251, 81, 56, 0.08);
  border-color: rgba(251, 81, 56, 0.2);
  color: var(--danger-1);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--warning-1);
}

.alert-info {
  background: rgba(0, 180, 255, 0.08);
  border-color: rgba(0, 180, 255, 0.2);
  color: var(--primary-3);
}

/* ============================================================
   14. MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-base);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--border-color);
  color: var(--text-1);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ============================================================
   15. TABS
   ============================================================ */
.tabs {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tab-list {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border-radius: 0;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--text-1);
}

.tab-btn.active {
  color: var(--primary-3);
  border-bottom-color: var(--primary-3);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* ============================================================
   16. ACCORDION
   ============================================================ */
.accordion {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: transparent;
  color: var(--text-1);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: rgba(255,255,255,0.03);
}

.accordion-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 0 var(--space-5) var(--space-4);
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.7;
}

.accordion-item.open .accordion-body {
  display: block;
  animation: slideDown 0.2s ease;
}

/* ============================================================
   17. PROGRESS BARS
   ============================================================ */
.progress {
  height: 8px;
  background: var(--bg-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary-2), var(--primary-3));
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--glow-primary);
}

.progress-bar.success {
  background: linear-gradient(90deg, #00c97a, var(--success-1));
}

.progress-bar.danger {
  background: linear-gradient(90deg, var(--danger-2), var(--danger-1));
}

/* Authenticity meter */
.authenticity-meter {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.authenticity-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.authenticity-label span:first-child {
  font-size: 0.875rem;
  color: var(--text-3);
}

.authenticity-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success-1);
}

.progress-lg {
  height: 12px;
}

/* ============================================================
   18. SUMMARY BAR
   ============================================================ */
.summary-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (max-width: 1024px) { .summary-bar { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .summary-bar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .summary-bar { grid-template-columns: repeat(2, 1fr); } }

.summary-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.summary-item-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-item-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-indicator.green  { background: var(--success-1); box-shadow: 0 0 6px var(--success-1); }
.dot-indicator.red    { background: var(--danger-1); box-shadow: 0 0 6px var(--danger-1); }
.dot-indicator.blue   { background: var(--primary-3); }
.dot-indicator.yellow { background: var(--warning-1); }

/* ============================================================
   19. SECTION STYLES
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(0, 180, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-3);
  flex-shrink: 0;
}

.section-icon svg {
  width: 20px;
  height: 20px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Data Table (2-col key-value) */
.data-table {
  width: 100%;
}

.data-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.data-row:last-child { border-bottom: none; }

.data-key {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.data-val {
  font-size: 0.875rem;
  color: var(--text-1);
  font-family: var(--font-mono);
  word-break: break-all;
}

.data-val.loading {
  color: var(--text-muted);
  font-family: var(--font-base);
  animation: pulse 1.5s ease infinite;
}

/* ============================================================
   20. STATUS INDICATORS
   ============================================================ */
.status-ok    { color: var(--success-1); }
.status-warn  { color: var(--warning-1); }
.status-error { color: var(--danger-1); }
.status-info  { color: var(--primary-3); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

.status-badge.ok {
  background: rgba(74, 255, 189, 0.1);
  color: var(--success-1);
  border: 1px solid rgba(74, 255, 189, 0.25);
}

.status-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-badge.error {
  background: rgba(251, 81, 56, 0.1);
  color: var(--danger-1);
  border: 1px solid rgba(251, 81, 56, 0.25);
}

/* Result Banner */
.result-banner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.result-banner.clean {
  background: linear-gradient(135deg, rgba(74, 255, 189, 0.08), rgba(100, 233, 203, 0.04));
  border: 1px solid rgba(74, 255, 189, 0.2);
}

.result-banner.suspicious {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255, 93, 39, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.result-banner.malicious {
  background: linear-gradient(135deg, rgba(251, 81, 56, 0.08), rgba(251, 81, 56, 0.04));
  border: 1px solid rgba(251, 81, 56, 0.2);
}

.result-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.result-banner.clean .result-icon    { background: rgba(74, 255, 189, 0.15); }
.result-banner.suspicious .result-icon { background: rgba(245, 158, 11, 0.15); }
.result-banner.malicious .result-icon  { background: rgba(251, 81, 56, 0.15); }

/* ============================================================
   21. BREADCRUMBS
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  margin-bottom: var(--space-6);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--primary-3); }

.breadcrumb span {
  color: var(--border-hover);
}

/* ============================================================
   22. PAGE HERO
   ============================================================ */
.page-hero {
  text-align: center;
  padding: var(--space-12) 0 var(--space-8);
}

.page-hero h1 {
  margin-bottom: var(--space-4);
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-3);
}

/* ============================================================
   23. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.page-btn:hover { border-color: var(--primary-3); color: var(--primary-3); }
.page-btn.active { background: var(--primary-3); border-color: var(--primary-3); color: #fff; }

/* ============================================================
   24. COPY BUTTON
   ============================================================ */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  border-color: var(--primary-3);
  color: var(--primary-3);
}

.copy-btn.copied {
  border-color: var(--success-1);
  color: var(--success-1);
}

/* ============================================================
   25. FLOATING ROBOT BUTTON
   ============================================================ */
.float-btn {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1e2435;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  z-index: 99;
  color: var(--primary-3);
}

.float-btn:hover {
  background: var(--bg-3);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

[dir="rtl"] .float-btn {
  right: auto;
  left: var(--space-6);
}

/* ============================================================
   26. LOADING STATES
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, rgba(255,255,255,0.06) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  border-radius: 4px;
}

.skeleton-text.wide { width: 80%; }
.skeleton-text.medium { width: 60%; }
.skeleton-text.short { width: 40%; }

.loading-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary-3);
  border-radius: 50%;
  animation: pulse 1.2s ease infinite;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--bg-3);
  border-top-color: var(--primary-3);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   27. TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideUp 0.3s ease;
}

.toast.success { border-color: rgba(74, 255, 189, 0.3); color: var(--success-1); }
.toast.error   { border-color: rgba(251, 81, 56, 0.3);  color: var(--danger-1); }

/* ============================================================
   28. AUTH PAGES
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: var(--bg-1);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-8);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   29. MAPS
   ============================================================ */
#map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* Leaflet dark override */
.leaflet-tile {
  filter: brightness(0.7) saturate(0.5) hue-rotate(190deg);
}

/* ============================================================
   30. CANVAS / WEBGL DISPLAY
   ============================================================ */
.fingerprint-canvas {
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: block;
  margin: 0 auto;
}

.hash-display {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
}

.hash-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.hash-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-3);
  word-break: break-all;
  flex: 1;
}

/* ============================================================
   31. SPEED TEST
   ============================================================ */
.speed-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, #252b3c, var(--bg-2));
  border: 2px solid var(--border-color);
  box-shadow: 0 0 0 12px rgba(0,180,255,0.06), 0 0 0 24px rgba(0,180,255,0.03);
  cursor: pointer;
  transition: all var(--transition-base);
  margin: 0 auto;
}

.speed-circle:hover {
  border-color: var(--primary-3);
  box-shadow: 0 0 0 12px rgba(0,180,255,0.1), 0 0 0 24px rgba(0,180,255,0.05);
}

.speed-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-3);
}

.speed-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   32. FONT LIST
   ============================================================ */
.font-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.font-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--bg-3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ============================================================
   33. IP INFO DISPLAY
   ============================================================ */
.ip-display {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.ip-flag {
  font-size: 2rem;
  line-height: 1;
}

.ip-address {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
}

.ip-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   34. TIMELINE (Release Notes)
   ============================================================ */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-3), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
}

.timeline-dot {
  position: absolute;
  left: calc(-2rem - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-3);
  border: 2px solid var(--bg-1);
  box-shadow: 0 0 8px var(--glow-primary);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.timeline-version {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--space-3);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.timeline-content ul {
  list-style: disc;
  padding-left: var(--space-5);
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.8;
}

/* ============================================================
   35. RTL SUPPORT
   ============================================================ */
[dir="rtl"] {
  font-family: 'Cairo', 'Tajawal', 'Rubik', sans-serif;
}

[dir="rtl"] .container { direction: rtl; }
[dir="rtl"] .text-right { text-align: left; }
[dir="rtl"] table thead th { text-align: right; }

[dir="rtl"] .data-row {
  direction: rtl;
}

[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 0;
}

[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: var(--space-8);
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .timeline-dot {
  left: auto;
  right: calc(-2rem - 5px);
}

[dir="rtl"] .timeline-content ul {
  padding-left: 0;
  padding-right: var(--space-5);
}

[dir="rtl"] .form-select {
  background-position: left 12px center;
  padding-right: var(--space-4);
  padding-left: 36px;
}

[dir="rtl"] .search-input svg {
  left: auto;
  right: 12px;
}

[dir="rtl"] .search-input input {
  padding-left: var(--space-4);
  padding-right: 2.5rem;
}

[dir="rtl"] .nav-link,
[dir="rtl"] .dropdown-toggle {
  direction: rtl;
}

/* ============================================================
   36. RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 640px) {
  .hide-xs { display: none !important; }
  .data-row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
  .authenticity-meter { padding: var(--space-4); }
  .summary-bar { gap: var(--space-2); }
  .page-hero { padding: var(--space-8) 0 var(--space-6); }
}

@media (min-width: 641px) and (max-width: 768px) {
  .hide-sm { display: none !important; }
}

@media (max-width: 1024px) {
  .hide-md { display: none !important; }
}

@media (min-width: 1281px) {
  .show-xl { display: block; }
}

/* ============================================================
   37. SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 180, 255, 0.4);
}

/* ============================================================
   38. UTILITIES
   ============================================================ */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-4) 0;
}

.kbd {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bg-3);
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: var(--bg-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-3);
}

/* Section separator */
.page-section {
  margin-bottom: var(--space-8);
}

/* Code block */
.code-block {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--success-1);
  overflow-x: auto;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Print utilities */
@media print {
  body::before, body::after { display: none; }
  .navbar, .site-footer, .float-btn { display: none; }
}
