html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

.tool-scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0c14;
  pointer-events: none;
}

.tool-scene-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.04) brightness(0.88);
}

.tool-scene-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 18, 0.42) 0%, rgba(8, 10, 18, 0.55) 45%, rgba(6, 8, 14, 0.72) 100%),
    radial-gradient(circle at 50% 20%, rgba(124, 58, 237, 0.08), transparent 55%);
  pointer-events: none;
}

body.tool-page {
  background: transparent !important;
  overflow-y: auto;
  overflow-x: hidden;
}

body.tool-page,
body.tool-page * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.tool-page *::-webkit-scrollbar {
  display: none;
}

.yb-auth-widget,
.yb-auth-modal,
.yb-auth-toast {
  display: none !important;
}

body.tool-page > :not(.tool-scene-bg):not(.modal) {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

@media (max-width: 680px) {
  body.tool-page > header.wrap {
    margin-top: 0;
  }
}

body.tool-page > .modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

body.tool-page .card,
body.tool-page .panel,
body.tool-page .module,
body.tool-page .result-card,
body.tool-page .link-card,
body.tool-page .tool-card {
  background: linear-gradient(180deg, rgba(12, 14, 22, 0.88), rgba(8, 10, 16, 0.82)) !important;
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  body.tool-page .card,
  body.tool-page .panel,
  body.tool-page .module,
  body.tool-page .result-card,
  body.tool-page .link-card,
  body.tool-page .tool-card {
    backdrop-filter: none;
    background: rgba(12, 14, 22, 0.9) !important;
  }

  .tool-scene-bg video {
    filter: none;
  }
}

body.tool-page .btn,
body.tool-page button:not(.secondary) {
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .tool-scene-bg video {
    display: none;
  }
}
