
  @layer base {
    :root {
      --background: 0 0% 100%;
      --foreground: 222.2 84% 4.9%;
      --card: 0 0% 100%;
      --card-foreground: 222.2 84% 4.9%;
      --popover: 0 0% 100%;
      --popover-foreground: 222.2 84% 4.9%;
      --primary: 222.2 47.4% 11.2%;
      --primary-foreground: 210 40% 98%;
      --secondary: 210 40% 96.1%;
      --secondary-foreground: 222.2 47.4% 11.2%;
      --muted: 210 40% 96.1%;
      --muted-foreground: 215.4 16.3% 46.9%;
      --accent: 210 40% 96.1%;
      --accent-foreground: 222.2 47.4% 11.2%;
      --destructive: 0 84.2% 60.2%;
      --destructive-foreground: 210 40% 98%;
      --border: 214.3 31.8% 91.4%;
      --input: 214.3 31.8% 91.4%;
      --ring: 222.2 84% 4.9%;
      --radius: 0.5rem;
    }

    .dark {
      --background: 222.2 84% 4.9%;
      --foreground: 210 40% 98%;
      --card: 222.2 84% 4.9%;
      --card-foreground: 210 40% 98%;
      --popover: 222.2 84% 4.9%;
      --popover-foreground: 210 40% 98%;
      --primary: 210 40% 98%;
      --primary-foreground: 222.2 47.4% 11.2%;
      --secondary: 217.2 32.6% 17.5%;
      --secondary-foreground: 210 40% 98%;
      --muted: 217.2 32.6% 17.5%;
      --muted-foreground: 215 20.2% 65.1%;
      --accent: 217.2 32.6% 17.5%;
      --accent-foreground: 210 40% 98%;
      --destructive: 0 62.8% 30.6%;
      --destructive-foreground: 210 40% 98%;
      --border: 217.2 32.6% 17.5%;
      --input: 217.2 32.6% 17.5%;
      --ring: 212.7 26.8% 83.9;
    }
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  }

  body {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: 100vh;
    transition: all 0.3s ease;
    line-height: 1.6;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  /* Header & Navigation */
  header {
    background: hsl(var(--background));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid hsl(var(--border));
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
  }

  .logo-icon {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  }

  .logo-text {
    background: linear-gradient(135deg, hsl(var(--primary)), #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .nav-links a {
    text-decoration: none;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }

  .nav-links a:hover {
    color: hsl(var(--foreground));
  }

  .nav-links a.active {
    color: hsl(var(--primary));
  }

  .nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
  }

  .nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .theme-toggle,
  .auth-btn {
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .theme-toggle:hover,
  .auth-btn:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
  }

  .auth-btn.primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
  }

  /* Hero Section */
  .hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(
      135deg,
      hsl(var(--background)),
      hsl(var(--secondary) / 0.3)
    );
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    opacity: 0.03;
    border-radius: 50%;
    z-index: 0;
  }

  .hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--primary)), #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
  }

  .hero p {
    color: hsl(var(--muted-foreground));
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .search-container {
    max-width: 700px;
    margin: 0 auto 3rem;
    position: relative;
  }

  .search-box {
    display: flex;
    gap: 0.75rem;
    background: hsl(var(--background));
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid hsl(var(--border));
  }

  .search-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: none;
    background: transparent;
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .search-input:focus {
    outline: none;
  }

  .search-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 1.25rem 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
  }

  .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
  }

  .ip-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }

  .current-ip {
    background: hsl(var(--secondary));
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .copy-btn {
    background: hsl(var(--accent));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 0.5rem;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
    transition: all 0.3s ease;
  }

  .copy-btn:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
  }

  /* Features Section */
  .section {
    padding: 5rem 0;
  }

  .section-header {
    text-align: center;
    margin-bottom: 4rem;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
  }

  .section-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .feature-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
    text-align: center;
  }

  .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }

  .feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.75rem;
  }

  .feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
  }

  .feature-card p {
    color: hsl(var(--muted-foreground));
  }

  /* Results Section */
  .results {
    display: none;
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    border: 1px solid hsl(var(--border));
  }

  .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
  }

  .results-title {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .info-card {
    background: hsl(var(--secondary));
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid hsl(var(--border));
  }

  .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .info-card h3 {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .info-card p {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
  }

  .map-container {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    background: hsl(var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
  }

  /* Articles Section */
  .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
  }

  .article-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
  }

  .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }

  .article-image {
    height: 200px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
  }

  .article-content {
    padding: 1.5rem;
  }

  .article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
  }

  .article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
  }

  .article-card p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
  }

  .article-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
  }

  .article-link:hover {
    gap: 0.75rem;
  }

  /* Security Section */
  .security-section {
    background: linear-gradient(
      135deg,
      hsl(var(--background)),
      hsl(var(--secondary) / 0.3)
    );
    border-radius: var(--radius);
    padding: 4rem;
    text-align: center;
  }

  .security-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
  }

  .security-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
  }

  .security-section p {
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto 2rem;
  }

  /* Loading & Error States */
  .loading {
    display: none;
    text-align: center;
    padding: 3rem;
  }

  .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid hsl(var(--border));
    border-left: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  .error-message {
    display: none;
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive-foreground));
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid hsl(var(--destructive));
  }

  /* Footer */
  footer {
    background: hsl(var(--secondary));
    padding: 4rem 0 2rem;
    margin-top: 4rem;
  }

  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
  }

  .footer-column h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
  }

  .footer-links {
    list-style: none;
  }

  .footer-links li {
    margin-bottom: 0.75rem;
  }

  .footer-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-links a:hover {
    color: hsl(var(--foreground));
  }

  .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .container {
      padding: 0 1rem;
    }

    .nav-container {
      flex-direction: column;
      gap: 1rem;
    }

    .nav-links {
      gap: 1rem;
    }

    .hero h1 {
      font-size: 2.5rem;
    }

    .search-box {
      flex-direction: column;
    }

    .results-grid,
    .features-grid,
    .articles-grid {
      grid-template-columns: 1fr;
    }

    .security-section {
      padding: 2rem;
    }
 }