    :root {
      /* Enhanced Color Palette */
      --bg-light: #f8fafc;
      --bg-dark: #0f172a;
      --text-light: #1e293b;
      --text-dark: #f1f5f9;
      --primary: #6366f1;
      --primary-hover: #4f46e5;
      --secondary: #94a3b8;
      --card-light: rgba(255, 255, 255, 0.95);
      --card-dark: rgba(15, 23, 42, 0.95);
      --border-light: rgba(226, 232, 240, 0.8);
      --border-dark: rgba(30, 41, 59, 0.8);
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #ef4444;
    }

    [data-theme="dark"] {
      --bg: var(--bg-dark);
      --text: var(--text-dark);
      --card: var(--card-dark);
      --border: var(--border-dark);
    }

    [data-theme="light"] {
      --bg: var(--bg-light);
      --text: var(--text-light);
      --card: var(--card-light);
      --border: var(--border-light);
    }

    .site-title-link {
       color: inherit;         
       text-decoration: none;  
    }

    
    /* Basic menu styling */
    .main-nav {
     display: flex;
     gap: 1rem;
     justify-content: center;
     flex-wrap: wrap;
     margin: 1rem auto;
    }

    .main-nav a {
     text-decoration: none;
     padding: 0.5rem 1rem;
     background: var(--color-accent);
     color: #6366f1;
     border-radius: 5px;
     font-weight: bold;
     transition: background 0.3s;
    }
    .main-nav a:hover {
     background: var(--color-accent-dark);
    }
    /* Header layout */
    .site-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0.75rem 1rem;
     flex-wrap: wrap;
     position: relative;
    }

    .header-left h1 {
     margin: 0;
     font-size: 1.25rem;
    }

    .header-right {
     display: flex;
     align-items: center;
     gap: 0.5rem;
    }
    .header-buttons {
     display: flex;
     align-items: center;
     gap: 0.5rem;
    }
    .site-title {
     margin: 0;
     font-size: 1.25rem;
    }
    .hamburger {
     display: none; /* Hidden by default */
     font-size: 1.5rem;
     background: none;
     border: none;
     cursor: pointer;
     color: var(--text);
     padding: 0.4rem;
     z-index: 2; 
    }

    /* Mobile: Show hamburger and avoid overlap with toggle */
    @media (max-width: 768px) {
    .header-buttons {
     display: flex;
     flex-direction: row; /* Left to right order */ 
     align-items: center;
     gap: 0.5rem;
     order: 2; /* Ensure it stays on the right */
    } 

    .theme-toggle {
     order: 1; /* First in the header-buttons */
    }

    .hamburger {
     display: block;
     order: 2; /* Appears after the theme toggle */
     position: relative;
    } 

    .site-header {
     flex-wrap: wrap;
     justify-content: space-between;
    }
    }

    /* Responsive for mobile */
    @media (max-width: 768px) {
    .main-nav {
     display: none;
     flex-direction: column;
     align-items: center;
     gap: 0.75rem;
     padding: 1rem;
     background: var(--color-bg);
     border-top: 1px solid var(--color-border);
    }

    .main-nav.show {
     display: flex;
    }
    }
    .theme-toggle,
    .hamburger {
     background: none;
     border: none;
     font-size: 1.4rem;
     cursor: pointer;
     color: var(--color-text);
     padding: 0.4rem;
    }

    @media (max-width: 768px) {
    .header-left {
     flex: 1;
    }

    .header-right {
     gap: 0.25rem;
    }
  
    .header-buttons {
     gap: 0.4rem;
    }
    }

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: 'Poppins', sans-serif;
      margin: 0;
      padding: 0;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      transition: background 0.4s, color 0.4s;
    }

    /* Modern Header */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--primary);
      color: white;
      padding: 1rem 2rem;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    header h1 {
      font-size: 1.2rem;
      font-weight: 600;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .theme-toggle {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      color: white;
      cursor: pointer;
      font-size: 1rem;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .theme-toggle:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(30deg);
    }

    /* Enhanced Container */
    .container {
      flex-grow: 1;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: 2rem 1rem;
    }

    /* Modern Card Design */
    .box {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 1.25rem;
      padding: 2.5rem;
      width: 100%;
      max-width: 640px;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                  0 10px 10px -5px rgba(0, 0, 0, 0.04);
      backdrop-filter: blur(8px);
    }

    /* Hero Section */
    .hero {
      text-align: center;
      margin-bottom: 2.5rem;
    }

    .hero-title {
      font-size: 2.25rem;
      font-weight: 700;
      margin: 0 0 1rem;
      background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      line-height: 1.2;
    }

    .hero-description {
      font-size: 1.125rem;
      color: var(--secondary);
      line-height: 1.6;
      max-width: 80%;
      margin: 0 auto;
    }

    /* Form Section */
    .box h2 {
      text-align: center;
      margin: 0 0 1.5rem;
      font-size: 1.5rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      color: var(--primary);
    }

    .info-icon {
      color: var(--primary);
      cursor: pointer;
      position: relative;
      font-size: 1rem;
    }

    .info-icon:hover::after {
      content: "A honeypot is a hidden field bots often fill. If it's filled, the form is flagged as spam.";
      position: absolute;
      background: var(--text);
      color: var(--bg);
      font-size: 0.575rem;
      padding: 0.75rem;
      border-radius: 0.5rem;
      top: 2rem;
      left: -6rem;
      width: 240px;
      z-index: 100;
      line-height: 1.4;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .info-icon:hover::after {
      pointer-events: none;
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-top: 1.5rem;
    }

    /* Enhanced Input */
    input[type="url"] {
      padding: 1rem;
      font-size: 1rem;
      border-radius: 0.75rem;
      border: 1px solid var(--border);
      width: 100%;
      box-sizing: border-box;
      background: var(--bg);
      color: var(--text);
      transition: all 0.3s;
    }

    input[type="url"]:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }

    /* Enhanced Button */
    button[type="submit"] {
      padding: 1rem;
      font-size: 1rem;
      font-weight: 500;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 0.75rem;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    button[type="submit"]:hover {
      background: var(--primary-hover);
      transform: translateY(-2px);
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    button[type="submit"]:active {
      transform: translateY(0);
    }

    /* Results Section */
    .result {
      background: var(--bg);
      border-radius: 0.75rem;
      padding: 1.5rem;
      margin-top: 2rem;
      border: 1px solid var(--border);
    }

    .result h3 {
      font-size: 1.25rem;
      margin-top: 0;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    #resultList {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    /* Enhanced Badges */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.375rem 0.75rem;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 600;
      margin: 0.25rem 0.5rem 0.25rem 0;
    }

    .badge-normal {
      background-color: rgba(16, 185, 129, 0.1);
      color: var(--success);
    }

    .badge-suspicious {
      background-color: rgba(239, 68, 68, 0.1);
      color: var(--danger);
    }

    .badge-hidden {
      background-color: rgba(245, 158, 11, 0.1);
      color: var(--warning);
    }
    .input-group {
      position: relative;
    }

    .input-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--secondary);
    }

    input[type="url"] {
      width: 100%;
      padding: 1rem 1rem 1rem 3rem;
      font-size: 1rem;
      border-radius: 0.75rem;
      border: 1px solid var(--border);
      background: var(--bg);
      color: var(--text);
      transition: all 0.3s ease;
    }

    input[type="url"]:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }
    
    /* Copy Result Button */
    .copy-btn {
     background: var(--bg);
     color: var(--primary);
     border: 1px solid var(--primary);
     padding: 0.5rem 1rem;
     border-radius: 0.5rem;
     cursor: pointer;
     margin-bottom: 1rem;
     transition: all 0.3s;
    }
    .copy-btn:hover {
     background: var(--primary);
     color: white;
    }

    /* Footer */
    footer {
      text-align: center;
      padding: 1.5rem;
      background: var(--primary);
      color: white;
      font-size: 0.875rem;
      text-decoration: none; 
    }
    
    .heart {
      color: #e25555;
    }
    
    footer a {
     color: white;
     text-decoration: none; /* optional, removes underline */
    }

    footer a:hover {
     text-decoration: underline; /* optional, adds hover effect */
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .box {
        padding: 1.75rem;
      }
      
      .hero-title {
        font-size: 1.75rem;
      }
      
      .hero-description {
        max-width: 100%;
        font-size: 1rem;
      }
    }

    @media (max-width: 480px) {
      header {
        padding: 1rem;
      }
      
      .box {
        padding: 1.5rem;
        border-radius: 1rem;
      }
      
      .hero-title {
        font-size: 1.5rem;
      }
      
      .box h2 {
        font-size: 1.25rem;
      }
    }

    /* Animation */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .fade-in {
      animation: fadeIn 0.4s ease forwards;
    }
    
    /* Security elements */
    .security-check {
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .loader-small {
      width: 16px;
      height: 16px;
      border: 2px solid rgba(99, 102, 241, 0.2);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .error {
      color: #ef4444;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
