
    :root {
      --bg-primary: #f8fafc;
      --bg-secondary: #f1f5f9;
      --bg-card: rgba(255, 255, 255, 0.88);
      --bg-card-hover: #ffffff;
      --bg-elevated: #f1f5f9;
      --bg-glass: rgba(255, 255, 255, 0.82);
      --text-primary: #0f172a;
      --text-secondary: #475569;
      --text-muted: #64748b;
      --border-subtle: rgba(15, 23, 42, 0.08);
      --border-focus: rgba(79, 70, 229, 0.45);
      --accent-primary: #4f46e5;
      --accent-secondary: #7c3aed;
      --accent-emerald: #059669;
      --gradient-glow: radial-gradient(700px circle at 50% 0%, rgba(79, 70, 229, 0.10), transparent 70%);
      --shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(15, 23, 42, 0.06);
      --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
      --accent-amber: #f59e0b;
      --accent-rose: #f43f5e;
      --gradient-brand: linear-gradient(135deg, #f59e0b 0%, #6366f1 55%, #06b6d4 100%);
      --gradient-btn: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #06b6d4 100%);
      --radius-xl: 22px;
      --radius-lg: 16px;
      --radius-md: 12px;
      --radius-sm: 8px;
      --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
    }


    html:not(.light) {
      --bg-primary: #090b10;
      --bg-secondary: #11151f;
      --bg-card: rgba(19, 24, 36, 0.78);
      --bg-card-hover: rgba(26, 33, 48, 0.9);
      --bg-elevated: #1a2030;
      --bg-glass: rgba(15, 19, 29, 0.72);
      --text-primary: #f8fafc;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;
      --border-subtle: rgba(255, 255, 255, 0.08);
      --border-focus: rgba(99, 102, 241, 0.55);
      --accent-primary: #6366f1;
      --accent-secondary: #8b5cf6;
      --accent-emerald: #10b981;
      --accent-amber: #f59e0b;
      --accent-rose: #f43f5e;
      --gradient-brand: linear-gradient(135deg, #f59e0b 0%, #6366f1 55%, #06b6d4 100%);
      --gradient-btn: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #06b6d4 100%);
      --gradient-glow: radial-gradient(600px circle at 50% 0%, rgba(99, 102, 241, 0.16), transparent 70%);
      --shadow-card: 0 20px 50px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
      --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
      --radius-xl: 22px;
      --radius-lg: 16px;
      --radius-md: 12px;
      --radius-sm: 8px;
      --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
    }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: var(--font-sans);
      background-color: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.5;
      min-height: 100vh;
      overflow-x: hidden;
      transition: background-color 0.25s ease, color 0.25s ease;
      -webkit-font-smoothing: antialiased;
      user-select: none;
      -webkit-user-select: none;
    }

    /* Ambient Background Mesh */
    .ambient-bg {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background: var(--gradient-glow);
    }
    .ambient-orb-1 {
      position: fixed;
      top: -120px;
      left: 12%;
      width: 460px;
      height: 460px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
      filter: blur(60px);
      pointer-events: none;
      z-index: 0;
    }
    .ambient-orb-2 {
      position: fixed;
      top: 180px;
      right: 8%;
      width: 400px;
      height: 400px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(245, 158, 11, 0.09) 0%, transparent 70%);
      filter: blur(60px);
      pointer-events: none;
      z-index: 0;
    }

    /* Top Sponsor Notification Bar */
    .sponsor-topbar {
      position: relative;
      z-index: 30;
      background: linear-gradient(90deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.14), rgba(6, 182, 212, 0.14));
      border-bottom: 1px solid var(--border-subtle);
      padding: 8px 16px;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      color: var(--text-secondary);
      backdrop-filter: blur(12px);
      flex-wrap: wrap;
    }
    .ad-badge {
      display: inline-flex;
      align-items: center;
      padding: 1px 6px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: rgba(99, 102, 241, 0.18);
      color: var(--accent-primary);
      border: 1px solid rgba(99, 102, 241, 0.3);
    }
    html.light .ad-badge {
      background: rgba(79, 70, 229, 0.1);
    }
    .sponsor-link {
      color: var(--text-primary);
      font-weight: 500;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: color 0.15s;
    }
    .sponsor-link:hover {
      color: var(--accent-primary);
    }

    /* Navigation Header */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 40;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      background: var(--bg-glass);
      border-bottom: 1px solid var(--border-subtle);
    }
    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 14px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--text-primary);
    }
    .brand-icon {
      width: 38px;
      height: 38px;
      border-radius: 11px;
      background: var(--gradient-brand);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    }
    .brand-title {
      font-weight: 800;
      font-size: 19px;
      letter-spacing: -0.02em;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .brand-tag {
      font-size: 11px;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 999px;
      background: rgba(16, 185, 129, 0.15);
      color: var(--accent-emerald);
      border: 1px solid rgba(16, 185, 129, 0.25);
    }
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .btn-ghost {
      background: transparent;
      border: 1px solid var(--border-subtle);
      color: var(--text-secondary);
      padding: 7px 13px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.18s ease;
    }
    .btn-ghost:hover {
      color: var(--text-primary);
      background: var(--bg-elevated);
      border-color: var(--border-focus);
    }
    .lang-select-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
    }
    .lang-select {
      appearance: none;
      -webkit-appearance: none;
      background: var(--bg-elevated);
      border: 1px solid var(--border-subtle);
      color: var(--text-primary);
      padding: 7px 28px 7px 11px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      outline: none;
      transition: all 0.18s ease;
    }
    .lang-select:hover, .lang-select:focus {
      border-color: var(--accent-primary);
    }
    .lang-select-arrow {
      position: absolute;
      right: 9px;
      pointer-events: none;
      color: var(--text-muted);
      font-size: 10px;
    }
    .btn-monetize {
      background: rgba(245, 158, 11, 0.12);
      border: 1px solid rgba(245, 158, 11, 0.35);
      color: var(--accent-amber);
    }
    .btn-monetize:hover {
      background: rgba(245, 158, 11, 0.2);
      color: var(--accent-amber);
      border-color: var(--accent-amber);
    }

    /* Main Container */
    .main-container {
      position: relative;
      z-index: 10;
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 24px 80px;
    }

    /* Hero Section */
    .hero {
      text-align: center;
      max-width: 780px;
      margin: 0 auto 32px;
    }
    .hero-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 5px 14px;
      border-radius: 999px;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      font-size: 12.5px;
      color: var(--text-secondary);
      margin-bottom: 18px;
      box-shadow: var(--shadow-sm);
    }
    .hero-pill-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent-emerald);
      box-shadow: 0 0 8px var(--accent-emerald);
      flex-shrink: 0;
    }
    .hero h1 {
      font-size: clamp(28px, 4.5vw, 46px);
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 14px;
    }
    .gradient-text {
      background: var(--gradient-brand);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .hero p {
      font-size: 16px;
      color: var(--text-secondary);
      max-width: 650px;
      margin: 0 auto;
    }

    /* Studio Grid (Dropzone + Side Native Ad/Settings) */
    .studio-layout {
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 20px;
      align-items: stretch;
      margin-bottom: 24px;
    }
    @media (max-width: 960px) {
      .studio-layout {
        grid-template-columns: 1fr;
      }
    }

    /* Glassmorphic Dropzone */
    .dropzone-card {
      background: var(--bg-card);
      backdrop-filter: blur(20px);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-card);
      padding: 28px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      transition: all 0.25s ease;
    }
    .dropzone-inner {
      border: 2px dashed rgba(99, 102, 241, 0.35);
      border-radius: var(--radius-lg);
      padding: 42px 24px;
      text-align: center;
      cursor: pointer;
      transition: all 0.22s ease;
      background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
      position: relative;
    }
    .dropzone-inner:hover,
    .dropzone-inner.dragover {
      border-color: var(--accent-primary);
      background: radial-gradient(circle at center, rgba(99, 102, 241, 0.14) 0%, transparent 75%);
      transform: translateY(-2px);
    }
    .upload-icon-wrap {
      width: 68px;
      height: 68px;
      border-radius: 20px;
      margin: 0 auto 16px;
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(99, 102, 241, 0.2));
      border: 1px solid rgba(99, 102, 241, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-primary);
      box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.25);
      transition: transform 0.25s ease;
    }
    .dropzone-inner:hover .upload-icon-wrap {
      transform: scale(1.06) translateY(-2px);
    }
    .dropzone-title {
      font-size: 19px;
      font-weight: 700;
      margin-bottom: 6px;
      color: var(--text-primary);
    }
    .dropzone-sub {
      font-size: 13.5px;
      color: var(--text-secondary);
      margin-bottom: 20px;
    }
    .dropzone-btns {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .btn-primary {
      background: var(--gradient-btn);
      color: #ffffff;
      border: none;
      padding: 10px 22px;
      border-radius: var(--radius-md);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.45);
      transition: all 0.2s ease;
    }
    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 24px -4px rgba(99, 102, 241, 0.6);
      filter: brightness(1.06);
    }
    .btn-secondary {
      background: var(--bg-elevated);
      color: var(--text-primary);
      border: 1px solid var(--border-subtle);
      padding: 10px 18px;
      border-radius: var(--radius-md);
      font-size: 13.5px;
      font-weight: 500;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      transition: all 0.2s ease;
    }
    .btn-secondary:hover {
      border-color: var(--accent-primary);
      background: var(--bg-card-hover);
    }

    /* Compression Engine Settings Bar inside Dropzone Card */
    .engine-toolbar {
      margin-top: 20px;
      padding-top: 18px;
      border-top: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
    }
    .control-group {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .control-label {
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .segmented-control {
      display: inline-flex;
      background: var(--bg-secondary);
      padding: 3px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border-subtle);
    }
    .seg-btn {
      background: transparent;
      border: none;
      color: var(--text-secondary);
      padding: 5px 11px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s;
    }
    .seg-btn.active {
      background: var(--bg-elevated);
      color: var(--text-primary);
      box-shadow: var(--shadow-sm);
    }
    .select-input, .number-input {
      background: var(--bg-secondary);
      color: var(--text-primary);
      border: 1px solid var(--border-subtle);
      padding: 5px 10px;
      border-radius: var(--radius-sm);
      font-size: 12.5px;
      font-weight: 500;
      outline: none;
    }
    .select-input:focus, .number-input:focus {
      border-color: var(--accent-primary);
    }
    .quality-slider-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .range-slider {
      accent-color: var(--accent-primary);
      width: 90px;
      cursor: pointer;
    }
    .quality-badge {
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 600;
      color: var(--accent-primary);
      min-width: 36px;
    }

    /* Right Side Panel: High-End Native Sponsor Card + AdSense Box */
    .side-panel {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .ad-card-native {
      background: var(--bg-card);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-card);
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      border: 1px solid var(--border-subtle);
      flex: 1;
    }
    .ad-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .ad-visual-banner {
      width: 100%;
      height: 118px;
      border-radius: var(--radius-md);
      background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #0f172a 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 16px;
      text-align: center;
      margin-bottom: 14px;
      border: 1px solid rgba(99, 102, 241, 0.25);
      position: relative;
      overflow: hidden;
    }
    .ad-visual-banner::after {
      content: "";
      position: absolute;
      width: 140px;
      height: 140px;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%);
      top: -40px;
      right: -40px;
      border-radius: 50%;
    }
    .ad-visual-title {
      color: #fff;
      font-weight: 700;
      font-size: 15px;
      margin-bottom: 4px;
      z-index: 1;
    }
    .ad-visual-sub {
      color: #cbd5e1;
      font-size: 11.5px;
      z-index: 1;
    }
    .ad-cta-btn {
      width: 100%;
      padding: 9px 14px;
      border-radius: var(--radius-sm);
      background: rgba(99, 102, 241, 0.14);
      color: var(--accent-primary);
      border: 1px solid rgba(99, 102, 241, 0.3);
      font-size: 12.5px;
      font-weight: 600;
      text-align: center;
      text-decoration: none;
      display: block;
      transition: all 0.18s;
    }
    .ad-cta-btn:hover {
      background: var(--accent-primary);
      color: #fff;
    }

    /* Stats Summary Bar */
    .stats-bar {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
      padding: 18px 24px;
      margin-bottom: 24px;
      display: none;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
    }
    .stats-bar.visible {
      display: flex;
    }
    .stats-metrics {
      display: flex;
      align-items: center;
      gap: 28px;
      flex-wrap: wrap;
    }
    .stat-item {
      display: flex;
      flex-direction: column;
    }
    .stat-label {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 2px;
    }
    .stat-value {
      font-family: var(--font-mono);
      font-size: 18px;
      font-weight: 700;
      color: var(--text-primary);
      font-variant-numeric: tabular-nums;
    }
    .stat-value.emerald {
      color: var(--accent-emerald);
    }
    .stats-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    /* File Queue List */
    .queue-section {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 36px;
    }
    .file-item {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border-subtle);
      padding: 14px 20px;
      display: grid;
      grid-template-columns: 56px 1.5fr 1.2fr 1fr auto;
      align-items: center;
      gap: 16px;
      transition: all 0.2s ease;
    }
    .file-item:hover {
      border-color: rgba(99, 102, 241, 0.35);
      background: var(--bg-card-hover);
    }
    @media (max-width: 780px) {
      .file-item {
        grid-template-columns: 48px 1fr;
        gap: 12px;
      }
      .file-progress-col, .file-saving-col, .file-actions-col {
        grid-column: 1 / -1;
      }
    }
    .file-thumb {
      width: 52px;
      height: 52px;
      border-radius: 10px;
      object-fit: cover;
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
    }
    .file-info {
      min-width: 0;
    }
    .file-name {
      font-weight: 600;
      font-size: 14px;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 4px;
    }
    .file-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
      font-family: var(--font-mono);
    }
    .format-pill {
      padding: 1px 6px;
      border-radius: 4px;
      font-size: 10.5px;
      font-weight: 700;
      background: rgba(99, 102, 241, 0.14);
      color: var(--accent-primary);
      text-transform: uppercase;
    }
    .file-progress-col {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .progress-track {
      width: 100%;
      height: 6px;
      border-radius: 999px;
      background: var(--bg-secondary);
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      border-radius: 999px;
      background: var(--gradient-btn);
      transition: width 0.3s ease;
    }
    .progress-fill.done {
      background: var(--accent-emerald);
    }
    .size-comparison {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--text-secondary);
    }
    .file-saving-col {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
    }
    .saving-badge {
      padding: 4px 10px;
      border-radius: 999px;
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 700;
      background: rgba(16, 185, 129, 0.14);
      color: var(--accent-emerald);
      border: 1px solid rgba(16, 185, 129, 0.28);
    }
    .file-actions-col {
      display: flex;
      align-items: center;
      gap: 8px;
      justify-content: flex-end;
    }
    .btn-sm {
      padding: 6px 12px;
      border-radius: var(--radius-sm);
      font-size: 12.5px;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid var(--border-subtle);
      background: var(--bg-elevated);
      color: var(--text-primary);
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all 0.15s;
      text-decoration: none;
    }
    .btn-sm:hover {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
    }
    .btn-sm.download {
      background: rgba(16, 185, 129, 0.14);
      color: var(--accent-emerald);
      border-color: rgba(16, 185, 129, 0.3);
    }
    .btn-sm.download:hover {
      background: var(--accent-emerald);
      color: #fff;
    }

    /* In-Feed Native Ad Row inside Queue */
    .infeed-ad-row {
      background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
      border: 1px dashed rgba(99, 102, 241, 0.35);
      border-radius: var(--radius-lg);
      padding: 12px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }

    /* Horizontal Banner Ad Slot (Google AdSense 728x90 / Responsive) */
    .adsense-banner-slot {
      width: 100%;
      min-height: 96px;
      border-radius: var(--radius-lg);
      background: var(--bg-card);
      border: 1px dashed var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 28px;
      margin: 28px 0;
      gap: 20px;
      flex-wrap: wrap;
    }

    /* Feature Comparison & Why Better than TinyPNG Section */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 20px;
      margin-top: 40px;
    }
    .feature-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 24px;
      box-shadow: var(--shadow-sm);
    }
    .feature-icon {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      background: rgba(99, 102, 241, 0.12);
      color: var(--accent-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 14px;
    }
    .feature-card h3 {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .feature-card p {
      font-size: 13.5px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    /* Before / After Image Comparison Modal */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(5, 7, 12, 0.82);
      backdrop-filter: blur(12px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .modal-backdrop.open {
      display: flex;
    }
    .modal-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-xl);
      max-width: 900px;
      width: 100%;
      overflow: hidden;
      box-shadow: var(--shadow-card);
    }
    .modal-header {
      padding: 16px 24px;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .compare-stage {
      position: relative;
      width: 100%;
      height: 460px;
      background-image: linear-gradient(45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
                        linear-gradient(-45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
                        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%),
                        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%);
      background-size: 20px 20px;
      background-position: 0 0, 0 10px, 10px -10px, -10px 0;
      overflow: hidden;
      user-select: none;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .compare-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      pointer-events: none;
    }
    .compare-before-wrap {
      position: absolute;
      inset: 0;
      overflow: hidden;
      clip-path: inset(0 50% 0 0);
    }
    .compare-handle {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 3px;
      background: #ffffff;
      box-shadow: 0 0 12px rgba(0,0,0,0.6);
      cursor: ew-resize;
      transform: translateX(-50%);
    }
    .compare-knob {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--accent-primary);
      color: #fff;
      border: 3px solid #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    }
    .compare-label {
      position: absolute;
      bottom: 16px;
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      background: rgba(9, 11, 16, 0.78);
      color: #fff;
      backdrop-filter: blur(8px);
      font-family: var(--font-mono);
    }
    .compare-label.left { left: 16px; }
    .compare-label.right { right: 16px; }

    /* Monetization Config Drawer Modal */
    .code-snippet {
      background: #090b10;
      color: #e2e8f0;
      font-family: var(--font-mono);
      font-size: 12px;
      padding: 14px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border-subtle);
      overflow-x: auto;
      margin-top: 8px;
      line-height: 1.5;
    }

    .ad-slot-wrapper.hidden-ad {
      display: none !important;
    }


    /* Subtle Bottom SEO Knowledge Hub (Does NOT compete with main tool) */
    .seo-hub-section {
      margin-top: 64px;
      padding-top: 40px;
      border-top: 1px solid var(--border-subtle);
      opacity: 0.92;
    }
    .seo-hub-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 20px;
    }
    .seo-hub-title-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .seo-hub-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--text-secondary);
      letter-spacing: -0.01em;
    }
    .seo-hub-badge {
      font-size: 11px;
      padding: 2px 8px;
      border-radius: 999px;
      background: var(--bg-elevated);
      color: var(--text-muted);
      border: 1px solid var(--border-subtle);
    }
    .seo-filter-tabs {
      display: inline-flex;
      background: var(--bg-secondary);
      padding: 3px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border-subtle);
    }
    .seo-tab-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s;
    }
    .seo-tab-btn.active {
      background: var(--bg-elevated);
      color: var(--text-primary);
    }
    .seo-articles-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
      gap: 14px;
    }
    .seo-article-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 16px 18px;
      cursor: pointer;
      transition: all 0.18s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .seo-article-card:hover {
      border-color: rgba(99, 102, 241, 0.35);
      background: var(--bg-card-hover);
      transform: translateY(-1px);
    }
    .seo-card-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
      font-size: 11px;
      color: var(--text-muted);
    }
    .seo-lang-tag {
      padding: 1px 6px;
      border-radius: 4px;
      font-weight: 600;
      background: rgba(99, 102, 241, 0.1);
      color: var(--accent-primary);
    }
    .seo-article-card h4 {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 6px;
      line-height: 1.45;
    }
    .seo-article-card p {
      font-size: 12.5px;
      color: var(--text-muted);
      line-height: 1.55;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: 10px;
    }
    .seo-read-more {
      font-size: 12px;
      font-weight: 600;
      color: var(--accent-primary);
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    /* Crawlable full text inside semantic article (visually collapsed until opened, or indexed by bots) */
    .seo-crawlable-body {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }
    /* Article Reader Modal */
    .article-modal-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-xl);
      max-width: 780px;
      width: 100%;
      max-height: 86vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: var(--shadow-card);
    }
    .article-modal-body {
      padding: 28px 32px;
      overflow-y: auto;
      line-height: 1.75;
      color: var(--text-secondary);
      font-size: 14.5px;
    }
    .article-modal-body h2 {
      font-size: 21px;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 12px;
      line-height: 1.35;
    }
    .article-modal-body h3 {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-primary);
      margin: 20px 0 8px;
    }
    .article-modal-body p {
      margin-bottom: 12px;
    }
    .article-modal-body ul {
      padding-left: 20px;
      margin-bottom: 14px;
    }
    .article-modal-body li {
      margin-bottom: 6px;
    }
    .article-modal-body code {
      font-family: var(--font-mono);
      font-size: 12.5px;
      background: var(--bg-elevated);
      padding: 2px 6px;
      border-radius: 4px;
      color: var(--accent-primary);
    }


    /* Official Google AdSense Unit Containers */
    .adsense-unit-box {
      position: relative;
      width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 22px 14px 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }
    .adsense-unit-box.sidebar-rect {
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-card);
      min-height: 290px;
      height: 100%;
      padding: 26px 16px 16px;
    }
    .adsense-unit-box.horizontal-banner {
      min-height: 116px;
      margin: 28px 0;
    }
    .adsense-unit-box.infeed-unit {
      min-height: 104px;
      margin: 4px 0;
    }
    .adsense-unit-box.inarticle-unit {
      min-height: 120px;
      margin: 22px 0;
    }
    .adsense-label {
      position: absolute;
      top: 6px;
      right: 12px;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--text-muted);
      opacity: 0.65;
      pointer-events: none;
      user-select: none;
    }
    .adsbygoogle {
      width: 100%;
      display: block;
    }

    footer {
      border-top: 1px solid var(--border-subtle);
      padding: 28px 24px;
      text-align: center;
      color: var(--text-muted);
      font-size: 13px;
    }
  
.studio-layout{display:block;grid-template-columns:1fr}.hero{max-width:1000px;margin-left:auto;margin-right:auto}.hero h1{font-size:clamp(27px,4.2vw,48px);line-height:1.25;letter-spacing:-.025em}.hero-pill{max-width:100%;white-space:normal}.seo-section,.features-section{margin:48px 0}.features-section>h2,.seo-section>h2{font-size:24px;line-height:1.4;margin-bottom:24px}.features-grid{margin-top:0}.seo-article-card{cursor:default;display:flex;flex-direction:column;gap:14px}.seo-article-card h3{font-size:18px;line-height:1.5;margin:0}.seo-article-card p{line-height:1.8;color:var(--text-secondary);font-size:14px}.seo-article-card a,.seo-section a,.breadcrumbs a,.blog-article a{color:var(--accent-primary);text-underline-offset:4px}.table-wrap{width:100%;overflow-x:auto;border:1px solid var(--border-subtle);border-radius:16px}table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6}th,td{text-align:left;vertical-align:top;padding:16px;border-bottom:1px solid var(--border-subtle);min-width:140px}thead{background:var(--bg-secondary)}.fine-print{font-size:12px;line-height:1.7;color:var(--text-secondary);margin-top:12px}.faq-list{border:1px solid var(--border-subtle);border-radius:16px;padding:0 20px}details+details{border-top:1px solid var(--border-subtle)}summary{cursor:pointer;padding:20px 0;font-weight:600;line-height:1.6}details p{line-height:1.9;color:var(--text-secondary);padding-bottom:20px}.popular-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;text-align:left}.popular-tools a{font-size:14px;line-height:1.6}footer .seo-section{max-width:1120px;margin:0 auto 40px;padding:0 24px}.legal-links{display:flex;justify-content:center;gap:24px;margin-top:16px}.legal-links a{color:var(--text-secondary)}.breadcrumbs{font-size:13px;line-height:1.8;color:var(--text-secondary);padding-top:16px}.blog-article{max-width:800px;margin:32px auto;line-height:1.9;font-size:16px;user-select:text}.blog-article h2{font-size:24px;margin:36px 0 18px;line-height:1.5}.blog-article p,.blog-article ul,.blog-article ol{margin:16px 0}.blog-article ul,.blog-article ol{padding-left:24px}.language-note{font-size:13px;color:var(--text-muted)}.horizontal-banner{min-height:120px;contain:layout}.horizontal-banner ins{min-height:90px!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#maxWidthSelect:focus-visible{outline:2px solid #f59e0b;outline-offset:4px}.seo-section,.hero,footer{user-select:text}@media(max-width:640px){.popular-tools{grid-template-columns:1fr}.hero h1{font-size:28px}.horizontal-banner{min-height:120px}.seo-section,.features-section{margin:36px 0}.nav-actions{gap:6px}.lang-select{max-width:120px}th,td{padding:12px}}
