/* file2fix — clean modern theme */
:root {
  --nav: #0f172a;
  --nav2: #1e293b;
  --bg: #f1f5f9;
  --card: #fff;
  --muted: #64748b;
  --text: #0f172a;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --green: #059669;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, .12);
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
}

:root[data-theme="dark"] {
  --nav: #020617;
  --nav2: #1e293b;
  --bg: #0f172a;
  --card: #1e293b;
  --muted: #94a3b8;
  --text: #f8fafc;
  --blue: #3b82f6;
  --blue-hover: #60a5fa;
  --green: #10b981;
  --shadow: 0 1px 3px rgba(0, 0, 0, .3);
  --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, .5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 24px;
  background: var(--nav);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.search input {
  width: 220px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .2);
  background: var(--nav2);
  color: #e2e8f0;
  padding: 10px 14px;
  font-size: 14px;
}

.search input::placeholder {
  color: #94a3b8;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}

.btn:hover {
  background: var(--blue-hover);
}

.btn-primary {
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-secondary {
  background: var(--muted);
}

.btn-secondary:hover {
  background: #475569;
}

.link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.link:hover {
  color: #fff;
}

.badge {
  background: rgba(255, 255, 255, .15);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

/* Home hero */
/* Hero Search & Elements */
.hero-search {
  margin-bottom: 20px;
}

.hero-search input {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.hero-popular {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  align-items: center;
  /* Moved from inline */
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 25px;
  line-height: 1.5;
}

.hero-features {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Three Column Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 300px;
  gap: 32px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .col-ad {
    grid-column: span 2;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .col-ad {
    grid-column: span 1;
  }

  .smart-merge-widget {
    margin: 20px auto;
  }
}

/* Smart Merge Widget */
.smart-merge-widget {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .smart-merge-widget {
  background: #1e293b;
  border-color: #334155;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.widget-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.widget-badge {
  background: #dbeafe;
  color: #2563eb;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

[data-theme="dark"] .widget-badge {
  background: #1e40af;
  color: #eff6ff;
}

.visual-files-detailed {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 15px 0 20px;
  justify-content: space-between;
}

.file-box {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px;
  font-size: 0.75rem;
  min-width: 80px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[data-theme="dark"] .file-box {
  background: #0f172a;
  border-color: #475569;
}

.file-box h4 {
  margin: 0 0 4px;
  font-size: 0.75rem;
  color: var(--text);
}

.file-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.result-box {
  border-color: var(--blue);
  background: #eff6ff;
}

[data-theme="dark"] .result-box {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--blue);
}

.highlight {
  background: #fef08a;
  /* yellow-200 */
  color: #854d0e;
  /* yellow-800 */
  padding: 0 2px;
  border-radius: 2px;
}

[data-theme="dark"] .highlight {
  background: #854d0e;
  color: #fef08a;
}

.arrow-icon {
  align-self: center;
  color: var(--blue);
  font-size: 1.2rem;
}

.plus-icon {
  align-self: center;
  color: #cbd5e1;
  font-size: 1.2rem;
}

.btn-merge {
  display: block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.btn-merge:hover {
  opacity: 0.9;
}

.hero p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-weight: 700;
  transition: background .2s;
}

.cta:hover {
  background: var(--blue-hover);
}

.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  /* align-items: stretch; is default, making cards equal height */
}

.popular-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 20px;
  height: 100%;
}

.popular-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text);
}

.btn-orange {
  display: block;
  width: 100%;
  background: #ea580c;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius);
  text-align: center;
  transition: background .2s;
  margin-bottom: 16px;
}

.btn-orange:hover {
  background: #c2410c;
}

.popular-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.popular-list li {
  margin-bottom: 8px;
}

.btn-hero-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 1rem;
  transition: background .2s;
}

.btn-hero-primary:hover {
  background: var(--blue-hover);
}

/* Response for smaller screens */
@media (max-width: 980px) {
  .hero-right {
    grid-template-columns: 1fr;
  }
}

.zip-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 18px;
}

.zip-title {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1rem;
}

.zip-cta {
  display: block;
  background: #ea580c;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.zip-cta:hover {
  background: #c2410c;
  color: #fff;
}

.zip-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hero-ad {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 14px;
}

.adph {
  border-radius: var(--radius);
  border: 2px dashed #cbd5e1;
  background: #fff;
  padding: 16px;
  text-align: center;
}

.adph-top {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.adph-box {
  font-weight: 700;
  color: #94a3b8;
  padding: 24px 0;
}

/* Ads */
.ad-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #eee;
  text-align: center;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-ad {
  margin: 10px 0;
  text-align: center;
}

.google-ad {
  display: block;
  width: 100%;
  height: auto;
  min-height: 250px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.tool {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .15s;
  border: 1px solid #e2e8f0;
}

.tool:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.tool .t {
  font-weight: 800;
  font-size: .95rem;
}

.tool .s {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.tool.pro {
  border-color: #c4b5fd;
}

.tool.pro .s::after {
  content: " • Paid";
  color: #6d28d9;
  font-weight: 700;
}

/* Tool page */
.toolpage {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin-top: 16px;
}

.toolmain {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

.sidebar {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
  font-size: 14px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 14px;
}

.input.code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.input.narrow {
  width: 140px;
}

.out {
  background: #f8fafc;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
}

.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 24px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.upload-zone:hover {
  border-color: var(--blue);
  background: #eff6ff;
}

.mt {
  margin-top: 16px;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.coming-soon {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.coming-soon .btn {
  margin-top: 12px;
}

/* Tool article (single tool) */
.tool-article {
  padding-bottom: 32px;
}

.tool-head {
  margin-bottom: 20px;
}

.tool-head .back {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.tool-head .back:hover {
  text-decoration: underline;
}

.tool-head h1 {
  margin: 8px 0 4px;
  font-size: 1.75rem;
  font-weight: 800;
}

.tool-price {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.tool-price.free {
  color: var(--green);
  font-weight: 700;
}

/* Tools index */
.tools-index {
  padding-bottom: 40px;
}

.tools-head {
  margin-bottom: 28px;
}

.tools-head h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
}

.tools-head .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.tools-search {
  margin-top: 16px;
  max-width: 360px;
}

.tools-search .input {
  margin: 0;
}

.search-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.no-results {
  color: var(--muted);
  margin-top: 24px;
}

.tool-category {
  margin-bottom: 32px;
}

.tool-paid-hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.tool-paid-hint a {
  color: var(--blue);
}

.out-wrap {
  position: relative;
}

.out-wrap .out {
  margin: 0;
  min-height: 80px;
}

.out-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
}

.out-actions .btn {
  padding: 6px 12px;
  font-size: 12px;
  margin: 0;
}

.tool-category h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.tool-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  border: 1px solid #e2e8f0;
  transition: border-color .2s, box-shadow .2s;
}

.tool-list a:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.tool-list .name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}

.tool-list .badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.tool-list .badge.free {
  background: #dcfce7;
  color: #166534;
}

.tool-list .badge.paid {
  background: #ede9fe;
  color: #5b21b6;
}

.tool-list .live {
  color: var(--green);
  font-size: 10px;
}

/* Category Cards */
.tool-cat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tool-cat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.tool-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

[data-theme="dark"] .tool-cat-card {
  border-color: #334155;
  background: var(--card);
}

[data-theme="dark"] .tool-cat-card:hover {
  border-color: var(--blue);
}

/* Pay page */
.pay-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.pay-page h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.pay-page .tool-name {
  font-weight: 700;
  margin: 0 0 4px;
}

.pay-page .price {
  font-size: 2rem;
  font-weight: 800;
  margin: 12px 0;
}

.pay-page .price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.pay-page .muted {
  font-size: 13px;
  margin-top: 16px;
}

.pay-page .btn {
  margin-top: 12px;
  width: 100%;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Tool Results */
.result-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  margin-top: 20px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.result-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.result-actions {
  display: flex;
  gap: 8px;
}

.copy-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}

.copy-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-weight: 600;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.plan {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

.plan.highlight {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .2);
}

.price {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 8px 0;
}

.notice {
  margin-top: 16px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  padding: 12px 14px;
  border-radius: var(--radius);
}

.form {
  max-width: 420px;
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.seo {
  margin-top: 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.faq {
  margin-top: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 14px;
}

.footer {
  margin-top: 32px;
  padding: 24px;
  background: var(--card);
  border-top: 1px solid #e2e8f0;
}

.footer-ad {
  max-width: 1120px;
  margin: 0 auto 12px;
}

.footer-links {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    grid-template-columns: 1fr;
  }

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

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

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

  .search input {
    width: 140px;
  }

  .nav {
    display: none;
  }
}

/* Dark Mode Overrides */
[data-theme="dark"] .input {
  background: #0f172a;
  border-color: #334155;
  color: var(--text);
}

[data-theme="dark"] .out {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .tool-list a {
  background: var(--card);
  border-color: #334155;
}

[data-theme="dark"] .tool-list a:hover {
  border-color: var(--blue);
}

[data-theme="dark"] .zip-card,
[data-theme="dark"] .hero-ad {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .adph {
  background: #1e293b;
  border-color: #475569;
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] .toolmain,
[data-theme="dark"] .tool {
  border-color: #334155;
}

[data-theme="dark"] .share-btn {
  background: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .share-btn:hover {
  background: #475569;
}

[data-theme="dark"] .preview-card {
  background: var(--card);
  border-color: #334155;
}

[data-theme="dark"] .preview-card h3 {
  color: #f8fafc;
}

[data-theme="dark"] .tool-category h2 {
  color: #f8fafc;
}

[data-theme="dark"] .tool-head h1 {
  color: #f8fafc;
}

.theme-btn {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, .1);
}

[data-theme="dark"] .tool-cat-icon {
  color: #fff;
}

[data-theme="dark"] .popular-card,
[data-theme="dark"] .ad-box {
  background: var(--card);
  /* #1e293b */
  border-color: #334155;
}

[data-theme="dark"] .popular-title {
  color: #fff;
}

[data-theme="dark"] .popular-list {
  background: transparent;
}

/* 3-Column Hero Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 300px;
  gap: 20px;
  padding: 32px;
  align-items: stretch;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.smart-merge-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .smart-merge-widget {
  background: #1e293b;
  border-color: #334155;
}

.visual-files-detailed {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
  margin: 15px 0;
  flex-grow: 1;
  font-size: 10px;
}

.file-box {
  border: 1px dashed #cbd5e1;
  padding: 10px;
  border-radius: 6px;
  background: #f8fafc;
  width: 30%;
  font-family: monospace;
}

[data-theme="dark"] .file-box {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

.file-box h4 {
  margin: 0 0 5px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 5px;
}

.file-item {
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text);
}

.result-box {
  border: 1px solid var(--blue);
  background: #eff6ff;
}

[data-theme="dark"] .result-box {
  background: rgba(37, 99, 235, 0.1);
}

.highlight {
  background: #fef08a;
  padding: 0 2px;
  border-radius: 2px;
  color: #000;
}

.btn-merge {
  background: var(--blue);
  color: white;
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: auto;
  font-size: 14px;
}

.btn-merge:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.col-ad {
  border-left: 1px solid #e2e8f0;
  padding-left: 20px;
  align-items: center;
}

@media (max-width: 1024px) {
  .col-ad {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
  }
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.feature-list p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* New Grid Utilities */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-card {
  background: var(--card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.faq-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--text);
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* SEO Section */
.seo-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 60px;
  margin-bottom: 60px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.seo-card {
  background: var(--card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.seo-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.seo-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}