.alerts-overlays-settings {
  min-width: 0;
  padding: calc(10px * var(--aux-ui-scale, 1)) calc(6px * var(--aux-ui-scale, 1)) calc(44px * var(--aux-ui-scale, 1)) 0;
}

.alerts-overlays-heading {
  margin-bottom: calc(24px * var(--aux-ui-scale, 1));
}

.alerts-overlays-heading h1,
.alerts-overlays-group h2 {
  margin: 0;
  color: #d2d2d2;
  letter-spacing: 0;
}

.alerts-overlays-heading h1 {
  font-size: calc(32px * var(--aux-ui-scale, 1));
}

.alerts-overlays-heading p {
  margin: calc(6px * var(--aux-ui-scale, 1)) 0 0;
  color: #8f8f8f;
  font-size: calc(13px * var(--aux-ui-scale, 1));
}

.alerts-overlays-group {
  margin-top: 0;
}

.alerts-overlays-group + .alerts-overlays-group {
  margin-top: calc(58px * var(--aux-ui-scale, 1));
}

.alerts-overlays-group h2 {
  margin-bottom: calc(18px * var(--aux-ui-scale, 1));
  font-size: calc(28px * var(--aux-ui-scale, 1));
}

.alert-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(calc(160px * var(--aux-ui-scale, 1)), 1fr));
  gap: calc(14px * var(--aux-ui-scale, 1));
}

.alert-preview-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(calc(112px * var(--aux-ui-scale, 1)), 1fr) calc(34px * var(--aux-ui-scale, 1));
  min-width: 0;
  aspect-ratio: 17 / 10;
  border: calc(2px * var(--aux-ui-scale, 1)) solid #3a3a3a;
  border-radius: calc(6px * var(--aux-ui-scale, 1));
  padding: 0;
  color: #d5d5d5;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.1) 0,
      rgba(0, 0, 0, 0.1) calc(4px * var(--aux-ui-scale, 1)),
      transparent calc(4px * var(--aux-ui-scale, 1)),
      transparent calc(7px * var(--aux-ui-scale, 1))
    ),
    linear-gradient(to bottom, #2d2d2d, #151515);
  overflow: hidden;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.alert-preview-card.is-selected {
  border-color: #505050;
}

.alert-preview-card:hover,
.alert-preview-card:focus-visible {
  border-color: color-mix(in srgb, var(--theme-accent, #9b2d2d) 62%, #555);
  outline: none;
}

.alert-preview-card:disabled {
  cursor: wait;
}

.alert-preview-selected {
  position: absolute;
  z-index: 5;
  top: calc(7px * var(--aux-ui-scale, 1));
  right: calc(7px * var(--aux-ui-scale, 1));
  border-radius: calc(3px * var(--aux-ui-scale, 1));
  padding: calc(3px * var(--aux-ui-scale, 1)) calc(7px * var(--aux-ui-scale, 1));
  color: #ededed;
  background: var(--theme-accent, #9b2d2d);
  font-size: calc(10px * var(--aux-ui-scale, 1));
  font-weight: 700;
  text-transform: uppercase;
}

.alert-preview-stage {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(24px * var(--aux-ui-scale, 1)) calc(12px * var(--aux-ui-scale, 1)) calc(12px * var(--aux-ui-scale, 1));
  overflow: hidden;
}

.alert-preview-design {
  --alert-preview-accent: var(--theme-accent, #9b2d2d);
  position: relative;
  display: grid;
  grid-template-columns: calc(54px * var(--aux-ui-scale, 1)) calc(2px * var(--aux-ui-scale, 1)) minmax(0, 1fr);
  width: 100%;
  height: calc(54px * var(--aux-ui-scale, 1));
  align-items: center;
  padding-right: calc(18px * var(--aux-ui-scale, 1));
  filter: drop-shadow(0 calc(6px * var(--aux-ui-scale, 1)) calc(9px * var(--aux-ui-scale, 1)) rgba(0, 0, 0, 0.38));
}

.alert-preview-design::before,
.alert-preview-design::after {
  content: "";
  position: absolute;
  clip-path: polygon(0 0, calc(100% - calc(20px * var(--aux-ui-scale, 1))) 0, 100% 42%, 100% 100%, 0 100%);
}

.alert-preview-design::before {
  z-index: 0;
  inset: 0 0 0 calc(24px * var(--aux-ui-scale, 1));
  background: color-mix(in srgb, var(--alert-preview-accent) 34%, #050505);
}

.alert-preview-design::after {
  z-index: 1;
  inset: calc(2px * var(--aux-ui-scale, 1)) calc(2px * var(--aux-ui-scale, 1)) calc(2px * var(--aux-ui-scale, 1)) calc(26px * var(--aux-ui-scale, 1));
  background: linear-gradient(
    106deg,
    rgba(16, 16, 16, 0.98) 5%,
    rgba(25, 25, 25, 0.96) 55%,
    color-mix(in srgb, var(--alert-preview-accent) 34%, #181818) 100%
  );
}

.alert-preview-design img {
  position: relative;
  z-index: 3;
  width: calc(52px * var(--aux-ui-scale, 1));
  height: calc(52px * var(--aux-ui-scale, 1));
  box-sizing: border-box;
  border: calc(2px * var(--aux-ui-scale, 1)) solid #080808;
  border-radius: 50%;
  object-fit: cover;
  background: #151515;
  box-shadow: 0 0 0 calc(1px * var(--aux-ui-scale, 1)) color-mix(in srgb, var(--alert-preview-accent) 50%, #666);
}

.alert-preview-divider {
  position: relative;
  z-index: 3;
  width: calc(2px * var(--aux-ui-scale, 1));
  height: calc(38px * var(--aux-ui-scale, 1));
  border-radius: calc(2px * var(--aux-ui-scale, 1));
  background: var(--alert-preview-accent);
}

.alert-preview-copy {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-left: calc(9px * var(--aux-ui-scale, 1));
  color: #cfcfcf;
  line-height: 1.05;
}

.alert-preview-copy strong {
  overflow: hidden;
  margin-bottom: calc(3px * var(--aux-ui-scale, 1));
  font-size: calc(10px * var(--aux-ui-scale, 1));
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-preview-copy > span {
  overflow: hidden;
  font-size: calc(13px * var(--aux-ui-scale, 1));
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-preview-copy b {
  color: color-mix(in srgb, var(--alert-preview-accent) 86%, #ffffff 14%);
}

.alert-preview-pill {
  --alert-preview-accent: var(--theme-accent, #9b2d2d);
  position: relative;
  display: grid;
  grid-template-columns: calc(48px * var(--aux-ui-scale, 1)) minmax(0, 1fr);
  width: 100%;
  min-height: calc(48px * var(--aux-ui-scale, 1));
  align-items: center;
  border: calc(1px * var(--aux-ui-scale, 1)) solid color-mix(in srgb, var(--alert-preview-accent) 58%, #161616);
  border-radius: calc(26px * var(--aux-ui-scale, 1));
  padding: calc(3px * var(--aux-ui-scale, 1)) calc(15px * var(--aux-ui-scale, 1)) calc(3px * var(--aux-ui-scale, 1)) calc(3px * var(--aux-ui-scale, 1));
  background:
    linear-gradient(
      100deg,
      rgba(12, 12, 12, 0.98) 0%,
      rgba(24, 24, 24, 0.97) 60%,
      color-mix(in srgb, var(--alert-preview-accent) 30%, #171717) 100%
    );
  box-shadow:
    0 calc(7px * var(--aux-ui-scale, 1)) calc(13px * var(--aux-ui-scale, 1)) rgba(0, 0, 0, 0.36),
    inset 0 0 0 calc(1px * var(--aux-ui-scale, 1)) rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.alert-preview-pill img {
  position: relative;
  z-index: 2;
  width: calc(42px * var(--aux-ui-scale, 1));
  height: calc(42px * var(--aux-ui-scale, 1));
  border: calc(2px * var(--aux-ui-scale, 1)) solid #080808;
  border-radius: 50%;
  object-fit: cover;
  background: #151515;
  box-shadow:
    0 0 0 calc(1px * var(--aux-ui-scale, 1)) color-mix(in srgb, var(--alert-preview-accent) 54%, #666),
    0 calc(4px * var(--aux-ui-scale, 1)) calc(9px * var(--aux-ui-scale, 1)) rgba(0, 0, 0, 0.42);
}

.alert-preview-pill-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0 calc(12px * var(--aux-ui-scale, 1)) 0 calc(9px * var(--aux-ui-scale, 1));
  color: #d0d0d0;
  line-height: 1.05;
}

.alert-preview-pill-copy strong {
  overflow: hidden;
  margin-bottom: calc(3px * var(--aux-ui-scale, 1));
  font-size: calc(10px * var(--aux-ui-scale, 1));
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-preview-pill-copy > span {
  overflow: hidden;
  font-size: calc(13px * var(--aux-ui-scale, 1));
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-preview-pill-copy b {
  color: color-mix(in srgb, var(--alert-preview-accent) 86%, #ffffff 14%);
}

.alert-preview-card-premium {
  --alert-preview-accent: var(--theme-accent, #9b2d2d);
}

.alert-preview-frosted-window {
  position: relative;
  display: block;
  flex: 0 1 calc(200px * var(--aux-ui-scale, 1));
  width: min(100%, calc(200px * var(--aux-ui-scale, 1)));
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
}

.alert-preview-frosted-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(10px * var(--aux-ui-scale, 1));
}

.alert-preview-frosted-blur,
.alert-preview-frosted-texture {
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(
    circle closest-side at 50% 50%,
    transparent 0 48%,
    rgba(0, 0, 0, 0.015) 58%,
    rgba(0, 0, 0, 0.045) 68%,
    rgba(0, 0, 0, 0.1) 77%,
    rgba(0, 0, 0, 0.2) 85%,
    rgba(0, 0, 0, 0.36) 91%,
    rgba(0, 0, 0, 0.58) 96%,
    rgba(0, 0, 0, 0.8) 99%,
    #000 100%
  );
  mask-image: radial-gradient(
    circle closest-side at 50% 50%,
    transparent 0 48%,
    rgba(0, 0, 0, 0.015) 58%,
    rgba(0, 0, 0, 0.045) 68%,
    rgba(0, 0, 0, 0.1) 77%,
    rgba(0, 0, 0, 0.2) 85%,
    rgba(0, 0, 0, 0.36) 91%,
    rgba(0, 0, 0, 0.58) 96%,
    rgba(0, 0, 0, 0.8) 99%,
    #000 100%
  );
  pointer-events: none;
}

.alert-preview-frosted-blur {
  z-index: 1;
  background: rgba(255, 255, 255, 0.001);
  backdrop-filter: blur(calc(10px * var(--aux-ui-scale, 1)));
  -webkit-backdrop-filter: blur(calc(10px * var(--aux-ui-scale, 1)));
}

.alert-preview-frosted-texture {
  z-index: 2;
  background: url("/PremiumAlertGifs/Frosted.png?v=20260615-1") center / cover no-repeat;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.alert-preview-frosted-window canvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
}

.alert-preview-frosted-content {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(8px * var(--aux-ui-scale, 1)) calc(14px * var(--aux-ui-scale, 1));
  color: #fff;
  font-family: "KinderChild", sans-serif;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 calc(2px * var(--aux-ui-scale, 1)) calc(5px * var(--aux-ui-scale, 1)) rgba(0, 0, 0, 0.78);
}

.alert-preview-frosted-heading {
  padding: 0;
  border: 0;
  font-size: calc(12px * var(--aux-ui-scale, 1));
  font-weight: 400;
  text-transform: lowercase;
}

.alert-preview-frosted-content strong {
  overflow: hidden;
  max-width: 100%;
  margin-top: calc(8px * var(--aux-ui-scale, 1));
  border-bottom: calc(2px * var(--aux-ui-scale, 1)) solid currentColor;
  padding: 0 calc(12px * var(--aux-ui-scale, 1)) calc(4px * var(--aux-ui-scale, 1));
  font-size: calc(22px * var(--aux-ui-scale, 1));
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-preview-frosted-message {
  margin-top: calc(5px * var(--aux-ui-scale, 1));
  font-size: calc(12px * var(--aux-ui-scale, 1));
  font-weight: 400;
  text-transform: lowercase;
}

.alert-preview-cyber-hud {
  --alert-preview-accent: var(--theme-accent, #9b2d2d);
  position: relative;
  display: grid;
  width: 100%;
  min-height: calc(54px * var(--aux-ui-scale, 1));
  align-items: center;
  padding: calc(8px * var(--aux-ui-scale, 1)) calc(18px * var(--aux-ui-scale, 1)) calc(7px * var(--aux-ui-scale, 1)) calc(62px * var(--aux-ui-scale, 1));
  isolation: isolate;
}

.alert-preview-cyber-frame {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 calc(59px * var(--aux-ui-scale, 1));
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.035) 0 calc(1px * var(--aux-ui-scale, 1)),
      transparent calc(1px * var(--aux-ui-scale, 1)) calc(4px * var(--aux-ui-scale, 1))
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--alert-preview-accent) 20%, transparent) 0%,
      transparent 32%,
      transparent 68%,
      color-mix(in srgb, var(--alert-preview-accent) 20%, transparent) 100%
    ),
    rgba(7, 7, 8, 0.82);
  box-shadow:
    inset 0 0 calc(13px * var(--aux-ui-scale, 1)) color-mix(in srgb, var(--alert-preview-accent) 11%, transparent),
    0 0 calc(6px * var(--aux-ui-scale, 1)) color-mix(in srgb, var(--alert-preview-accent) 16%, transparent);
  clip-path: polygon(10% 0, 100% 0, 100% 68%, 92% 100%, 0 100%, 0 28%);
}

.alert-preview-cyber-avatar {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  width: calc(54px * var(--aux-ui-scale, 1));
  height: calc(54px * var(--aux-ui-scale, 1));
  transform: translateY(-50%);
  clip-path: polygon(18% 0, 100% 0, 100% 68%, 68% 100%, 0 100%, 0 18%);
}

.alert-preview-cyber-avatar img {
  position: absolute;
  inset: calc(4px * var(--aux-ui-scale, 1));
  width: calc(46px * var(--aux-ui-scale, 1));
  height: calc(46px * var(--aux-ui-scale, 1));
  border-radius: 0;
  clip-path: polygon(18% 0, 100% 0, 100% 68%, 68% 100%, 0 100%, 0 18%);
  object-fit: cover;
  background: #101010;
}

.alert-preview-cyber-avatar svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: none;
}

.alert-preview-cyber-avatar path {
  fill: none;
  stroke: var(--alert-preview-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 300 200 300 200;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 calc(3px * var(--aux-ui-scale, 1)) var(--alert-preview-accent));
  animation: alert-preview-cyber-frame-orbit 2.8s linear infinite;
}

.alert-preview-cyber-visible-path {
  stroke-width: 1.5;
}

.alert-preview-cyber-frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.alert-preview-cyber-frame path {
  fill: none;
  stroke: var(--alert-preview-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: miter;
  stroke-dasharray: 300 200 300 200;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 calc(3px * var(--aux-ui-scale, 1)) var(--alert-preview-accent));
  animation: alert-preview-cyber-frame-orbit 2.8s linear infinite;
}

.alert-preview-cyber-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #e2e2e2;
  line-height: 1.05;
  text-transform: uppercase;
}

.alert-preview-cyber-copy strong {
  margin-bottom: calc(3px * var(--aux-ui-scale, 1));
  color: #e4e4e4;
  font-size: calc(9px * var(--aux-ui-scale, 1));
  font-weight: 600;
}

.alert-preview-cyber-copy > span {
  overflow: hidden;
  font-size: calc(12px * var(--aux-ui-scale, 1));
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-preview-cyber-copy b {
  color: var(--alert-preview-accent);
}

@keyframes alert-preview-cyber-frame-orbit {
  0% {
    stroke-dashoffset: 0;
  }
  8% {
    stroke-dashoffset: -28;
  }
  28% {
    stroke-dashoffset: -430;
  }
  36% {
    stroke-dashoffset: -468;
  }
  47% {
    stroke-dashoffset: -568;
  }
  55% {
    stroke-dashoffset: -608;
  }
  76% {
    stroke-dashoffset: -918;
  }
  84% {
    stroke-dashoffset: -954;
  }
  94% {
    stroke-dashoffset: -990;
  }
  100% {
    stroke-dashoffset: -1000;
  }
}

.alert-selection-status {
  display: block;
  min-height: calc(17px * var(--aux-ui-scale, 1));
  margin-top: calc(8px * var(--aux-ui-scale, 1));
  color: #999;
  font-size: calc(12px * var(--aux-ui-scale, 1));
}

.alert-selection-status.is-success {
  color: #7fc694;
}

.alert-selection-status.is-error {
  color: #db6262;
}

.alert-preview-name {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 calc(10px * var(--aux-ui-scale, 1));
  color: #e1e1e1;
  background: rgba(9, 9, 9, 0.7);
  font-size: calc(14px * var(--aux-ui-scale, 1));
  text-align: center;
}

.alerts-overlays-empty {
  min-height: calc(72px * var(--aux-ui-scale, 1));
}

@media (max-width: 1280px) {
  .alert-preview-grid {
    grid-template-columns: repeat(3, minmax(calc(170px * var(--aux-ui-scale, 1)), 1fr));
  }
}

@media (max-width: 980px) {
  .alert-preview-grid {
    grid-template-columns: repeat(2, minmax(calc(170px * var(--aux-ui-scale, 1)), 1fr));
  }
}

@media (max-width: 560px) {
  .alerts-overlays-settings {
    padding-right: 0;
  }

  .alerts-overlays-heading h1 {
    font-size: calc(27px * var(--aux-ui-scale, 1));
  }

  .alerts-overlays-group h2 {
    font-size: calc(23px * var(--aux-ui-scale, 1));
  }

  .alert-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .theme-preview-grid,
  .premium-theme-grid {
    grid-template-columns: repeat(3, minmax(calc(170px * var(--aux-ui-scale, 1)), 1fr));
  }
}

@media (max-width: 980px) {
  .theme-preview-grid,
  .premium-theme-grid {
    grid-template-columns: repeat(2, minmax(calc(170px * var(--aux-ui-scale, 1)), 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .aux-cyber-hud {
    display: none;
  }

  .theme-preview-particles i {
    animation: none;
    opacity: 0.5;
  }

  .theme-cyber-preview-trace {
    animation: none;
  }

  body[data-aux-theme^="cyber"] :is(
    #homepage,
    #stream-page,
    #template-page,
    #categories-page,
    #profile-page,
    #live-page
  ) {
    animation: none;
  }
}

