/* IP Detector Pro - Main Stylesheet */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Full-width sections */
.full-width {
  width: 100%;
  margin: 0;
  padding: 0;
}

.full-width .container {
  max-width: 100%;
  padding: 0 40px;
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 50px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  height: 50px;
}

/* Header Logo Styles */
.logo {
  display: flex;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  position: absolute !important;
  z-index: 110 !important;
  left: 1rem !important;
  top: -35px !important;
}

.logo-image {
  height: 120px !important;
  width: auto !important;
  max-height: none !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  position: relative !important;
  z-index: 111 !important;
}

/* Compact Footer */
.footer {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  width: 100%;
  border-top: 3px solid #4f46e5;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(1.2);
  display: none; /* Hide the logo image */
}

.footer-brand p {
  color: #d1d5db;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-group h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.5px;
}

.footer-group a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
  position: relative;
  display: inline-block;
  width: fit-content;
}

.footer-group a:hover {
  color: #818cf8;
  padding-left: 0.5rem;
}

.footer-group a::before {
  content: '›';
  position: absolute;
  left: -0.25rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-group a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-social {
  display: flex;
  flex-direction: column;
}

.footer-social h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.social-links a:hover {
  transform: translateY(-3px);
  background: rgba(79, 70, 229, 0.2);
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-content p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-bottom a:hover {
  color: #818cf8;
}

.footer-bottom span {
  color: #6b7280;
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Navigation Styles */
.navbar {
  display: flex !important;
  align-items: center !important;
  height: 50px !important;
  margin-left: auto !important;
}

.nav-menu {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0.8rem !important;
  height: 50px !important;
  align-items: center !important;
}

.nav-item {
  position: relative;
}

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

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  z-index: 1000;
}

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

.dropdown-link {
  display: block;
  padding: 0.6rem 1rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.dropdown-link:hover {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

.dropdown-link.active {
  background: rgba(79, 70, 229, 0.15);
  color: #4f46e5;
  font-weight: 600;
}

.nav-link {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  padding: 0.1rem 0.3rem !important;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.85rem !important;
  line-height: 1 !important;
}

.nav-link:hover,
.nav-link.active {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #4f46e5;
  border-radius: 1px;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .header-content {
    align-items: flex-start;
  }

  .navbar {
    width: 100%;
    order: 3;
  }

  .hamburger {
    display: flex;
    order: 2;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .nav-link {
    padding: 1rem 2rem;
    display: block;
    font-size: 1.1rem;
  }

  .nav-link.active::after {
    display: none;
  }

  /* Mobile Dropdown Styles */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(79, 70, 229, 0.05);
    margin: 0;
    padding: 0;
  }

  .dropdown-link {
    padding: 0.8rem 3rem;
    font-size: 1rem;
    border-left: 3px solid transparent;
  }

  .dropdown-link.active {
    border-left-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
  }

  .dropdown-toggle::after {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Main Content */
.main-content {
  padding: 0.5rem 0;
  min-height: calc(100vh - 200px);
  width: 100%;
}

/* IP Section Styles */
.ip-section {
  margin-bottom: 2rem;
  width: 100%;
}

.ip-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  transition: all 0.3s ease;
}

.ip-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(79, 70, 229, 0.12);
}

.ip-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899, #06b6d4);
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero Header */
.hero-header {
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 auto;
}.ip-display {
  margin-bottom: 0;
}

.ip-main-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.ip-addresses-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ip-version-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ip-version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ip-label {
  font-size: 1rem;
  font-weight: 700;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ip-address {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Courier New", monospace;
  padding: 1rem;
  background: linear-gradient(135deg, 
    rgba(79, 70, 229, 0.1), 
    rgba(124, 58, 237, 0.1));
  border-radius: 12px;
  border: 2px solid rgba(79, 70, 229, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 60px;
  display: flex;
  align-items: center;
  word-break: break-all;
}

.ipv4-address {
  border-color: rgba(79, 70, 229, 0.3);
}

.ipv6-address {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.1), 
    rgba(5, 150, 105, 0.1));
}

.ip-address:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.2);
}

.ipv6-address:hover {
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
}

.copy-ip-btn {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-ip-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.loading {
  color: #6b7280;
  font-style: italic;
}

.error {
  color: #ef4444;
  font-weight: 600;
}

.not-available {
  color: #9ca3af;
  font-style: italic;
}

@media (max-width: 768px) {
  .ip-addresses-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ip-address {
    font-size: 1.2rem;
    padding: 0.75rem;
    min-height: 50px;
  }
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.action-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4f46e5;
  backdrop-filter: blur(10px);
}

.action-btn:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.action-btn:active {
  transform: translateY(0);
}

.ip-value {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

.ip-value:hover {
  color: #7c3aed;
  transform: scale(1.02);
}

/* Copy button styling - Updated */
.copy-btn {
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #4f46e5;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

.copy-btn:hover {
  background: rgba(79, 70, 229, 0.2);
  transform: scale(1.1);
}

.loading {
  color: #f59e0b;
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

.error {
  color: #ef4444;
  font-size: 1.5rem;
}

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

/* IP Details Grid */
.ip-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0 0;
  width: 100%;
}

.detail-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(229, 231, 235, 0.6);
  transition: all 0.3s ease;
  text-align: center;
  backdrop-filter: blur(5px);
}

.detail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(79, 70, 229, 0.3);
}

.detail-icon {
  font-size: 1.5rem;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.detail-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.detail-item .label {
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-item .value {
  color: #1f2937;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
}
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-item .value {
  font-size: 1.1rem;
  color: #1f2937;
  font-weight: 500;
}

/* Privacy Notice */
.privacy-notice {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.privacy-notice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.privacy-icon {
  font-size: 1.5rem;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-text {
  color: #92400e;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.privacy-text strong {
  color: #78350f;
  font-weight: 700;
}

.privacy-link {
  color: #d97706;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.privacy-link:hover {
  color: #92400e;
  text-decoration: underline;
}

/* Refresh Button */
.refresh-btn {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

/* Ad Placement Styles */
.ad-banner,
.ad-section {
  margin: 0.5rem 0;
  text-align: center;
}

/* AdSense Ad Slots */
.ad-placeholder {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  overflow: hidden;
}

.ad-placeholder .adsbygoogle {
  display: block;
  margin: 0 auto;
}

/* Specific ad slot sizes */
.ad-top .ad-placeholder {
  max-width: 728px;
  min-height: 90px;
}

.ad-middle .ad-placeholder {
  max-width: 336px;
  min-height: 280px;
}

.ad-bottom .ad-placeholder {
  max-width: 300px;
  min-height: 250px;
}

/* Responsive ad handling */
@media (max-width: 768px) {
  .ad-placeholder {
    max-width: 100%;
  }
  
  .ad-placeholder .adsbygoogle {
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
    min-height: 100px;
  }
}

/* Tools Section */
.tools-section {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin: 2rem auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 1200px;
}

.tools-section .container {
  max-width: none;
  padding: 0;
}

.tools-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #1e40af;
  margin-bottom: 2rem;
  font-weight: 700;
}

.tools-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  background: #ffffff;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  height: 280px; /* Increased height to accommodate buttons */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0; /* Prevents overflow in grid */
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  text-decoration: none;
  color: inherit;
}

/* Coming Soon Banner */
.coming-soon-banner {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Tool Action Buttons */
.tool-action-btn {
  margin-top: auto;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.active-tool-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.active-tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.coming-soon-btn {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  cursor: not-allowed;
  opacity: 0.7;
}

.coming-soon-btn:disabled {
  transform: none;
  box-shadow: none;
}

/* Make functional tool cards clickable */
.tool-card[data-tool] {
  cursor: pointer;
}

.tool-card[data-tool]:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.tool-icon {
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
}

.tool-icon svg {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon svg {
  transform: scale(1.1);
}

.tool-card h3 {
  font-size: 1.1rem;
  color: #1e40af;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.tool-card p {
  color: #64748b;
  line-height: 1.4;
  font-size: 0.85rem;
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  text-align: center;
}

/* Tools Section Responsive */
@media (max-width: 1200px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .tool-card {
    height: 200px;
    padding: 1.2rem 0.8rem;
  }
  
  .tool-icon {
    height: 60px;
  }
  
  .tool-icon svg {
    width: 50px;
    height: 50px;
  }
  
  .tool-card h3 {
    font-size: 1rem;
  }
  
  .tool-card p {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .tools-section {
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
  }
  
  .tools-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .tool-card {
    height: 240px; /* Increased for buttons */
    padding: 1rem 0.8rem;
  }
  
  .tool-icon {
    height: 50px;
    margin-bottom: 0.8rem;
  }
  
  .tool-icon svg {
    width: 45px;
    height: 45px;
  }
  
  .tool-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }
  
  .tool-card p {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }
  
  .tool-action-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .coming-soon-banner {
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .tools-section h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .tool-card {
    height: 200px; /* Increased for mobile buttons */
    padding: 0.8rem 0.6rem;
  }
  
  .tool-icon {
    height: 40px;
    margin-bottom: 0.6rem;
  }
  
  .tool-icon svg {
    width: 35px;
    height: 35px;
  }
  
  .tool-card h3 {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }
  
  .tool-card p {
    font-size: 0.7rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
  }
  
  .tool-action-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  
  .coming-soon-banner {
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    font-size: 0.6rem;
  }
}
}

/* FAQ Section */
.faq-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 3rem 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #1f2937;
  margin-bottom: 3rem;
  font-weight: 600;
}

.faq-item {
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  padding: 2rem 0;
}

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

.faq-item h3 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 600;
  cursor: default;
}

.faq-item p {
  color: #6b7280;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Privacy Section */
.privacy-section {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #fca5a5;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 3rem 0;
}

.privacy-section h2 {
    color: #991b1b;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.privacy-content {
    color: #7f1d1d;
}

.privacy-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.privacy-content ul {
    list-style: none;
    padding-left: 0;
}

.privacy-content li {
    background: rgba(255, 255, 255, 0.5);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #dc2626;
}

.privacy-content strong {
    color: #991b1b;
}

/* What's My IP Section */
.whats-my-ip-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.whats-my-ip-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 3rem;
    font-weight: 600;
}

.ip-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
    border-left: 4px solid #4f46e5;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  font-weight: 500;
}

.notification.show {
  transform: translateX(0);
}

/* Responsive Design */

/* Responsive Design */

/* Large screens - full width utilization */
@media (min-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 60px;
  }
  
  .ip-card {
    padding: 3rem 4rem;
  }
  
  .ip-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 2rem;
  }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
  .container {
    max-width: 100%;
    padding: 0 100px;
  }
  
  .ip-card {
    padding: 4rem 6rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .logo h1 {
    font-size: 2rem;
  }

  .ip-card {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .ip-address {
    font-size: 1.8rem;
    min-width: auto;
    width: 100%;
    padding: 0.875rem 1rem;
  }

  .ip-address-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .copy-ip-btn {
    width: 100%;
    max-width: 150px;
  }

  .detail-item {
    padding: 0.875rem;
  }

  .ip-details {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .ip-details {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
  }

  .ip-card {
    padding: 1.5rem;
  }

  .tools-section,
  .faq-section,
  .privacy-section {
    padding: 2rem 1.5rem;
  }

  .notification {
    right: 10px;
    left: 10px;
    transform: translateY(-100%);
  }

  .notification.show {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .ip-address {
    font-size: 1.5rem;
    padding: 0.75rem;
  }

  .ip-card h2 {
    font-size: 1.5rem;
  }

  .tools-section h2,
  .faq-section h2 {
    font-size: 2rem;
  }

  .privacy-section h2 {
    font-size: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .ad-banner,
  .ad-section,
  .footer,
  .refresh-btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .ip-card,
  .tools-section,
  .faq-section,
  .privacy-section {
    background: white;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus states for accessibility */
button:focus,
a:focus,
.ip-value:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .ip-card,
  .tools-section,
  .faq-section {
    border: 2px solid #000;
  }

  .tool-card {
    border: 1px solid #000;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  }

  .header {
    background: rgba(31, 41, 55, 0.95);
  }

  .logo h1 {
    color: #818cf8;
  }

  .tagline {
    color: #9ca3af;
  }

  .ip-card,
  .tools-section,
  .faq-section {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.5);
  }

  .ip-card h2,
  .tools-section h2,
  .faq-section h2 {
    color: #f9fafb;
  }

  .detail-item {
    background: rgba(55, 65, 81, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.5);
  }

  .detail-item .label {
    color: #d1d5db;
  }

  .detail-item .value {
    color: #f9fafb;
  }

  .tool-card {
    background: rgba(55, 65, 81, 0.9);
    border: 1px solid rgba(107, 114, 128, 0.5);
  }

  .tool-card h3 {
    color: #f9fafb;
  }

  .tool-card p {
    color: #d1d5db;
  }

  .faq-item h3 {
    color: #f9fafb;
  }

  .faq-item p {
    color: #d1d5db;
  }
}

/* Page Content Styles */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(79, 70, 229, 0.1);
}

.page-header h1 {
  font-size: 3rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  font-weight: 400;
}

.content-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.content-section h2 {
  color: #1f2937;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid #4f46e5;
  padding-bottom: 0.5rem;
}

.content-section h3 {
  color: #374151;
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.content-section p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
  color: #4b5563;
  line-height: 1.7;
  margin: 1rem 0;
  padding-left: 2rem;
}

.content-section li {
  margin: 0.5rem 0;
}

.content-section a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

.content-section a:hover {
  text-decoration: underline;
}

/* Features Grid for About Page */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-card h3 {
  color: #1f2937;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

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

/* Contact Page Styles */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.contact-info {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.5);
  height: fit-content;
}

.contact-methods {
  margin-top: 2rem;
}

.contact-method {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(249, 250, 251, 0.8);
  border-radius: 10px;
  border-left: 4px solid #4f46e5;
}

.contact-method h3 {
  color: #1f2937;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-method p {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-method a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
}

.contact-method a:hover {
  text-decoration: underline;
}

.contact-form-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.contact-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
}

.submit-btn {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

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

/* Form Messages */
.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.error-message {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid #fca5a5;
  color: #7f1d1d;
}

.success-message {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #86efac;
  color: #14532d;
}

.loading-message {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  color: #92400e;
}

.form-message h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-message ul {
  margin: 0;
  padding-left: 1.5rem;
}

/* FAQ Preview on Contact Page */
.faq-preview {
  margin-top: 1.5rem;
}

.faq-item-preview {
  background: rgba(249, 250, 251, 0.8);
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 10px;
  border-left: 4px solid #4f46e5;
}

.faq-item-preview h3 {
  color: #1f2937;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.faq-item-preview p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Report Sections */
.report-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

.report-type {
  background: rgba(249, 250, 251, 0.8);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.report-type h3 {
  color: #1f2937;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.report-type p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.report-type ul {
  color: #4b5563;
  margin: 0;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .content-section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .report-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-content {
    padding: 1rem 0;
  }

  .page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .content-section {
    padding: 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.6rem;
  }
}

/* New Card-based Layout Styles */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.info-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 0.875rem;
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: rgba(79, 70, 229, 0.4);
}

.info-card:hover::before {
  opacity: 1;
}

.location-card:hover::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.isp-card:hover::before { background: linear-gradient(90deg, #8b5cf6, #a855f7); }
.country-card:hover::before { background: linear-gradient(90deg, #10b981, #059669); }
.region-card:hover::before { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.timezone-card:hover::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.organization-card:hover::before { background: linear-gradient(90deg, #6366f1, #4f46e5); }
.asn-card:hover::before { background: linear-gradient(90deg, #ec4899, #db2777); }

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-header .card-icon {
  font-size: 1.1rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(79, 70, 229, 0.1);
}

.location-card .card-icon { background: rgba(239, 68, 68, 0.15); }
.isp-card .card-icon { background: rgba(139, 92, 246, 0.15); }
.country-card .card-icon { background: rgba(16, 185, 129, 0.15); }
.region-card .card-icon { background: rgba(6, 182, 212, 0.15); }
.timezone-card .card-icon { background: rgba(245, 158, 11, 0.15); }
.organization-card .card-icon { background: rgba(99, 102, 241, 0.15); }
.asn-card .card-icon { background: rgba(236, 72, 153, 0.15); }

.card-header .card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4b5563;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.card-content {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  word-break: break-word;
  line-height: 1.4;
  min-height: 20px;
}

/* Enhanced states for better accessibility */
.card-content .loading {
  color: #6366f1;
  font-style: italic;
  animation: pulse 2s infinite;
}

.card-content .error {
  color: #dc2626;
  font-weight: 700;
}

.card-content .not-available {
  color: #6b7280;
  font-style: italic;
}

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

/* Improved focus states for accessibility */
.info-card {
  outline: none;
  transition: all 0.3s ease, outline 0.2s ease;
}

.info-card:focus-within {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .info-card {
    border: 2px solid #000;
    background: #fff;
  }
  
  .card-header .card-title {
    color: #000;
  }
  
  .card-content {
    color: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .info-card {
    transition: none;
  }
  
  .info-card:hover {
    transform: none;
  }
  
  .card-content .loading {
    animation: none;
  }
}

.map-placeholder {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 8px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .info-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
  }
  
  .info-card {
    padding: 0.75rem;
  }
  
  .card-header .card-title {
    font-size: 0.7rem;
  }
  
  .card-content {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* Tool Pages Styles */
.breadcrumb {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
  color: #3b82f6;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.tool-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0;
  color: white;
  text-align: center;
}

.tool-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.tool-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tool-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1a365d;
  font-size: 1.1rem;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.tool-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.tool-form input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lookup-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lookup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.lookup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tool-help {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.lookup-results {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.lookup-results h3 {
  margin-top: 0;
  color: #1a365d;
  margin-bottom: 1rem;
}

.result-grid {
  display: block;
  margin: 1rem 0;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  gap: 1rem;
}

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

.result-item strong {
  color: #4b5563;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 120px;
}

.result-item span {
  color: #1a365d;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
  flex: 1;
}

.error-message {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
}

.info-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem 0;
}

.info-section h2 {
  color: #1a365d;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.info-section h3 {
  color: #1a365d;
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.info-section h4 {
  color: #1a365d;
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem 0;
  font-weight: 600;
}

.info-section p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #3b82f6;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-card p {
  margin: 0;
  font-size: 0.9rem;
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.feature-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.feature-content p {
  margin: 0;
  font-size: 0.9rem;
}

.limitation-list {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.limitation-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
}

.limitation-icon {
  font-size: 1.2rem;
  color: #dc2626;
}

.privacy-note {
  background: rgba(16, 185, 129, 0.1);
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #10b981;
  margin: 1.5rem 0;
}

.accuracy-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.accuracy-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accuracy-percentage {
  font-size: 3rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.5rem;
}

.accuracy-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 1rem;
}

.accuracy-item p {
  margin: 0;
  font-size: 0.9rem;
}

.ip-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.ip-type {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #3b82f6;
}

.ip-type h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.ip-type p {
  margin-bottom: 0.8rem;
}

.geolocation-sources {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.geolocation-sources li {
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  border-left: 4px solid #3b82f6;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.use-case {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.use-case h4 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.use-case p {
  margin: 0;
  font-size: 0.9rem;
}

.privacy-guidelines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.guideline {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guideline:first-child {
  border-top: 4px solid #10b981;
}

.guideline:last-child {
  border-top: 4px solid #f59e0b;
}

.guideline h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.guideline ul {
  margin: 0;
  padding-left: 1.2rem;
}

.guideline li {
  margin-bottom: 0.5rem;
}

.related-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.related-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.related-tool:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.related-tool .tool-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.related-tool .tool-name {
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 0.3rem;
}

.related-tool .tool-desc {
  font-size: 0.9rem;
  color: #666;
}

/* Ad Sections */
.ad-section {
  margin: 2rem 0;
  text-align: center;
}

.ad-top {
  margin-top: 2rem;
}

.ad-middle {
  margin: 3rem 0;
}

.ad-bottom {
  margin-bottom: 2rem;
}

.ad-placeholder {
  background: rgba(0, 0, 0, 0.1);
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

/* Tool Pages Mobile Responsive */
@media (max-width: 768px) {
  .tool-hero h1 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .tool-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .lookup-btn {
    width: 100%;
  }
  
  .result-item {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .info-section {
    padding: 2rem 0;
  }
  
  .info-section h2 {
    font-size: 1.5rem;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .accuracy-percentage {
    font-size: 2rem;
  }
}

/* Additional Tool Page Styles */
.anonymization-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.anon-type {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #3b82f6;
}

.anon-type h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1a365d;
}

.anon-type p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.best-practices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.practice {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #10b981;
}

.practice h4 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #1a365d;
}

.practice p {
  margin: 0;
  font-size: 0.9rem;
}

.scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.scenario {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #f59e0b;
}

.scenario h4 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #1a365d;
}

.scenario p {
  margin: 0;
  font-size: 0.9rem;
}

.risk-low {
  color: #10b981;
  font-weight: 600;
}

.risk-medium {
  color: #f59e0b;
  font-weight: 600;
}

.risk-high {
  color: #ef4444;
  font-weight: 600;
}

.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-safe { 
  background-color: #10b981; 
}

.status-warning { 
  background-color: #f59e0b; 
}

.status-danger { 
  background-color: #ef4444; 
}

/* Speed Test Technology Section */
.speed-disclaimer {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid #f59e0b;
}

.speed-disclaimer h4 {
  margin: 0 0 0.8rem 0;
  color: #d97706;
  font-size: 1.1rem;
}

.speed-disclaimer p {
  margin: 0 0 1rem 0;
  color: #92400e;
  line-height: 1.5;
}

.speed-disclaimer ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #92400e;
}

.speed-disclaimer li {
  margin: 0.3rem 0;
}

.limitation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.limitation-item {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 6px;
  padding: 1rem;
}

.limitation-item h5 {
  margin: 0 0 0.5rem 0;
  color: #dc2626;
  font-size: 0.95rem;
}

.limitation-item p {
  margin: 0;
  color: #7f1d1d;
  font-size: 0.9rem;
  line-height: 1.4;
}

.speed-technology {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tech-item {
  background: rgba(79, 70, 229, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #4f46e5;
}

.tech-item h4 {
  margin: 0 0 0.5rem 0;
  color: #4f46e5;
  font-size: 1.1rem;
}

.tech-item p {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

/* Alternative Services Section */
.alternative-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-item h4 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1.2rem;
}

.service-item p {
  margin: 0.5rem 0;
  color: #6b7280;
  line-height: 1.5;
}

.service-item p strong {
  color: #374151;
  font-weight: 600;
}

/* Speed Test Results */
.result-grid {
  display: block;
  margin: 1rem 0;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  gap: 2rem;
}
  padding: 0.8rem;
  background: rgba(79, 70, 229, 0.05);
  border-radius: 6px;
  border-left: 3px solid #4f46e5;
}

.quality-excellent {
  color: #10b981;
  font-weight: 600;
}

.quality-good {
  color: #059669;
  font-weight: 600;
}

.quality-fair {
  color: #d97706;
  font-weight: 600;
}

.quality-poor {
  color: #dc2626;
  font-weight: 600;
}

.speed-analysis {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #4f46e5;
}

.speed-analysis h4 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
}

.speed-analysis p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: #4b5563;
}

.error-message {
  text-align: center;
  padding: 2rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border-left: 4px solid #ef4444;
}

.error-message h3 {
  color: #dc2626;
  margin: 0 0 0.5rem 0;
}

.error-message p {
  color: #991b1b;
  margin: 0;
}

/* Speed Test Methods */
.speed-test-options h3 {
  text-align: center;
  color: #1f2937;
  margin-bottom: 1rem;
}

.speed-test-options > p {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.speed-test-methods {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)) !important;
  gap: 2rem !important;
  margin: 2rem 0;
}

.test-method {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
}

.test-method:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.test-method iframe {
  flex-grow: 1;
  min-height: 200px;
  margin-top: 1rem;
}

/* Force horizontal layout - High specificity override */
body .speed-test-methods {
  display: -ms-grid !important;
  display: grid !important;
  -ms-grid-columns: 1fr 2rem 1fr 2rem 1fr !important;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)) !important;
  gap: 2rem !important;
  width: 100% !important;
}

body .test-method {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: vertical !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: column !important;
  flex-direction: column !important;
  min-height: 450px !important;
}

.external-link, .browser-test-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 1rem;
}

.test-method.primary-method {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.test-method h4 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  font-size: 1.3rem;
}

.test-method p {
  margin: 0 0 1.5rem 0;
  color: #6b7280;
  line-height: 1.5;
}

.external-link {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.speedtest-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #4f46e5;
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 250px;
  text-align: center;
}

.speedtest-link:hover {
  background: #4338ca;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.external-icon {
  font-size: 1.2rem;
}

.browser-test-container {
  border: 1px solid #fbbf24;
  background: rgba(251, 191, 36, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
}

.browser-test-warning {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 6px;
  border-left: 4px solid #f59e0b;
}

.browser-test-warning p {
  margin: 0;
  color: #92400e;
  font-size: 0.9rem;
  line-height: 1.4;
}

.speed-test-interface {
  text-align: center;
}

.speed-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
}

.speed-metric {
  text-align: center;
}

.speed-value {
  font-size: 3rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 0.5rem;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speed-label {
  font-size: 1rem;
  color: #4b5563;
  font-weight: 600;
}

.speed-controls {
  margin-bottom: 2rem;
}

.test-progress {
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 500;
}

.test-results {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border-left: 4px solid #10b981;
}

.speed-analysis {
  margin-top: 1rem;
  text-align: left;
}

.speed-analysis h4 {
  margin: 1rem 0 0.5rem 0;
  color: #1a365d;
}

.speed-analysis p {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.quality-excellent {
  color: #10b981;
  font-weight: 600;
}

.quality-good {
  color: #059669;
  font-weight: 600;
}

.quality-fair {
  color: #f59e0b;
  font-weight: 600;
}

.quality-poor {
  color: #ef4444;
  font-weight: 600;
}

.speed-requirements {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.requirement-category {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #3b82f6;
}

.requirement-category h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1a365d;
}

.requirement-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.requirement-speed {
  font-weight: 600;
  color: #3b82f6;
  min-width: 80px;
}

.requirement-activity {
  color: #4b5563;
  text-align: right;
}

.speed-factors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.factor {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #10b981;
}

.factor h4 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #1a365d;
}

.factor p {
  margin: 0;
  font-size: 0.9rem;
}

.optimization-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tip-category {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #f59e0b;
}

.tip-category h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1a365d;
}

.tip-category ul {
  margin: 0;
  padding-left: 1.2rem;
}

.tip-category li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.result-interpretation {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.interpretation-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #6366f1;
}

.interpretation-item h4 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #1a365d;
}

.interpretation-item p {
  margin: 0;
  font-size: 0.9rem;
}

.common-issues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.issue {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ef4444;
}

.issue h4 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #1a365d;
}

.issue p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Speed Test Mobile Responsive */
@media (max-width: 768px) {
  .speed-display {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .speed-value {
    font-size: 2rem;
    min-height: 3rem;
  }
  
  .speed-label {
    font-size: 0.9rem;
  }
  
  .requirement-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .requirement-activity {
    text-align: left;
  }
}

/* Speed Test Methods Responsive */
@media (max-width: 1200px) {
  .speed-test-methods {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .speed-test-methods {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .test-method {
    min-height: 350px;
    padding: 1.5rem;
  }
  
  .test-method iframe {
    min-height: 150px;
  }
}

/* SEO Enhancement Styles */
.faq-section {
  margin: 2rem 0;
}

.faq-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  color: #2563eb;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.faq-item p {
  margin: 0;
  line-height: 1.6;
  color: #4b5563;
}

.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.article-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.article-item:hover {
  transform: translateY(-2px);
}

.article-item h4 {
  margin: 0 0 0.5rem 0;
}

.article-item h4 a {
  color: #2563eb;
  text-decoration: none;
}

.article-item h4 a:hover {
  text-decoration: underline;
}

.technical-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tech-detail {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tech-detail h4 {
  color: #2563eb;
  margin: 0 0 1rem 0;
}

.accuracy-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #10b981;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.tech-evolution {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.evolution-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.evolution-item h4 {
  color: #2563eb;
  margin: 0 0 1rem 0;
}

@media (max-width: 768px) {
  .related-articles,
  .technical-details,
  .accuracy-stats,
  .tech-evolution {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* VPN Detection Results Styles */
.vpn-result-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.vpn-status {
  text-align: center;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  border: 2px solid;
}

.vpn-status .status-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.vpn-status h2 {
  margin: 0.25rem 0;
  font-size: 1.5rem;
}

.vpn-status .ip-checked {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.risk-indicator {
  background: rgba(0, 0, 0, 0.02);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.risk-indicator h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  color: #374151;
}

.risk-bar {
  width: 100%;
  height: 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.risk-fill {
  height: 100%;
  transition: width 0.6s ease;
  border-radius: 10px;
}

.risk-score {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.detection-details {
  margin-bottom: 1.25rem;
}

.detection-details h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  color: #374151;
}

.indicator-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.indicator-list li {
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid #3b82f6;
  margin-bottom: 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #1f2937;
}

.ip-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ip-details-grid .detail-item {
  background: rgba(0, 0, 0, 0.02);
  padding: 0.75rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ip-details-grid .detail-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ip-details-grid .detail-value {
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 500;
}

.result-note {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  padding: 0.75rem;
  margin-top: 1rem;
}

.result-note p {
  margin: 0;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.4;
}

/* Loading and Error States */
.loading-state {
  text-align: center;
  padding: 3rem 2rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(79, 70, 229, 0.1);
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.loading-state p {
  color: #6b7280;
  font-size: 1rem;
}

.error-state {
  text-align: center;
  padding: 2rem;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
}

.error-state .error-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.error-state h3 {
  color: #dc2626;
  margin: 0.5rem 0;
}

.error-state p {
  color: #991b1b;
  margin: 0.5rem 0 0 0;
}

/* IP Lookup Results */
.lookup-result-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lookup-result-card h2 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1.8rem;
}

.ip-address-display {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4f46e5;
  text-align: center;
  padding: 1rem;
  background: rgba(79, 70, 229, 0.05);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.info-item {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-item .info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-item .info-content {
  flex: 1;
}

.info-item .info-content strong {
  display: block;
  color: #6b7280;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.info-item .info-content p {
  margin: 0.25rem 0;
  color: #1f2937;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .ip-details-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .vpn-status h2 {
    font-size: 1.4rem;
  }
  
  .ip-address-display {
    font-size: 1.2rem;
  }
}

/* Enhanced Mobile Optimization - Compact Layout */
@media (max-width: 768px) {
  /* Hero Section - More Compact */
  .hero-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* IP Card - Compact */
  .ip-card {
    padding: 1rem !important;
    margin: 1rem auto !important;
    max-width: 95% !important;
  }
  
  /* IP Address Labels */
  .ip-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.3rem !important;
  }
  
  /* IP Address Display */
  .ip-address {
    font-size: 1.1rem !important;
    padding: 0.6rem !important;
    word-break: break-all !important;
  }
  
  /* IPv6 "Not available" text */
  .ip-address-display {
    font-size: 0.95rem !important;
    padding: 0.6rem !important;
  }
  
  /* Refresh Button - Compact */
  .refresh-btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
    margin-top: 0.8rem !important;
  }
  
  /* Info Cards (Location, ISP, etc.) - Compact */
  .ip-info {
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }
  
  .info-card {
    padding: 0.7rem !important;
  }
  
  .info-label {
    font-size: 0.7rem !important;
    margin-bottom: 0.2rem !important;
  }
  
  .info-value {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
  }
  
  /* Tool Cards Section - Compact & Aesthetic */
  .tools-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
    padding: 0 0.5rem !important;
  }
  
  .tool-card {
    min-height: auto !important;
    height: auto !important;
    padding: 0.8rem 0.6rem !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  .tool-icon {
    height: 32px !important;
    margin-bottom: 0.4rem !important;
    flex-shrink: 0 !important;
  }
  
  .tool-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
  
  .tool-card h3 {
    font-size: 0.85rem !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
  }
  
  .tool-card p {
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.4rem !important;
    opacity: 0.9 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  
  .tool-action-btn {
    font-size: 0.6rem !important;
    padding: 0.35rem 0.6rem !important;
    margin-top: auto !important;
    white-space: nowrap !important;
  }
  
  .tool-badge {
    font-size: 0.6rem !important;
    padding: 0.35rem 0.6rem !important;
    margin-top: auto !important;
  }
  
  /* Section Titles - Compact */
  h2 {
    font-size: 1.2rem !important;
    margin-bottom: 0.8rem !important;
    margin-top: 0.5rem !important;
  }
  
  /* Section spacing - More Compact */
  section {
    padding: 1.5rem 0 !important;
  }
  
  /* Tools section specific */
  .tools-section {
    padding: 1rem 0 !important;
  }
}

/* Enhanced Mobile Optimization - Compact View */
@media (max-width: 768px) {
  /* Hero Section - More Compact */
  .hero-title {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* IP Cards - Compact Layout */
  .ip-card {
    padding: 1rem !important;
    margin: 0.75rem 0 !important;
  }
  
  .ip-label {
    font-size: 0.85rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .ip-address {
    font-size: 1.3rem !important;
    padding: 0.6rem !important;
    min-height: auto !important;
  }
  
  /* Not Available Text - Fit Better */
  .ip-address.not-available {
    font-size: 1.1rem !important;
    padding: 0.7rem 0.5rem !important;
  }
  
  /* Refresh Button - Smaller */
  .refresh-btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
    margin-top: 1rem !important;
  }
  
  /* Info Cards (Location, ISP, etc.) - More Compact */
  .info-card {
    padding: 0.8rem !important;
  }
  
  .info-label {
    font-size: 0.75rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  .info-value {
    font-size: 0.95rem !important;
  }
  
  /* Unknown/Not Available States */
  .info-value:contains("Unknown"),
  .info-value:contains("Not available") {
    font-size: 0.85rem !important;
    opacity: 0.7;
  }
  
  /* Container Spacing */
  .container {
    padding: 0.75rem !important;
  }
  
  /* Section Spacing */
  section {
    padding: 1.5rem 0 !important;
  }
  
  /* Card Grids - Single Column with Less Gap */
  .ip-info-grid,
  .info-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  /* Logo - Slightly Smaller */
  .logo-image {
    height: 80px !important;
  }
  
  /* Header - Reduced Padding */
  .header {
    padding: 0.3rem 0 !important;
  }
  
  /* Buttons - More Compact */
  button, .btn {
    padding: 0.7rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Tool Cards - Compact */
  .tool-card {
    padding: 1.2rem !important;
  }
  
  .tool-card h3 {
    font-size: 1.1rem !important;
  }
  
  .tool-card p {
    font-size: 0.85rem !important;
  }
}

/* Extra Small Devices (< 480px) - Even More Compact */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem !important;
  }
  
  .ip-address {
    font-size: 1.1rem !important;
  }
  
  .ip-card {
    padding: 0.75rem !important;
  }
  
  .info-card {
    padding: 0.6rem !important;
  }
  
  .logo-image {
    height: 70px !important;
  }
}

/* Enhanced Mobile Optimizations for Compact View */
@media (max-width: 768px) {
  /* Reduce overall card padding for compactness */
  .ip-card {
    padding: 1rem !important;
    margin: 0.75rem 0 !important;
  }
  
  /* Make hero title smaller and more compact */
  .hero-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
  }
  
  /* Reduce subtitle */
  .hero-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Make IP labels smaller */
  .ip-label {
    font-size: 0.75rem !important;
    margin-bottom: 0.35rem !important;
  }
  
  /* Compact IP address display */
  .ip-address {
    font-size: 1.4rem !important;
    padding: 0.65rem 0.85rem !important;
    min-height: 50px !important;
    word-break: break-all !important;
  }
  
  /* Reduce button size */
  .btn, .copy-ip-btn, #refresh-ip-btn {
    font-size: 0.85rem !important;
    padding: 0.6rem 1.2rem !important;
  }
  
  /* Compact detail items */
  .detail-item {
    padding: 0.65rem !important;
  }
  
  .detail-label {
    font-size: 0.75rem !important;
  }
  
  .detail-value {
    font-size: 0.9rem !important;
    margin-top: 0.25rem !important;
  }
  
  /* Reduce spacing in IP details grid */
  .ip-details {
    gap: 0.65rem !important;
    margin-top: 1rem !important;
  }
  
  /* Location card compact */
  .location-card {
    padding: 0.85rem !important;
  }
  
  .location-card h3 {
    font-size: 0.95rem !important;
  }
  
  .location-card p {
    font-size: 0.85rem !important;
  }
  
  /* Container padding */
  .container {
    padding: 0 12px !important;
  }
  
  /* Header compact */
  .header {
    padding: 0.4rem 0 !important;
  }
  
  .logo-image {
    height: 80px !important;
  }
  
  /* Section spacing */
  section {
    padding: 1.5rem 0 !important;
  }
  
  /* Tool cards */
  .tool-card {
    padding: 1rem !important;
  }
  
  .tool-card h3 {
    font-size: 1.1rem !important;
  }
  
  .tool-card p {
    font-size: 0.85rem !important;
  }
}

