@font-face {
  font-family: "TikTok Sans";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("./TikTokSans-Cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "TikTok Sans";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("./TikTokSans-Latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.app-shell,
.app-shell *:not([style*="font-family: Icons"]):not([style*="font-family:Icons"]):not([style*="fontFamily: Icons"]):not([style*="fontFamily:Icons"]) {
  font-family: "TikTok Sans", system-ui, sans-serif !important;
}

.app-shell [style*="font-family: Icons"],
.app-shell [style*="font-family:Icons"],
.app-shell [style*="fontFamily: Icons"],
.app-shell [style*="fontFamily:Icons"] {
  font-family: Icons !important;
}

:root {
  --site-accent: #ffffff;
  --site-accent-rgb: 255, 255, 255;
  --site-accent-light: #ffffff;
  --site-accent-dark: #d9d9d9;
  --site-background-image: url("./hero-minecraft-v2.png");
}

.app-shell {
  --hero-accent: var(--site-accent) !important;
  --section-accent: var(--site-accent) !important;
  --app-rect-accent: var(--site-accent) !important;
  background: #050409;
}

.app-shell .app-shell__background {
  background: #050409;
}

.app-shell .app-shell__background > * {
  opacity: 0 !important;
  visibility: hidden !important;
}

.app-shell .app-shell__background::before {
  content: "";
  position: absolute;
  inset: -10px;
  background:
    linear-gradient(180deg, rgba(4, 3, 8, 0.34) 0%, rgba(4, 3, 8, 0.2) 38%, rgba(4, 3, 8, 0.9) 100%),
    linear-gradient(90deg, rgba(2, 2, 5, 0.68), rgba(5, 4, 10, 0.18) 48%, rgba(2, 2, 5, 0.62)),
    var(--site-background-image) center 48% / cover no-repeat;
  filter: blur(3px) saturate(0.82) brightness(0.72);
  transform: scale(1.025);
}

.app-shell .app-shell__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(var(--site-accent-rgb), 0.08), transparent 34%),
    linear-gradient(180deg, rgba(2, 2, 5, 0.12), rgba(2, 2, 5, 0.48));
}

/* Match the top navigation plate corners to the Products button. */
.app-header__shell,
.app-header__surface {
  border-radius: 14px !important;
}

.app-header__shell {
  overflow: visible;
}

.app-header__surface {
  overflow: clip;
}

/* Legacy bundle accents are normalized to Configuration.siteColor. */
.home-advantages .advantages-pretitle .advantages-icon,
.home-advantages .advantages-tabs .advantage .advantage-footer .advantage-title .advantage-number {
  color: var(--site-accent) !important;
}

.home-advantages .advantages-tabs .advantage .advantage-header .advantage-background .advantage-icons .ad-icon {
  background-color: var(--site-accent) !important;
}

.home-advantages .advantages-tabs .advantage .advantage-header .advantage-background .advantage-icons .ad-icon::before {
  outline-color: rgba(var(--site-accent-rgb), 0.35) !important;
}

.home-advantages .advantages-tabs .advantage .advantage-header .advantage-background .advantage-icons .ad-icon::after {
  outline-color: rgba(var(--site-accent-rgb), 0.15) !important;
}

.hero-section__content {
  position: relative;
  z-index: 1;
}

.hero-section__title {
  max-width: 62rem !important;
  font-size: clamp(2.75rem, 4.2vw, 4rem) !important;
  font-weight: 500 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.045em !important;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.62);
}

.hero-section__title-line,
.hero-section__title-line > * {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

.hero-section__title-accent {
  position: relative;
  display: inline-block;
  color: var(--site-accent-light);
  text-shadow:
    0 0 22px rgba(var(--site-accent-rgb), 0.58),
    0 0 52px rgba(var(--site-accent-rgb), 0.28);
}

.hero-section__title-accent::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: -0.22em;
  left: 3%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--site-accent) 18%, var(--site-accent-light) 50%, var(--site-accent) 82%, transparent);
  box-shadow:
    0 0 10px rgba(var(--site-accent-rgb), 0.95),
    0 0 25px rgba(var(--site-accent-rgb), 0.55);
}

.hero-section__description {
  max-width: 44rem !important;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem) !important;
  color: rgba(226, 224, 238, 0.68) !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.site-config-logo {
  display: inline-block;
  background-color: var(--site-accent) !important;
  -webkit-mask: var(--site-logo-url) center / contain no-repeat;
  mask: var(--site-logo-url) center / contain no-repeat;
  fill: transparent !important;
  filter: drop-shadow(0 0 12px rgba(var(--site-accent-rgb), 0.52)) !important;
}

.site-config-logo > * { opacity: 0 !important; }

.site-config-logo-frame {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.site-config-logo-frame .site-config-logo {
  filter: none !important;
}

/* Every colored component follows Configuration.json -> siteColor. */
svg[viewBox="0 97 1028 863"] {
  fill: var(--site-accent) !important;
  filter:
    drop-shadow(0 0 5px rgba(var(--site-accent-rgb), 0.78))
    drop-shadow(0 0 15px rgba(var(--site-accent-rgb), 0.34)) !important;
}

.hero-section__content > div:first-child svg[viewBox="0 97 1028 863"] {
  filter:
    drop-shadow(0 0 7px rgba(var(--site-accent-rgb), 0.82))
    drop-shadow(0 0 24px rgba(var(--site-accent-rgb), 0.4)) !important;
}

.app-header__brand svg[viewBox="0 97 1028 863"] {
  overflow: visible !important;
  filter:
    drop-shadow(0 0 5px rgba(var(--site-accent-rgb), 1))
    drop-shadow(0 0 13px rgba(var(--site-accent-rgb), 0.62))
    drop-shadow(0 0 22px rgba(var(--site-accent-rgb), 0.28)) !important;
}

.app-header__brand {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
}

.app-header__brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--site-accent-rgb), 0.46), rgba(var(--site-accent-rgb), 0) 70%);
  filter: blur(5px);
  transform: translate(-50%, -50%);
}

.action-button--primary,
.action-button--secondary,
.app-header__profile {
  color: #fff !important;
  background-color: transparent !important;
  background-image: linear-gradient(
    180deg,
    var(--site-accent-light) 0%,
    var(--site-accent-dark) 100%
  ) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 24px rgba(var(--site-accent-rgb), 0.22) !important;
  transition:
    box-shadow 0.22s ease,
    filter 0.22s ease,
    transform 0.22s cubic-bezier(0.45, 1.45, 0.49, 1.15) !important;
}

.action-button--primary:hover:not(:disabled),
.action-button--secondary:hover:not(:disabled),
.app-header__profile:hover {
  filter: brightness(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 32px rgba(var(--site-accent-rgb), 0.34) !important;
  transform: scale(1.012);
}

.action-button--primary:active:not(:disabled),
.action-button--secondary:active:not(:disabled),
.app-header__profile:active {
  filter: brightness(0.98);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 2px 12px rgba(var(--site-accent-rgb), 0.16) !important;
  transform: scale(0.987);
}

.action-button--primary:disabled,
.action-button--secondary:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

/* The source bundle adds a second dark plate behind buttons; the imported
   gradient already has its own depth, so that plate must not be rendered. */
.action-button--primary::before,
.action-button--secondary::before,
.app-header__profile::before {
  content: none !important;
  display: none !important;
}

.hero-account-button {
  min-height: 42px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-account-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.hero-account-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(var(--site-accent-rgb), 0.34);
  transform: translateY(-1px);
}

.hero-account-button:active {
  transform: translateY(1px);
}

/* Profile layout: keep both columns straight and prevent value/copy wrapping. */
.profile-page__grid-container {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) !important;
  align-items: start !important;
}

.profile-page__hero,
.profile-page__details,
.profile-page__hero-panel,
.profile-page__details-panel {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.profile-page__hero-panel,
.profile-page__details-panel {
  border-radius: 14px !important;
}

.profile-page__detail-row {
  display: grid !important;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr);
  align-items: center !important;
  gap: 1rem;
  min-height: 36px;
  width: 100%;
}

.profile-page__detail-label,
.profile-page__detail-value {
  min-width: 0;
}

.profile-page__detail-label p {
  margin: 0;
}

.profile-page__detail-value {
  justify-self: end;
  justify-content: flex-end;
  flex-wrap: nowrap !important;
  max-width: 100%;
}

.profile-page__detail-value > span {
  order: 1;
  min-width: 0;
  max-width: min(100%, 28rem) !important;
  text-align: right !important;
  overflow-wrap: anywhere;
}

.profile-page__detail-value .profile-page__copy {
  order: 2;
  flex: 0 0 auto;
}

/* Profile actions use the same restrained glass treatment as Register. */
.profile-page .action-button {
  min-height: 42px !important;
  padding: 0.62rem 1.1rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
  backdrop-filter: blur(15px) saturate(1.02);
  -webkit-backdrop-filter: blur(15px) saturate(1.02);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease !important;
}

.profile-page .action-button::before {
  content: none !important;
  display: none !important;
}

.profile-page .action-button:hover:not(:disabled) {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(var(--site-accent-rgb), 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  transform: translateY(-1px) !important;
}

.profile-page .action-button:active:not(:disabled) {
  transform: translateY(1px) !important;
}

.profile-page .action-button:disabled {
  opacity: 0.48 !important;
  cursor: not-allowed !important;
}

/* Keep Products gradient, but match the Register/Cabinet control dimensions. */
.hero-section__button.action-button--primary {
  min-height: 42px;
  padding: 0.62rem 1.1rem !important;
  border-radius: 14px !important;
}

.video-review-section__badge,
.route-badge {
  color: #fff !important;
  background-color: transparent !important;
  background-image: linear-gradient(
    180deg,
    var(--site-accent-light) 0%,
    var(--site-accent-dark) 100%
  ) !important;
  border-color: transparent !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 22px rgba(var(--site-accent-rgb), 0.24) !important;
}

.video-review-section__badge-icon,
.route-badge__icon {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.13) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

.video-review-section__badge-text,
.route-badge__text {
  color: #fff !important;
}

.rrmodded-shimmer {
  background-image: linear-gradient(
    90deg,
    var(--site-accent) 0%,
    var(--site-accent-light) 25%,
    #fff 50%,
    var(--site-accent-light) 75%,
    var(--site-accent) 100%
  ) !important;
}

#page-bottom-blur {
  position: fixed;
  z-index: 18;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(90px, 14vh, 155px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.16) 22%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.16) 22%, #000 100%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

body.is-page-scrolled #page-bottom-blur { opacity: 1; }

#page-bottom-blur::before,
#page-bottom-blur::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

#page-bottom-blur::before {
  height: 72%;
  background: linear-gradient(to bottom, transparent, rgba(4, 3, 8, 0.26));
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 74%);
  mask-image: linear-gradient(to bottom, transparent, #000 74%);
}

#page-bottom-blur::after {
  height: 38%;
  background: linear-gradient(to bottom, transparent, rgba(3, 2, 7, 0.64));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 68%);
  mask-image: linear-gradient(to bottom, transparent, #000 68%);
}

@media (max-width: 768px) {
  .app-shell .app-shell__background::before {
    background-position: 58% center;
    filter: blur(2px) saturate(0.78) brightness(0.62);
  }

  .hero-section__title-accent::after {
    bottom: -0.16em;
  }

  .hero-section__title {
    font-size: clamp(2.25rem, 10vw, 3rem) !important;
    line-height: 1.08 !important;
  }

  .hero-account-button {
    min-height: 40px;
    padding-inline: 0.95rem;
  }
}

@media (max-width: 900px) {
  .profile-page__grid-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .profile-page__detail-row {
    grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 560px) {
  .profile-page__detail-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .profile-page__detail-value {
    justify-self: start;
    justify-content: flex-start;
  }

  .profile-page__detail-value > span {
    text-align: left !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell .app-shell__background::before {
    transform: scale(1.025);
  }
}
