
    :root {
      --red: #FF2442;
      --red-dark: #cc1a34;
      --red-glow: rgba(255, 36, 66, 0.25);
      --bg: #0a0a0c;
      --bg2: #111116;
      --bg3: #18181f;
      --card: #1c1c24;
      --border: rgba(255, 255, 255, 0.07);
      --text: #f0f0f5;
      --muted: #6b6b80;
      --accent: #FF2442;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Outfit', sans-serif;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* Background decoration */
    body::before {
      content: '';
      position: fixed;
      top: -200px;
      left: 50%;
      transform: translateX(-50%);
      width: 800px;
      height: 600px;
      background: radial-gradient(ellipse, rgba(255, 36, 66, 0.12) 0%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    /* Grid noise overlay */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.012'%3E%3Cpath d='M0 0h1v40H0zm40 0h-1v40h1zm-20 0v1h1V0h-1zM0 20v-1h40v1H0z'/%3E%3C/g%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 0;
    }

    .container {
      max-width: 760px;
      margin: 0 auto;
      padding: 0 20px;
      position: relative;
      z-index: 1;
    }

    /* ─── Header ─── */
    header {
      padding: 52px 0 40px;
      text-align: center;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 24px;
    }

    .logo-icon {
      width: 44px;
      height: 44px;
      background: var(--red);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      box-shadow: 0 0 24px var(--red-glow);
    }

    .logo-text {
      font-family: 'Nunito', sans-serif;
      font-weight: 800;
      font-size: 1.4rem;
      letter-spacing: -0.5px;
    }

    .logo-text span {
      color: var(--red);
    }

    h1 {
      font-family: 'Nunito', sans-serif;
      font-size: clamp(2rem, 5vw, 3.2rem);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -1px;
      margin-bottom: 14px;
    }

    h1 em {
      font-style: normal;
      color: var(--red);
      position: relative;
    }

    h1 em::after {
      content: '';
      position: absolute;
      bottom: 2px;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--red);
      opacity: 0.4;
      border-radius: 2px;
    }

    .subtitle {
      color: var(--muted);
      font-size: 1rem;
      font-weight: 400;
      letter-spacing: 0.2px;
    }

    /* ─── Input Card ─── */
    .input-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 28px;
      margin-bottom: 28px;
      box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    }

    .input-label {
      display: block;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 12px;
    }

    .input-row {
      display: flex;
      gap: 10px;
    }

    .url-input {
      flex: 1;
      background: var(--bg3);
      border: 1.5px solid var(--border);
      border-radius: 12px;
      padding: 14px 18px;
      color: var(--text);
      font-family: 'Outfit', sans-serif;
      font-size: 0.95rem;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .url-input::placeholder {
      color: var(--muted);
    }

    .url-input:focus {
      border-color: var(--red);
      box-shadow: 0 0 0 3px var(--red-glow);
    }

    .btn-fetch {
      background: var(--red);
      color: #fff;
      border: none;
      border-radius: 12px;
      padding: 14px 26px;
      font-family: 'Nunito', sans-serif;
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
      white-space: nowrap;
      box-shadow: 0 4px 16px var(--red-glow);
    }

    .btn-fetch:hover {
      background: var(--red-dark);
      box-shadow: 0 6px 24px var(--red-glow);
    }

    .btn-fetch:active {
      transform: scale(0.97);
    }

    .btn-fetch:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .input-actions {
      margin-top: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .btn-icon {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--bg3);
      border: 1.5px solid var(--border);
      border-radius: 20px;
      padding: 6px 14px;
      color: var(--muted);
      font-family: 'Nunito', sans-serif;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
      white-space: nowrap;
    }

    .btn-icon:hover {
      border-color: var(--red);
      color: var(--text);
      background: rgba(255, 36, 66, 0.06);
    }

    .btn-icon.clear:hover {
      border-color: rgba(255, 80, 80, 0.5);
      color: #ff6060;
      background: rgba(255, 60, 60, 0.06);
    }

    .btn-icon svg {
      width: 13px;
      height: 13px;
      flex-shrink: 0;
    }

    /* ─── Status / Error ─── */
    .status-bar {
      display: none;
      align-items: center;
      gap: 10px;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px 18px;
      margin-bottom: 20px;
      font-size: 0.9rem;
    }

    .status-bar.show {
      display: flex;
    }

    .status-bar.error {
      border-color: rgba(255, 80, 80, 0.3);
      color: #ff6060;
    }

    .status-bar.loading {
      border-color: rgba(255, 36, 66, 0.2);
      color: var(--muted);
    }

    .status-bar.success {
      border-color: rgba(50, 220, 110, 0.2);
      color: #44e08a;
    }

    .spinner {
      width: 18px;
      height: 18px;
      border: 2px solid rgba(255, 255, 255, 0.12);
      border-top-color: var(--red);
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
      flex-shrink: 0;
    }

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

    /* ─── Result Card ─── */
    #result {
      display: none;
      animation: fadeUp 0.4s ease;
    }

    #result.show {
      display: block;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(16px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .result-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
      margin-bottom: 20px;
      display: flex;
      padding: 20px;
      gap: 20px;
    }

    .result-thumb-area {
      position: relative;
      width: 140px;
      height: 140px;
      flex-shrink: 0;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: var(--bg3);
    }

    .result-cover {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .result-thumb-area:hover .result-cover {
      transform: scale(1.1);
    }

    /* Play icon overlay for video thumb */
    .result-thumb-area::after {
      content: '▶';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 40px;
      height: 40px;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 14px;
      opacity: 0;
      transition: opacity 0.3s;
      pointer-events: none;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .result-thumb-area:has(video:not([style*="display: none"]))::after {
      opacity: 1;
    }

    .result-body {
      padding: 0;
      flex: 1;
      min-width: 0;
    }

    .result-type-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.3px;
      margin-bottom: 12px;
    }

    .result-type-badge.video {
      background: rgba(255, 36, 66, 0.15);
      color: var(--red);
      border: 1px solid rgba(255, 36, 66, 0.2);
    }

    .result-type-badge.image {
      background: rgba(80, 150, 255, 0.1);
      color: #6ab0ff;
      border: 1px solid rgba(80, 150, 255, 0.2);
    }

    .result-title {
      font-family: 'Nunito', sans-serif;
      font-size: 1.15rem;
      font-weight: 800;
      line-height: 1.35;
      margin-bottom: 6px;
    }

    .result-desc {
      color: var(--muted);
      font-size: 0.875rem;
      line-height: 1.6;
      margin-bottom: 6px;
    }

    .result-author {
      font-size: 0.8rem;
      color: var(--muted);
      margin-bottom: 20px;
    }

    .result-author span {
      color: var(--text);
    }

    /* ─── Download Options ─── */
    .section-title {
      font-family: 'Nunito', sans-serif;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 12px;
    }

    .download-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .download-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px 16px;
      transition: border-color 0.2s;
    }

    .download-item:hover {
      border-color: rgba(255, 36, 66, 0.2);
    }

    .download-info {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .download-icon {
      width: 32px;
      height: 32px;
      background: rgba(255, 36, 66, 0.1);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
    }

    .download-label {
      font-size: 0.9rem;
      font-weight: 500;
    }

    .download-meta {
      font-size: 0.75rem;
      color: var(--muted);
    }

    .btn-dl {
      background: var(--red);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 8px 16px;
      font-family: 'Nunito', sans-serif;
      font-weight: 700;
      font-size: 0.82rem;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .btn-dl:hover {
      background: var(--red-dark);
    }

    .btn-dl:active {
      transform: scale(0.96);
    }

    .btn-dl.secondary {
      background: transparent;
      border: 1.5px solid var(--border);
      color: var(--text);
    }

    .btn-dl.secondary:hover {
      border-color: var(--red);
      color: var(--red);
    }

    /* Image grid */
    .image-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 12px;
      margin-bottom: 20px;
    }

    .image-thumb {
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid var(--border);
      cursor: pointer;
      transition: transform 0.2s ease, border-color 0.2s, opacity 0.2s, box-shadow 0.2s;
      position: relative;
      background: var(--bg3);
      display: block;
    }

    .image-thumb:hover {
      transform: scale(1.1);
      border-color: var(--red);
      opacity: 1;
      z-index: 10;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    /* ─── How it works ─── */
    .how-section {
      margin: 40px 0 60px;
    }

    .how-title {
      font-family: 'Nunito', sans-serif;
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: var(--muted);
      text-align: center;
      margin-bottom: 20px;
    }

    .steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .step {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 20px;
      text-align: center;
    }

    .step-num {
      width: 32px;
      height: 32px;
      background: var(--red);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Syne', sans-serif;
      font-weight: 800;
      font-size: 0.85rem;
      margin: 0 auto 12px;
      box-shadow: 0 0 12px var(--red-glow);
    }

    .step-label {
      font-family: 'Nunito', sans-serif;
      font-size: 0.85rem;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .step-desc {
      font-size: 0.75rem;
      color: var(--muted);
      line-height: 1.5;
    }

    /* ─── Footer ─── */
    footer {
      border-top: 1px solid var(--border);
      padding: 24px 0;
      text-align: center;
      color: var(--muted);
      font-size: 0.78rem;
    }

    footer a {
      color: var(--muted);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    /* ─── Back to Top ─── */
    .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 48px;
      height: 48px;
      background: var(--red);
      color: #fff;
      border: none;
      border-radius: 50%;
      font-size: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 999;
      box-shadow: 0 4px 16px var(--red-glow);
    }

    .back-to-top.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .back-to-top:hover {
      background: var(--red-dark);
      transform: translateY(-3px);
      box-shadow: 0 6px 24px var(--red-glow);
    }

    @media (max-width: 560px) {
      .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 20px;
      }
    }

    /* ─── Responsive ─── */
    @media (max-width: 560px) {
      .input-row {
        flex-direction: column;
      }

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

      .btn-fetch {
        width: 100%;
      }

      .result-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .result-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
      }
    }
  

/* --- Top Navbar --- */
.top-nav {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}
.nav-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--red);
}

/* --- Site Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
  background: var(--bg2);
}
.footer-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--red);
}
.copyright {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
.muted-text {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* AdSense Container */
.ad-container {
  margin: 40px 0;
  text-align: center;
  min-height: 90px; /* Standard AdSense height to prevent CLS */
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.ad-container::before {
  content: "Advertisement";
  color: var(--muted);
  font-size: 0.75rem;
  position: absolute;
  top: -20px;
}

/* Compliance Pages */
.page-header {
  margin: 40px 0;
  text-align: center;
}
.page-title {
  font-family: "Nunito", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}
.content-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}
.content-box h2 {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  margin: 24px 0 12px;
}
.content-box p, .content-box ul {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.content-box ul {
  padding-left: 20px;
}

/* Contact Form */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

