/* AI Background Remover. Real CSS because the compiled Tailwind file does not include new utilities. */
.sfx-bgr { color: #0f172a; }
html.dark .sfx-bgr { color: #e2e8f0; }

.sfx-bgr-hero {
  position: relative;
  z-index: 30;
  padding: 18px 16px 8px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: #f8fafc;
}
html.dark .sfx-bgr-hero { background: #020617; border-bottom-color: rgba(30, 41, 59, 0.8); }
.sfx-bgr-hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sfx-bgr-hero-art picture, .sfx-bgr-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.sfx-bgr-veil { position: absolute; inset: 0; pointer-events: none; }
.sfx-bgr-veil-a { background: rgba(255, 255, 255, 0.45); }
.sfx-bgr-veil-b { background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.7), transparent); height: 9rem; bottom: auto; }
.sfx-bgr-veil-c { background: linear-gradient(to top, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.5), transparent); height: 6rem; top: auto; }
.sfx-bgr-veil-d { background: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.1) 100%); }
html.dark .sfx-bgr-veil-a { background: rgba(2, 6, 23, 0.45); }
html.dark .sfx-bgr-veil-b { background: linear-gradient(to bottom, #0f172a, rgba(2, 6, 23, 0.75), transparent); }
html.dark .sfx-bgr-veil-c { background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.5), transparent); }
html.dark .sfx-bgr-veil-d { background: radial-gradient(ellipse 85% 75% at 50% 48%, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.15) 100%); }

.sfx-bgr-hero-inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; text-align: center; }
.sfx-bgr-crumbs {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: #64748b; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(8px);
}
html.dark .sfx-bgr-crumbs { color: #94a3b8; background: rgba(15, 23, 42, 0.72); border-color: #1e293b; }
.sfx-bgr-crumbs a { color: inherit; text-decoration: none; }
.sfx-bgr-crumbs a:hover { color: #0f766e; }
.sfx-bgr-crumbs .here { color: #0f766e; font-weight: 700; }
html.dark .sfx-bgr-crumbs .here, html.dark .sfx-bgr-crumbs a:hover { color: #5eead4; }
.sfx-bgr-hero h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; color: #0f172a; }
html.dark .sfx-bgr-hero h1 { color: #f8fafc; }
.sfx-bgr-lead { margin: 0 auto 12px; max-width: 40rem; font-size: 0.95rem; line-height: 1.5; color: #475569; }
html.dark .sfx-bgr-lead { color: #cbd5e1; }
.sfx-bgr-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.sfx-bgr-pills li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 650; color: #334155; background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
}
html.dark .sfx-bgr-pills li { color: #e2e8f0; background: rgba(15, 23, 42, 0.82); border-color: #1e293b; }
.sfx-bgr-pills i { color: #0f766e; }
html.dark .sfx-bgr-pills i { color: #2dd4bf; }

.sfx-bgr-search { position: relative; max-width: 720px; margin: 0 auto; text-align: left; }
.sfx-bgr-search-ring { position: relative; padding: 1.5px; border-radius: 16px; overflow: hidden; background: rgba(13, 148, 136, 0.28); }
.sfx-bgr-search-beam {
  position: absolute; inset: -200%; margin: auto; width: 500%; height: 500%;
  background: conic-gradient(from 0deg, transparent 0deg 220deg, rgba(45, 212, 191, 0.2) 250deg, #14b8a6 290deg, #22d3ee 330deg, #fff 356deg, transparent 360deg);
  animation: sfxBgrSpin 2.6s linear infinite; pointer-events: none;
}
@keyframes sfxBgrSpin { to { transform: rotate(360deg); } }
.sfx-bgr-search-bar {
  position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px;
  border-radius: 14.5px; background: rgba(255, 255, 255, 0.96);
}
html.dark .sfx-bgr-search-bar { background: rgba(15, 23, 42, 0.96); }
.sfx-bgr-search-bar input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font-size: 14px; color: #0f172a;
}
html.dark .sfx-bgr-search-bar input { color: #f8fafc; }
.sfx-bgr-search-bar input::placeholder { color: #94a3b8; }
.sfx-bgr-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  margin: 0; padding: 6px; list-style: none; border-radius: 14px;
  background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  max-height: 320px; overflow: auto;
}
html.dark .sfx-bgr-suggest { background: #0f172a; border-color: #1e293b; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.sfx-bgr-suggest[hidden] { display: none; }
.sfx-bgr-suggest button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  border: 0; background: transparent; border-radius: 10px; padding: 8px 10px; cursor: pointer; color: inherit;
}
.sfx-bgr-suggest button[aria-selected="true"], .sfx-bgr-suggest button:hover { background: #f0fdfa; }
html.dark .sfx-bgr-suggest button[aria-selected="true"], html.dark .sfx-bgr-suggest button:hover { background: #134e4a; }
.sfx-bgr-suggest .ico { width: 28px; text-align: center; color: #0f766e; }
.sfx-bgr-suggest .tx { display: flex; flex-direction: column; min-width: 0; }
.sfx-bgr-suggest strong { font-size: 13px; }
.sfx-bgr-suggest small { color: #64748b; font-size: 11px; }
.sfx-bgr-suggest .cat { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #0f766e; }

.sfx-bgr-wrap { max-width: 1120px; margin: 0 auto; padding: 16px 16px 48px; }
.sfx-bgr-studio {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px;
  padding: 14px; border-radius: 20px; background: #fff; border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
html.dark .sfx-bgr-studio { background: #0b1220; border-color: #1e293b; }
.sfx-bgr-stage { position: relative; min-height: 360px; border-radius: 16px; overflow: hidden; background: #e2e8f0; }
html.dark .sfx-bgr-stage { background: #111827; }
.sfx-bgr-checker {
  background-color: #eef2f6;
  background-image: linear-gradient(45deg, #d5dde6 25%, transparent 25%), linear-gradient(-45deg, #d5dde6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #d5dde6 75%), linear-gradient(-45deg, transparent 75%, #d5dde6 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
html.dark .sfx-bgr-checker { background-color: #0f172a; background-image: linear-gradient(45deg, #1e293b 25%, transparent 25%), linear-gradient(-45deg, #1e293b 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #1e293b 75%), linear-gradient(-45deg, transparent 75%, #1e293b 75%); }
.sfx-bgr-drop {
  min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center; border: 1.5px dashed #94a3b8; border-radius: 16px; background: rgba(255, 255, 255, 0.55);
}
html.dark .sfx-bgr-drop { background: rgba(15, 23, 42, 0.4); border-color: #475569; }
.sfx-bgr-drop.is-hot { border-color: #0d9488; background: rgba(204, 251, 241, 0.55); }
.sfx-bgr-drop h2 { margin: 0; font-size: 1.15rem; }
.sfx-bgr-drop p { margin: 0; color: #64748b; font-size: 13px; }
.sfx-bgr-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.sfx-bgr-btn, .sfx-bgr-side button, .sfx-bgr-side label.btn {
  border: 1px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 10px; padding: 8px 12px;
  font-size: 13px; font-weight: 650; cursor: pointer;
}
html.dark .sfx-bgr-btn, html.dark .sfx-bgr-side button, html.dark .sfx-bgr-side label.btn { background: #111827; color: #e2e8f0; border-color: #334155; }
.sfx-bgr-btn.primary, .sfx-bgr-side button.is-on { background: #0f766e; color: #fff; border-color: #0f766e; }
.sfx-bgr-btn:disabled, .sfx-bgr-side button:disabled { opacity: 0.45; cursor: not-allowed; }
.sfx-bgr-samples { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sfx-bgr-samples button { width: 72px; height: 54px; padding: 0; border-radius: 8px; overflow: hidden; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; }
.sfx-bgr-samples canvas { width: 100%; height: 100%; display: block; }

.sfx-bgr-view { position: relative; min-height: 360px; display: none; }
.sfx-bgr-view.is-on { display: block; }
.sfx-bgr-view canvas { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.sfx-bgr-split { position: absolute; inset: 0; }
.sfx-bgr-split .after { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid #22d3ee; }
.sfx-bgr-split .after canvas { width: 100vw; max-width: none; max-height: none; height: 100%; object-fit: contain; }
.sfx-bgr-handle { position: absolute; top: 0; bottom: 0; width: 28px; margin-left: -14px; cursor: ew-resize; background: transparent; border: 0; }
.sfx-bgr-handle::after { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: #22d3ee; }
.sfx-bgr-laser {
  display: none; position: absolute; left: 0; right: 0; height: 3px; top: 0;
  background: linear-gradient(90deg, transparent, #22d3ee, #34d399, transparent);
  box-shadow: 0 0 16px #22d3ee; animation: sfxBgrScan 1.4s ease-in-out infinite;
}
.sfx-bgr-stage.is-run .sfx-bgr-laser { display: block; }
@keyframes sfxBgrScan { 0% { top: 0; } 100% { top: 100%; } }
.sfx-bgr-status {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.82); color: #ecfeff; font-size: 12px; font-weight: 650;
}

.sfx-bgr-side { display: flex; flex-direction: column; gap: 12px; }
.sfx-bgr-card { padding: 12px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; }
html.dark .sfx-bgr-card { background: #0f172a; border-color: #1e293b; }
.sfx-bgr-card h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.02em; }
.sfx-bgr-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sfx-bgr-swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid #94a3b8; padding: 0; cursor: pointer; }
.sfx-bgr-swatch.is-on { outline: 2px solid #0f766e; outline-offset: 1px; }
.sfx-bgr-card label { display: flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: 12px; margin: 6px 0; width: 100%; box-sizing: border-box; }
.sfx-bgr-card label input[type="range"] { flex: 1; min-width: 0; }
.sfx-bgr-side label.btn { justify-content: center; }
.sfx-bgr-card input[type="range"] { width: 100%; }
.sfx-bgr-dims { font-size: 12px; color: #475569; margin: 0; }
html.dark .sfx-bgr-dims { color: #94a3b8; }
.sfx-bgr-note { font-size: 12px; color: #b45309; min-height: 1em; margin: 0; }

.sfx-bgr-bento, .sfx-bgr-why { display: grid; gap: 12px; margin-top: 22px; }
.sfx-bgr-bento { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sfx-bgr-why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sfx-bgr-bento a, .sfx-bgr-why article, .sfx-bgr-faq details {
  display: block; padding: 14px; border-radius: 16px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #e2e8f0;
}
html.dark .sfx-bgr-bento a, html.dark .sfx-bgr-why article, html.dark .sfx-bgr-faq details { background: #0b1220; border-color: #1e293b; }
.sfx-bgr-bento strong, .sfx-bgr-why h3 { display: block; margin: 6px 0 4px; }
.sfx-bgr-bento span, .sfx-bgr-why p, .sfx-bgr-faq p { margin: 0; font-size: 13px; color: #475569; line-height: 1.45; }
html.dark .sfx-bgr-bento span, html.dark .sfx-bgr-why p, html.dark .sfx-bgr-faq p { color: #94a3b8; }
.sfx-bgr-section { margin-top: 28px; }
.sfx-bgr-section h2 { margin: 0 0 8px; font-size: 1.45rem; }
.sfx-bgr-faq { display: grid; gap: 8px; }
.sfx-bgr-faq summary { cursor: pointer; font-weight: 700; }
.sfx-bgr-faq p { margin-top: 8px; }

@media (max-width: 980px) {
  .sfx-bgr-studio, .sfx-bgr-bento, .sfx-bgr-why { grid-template-columns: 1fr; }
  .sfx-bgr-stage, .sfx-bgr-drop { min-height: 280px; }
}
