:root {
  --site-bg: #f4f7ff;
  --site-surface: rgba(255, 255, 255, 0.65);
  --site-border: rgba(255, 255, 255, 0.45);
  --site-text: #0f172a;
  --site-muted: #64748b;
  --site-primary: #f59e0b;
  --site-primary-600: #d97706;
  --site-navbar-bg: rgba(255, 255, 255, 0.55);
  --site-hover: rgba(15, 23, 42, 0.06);
  --site-radius: 14px;
  --site-radius-sm: 10px;
  --site-shadow: 0 1px 2px rgba(2, 6, 23, 0.06), 0 18px 48px rgba(2, 6, 23, 0.10);

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 1px 2px rgba(2, 6, 23, 0.06), 0 18px 48px rgba(2, 6, 23, 0.10);
  --glass-blur: 18px;
}

html[data-bs-theme="dark"] {
  --site-bg: #070b18;
  --site-surface: rgba(15, 23, 42, 0.42);
  --site-border: rgba(226, 232, 240, 0.28);
  --site-text: #e5e7eb;
  --site-muted: #94a3b8;
  --site-primary: #f59e0b;
  --site-primary-600: #fbbf24;
  --site-navbar-bg: rgba(15, 23, 42, 0.42);
  --site-hover: rgba(226, 232, 240, 0.08);
  --site-shadow: 0 1px 2px rgba(2, 6, 23, 0.75), 0 24px 60px rgba(2, 6, 23, 0.55);

  --glass-bg: rgba(15, 23, 42, 0.42);
  --glass-border: rgba(226, 232, 240, 0.28);
  --glass-shadow: 0 1px 2px rgba(2, 6, 23, 0.75), 0 24px 60px rgba(2, 6, 23, 0.55);
  --glass-blur: 20px;
}

html,
body {
  height: 100%;
}

:root {
  --bs-primary: var(--site-primary);
  --bs-link-color: var(--site-primary-600);
  --bs-link-hover-color: var(--site-primary);
  --bs-body-bg: var(--site-bg);
  --bs-body-color: var(--site-text);
  --bs-border-color: var(--site-border);
  --bs-body-font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

html[data-bs-theme="dark"] {
  --bs-primary: var(--site-primary);
  --bs-link-color: var(--site-primary-600);
  --bs-link-hover-color: var(--site-primary);
  --bs-body-bg: var(--site-bg);
  --bs-body-color: var(--site-text);
  --bs-border-color: var(--site-border);
}

html[data-bs-theme="light"] .form-control,
html[data-bs-theme="light"] .form-select {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.14);
}

html[data-bs-theme="light"] .order-balance-box {
  border-color: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.14);
}

html[data-bs-theme="light"] .form-control:focus,
html[data-bs-theme="light"] .form-select:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18), 0 0 0 0.2rem rgba(245, 158, 11, 0.18);
}

html[data-bs-theme="dark"] #order select[name="pay_channel"].form-select {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.3);
}

html[data-bs-theme="dark"] #order select[name="pay_channel"].form-select:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.36), 0 0 0 0.2rem rgba(245, 158, 11, 0.18);
}

#order .alert {
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  line-height: 1.4;
}

@media (max-width: 576px) {
  #order .alert {
    font-size: 0.85rem;
  }
}

body.site-body {
  background: var(--site-bg);
  color: var(--site-text);
  min-height: 100vh;
}

body.site-body::before,
body.site-body::after {
  content: "";
  position: fixed;
  inset: -20vh -20vw;
  z-index: -2;
  pointer-events: none;
  filter: blur(50px) saturate(210%) contrast(125%);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  background-size: 140% 140%;
  background-position: 0% 0%;
  will-change: transform, opacity, filter, background-position;
  mix-blend-mode: normal;
}

body.site-body::before {
  background:
    radial-gradient(closest-side at 18% 10%, rgba(99, 102, 241, 0.66), transparent 64%),
    radial-gradient(closest-side at 82% 18%, rgba(14, 165, 233, 0.56), transparent 62%),
    radial-gradient(closest-side at 42% 88%, rgba(245, 158, 11, 0.56), transparent 66%),
    radial-gradient(closest-side at 86% 82%, rgba(168, 85, 247, 0.52), transparent 66%),
    radial-gradient(closest-side at 55% 35%, rgba(236, 72, 153, 0.32), transparent 70%);
  animation: siteLiquidFloatA 18s ease-in-out infinite alternate, siteLiquidShift 26s linear infinite;
}

body.site-body::after {
  z-index: -1;
  filter: blur(18px) saturate(185%) contrast(118%);
  opacity: 0.85;
  background:
    radial-gradient(closest-side at 50% 40%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(closest-side at 55% 50%, rgba(255, 255, 255, 0.14), transparent 72%),
    radial-gradient(closest-side at 20% 70%, rgba(99, 102, 241, 0.14), transparent 72%),
    radial-gradient(closest-side at 88% 60%, rgba(14, 165, 233, 0.12), transparent 74%);
  animation: siteLiquidFloatB 22s ease-in-out infinite alternate, siteLiquidShift 34s linear infinite reverse;
}

html[data-bs-theme="dark"] body.site-body::before {
  opacity: 1;
  background:
    radial-gradient(closest-side at 18% 12%, rgba(99, 102, 241, 0.58), transparent 66%),
    radial-gradient(closest-side at 78% 22%, rgba(14, 165, 233, 0.44), transparent 64%),
    radial-gradient(closest-side at 40% 88%, rgba(245, 158, 11, 0.44), transparent 68%),
    radial-gradient(closest-side at 84% 82%, rgba(168, 85, 247, 0.38), transparent 68%),
    radial-gradient(closest-side at 55% 34%, rgba(236, 72, 153, 0.26), transparent 72%);
}

html[data-bs-theme="dark"] body.site-body::after {
  opacity: 0.72;
  background:
    radial-gradient(closest-side at 50% 40%, rgba(148, 163, 184, 0.26), transparent 72%),
    radial-gradient(closest-side at 55% 50%, rgba(148, 163, 184, 0.20), transparent 74%),
    radial-gradient(closest-side at 18% 70%, rgba(99, 102, 241, 0.16), transparent 74%),
    radial-gradient(closest-side at 88% 62%, rgba(14, 165, 233, 0.14), transparent 76%);
}

@keyframes siteLiquidFloatA {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1.05) rotate(-6deg);
    filter: blur(46px) saturate(230%) contrast(128%);
  }
  50% {
    transform: translate3d(1%, 2%, 0) scale(1.12) rotate(4deg);
    filter: blur(54px) saturate(250%) contrast(132%);
  }
  100% {
    transform: translate3d(5%, -1%, 0) scale(1.06) rotate(10deg);
    filter: blur(50px) saturate(235%) contrast(128%);
  }
}

@keyframes siteLiquidFloatB {
  0% {
    transform: translate3d(3%, 4%, 0) scale(1.03) rotate(0deg);
    filter: blur(16px) saturate(210%) contrast(120%);
  }
  50% {
    transform: translate3d(-2%, 1%, 0) scale(1.08) rotate(-6deg);
    filter: blur(20px) saturate(220%) contrast(122%);
  }
  100% {
    transform: translate3d(-4%, -3%, 0) scale(1.04) rotate(6deg);
    filter: blur(18px) saturate(215%) contrast(120%);
  }
}

@keyframes siteLiquidShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 80% 40%;
  }
  100% {
    background-position: 0% 0%;
  }
}

html[data-bg-style="off"] body.site-body::before,
html[data-bg-style="off"] body.site-body::after {
  opacity: 0 !important;
  animation: none !important;
  filter: none !important;
}

html[data-bg-style="liquid_soft"] body.site-body::before,
html[data-bg-style="liquid_soft"] body.site-body::after {
  filter: blur(62px) saturate(160%) contrast(112%) !important;
}

html[data-bg-style="liquid_soft"] body.site-body::before {
  opacity: 0.72 !important;
}

html[data-bg-style="liquid_soft"] body.site-body::after {
  opacity: 0.56 !important;
}

html[data-bg-style="aurora"] body.site-body::before {
  opacity: 0.95 !important;
  background:
    radial-gradient(closest-side at 15% 20%, rgba(99, 102, 241, 0.58), transparent 62%),
    radial-gradient(closest-side at 85% 18%, rgba(14, 165, 233, 0.44), transparent 64%),
    radial-gradient(closest-side at 50% 85%, rgba(245, 158, 11, 0.42), transparent 66%),
    linear-gradient(120deg, rgba(168, 85, 247, 0.22), rgba(14, 165, 233, 0.14), rgba(245, 158, 11, 0.16));
  filter: blur(66px) saturate(220%) contrast(128%);
  animation: siteAuroraShift 22s ease-in-out infinite alternate;
}

html[data-bs-theme="dark"][data-bg-style="aurora"] body.site-body::before {
  opacity: 1 !important;
  background:
    radial-gradient(closest-side at 15% 20%, rgba(99, 102, 241, 0.48), transparent 64%),
    radial-gradient(closest-side at 85% 18%, rgba(14, 165, 233, 0.38), transparent 66%),
    radial-gradient(closest-side at 50% 85%, rgba(245, 158, 11, 0.36), transparent 68%),
    linear-gradient(120deg, rgba(168, 85, 247, 0.22), rgba(14, 165, 233, 0.14), rgba(245, 158, 11, 0.18));
  filter: blur(70px) saturate(240%) contrast(132%);
}

html[data-bg-style="aurora"] body.site-body::after {
  opacity: 0.55 !important;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(255, 255, 255, 0.16), transparent 72%),
    radial-gradient(closest-side at 22% 70%, rgba(168, 85, 247, 0.14), transparent 74%),
    radial-gradient(closest-side at 86% 65%, rgba(14, 165, 233, 0.12), transparent 74%);
  filter: blur(22px) saturate(160%) contrast(112%);
  animation: siteAuroraSheen 28s ease-in-out infinite alternate;
}

html[data-bg-style="nebula"] body.site-body::before {
  opacity: 0.92 !important;
  background:
    radial-gradient(closest-side at 12% 18%, rgba(124, 58, 237, 0.58), transparent 62%),
    radial-gradient(closest-side at 88% 20%, rgba(59, 130, 246, 0.48), transparent 64%),
    radial-gradient(closest-side at 50% 78%, rgba(236, 72, 153, 0.42), transparent 66%),
    radial-gradient(closest-side at 40% 42%, rgba(34, 211, 238, 0.30), transparent 70%);
  filter: blur(72px) saturate(225%) contrast(128%);
  animation: siteNebulaDrift 30s ease-in-out infinite alternate;
}

html[data-bs-theme="dark"][data-bg-style="nebula"] body.site-body::before {
  opacity: 1 !important;
  background:
    radial-gradient(closest-side at 12% 18%, rgba(124, 58, 237, 0.46), transparent 64%),
    radial-gradient(closest-side at 88% 20%, rgba(59, 130, 246, 0.42), transparent 66%),
    radial-gradient(closest-side at 50% 78%, rgba(236, 72, 153, 0.34), transparent 68%),
    radial-gradient(closest-side at 40% 42%, rgba(34, 211, 238, 0.24), transparent 72%);
  filter: blur(76px) saturate(235%) contrast(132%);
}

html[data-bg-style="nebula"] body.site-body::after {
  opacity: 0.52 !important;
  background:
    radial-gradient(closest-side at 24% 32%, rgba(255, 255, 255, 0.14), transparent 72%),
    radial-gradient(closest-side at 64% 22%, rgba(216, 180, 254, 0.16), transparent 72%),
    radial-gradient(closest-side at 78% 70%, rgba(147, 197, 253, 0.14), transparent 74%);
  filter: blur(18px) saturate(170%) contrast(116%);
  animation: siteNebulaStars 36s ease-in-out infinite alternate;
}

html[data-bg-style="sunset"] body.site-body::before {
  opacity: 0.9 !important;
  background:
    radial-gradient(closest-side at 16% 82%, rgba(251, 146, 60, 0.56), transparent 58%),
    radial-gradient(closest-side at 42% 26%, rgba(248, 113, 113, 0.44), transparent 66%),
    radial-gradient(closest-side at 82% 18%, rgba(244, 114, 182, 0.34), transparent 68%),
    linear-gradient(135deg, rgba(255, 237, 213, 0.26), rgba(253, 186, 116, 0.20), rgba(251, 113, 133, 0.18));
  filter: blur(64px) saturate(190%) contrast(120%);
  animation: siteSunsetFlow 24s ease-in-out infinite alternate;
}

html[data-bs-theme="dark"][data-bg-style="sunset"] body.site-body::before {
  opacity: 0.96 !important;
  background:
    radial-gradient(closest-side at 16% 82%, rgba(251, 146, 60, 0.46), transparent 60%),
    radial-gradient(closest-side at 42% 26%, rgba(248, 113, 113, 0.36), transparent 68%),
    radial-gradient(closest-side at 82% 18%, rgba(244, 114, 182, 0.28), transparent 70%),
    linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(244, 114, 182, 0.16), rgba(15, 23, 42, 0.14));
  filter: blur(68px) saturate(210%) contrast(126%);
}

html[data-bg-style="sunset"] body.site-body::after {
  opacity: 0.58 !important;
  background:
    radial-gradient(closest-side at 50% 48%, rgba(255, 255, 255, 0.18), transparent 72%),
    radial-gradient(closest-side at 22% 22%, rgba(255, 237, 213, 0.18), transparent 72%),
    radial-gradient(closest-side at 84% 74%, rgba(251, 113, 133, 0.14), transparent 74%);
  filter: blur(22px) saturate(150%) contrast(108%);
  animation: siteSunsetSheen 26s ease-in-out infinite alternate;
}

html[data-bg-style="ocean"] body.site-body::before {
  opacity: 0.92 !important;
  background:
    radial-gradient(closest-side at 12% 18%, rgba(6, 182, 212, 0.48), transparent 64%),
    radial-gradient(closest-side at 86% 16%, rgba(37, 99, 235, 0.44), transparent 64%),
    radial-gradient(closest-side at 52% 82%, rgba(56, 189, 248, 0.38), transparent 66%),
    linear-gradient(140deg, rgba(12, 74, 110, 0.18), rgba(8, 145, 178, 0.18), rgba(56, 189, 248, 0.14));
  filter: blur(70px) saturate(210%) contrast(124%);
  animation: siteOceanSwell 20s ease-in-out infinite alternate;
}

html[data-bs-theme="dark"][data-bg-style="ocean"] body.site-body::before {
  opacity: 0.98 !important;
  background:
    radial-gradient(closest-side at 12% 18%, rgba(6, 182, 212, 0.40), transparent 66%),
    radial-gradient(closest-side at 86% 16%, rgba(37, 99, 235, 0.36), transparent 66%),
    radial-gradient(closest-side at 52% 82%, rgba(56, 189, 248, 0.30), transparent 68%),
    linear-gradient(140deg, rgba(8, 47, 73, 0.20), rgba(8, 145, 178, 0.14), rgba(15, 23, 42, 0.16));
  filter: blur(74px) saturate(225%) contrast(130%);
}

html[data-bg-style="ocean"] body.site-body::after {
  opacity: 0.56 !important;
  background:
    radial-gradient(closest-side at 22% 76%, rgba(125, 211, 252, 0.16), transparent 72%),
    radial-gradient(closest-side at 70% 30%, rgba(186, 230, 253, 0.16), transparent 70%),
    radial-gradient(closest-side at 86% 68%, rgba(56, 189, 248, 0.12), transparent 74%);
  filter: blur(20px) saturate(170%) contrast(112%);
  animation: siteOceanFoam 28s ease-in-out infinite alternate;
}

@keyframes siteAuroraShift {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1.05);
    background-position: 0% 0%;
    filter: blur(68px) saturate(220%) contrast(128%) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(2%, 3%, 0) scale(1.12);
    background-position: 80% 40%;
    filter: blur(72px) saturate(240%) contrast(132%) hue-rotate(24deg);
  }
  100% {
    transform: translate3d(5%, -1%, 0) scale(1.06);
    background-position: 0% 0%;
    filter: blur(68px) saturate(225%) contrast(128%) hue-rotate(0deg);
  }
}

@keyframes siteAuroraSheen {
  0% {
    transform: translate3d(2%, 3%, 0) scale(1.02);
    filter: blur(22px) saturate(160%) contrast(112%) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(-2%, 1%, 0) scale(1.07);
    filter: blur(26px) saturate(175%) contrast(118%) hue-rotate(-14deg);
  }
  100% {
    transform: translate3d(-3%, -2%, 0) scale(1.03);
    filter: blur(22px) saturate(165%) contrast(114%) hue-rotate(0deg);
  }
}

@keyframes siteNebulaDrift {
  0% {
    transform: translate3d(-5%, -3%, 0) scale(1.05) rotate(-4deg);
    filter: blur(72px) saturate(225%) contrast(128%) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(1%, 3%, 0) scale(1.12) rotate(5deg);
    filter: blur(78px) saturate(245%) contrast(132%) hue-rotate(18deg);
  }
  100% {
    transform: translate3d(5%, -1%, 0) scale(1.08) rotate(10deg);
    filter: blur(74px) saturate(230%) contrast(128%) hue-rotate(0deg);
  }
}

@keyframes siteNebulaStars {
  0% {
    transform: translate3d(2%, 2%, 0) scale(1.02);
    opacity: 0.44;
  }
  50% {
    transform: translate3d(-2%, 1%, 0) scale(1.08);
    opacity: 0.6;
  }
  100% {
    transform: translate3d(-3%, -2%, 0) scale(1.03);
    opacity: 0.48;
  }
}

@keyframes siteSunsetFlow {
  0% {
    transform: translate3d(-4%, 2%, 0) scale(1.04);
    filter: blur(64px) saturate(190%) contrast(120%) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.1);
    filter: blur(68px) saturate(208%) contrast(124%) hue-rotate(-12deg);
  }
  100% {
    transform: translate3d(5%, 1%, 0) scale(1.06);
    filter: blur(64px) saturate(194%) contrast(120%) hue-rotate(0deg);
  }
}

@keyframes siteSunsetSheen {
  0% {
    transform: translate3d(1%, 2%, 0) scale(1.02);
    opacity: 0.5;
  }
  50% {
    transform: translate3d(-2%, 0, 0) scale(1.08);
    opacity: 0.64;
  }
  100% {
    transform: translate3d(-3%, -2%, 0) scale(1.03);
    opacity: 0.54;
  }
}

@keyframes siteOceanSwell {
  0% {
    transform: translate3d(-3%, 2%, 0) scale(1.06);
    filter: blur(70px) saturate(210%) contrast(124%) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.14);
    filter: blur(76px) saturate(230%) contrast(130%) hue-rotate(12deg);
  }
  100% {
    transform: translate3d(4%, 1%, 0) scale(1.08);
    filter: blur(72px) saturate(216%) contrast(124%) hue-rotate(0deg);
  }
}

@keyframes siteOceanFoam {
  0% {
    transform: translate3d(2%, 2%, 0) scale(1.02);
    filter: blur(20px) saturate(170%) contrast(112%);
  }
  50% {
    transform: translate3d(-2%, 0, 0) scale(1.1);
    filter: blur(24px) saturate(182%) contrast(116%);
  }
  100% {
    transform: translate3d(-4%, -2%, 0) scale(1.04);
    filter: blur(20px) saturate(174%) contrast(112%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-body::before,
  body.site-body::after {
    animation: none;
  }
}

.site-navbar {
  --bs-navbar-color: var(--site-text);
  --bs-navbar-hover-color: var(--site-text);
  --bs-navbar-brand-color: var(--site-text);
  --bs-navbar-brand-hover-color: var(--site-text);
  --bs-navbar-toggler-border-color: var(--site-border);
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--site-navbar-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow);
}

html[data-bs-theme="dark"] .site-navbar {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-navbar .navbar-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-navbar .nav-link {
  color: var(--site-text);
  border-radius: 10px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  background: var(--site-hover);
  color: var(--site-text);
}

.site-nav-link-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-nav-link-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.site-navbar .navbar-text {
  color: var(--site-muted);
}

.site-icon-btn,
.site-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--site-text);
  height: 36px;
  width: 40px;
  border-radius: 12px;
  padding: 0;
  line-height: 1;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.site-icon-btn:hover,
.site-icon-btn:focus,
.site-theme-btn:hover,
.site-theme-btn:focus {
  background: var(--site-hover);
}

.site-icon-btn:focus-visible,
.site-theme-btn:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.35);
  outline-offset: 2px;
}

.site-icon {
  width: 18px;
  height: 18px;
  display: block;
}

[data-site-theme-icon] {
  display: none;
}

html:not([data-theme-mode]) [data-site-theme-icon="system"] {
  display: block;
}

html[data-theme-mode="system"] [data-site-theme-icon="system"] {
  display: block;
}

html[data-theme-mode="light"] [data-site-theme-icon="light"] {
  display: block;
}

html[data-theme-mode="dark"] [data-site-theme-icon="dark"] {
  display: block;
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--site-radius-sm);
  box-shadow: var(--glass-shadow);
  z-index: 1060;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

html[data-bs-theme="dark"] .dropdown-menu {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(226, 232, 240, 0.18);
}

.dropdown-item,
.dropdown-header,
.dropdown-item-text {
  color: var(--site-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--site-hover);
  color: var(--site-text);
}

.dropdown-item.active,
.dropdown-item:active {
  background: rgba(245, 158, 11, 0.18);
  color: var(--site-text);
}

.site-flag {
  width: 18px;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12) inset;
}

html[data-bs-theme="dark"] .site-flag {
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.18) inset;
}

.site-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dropdown-divider {
  border-top-color: var(--site-border);
}

.site-search .input-group-text {
  background: var(--site-surface);
  border-color: var(--site-border);
  color: var(--site-muted);
}

.site-search .form-control {
  background: var(--site-surface);
  border-color: var(--site-border);
  color: var(--site-text);
}

html[data-bs-theme="dark"] .site-search .form-control::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.site-search .form-control:focus {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.18);
}

.site-search .btn-outline-secondary {
  --bs-btn-border-color: var(--site-border);
  --bs-btn-color: var(--site-muted);
  --bs-btn-hover-bg: var(--site-hover);
  --bs-btn-hover-border-color: var(--site-border);
  --bs-btn-hover-color: var(--site-text);
}

.site-search-form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.site-searchbar {
  position: relative;
  width: 100%;
}

.site-searchbar-input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.22);
  color: var(--site-text);
  outline: none;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

html[data-bs-theme="light"] .site-searchbar-input {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="dark"] .site-searchbar-input {
  background: rgba(15, 23, 42, 0.22);
  border-color: var(--glass-border);
}

.site-searchbar-input::placeholder {
  color: rgba(100, 116, 139, 0.9);
}

html[data-bs-theme="dark"] .site-searchbar-input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.site-searchbar-input:focus {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.16);
}

.site-searchbar-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(100, 116, 139, 0.9);
  pointer-events: none;
}

html[data-bs-theme="dark"] .site-searchbar-icon {
  color: rgba(148, 163, 184, 0.85);
}

.site-searchbar-icon.is-left {
  left: 8px;
}

.site-searchbar-icon.is-right {
  right: 8px;
}

.site-searchbar:focus-within .site-searchbar-icon.is-right:not(.is-action) {
  opacity: 0;
  visibility: hidden;
}

.site-searchbar-input:not(:placeholder-shown) ~ .site-searchbar-icon.is-right:not(.is-action) {
  opacity: 0;
  visibility: hidden;
}

.site-searchbar-icon.is-action {
  pointer-events: auto;
  text-decoration: none;
  border-radius: 999px;
}

.site-searchbar-icon.is-action:hover,
.site-searchbar-icon.is-action:focus {
  background: var(--site-hover);
  color: var(--site-text);
}

.site-offcanvas.offcanvas-end {
  width: min(340px, 66.666vw, calc(100vw - 24px));
  max-width: 340px;
  background: var(--glass-bg);
  color: var(--site-text);
  border-left: 1px solid var(--glass-border);
  border-radius: 18px;
  top: 12px;
  bottom: 12px;
  height: auto;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.site-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--glass-border);
}

html[data-bs-theme="dark"] .site-offcanvas .btn-close {
  filter: invert(1) grayscale(100%);
}

.site-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--site-text);
  text-decoration: none;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

html[data-bs-theme="dark"] .site-drawer-link {
  background: rgba(15, 23, 42, 0.18);
}

.site-drawer-link:hover,
.site-drawer-link:focus {
  background: var(--site-hover);
  color: var(--site-text);
}

.site-drawer-link-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-drawer-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.card {
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--site-radius) + 2px);
  box-shadow: var(--glass-shadow);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.site-product-card {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.site-product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.05), rgba(245, 158, 11, 0.25));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.75;
  pointer-events: none;
}

html[data-bs-theme="dark"] .site-product-card::before {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.38), rgba(226, 232, 240, 0.06), rgba(245, 158, 11, 0.22));
  opacity: 0.85;
}

.site-product-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background:
    radial-gradient(closest-side at 20% 10%, rgba(255, 255, 255, 0.35), transparent 62%),
    radial-gradient(closest-side at 85% 20%, rgba(14, 165, 233, 0.18), transparent 60%),
    radial-gradient(closest-side at 40% 92%, rgba(168, 85, 247, 0.14), transparent 62%);
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
  animation: siteCardSheen 14s ease-in-out infinite alternate;
}

html[data-bs-theme="dark"] .site-product-card::after {
  opacity: 0.45;
}

.site-product-card > * {
  position: relative;
  z-index: 1;
}

.site-product-card .site-product-cover-link,
.site-product-detail-card .site-product-cover-link {
  display: block;
  text-decoration: none;
}

.site-product-card .site-product-cover-frame,
.site-product-detail-card .site-product-cover-frame {
  display: block;
}

.site-product-card .site-product-cover-image,
.site-product-detail-card .site-product-cover-image {
  display: block;
  width: 100%;
  object-fit: cover;
}

html[data-product-cover-style="inner_frame"] .site-product-card .site-product-cover-link,
html[data-product-cover-style="inner_frame"] .site-product-detail-card .site-product-cover-link {
  padding: 12px 12px 2px;
}

html[data-product-cover-style="inner_frame"] .site-product-detail-card .site-product-cover-link {
  padding: 30px 45px 6px;
}

html[data-product-cover-style="inner_frame"] .site-product-card .site-product-cover-frame,
html[data-product-cover-style="inner_frame"] .site-product-detail-card .site-product-cover-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 8px;
  border-radius: calc(var(--site-radius) - 2px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #fff;
  box-shadow:
    4px 0 7px rgba(15, 23, 42, 0.12),
    0 4px 7px rgba(15, 23, 42, 0.12),
    0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-product-cover-style="inner_frame"] .site-product-detail-card .site-product-cover-frame {
  padding: 18px;
}

html[data-product-cover-style="inner_frame"] .site-product-card .site-product-cover-image,
html[data-product-cover-style="inner_frame"] .site-product-detail-card .site-product-cover-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--site-radius) - 4px);
  box-shadow: none;
}

html[data-product-cover-style="classic"] .site-product-card .site-product-cover-frame,
html[data-product-cover-style="classic"] .site-product-detail-card .site-product-cover-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

html[data-product-cover-style="classic"] .site-product-card .site-product-cover-image,
html[data-product-cover-style="classic"] .site-product-detail-card .site-product-cover-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

html[data-product-cover-style="classic"][data-product-cover-alpha="0"] .site-product-card .site-product-cover-frame,
html[data-product-cover-style="classic"][data-product-cover-alpha="0"] .site-product-detail-card .site-product-cover-frame {
  background: #fff;
}

html[data-bs-theme="dark"][data-product-cover-style="classic"][data-product-cover-alpha="0"] .site-product-card .site-product-cover-frame,
html[data-bs-theme="dark"][data-product-cover-style="classic"][data-product-cover-alpha="0"] .site-product-detail-card .site-product-cover-frame {
  background: rgba(255, 255, 255, 0.95);
}

html[data-product-cover-style="classic"][data-product-cover-alpha="1"] .site-product-card .site-product-cover-frame,
html[data-product-cover-style="classic"][data-product-cover-alpha="1"] .site-product-detail-card .site-product-cover-frame {
  background: transparent;
}

html[data-bs-theme="dark"][data-product-cover-style="inner_frame"] .site-product-card .site-product-cover-frame,
html[data-bs-theme="dark"][data-product-cover-style="inner_frame"] .site-product-detail-card .site-product-cover-frame {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    4px 0 8px rgba(2, 6, 23, 0.22),
    0 4px 8px rgba(2, 6, 23, 0.22),
    0 1px 2px rgba(2, 6, 23, 0.12);
}

html[data-bs-theme="dark"][data-product-cover-style="inner_frame"] .site-product-card .site-product-cover-image,
html[data-bs-theme="dark"][data-product-cover-style="inner_frame"] .site-product-detail-card .site-product-cover-image {
  box-shadow: none;
}

html[data-product-cover-style="inner_frame"][data-product-cover-alpha="1"] .site-product-card .site-product-cover-frame,
html[data-product-cover-style="inner_frame"][data-product-cover-alpha="1"] .site-product-detail-card .site-product-cover-frame {
  background: transparent;
}

html[data-bs-theme="dark"][data-product-cover-style="inner_frame"][data-product-cover-alpha="1"] .site-product-card .site-product-cover-frame,
html[data-bs-theme="dark"][data-product-cover-style="inner_frame"][data-product-cover-alpha="1"] .site-product-detail-card .site-product-cover-frame {
  background: transparent;
}

.site-product-card .card-body {
  padding: 12px;
}

.site-product-card .site-card-cta {
  position: relative;
  z-index: 2;
}

.site-product-card .card-title {
  font-size: calc(0.9rem + 2px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.site-product-card .card-title a {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 576px) {
  .site-product-card .card-body {
    padding: 10px;
  }

  .site-product-card .card-title {
    font-size: calc(0.82rem + 2px);
  }
}

.site-product-card .card-text {
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

@media (max-width: 576px) {
  .site-product-card .card-text {
    font-size: 0.78rem;
    line-clamp: 1;
    -webkit-line-clamp: 1;
  }
}

.site-product-card .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
}

.site-product-card .badge.text-bg-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
}

html[data-bs-theme="dark"] .site-product-card .badge.text-bg-secondary {
  background: rgba(15, 23, 42, 0.22) !important;
}

.site-product-card:hover {
  transform: translateY(-1px);
}

@keyframes siteCardSheen {
  0% {
    transform: translate3d(-2%, -2%, 0) scale(1.02);
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(3%, -1%, 0) scale(1.03);
  }
}

.card .card-img-top {
  border-top-left-radius: calc(var(--site-radius) - 1px);
  border-top-right-radius: calc(var(--site-radius) - 1px);
}

.badge.text-bg-light {
  background: rgba(148, 163, 184, 0.18) !important;
  color: var(--site-text) !important;
  border: 1px solid var(--glass-border);
}

.badge.text-bg-secondary {
  background: rgba(15, 23, 42, 0.10) !important;
  color: var(--site-text) !important;
  border: 1px solid var(--glass-border);
}

html[data-bs-theme="dark"] .badge.text-bg-secondary {
  background: rgba(226, 232, 240, 0.14) !important;
}

.btn-outline-primary {
  --bs-btn-color: var(--site-primary-600);
  --bs-btn-border-color: rgba(245, 158, 11, 0.42);
  --bs-btn-hover-bg: rgba(245, 158, 11, 0.12);
  --bs-btn-hover-border-color: rgba(245, 158, 11, 0.55);
  --bs-btn-hover-color: var(--site-text);
  --bs-btn-active-bg: rgba(245, 158, 11, 0.18);
  --bs-btn-active-border-color: rgba(245, 158, 11, 0.6);
  --bs-btn-active-color: var(--site-text);
}

.btn-primary {
  --bs-btn-bg: var(--site-primary);
  --bs-btn-border-color: var(--site-primary);
  --bs-btn-hover-bg: var(--site-primary-600);
  --bs-btn-hover-border-color: var(--site-primary-600);
  --bs-btn-active-bg: var(--site-primary-600);
  --bs-btn-active-border-color: var(--site-primary-600);
}

.btn-download {
  --bs-btn-bg: #1a7bff;
  --bs-btn-border-color: #1a7bff;
  --bs-btn-hover-bg: #0f6ef5;
  --bs-btn-hover-border-color: #0f6ef5;
  --bs-btn-active-bg: #0f6ef5;
  --bs-btn-active-border-color: #0f6ef5;
}

.quick-order-list {
  max-height: 168px;
  overflow: auto;
  padding-right: 4px;
}

.table {
  --bs-table-bg: transparent;
}

.table thead th {
  color: var(--site-muted);
  font-weight: 600;
}

.table tbody tr:hover > * {
  background: rgba(245, 158, 11, 0.06);
}

html[data-bs-theme="dark"] .table tbody tr:hover > * {
  background: rgba(245, 158, 11, 0.12);
}

.site-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.10);
  color: var(--site-text);
  text-decoration: none;
  font-size: 0.875rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

html[data-bs-theme="light"] .site-chip {
  border-color: rgba(15, 23, 42, 0.16);
}

.site-chip:hover,
.site-chip:focus {
  background: var(--site-hover);
  color: var(--site-text);
}

.site-chip.is-active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.22);
}

html[data-bs-theme="dark"] .site-chip.is-active {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.28);
}

.site-article-cover {
  max-height: 220px;
  object-fit: cover;
}

.site-article-content {
  line-height: 1.75;
}

.site-article-content h1,
.site-article-content h2,
.site-article-content h3,
.site-article-content h4,
.site-article-content h5,
.site-article-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.site-article-content p {
  margin-bottom: 1.2rem;
}

.site-article-detail {
  border-radius: var(--site-radius);
  overflow: hidden;
}

.user-summary {
  min-width: 0;
}

.user-balance-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

/* Accessibility: improve contrast for pagination/footer/CMP actions on dark theme */
html[data-bs-theme="dark"] .pagination .page-link {
  color: #e2e8f0;
  background-color: rgba(15, 23, 42, 0.78);
  border-color: rgba(226, 232, 240, 0.28);
}

html[data-bs-theme="dark"] .pagination .page-link:hover,
html[data-bs-theme="dark"] .pagination .page-link:focus {
  color: #f8fafc;
  background-color: rgba(30, 41, 59, 0.9);
  border-color: rgba(226, 232, 240, 0.36);
}

html[data-bs-theme="dark"] .pagination .page-item.active .page-link {
  color: #0b1220;
  background-color: #f8fafc;
  border-color: #f8fafc;
}

html[data-bs-theme="dark"] footer .link-secondary,
html[data-bs-theme="dark"] footer .btn.link-secondary {
  color: #d1d9e6 !important;
}

html[data-bs-theme="dark"] footer .link-secondary:hover,
html[data-bs-theme="dark"] footer .link-secondary:focus,
html[data-bs-theme="dark"] footer .btn.link-secondary:hover,
html[data-bs-theme="dark"] footer .btn.link-secondary:focus {
  color: #f8fafc !important;
}

html[data-bs-theme="dark"] #siteCmpBanner .small.text-muted,
html[data-bs-theme="dark"] #siteCmpPreferences .small.text-muted {
  color: #c7d2e0 !important;
}

html[data-bs-theme="dark"] #siteCmpBanner [data-cmp-accept-all],
html[data-bs-theme="dark"] #siteCmpPreferences [data-cmp-save-preferences] {
  color: #111827;
}

html[data-bs-theme="dark"] #siteCmpBanner [data-cmp-reject],
html[data-bs-theme="dark"] #siteCmpPreferences [data-cmp-reject] {
  --bs-btn-color: #d1d9e6;
  --bs-btn-border-color: rgba(226, 232, 240, 0.42);
  --bs-btn-hover-color: #f8fafc;
  --bs-btn-hover-bg: rgba(30, 41, 59, 0.88);
  --bs-btn-hover-border-color: rgba(226, 232, 240, 0.52);
}
