/* ==========================================================================
   XPROTECT CORE DESIGN SYSTEM & STYLES
   Ultra-Secure, High-Performance Web3 Security Platform
   Rich Cyber-Indigo Theme (Eye-Friendly, Vibrant, Zero Harsh Black)
   ========================================================================== */

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

:root {
  /* Balanced, Eye-Friendly Rich Indigo Dark Theme (Soft, vibrant, zero pitch-black) */
  --bg-dark: #141026;
  --bg-surface: #1e1b35;
  --bg-card: #10182c;
  --bg-card-hover: #131e36;
  --bg-glass: rgba(16, 24, 44, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.2);
  --border-glow: rgba(59, 130, 246, 0.35);
  
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --accent-red: #ef4444;
  --accent-gold: #f59e0b;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-nav: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.25);
  --shadow-glow-green: 0 0 25px rgba(16, 185, 129, 0.25);
  --shadow-glow-purple: 0 0 25px rgba(139, 92, 246, 0.25);
}

/* --------------------------------------------------------------------------
   RESET & FOUC MITIGATION
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-dark) !important;
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-dark) !important;
  color: var(--text-primary);
  font-family: var(--font-sans) !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  visibility: visible !important;
}

/* Global Typography: Outfit across all standard text elements */
h1, h2, h3, h4, h5, h6, p, span, a, button, input, textarea, select, label, table, th, td, ul, ol, li {
  font-family: var(--font-sans);
}

/* Specific Protection for Font Awesome Icons */
i, .fas, .far, .fa, [class*="fa-"] {
  font-family: "Font Awesome 6 Free", "FontAwesome" !important;
}
.fab, [class*="fa-brands"] {
  font-family: "Font Awesome 6 Brands" !important;
}

/* Code & Monospace Elements */
code, pre, kbd, samp, .font-mono, #result, pre * {
  font-family: var(--font-mono) !important;
}

/* Global Link Protection - Absolutely NO unwanted underlines */
a, a:hover, a:focus, a:active {
  color: inherit;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

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

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   LAYOUT CONTAINERS & UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* Standardized Inner Space for Service across all pages */
.site-main, .main-content {
  flex: 1 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  padding: 30px 0 70px;
}

.service-container {
  width: 100%;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* Standardized Page Hero Banner */
.page-hero {
  padding: 40px 0 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Standardized Search Box / Input Wrapper */
.search-card {
  max-width: 680px;
  width: 100%;
  margin: 0 auto 32px;
  position: relative;
  z-index: 2;
}

.search-form-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  width: 100%;
}

.search-input-box {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 52px;
  background: rgba(18, 14, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 18px 10px 44px;
  font-size: 1rem;
  color: #ffffff;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
  background: rgba(22, 17, 46, 0.95);
}

.search-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.05rem;
  pointer-events: none;
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Solid Cards (no glassmorphism hover - solid panels) */
.glass-card, .glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: border-color 0.25s ease;
}

.glass-card:hover, .glass-panel:hover {
  border-color: var(--border-light);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-hot {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.badge-new {
  background: #10b981 !important;
  color: #ffffff !important;
}

.badge-verified {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.spin-icon {
  animation: spin 0.8s linear infinite;
}

/* Background Ambient Glow */
.ambient-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   BLOCK PRODUCER & TOOL SPECIFIC CARDS (Outfit & Glassmorphism)
   ========================================================================== */
.bp-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
  width: 100%;
}

.dashboard {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
}

@media (max-width: 1024px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 540px) {
  .dashboard {
    grid-template-columns: 1fr !important;
  }
}

.bp-info-card {
  background: rgba(30, 27, 48, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bp-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3) !important;
}

.bp-info-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.bp-info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.bp-info-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.25;
}

.bp-info-card-badge {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.bp-info-card-desc {
  font-size: 0.92rem;
  color: #cbd5e1 !important;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.bp-info-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: #e2e8f0 !important;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.resource-pill:hover {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.pill-external {
  font-size: 0.72rem;
  margin-left: auto;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.resource-pill:hover .pill-external {
  opacity: 1;
}

/* Scanner Privacy & Responsibility Notice */
.scanner-privacy-notice {
  max-width: 900px;
  margin: 40px auto 20px;
  padding: 24px 28px;
  background: #10182c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  text-align: center;
}

.scanner-notice-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.scanner-notice-header i {
  color: #38bdf8;
  font-size: 1.2rem;
}

.scanner-notice-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.scanner-notice-text {
  font-size: 0.9rem;
  color: #cbd5e1 !important;
  line-height: 1.65;
  margin: 0 auto 16px;
  max-width: 780px;
}

.scanner-notice-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.scanner-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
}

.scanner-brand-logo {
  height: 22px;
  width: auto;
  opacity: 0.85;
  vertical-align: middle;
}

/* ==========================================================================
   STANDARDIZED PAGE HERO / TITLE BLOCK
   Used across: Scan, Browser Scan, Bug Hunter, Block Producers
   ========================================================================== */
.page-hero-block {
  width: 100%;
  text-align: center;
  padding: 44px 20px 28px;
  position: relative;
  z-index: 2;
}

.page-hero-block .page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  margin-bottom: 18px;
}

.page-hero-block h1.page-hero-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 auto 14px;
  max-width: 800px;
}

.page-hero-block h1.page-hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-block .page-hero-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ==========================================================================
   MODERN DNS FEATURE CARDS (homepage)
   ========================================================================== */
.dns-feature-card {
  background: linear-gradient(135deg, #1a1636 0%, #1e1b30 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dns-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dns-feature-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.dns-feature-card:hover::before {
  opacity: 1;
}

.dns-feature-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.dns-feature-card h4 {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dns-feature-card p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .site-main {
    padding: 20px 0 50px;
  }

  .container,
  .service-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .page-hero-block {
    padding: 28px 16px 20px;
  }

  .page-hero-block h1.page-hero-title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
    letter-spacing: -0.5px;
  }

  .page-hero-block .page-hero-subtitle {
    font-size: 0.95rem;
  }

  .bp-info-grid {
    grid-template-columns: 1fr;
  }

  .scanner-privacy-notice {
    margin: 24px auto 12px;
    padding: 18px 16px;
  }

  table {
    font-size: 0.85rem;
  }

  .search-card {
    max-width: 100%;
  }

  .search-form-wrap {
    flex-direction: column;
  }

  .search-form-wrap .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .ip-display {
    display: none !important;
  }

  .top-info-inner {
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .top-info-bar {
    font-size: 0.8rem !important;
  }

  .ip-display {
    display: none !important;
  }

  .top-info-inner {
    justify-content: center !important;
    text-align: center !important;
  }

  .nav-brand span {
    font-size: calc(1.15rem + 1px) !important;
    font-weight: 400 !important;
  }

  .nav-brand img {
    height: 28px !important;
  }
}

/* Universal font enforcement - Outfit everywhere */
* {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

i, .fas, .far, .fa, .fab, [class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}

code, pre, kbd, samp, .font-mono {
  font-family: 'JetBrains Mono', 'Consolas', monospace !important;
}
