    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: #0a0a0c;
      color: #e4e4e7;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 1.5rem;
    }

    @media (max-width: 768px) {
      .container { padding: 1rem; }
    }

    header {
      text-align: center;
      margin-bottom: 2rem;
    }
    h1 {
      font-size: 2rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, #ffffff, #a1a1aa);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      margin-bottom: 0.25rem;
    }
    .subhead {
      font-size: 0.85rem;
      color: #71717a;
      border-top: 1px solid #27272a;
      display: inline-block;
      padding-top: 0.5rem;
    }
    .badge {
      display: inline-block;
      background: #18181b;
      color: #a1a1aa;
      font-size: 0.7rem;
      padding: 0.2rem 0.7rem;
      border-radius: 2rem;
      margin-left: 0.5rem;
      vertical-align: middle;
    }

    .main-grid {
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    @media (max-width: 900px) {
      .main-grid { grid-template-columns: 1fr; }
    }

    .scanner-panel {
      background: #18181b;
      border-radius: 1.5rem;
      padding: 1.5rem;
      border: 1px solid #27272a;
    }

    .video-container {
      position: relative;
      background: #09090b;
      border-radius: 1rem;
      overflow: hidden;
      aspect-ratio: 4 / 3;
      margin-bottom: 1rem;
    }

    video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .scan-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .scan-frame {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 70%;
      height: 70%;
      border: 2px solid #22c55e;
      border-radius: 1rem;
      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
      70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
      100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    }

    .controls {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
      justify-content: center;
      margin-bottom: 1rem;
    }

    .btn-scanner {
      background: #27272a;
      border: 1px solid #3f3f46;
      padding: 0.6rem 1.2rem;
      border-radius: 2rem;
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      color: #e4e4e7;
      font-family: inherit;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .btn-scanner:hover {
      background: #3f3f46;
      transform: translateY(-1px);
    }

    .btn-scanner.primary {
      background: #22c55e;
      border-color: #22c55e;
      color: white;
    }

    .btn-scanner.primary:hover {
      background: #16a34a;
    }

    .file-upload {
      position: relative;
    }

    .file-upload input {
      position: absolute;
      opacity: 0;
      width: 100%;
      height: 100%;
      cursor: pointer;
    }

    .result-panel {
      background: #18181b;
      border-radius: 1rem;
      padding: 1rem;
      margin-top: 1rem;
      border: 1px solid #27272a;
    }

    .result-label {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #71717a;
      margin-bottom: 0.5rem;
    }

    .result-content {
      font-family: monospace;
      font-size: 0.85rem;
      word-break: break-all;
      background: #09090b;
      padding: 0.75rem;
      border-radius: 0.75rem;
      margin-bottom: 0.75rem;
      max-height: 120px;
      overflow-y: auto;
    }

    #scan-result-buttons {
      display: flex;
      gap: 0.5rem;
      justify-content: flex-end;
    }

    .copy-result {
      background: #27272a;
      border: none;
      padding: 0.4rem 1rem;
      border-radius: 2rem;
      font-size: 0.75rem;
      cursor: pointer;
      color: #e4e4e7;
    }

    .history-panel {
      background: #18181b;
      border-radius: 1.5rem;
      padding: 1.5rem;
      border: 1px solid #27272a;
      height: fit-content;
      position: sticky;
      top: 1rem;
    }

    .history-title {
      font-weight: 600;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid #27272a;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .clear-history {
      background: #27272a;
      border: none;
      padding: 0.2rem 0.8rem;
      border-radius: 2rem;
      font-size: 0.7rem;
      cursor: pointer;
      color: #a1a1aa;
    }

    .history-list {
      max-height: 500px;
      overflow-y: auto;
    }

    .history-item {
      background: #09090b;
      border-radius: 0.75rem;
      padding: 0.75rem;
      margin-bottom: 0.75rem;
      cursor: pointer;
      transition: all 0.2s;
    }

    .history-item:hover {
      background: #1f1f23;
      transform: translateX(2px);
    }

    .history-type {
      font-size: 0.65rem;
      text-transform: uppercase;
      color: #22c55e;
      margin-bottom: 0.3rem;
    }

    .history-value {
      font-size: 0.75rem;
      font-family: monospace;
      word-break: break-all;
      color: #d4d4d8;
    }

    .history-time {
      font-size: 0.6rem;
      color: #71717a;
      margin-top: 0.3rem;
    }

    .empty-history {
      text-align: center;
      padding: 2rem;
      color: #71717a;
      font-size: 0.85rem;
    }

    /* Enhanced SEO Section */
    .info-section {
      background: #18181b;
      border-radius: 1.5rem;
      padding: 2rem;
      border: 1px solid #27272a;
      margin-top: 1.5rem;
    }

    .info-section h2 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: #ffffff;
    }

    .info-section h3 {
      font-size: 1.1rem;
      margin: 1.5rem 0 0.75rem;
      color: #e4e4e7;
    }

    .info-section h4 {
      font-size: 0.95rem;
      margin: 1rem 0 0.5rem;
      color: #d4d4d8;
    }

    .info-section p {
      color: #a1a1aa;
      font-size: 0.9rem;
      line-height: 1.6;
      margin-bottom: 0.75rem;
    }

    .info-section ul, .info-section ol {
      color: #a1a1aa;
      font-size: 0.9rem;
      line-height: 1.6;
      margin: 0.75rem 0 0.75rem 1.5rem;
    }

    .info-section li {
      margin-bottom: 0.4rem;
    }

    .feature-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 0.75rem;
      margin: 1rem 0;
    }

    .feature-item {
      background: #09090b;
      padding: 0.75rem;
      border-radius: 0.75rem;
      font-size: 0.85rem;
      color: #d4d4d8;
      border-left: 3px solid #22c55e;
    }

    .security-tip {
      background: #1a1a1e;
      border-left: 3px solid #ef4444;
      padding: 1rem;
      border-radius: 0.75rem;
      margin: 1rem 0;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
      margin: 1.5rem 0;
      text-align: center;
    }

    .stat-card {
      background: #09090b;
      padding: 1rem;
      border-radius: 0.75rem;
    }

    .stat-number {
      font-size: 2rem;
      font-weight: 700;
      color: #22c55e;
    }

    .stat-label {
      font-size: 0.75rem;
      color: #71717a;
      margin-top: 0.3rem;
    }

    .related-tools {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      justify-content: center;
      margin-top: 1rem;
    }

    .tool-link {
      background: #27272a;
      padding: 0.5rem 1.2rem;
      border-radius: 2rem;
      text-decoration: none;
      font-size: 0.8rem;
      color: #e4e4e7;
      transition: 0.2s;
      cursor: pointer;
    }

    .tool-link:hover {
      background: #3f3f46;
      transform: translateY(-1px);
    }

    footer {
      text-align: center;
      margin-top: 2rem;
      font-size: 0.7rem;
      color: #71717a;
      border-top: 1px solid #27272a;
      padding-top: 1.5rem;
    }

    /* Footer Attribution Styles */
.footer-attribution {
  text-align: center;
  margin: 1rem 0;
}

.attribution-text {
  font-size: 0.9rem;
  color: #a1a1aa;
  line-height: 1.5;
}

/* Other Tools Section Styles */
.other-tools-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #18181b;
  border-radius: 1.25rem;
  border: 1px solid #27272a;
}

.tools-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #e4e4e7;
  text-align: center;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 1rem;
  padding: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.tool-card:hover {
  background: #1f1f23;
  transform: translateY(-2px);
  border-color: #3f3f46;
}

.tool-card.active {
  border-color: #22c55e;
  background: #1a2a1a;
}

.tool-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.tool-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e4e4e7;
  margin-bottom: 0.25rem;
}

.tool-desc {
  font-size: 0.7rem;
  color: #71717a;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  
  .tool-card {
    padding: 0.75rem;
  }
  
  .tool-icon {
    font-size: 1.5rem;
  }
  
  .tool-name {
    font-size: 0.8rem;
  }
  
  .tool-desc {
    font-size: 0.65rem;
  }
}

    .status-message {
      font-size: 0.75rem;
      color: #a1a1aa;
      text-align: center;
      margin-top: 0.5rem;
    }

    hr {
      margin: 1.5rem 0;
      border: none;
      border-top: 1px solid #27272a;
    }