@font-face {
  font-family: "BingX Sans";
  src: url("assets/fonts/BingXSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BingX Sans";
  src: url("assets/fonts/BingXSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BingX Sans";
  src: url("assets/fonts/BingXSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SFPRODISPLAYREGULAR.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SFPRODISPLAYMEDIUM.OTF") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SF-Pro-Display-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SFPRODISPLAYBOLD.OTF") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SF-Pro-Display-Heavy.otf") format("opentype");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Text";
  src: url("assets/fonts/SFProText-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Text";
  src: url("assets/fonts/SFProText-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Text";
  src: url("assets/fonts/SFProText-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yantramanav";
  src: url("assets/fonts/Yantramanav-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yantramanav";
  src: url("assets/fonts/Yantramanav-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yantramanav";
  src: url("assets/fonts/Yantramanav-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yantramanav";
  src: url("assets/fonts/Yantramanav-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yantramanav";
  src: url("assets/fonts/Yantramanav-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yantramanav";
  src: url("assets/fonts/Yantramanav-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-Heavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-ThinItalic.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-RegularItalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Teodor";
  src: url("assets/fonts/Teodor-HeavyItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/Roboto-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "GFS Didot";
  src: url("assets/fonts/GFSDidot-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN 2014";
  src: url("assets/fonts/dinnextw1g.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN 2014";
  src: url("assets/fonts/dinnextw1g_medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN 2014";
  src: url("assets/fonts/dinnextw1g_bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN 2014";
  src: url("assets/fonts/dinnextw1g_heavy.otf") format("opentype");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pulse";
  src: url("assets/fonts/Pulse-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pulse";
  src: url("assets/fonts/Pulse-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pulse";
  src: url("assets/fonts/Pulse-SemiBold.ttf") format("truetype");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OKX Sans TAB";
  src: url("assets/fonts/OKXSansTAB-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OKX Sans TAB";
  src: url("assets/fonts/OKXSansTAB-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OKX Sans TAB";
  src: url("assets/fonts/OKXSansTAB-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --hot: #ff2e4b;
  --hot-soft: #ff6a80;
  --dark: #0f0e0e;
  --dark-2: #161316;
  --graphite: #4b4a4b;
  --white: #ffffff;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --card: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.105);
  --glass-line: rgba(255, 255, 255, 0.22);
  --font-display: "Franklin Gothic Heavy", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-nav: "Segoe UI Variable", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Trebuchet MS", "Segoe UI", Helvetica, Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --hot: #ff2e4b;
  --hot-soft: #e2324b;
  --dark: #f7eef0;
  --dark-2: #fff7f8;
  --graphite: #7e6f74;
  --white: #161316;
  --text: #161316;
  --muted: rgba(22, 19, 22, 0.68);
  --card: rgba(255, 255, 255, 0.58);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-line: rgba(255, 46, 75, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at var(--cursor-x, 34%) var(--cursor-y, 56%), rgba(255, 46, 75, 0.42), transparent 19rem),
    radial-gradient(circle at 18% 74%, rgba(255, 46, 75, 0.92), transparent 22rem),
    radial-gradient(circle at 72% 20%, rgba(119, 35, 47, 0.6), transparent 27rem),
    linear-gradient(135deg, #2a0f16 0%, #571521 35%, #1b1013 66%, #0f0e0e 100%);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) rgba(255, 255, 255, 0.045);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.2)) border-box;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 91, 115, 0.9), rgba(255, 255, 255, 0.28)) border-box;
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.custom-select-menu,
.custom-datetime-menu,
.canvas-panel,
.admin-panel,
.dashboard-history,
.dashboard-messages {
  scrollbar-gutter: stable;
}

.custom-select-menu::-webkit-scrollbar,
.custom-datetime-menu::-webkit-scrollbar,
.canvas-panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.page-inner {
  background:
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 36%), rgba(255, 46, 75, 0.2), transparent 17rem),
    radial-gradient(circle at 12% 18%, rgba(255, 46, 75, 0.26), transparent 21rem),
    linear-gradient(135deg, #171114 0%, #1e1117 42%, #0f0e0e 100%);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at var(--cursor-x, 34%) var(--cursor-y, 56%), rgba(255, 46, 75, 0.24), transparent 18rem),
    radial-gradient(circle at 16% 70%, rgba(255, 46, 75, 0.42), transparent 22rem),
    linear-gradient(135deg, #fff7f8 0%, #ffd8df 44%, #f7eef0 100%);
}

:root[data-theme="light"] body.page-inner {
  background:
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 36%), rgba(255, 46, 75, 0.14), transparent 16rem),
    linear-gradient(135deg, #fff8f9 0%, #f3e5e8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(290deg, rgba(255, 46, 75, 0.16), transparent 44%);
  mix-blend-mode: screen;
}

.page-home {
  background:
    radial-gradient(ellipse at 17% 2%, rgba(255, 115, 132, 0.42), transparent 24rem),
    radial-gradient(ellipse at 88% 26%, rgba(255, 46, 75, 0.34), transparent 19rem),
    radial-gradient(ellipse at 95% 82%, rgba(255, 46, 75, 0.42), transparent 26rem),
    radial-gradient(circle at var(--cursor-x, 34%) var(--cursor-y, 56%), rgba(255, 46, 75, 0.34), transparent 19rem),
    linear-gradient(135deg, #250d13 0%, #47131e 36%, #1b1013 66%, #0f0e0e 100%);
}

.home-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint style;
}

.home-scene::before,
.home-scene::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-scene::before {
  left: -13vw;
  top: -22vh;
  width: 36vw;
  height: 62vh;
  border-radius: 0 0 999px 999px;
  background:
    radial-gradient(ellipse at 48% 82%, rgba(255, 46, 75, 0.86), rgba(255, 46, 75, 0.2) 38%, transparent 67%);
  filter: blur(18px);
  opacity: 0.78;
  transform: rotate(-24deg);
}

.home-scene::after {
  right: -13vw;
  bottom: -26vh;
  width: 42vw;
  height: 58vh;
  border-radius: 999px 0 0 0;
  background:
    radial-gradient(ellipse at 24% 24%, rgba(255, 46, 75, 0.9), rgba(255, 46, 75, 0.22) 42%, transparent 70%);
  filter: blur(20px);
  opacity: 0.72;
}

.home-network {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  mask-image: radial-gradient(ellipse at 58% 48%, black 0 58%, transparent 86%);
}

.home-network-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.home-network-map path {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.4;
  stroke-dasharray: 9 16;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
  animation: constellationFlow 34s linear infinite;
}

.home-network-map circle {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.home-symbols {
  position: absolute;
  inset: 0;
  mask-image: radial-gradient(ellipse at 56% 48%, black 0 62%, transparent 86%);
}

.bg-scale-icon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(54px, 6vw, 96px);
  height: clamp(54px, 6vw, 96px);
  fill: none;
  stroke: rgba(255, 255, 255, 0.19);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.62;
  transform: rotate(var(--r));
}

.home-ui-layer {
  position: absolute;
  right: 7vw;
  top: 31vh;
  width: min(42vw, 560px);
  aspect-ratio: 1.42;
  contain: layout paint style;
}

.home-market-ghost {
  position: absolute;
  inset: 0;
  opacity: 0.52;
  transform: rotate(3deg) perspective(900px) rotateY(-11deg);
}

.market-orbit {
  position: absolute;
  inset: -18%;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.market-orbit::before,
.market-orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 22px rgba(255, 46, 75, 0.28);
}

.market-orbit::before {
  left: 18%;
  top: 22%;
}

.market-orbit::after {
  right: 22%;
  bottom: 16%;
}

.market-glass-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.035)),
    rgba(30, 20, 24, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 58px rgba(15, 14, 14, 0.24);
  backdrop-filter: blur(8px) saturate(120%);
  overflow: hidden;
  contain: paint;
}

.market-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(255, 46, 75, 0.18), transparent 36%);
  pointer-events: none;
}

.card-main {
  left: 4%;
  top: 2%;
  width: 76%;
  height: 70%;
}

.market-chip {
  position: absolute;
  left: 7%;
  top: 10%;
  width: 26%;
  height: 11%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 50%, rgba(86, 190, 114, 0.8) 0 4px, transparent 5px),
    rgba(255, 255, 255, 0.12);
}

.market-line {
  position: absolute;
  left: 7%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.market-line.long {
  top: 27%;
  width: 48%;
}

.market-line.short {
  top: 36%;
  width: 32%;
}

.market-chart {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 42%;
  display: flex;
  align-items: end;
  gap: 6%;
  padding: 0 4%;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    rgba(15, 14, 14, 0.18);
  background-size: 100% 33%, 18% 100%, auto;
}

.market-chart i {
  display: block;
  width: 8%;
  height: var(--h);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(86, 190, 114, 0.78), rgba(255, 46, 75, 0.58));
  animation: marketBarFloat 5.8s ease-in-out infinite;
  animation-delay: var(--d);
}

.card-stat-a {
  right: 0;
  top: 15%;
  width: 30%;
  height: 26%;
}

.card-stat-b {
  right: 8%;
  bottom: 2%;
  width: 34%;
  height: 28%;
}

.card-radar {
  left: 14%;
  bottom: 0;
  width: 28%;
  height: 28%;
  border-radius: 50%;
}

.card-radar span {
  position: absolute;
  inset: 22%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.card-radar span::before,
.card-radar span::after {
  content: "";
  position: absolute;
  inset: -42%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
}

.card-radar span::after {
  inset: 40%;
  background: rgba(255, 46, 75, 0.28);
  box-shadow: 0 0 24px rgba(255, 46, 75, 0.2);
}

.card-stat-a span,
.card-stat-b span {
  position: absolute;
  left: 14%;
  top: 18%;
  width: 52%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.card-stat-a strong,
.card-stat-b strong {
  position: absolute;
  left: 14%;
  bottom: 22%;
  width: 68%;
  height: 22%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

@keyframes constellationFlow {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes marketBarFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-7px);
    opacity: 0.95;
  }
}

a,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

.cursor-light {
  position: fixed;
  left: var(--cursor-x, 50%);
  top: var(--cursor-y, 50%);
  z-index: 0;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 46, 75, 0.16) 34%, transparent 70%);
  filter: blur(26px);
  transform: translate(-50%, -50%);
  transition:
    left 160ms ease,
    top 160ms ease;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 54%, black, transparent 76%);
}

.glass-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1220px, calc(100% - 32px));
  min-height: 74px;
  padding: 10px 12px 10px 22px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(22, 19, 22, 0.54);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.26),
    inset 0 -18px 36px rgba(255, 255, 255, 0.035),
    0 24px 80px rgba(15, 14, 14, 0.42);
  backdrop-filter: blur(28px) saturate(150%);
  transform: translateX(-50%);
}

:root[data-theme="light"] .glass-nav {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.3)),
    rgba(255, 248, 249, 0.6);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    0 22px 70px rgba(132, 33, 50, 0.16);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--text);
  font-family: var(--font-nav);
  font-size: 17px;
  font-weight: 750;
}

.logo-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, #ffffff, rgba(255, 255, 255, 0.2) 24%, transparent 25%),
    linear-gradient(135deg, var(--hot), #8f182b);
  box-shadow:
    0 0 24px rgba(255, 46, 75, 0.68),
    inset 0 1px 8px rgba(255, 255, 255, 0.4);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 14, 14, 0.26);
  font-family: var(--font-nav);
}

:root[data-theme="light"] .nav-links {
  background: rgba(255, 255, 255, 0.38);
}

.nav-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-toggle {
  display: none;
}

.nav-link,
.primary-action,
.secondary-action,
.profile-button,
.theme-toggle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.nav-link {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.nav-link::before,
.primary-action::before,
.secondary-action::before,
.profile-button::before,
.theme-toggle::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 46, 75, 0.58), rgba(255, 255, 255, 0.08));
  opacity: 0;
  transition: opacity 220ms ease;
}

.nav-link::after,
.primary-action::after,
.secondary-action::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(15, 14, 14, 0.46);
}

:root[data-theme="light"] .nav-link::after,
:root[data-theme="light"] .secondary-action::after {
  background: rgba(255, 255, 255, 0.52);
}

.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.nav-link:hover,
.primary-action:hover,
.secondary-action:hover,
.profile-button:hover,
.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 0 28px rgba(255, 46, 75, 0.42),
    0 0 3px rgba(255, 255, 255, 0.65) inset;
  transform: translateY(-2px);
}

.nav-link:hover::before,
.primary-action:hover::before,
.secondary-action:hover::before,
.profile-button:hover::before,
.theme-toggle:hover::before {
  opacity: 1;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 76px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 74% 50%, rgba(255, 255, 255, 0.46) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(255, 46, 75, 0.72), rgba(15, 14, 14, 0.7));
  box-shadow: inset 0 1px 8px rgba(15, 14, 14, 0.34);
}

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.44),
    0 4px 14px rgba(15, 14, 14, 0.3);
  transition:
    left 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

:root[data-theme="light"] .theme-toggle-track {
  background:
    radial-gradient(circle at 24% 48%, rgba(255, 46, 75, 0.72) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 214, 221, 0.72));
}

:root[data-theme="light"] .theme-toggle-thumb {
  left: 28px;
  background: var(--hot);
  box-shadow: 0 0 18px rgba(255, 46, 75, 0.4);
}

.profile-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  cursor: pointer;
}

.profile-glow {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 46, 75, 0.84), rgba(255, 255, 255, 0.12));
  filter: blur(5px);
}

.profile-initial {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 14, 14, 0.62);
  color: #fff;
  font-family: var(--font-nav);
  font-weight: 800;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 100vh;
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 142px 0 90px;
}

.hero-content {
  min-width: 0;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(78px, 13vw, 186px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow:
    0 8px 34px rgba(15, 14, 14, 0.36),
    0 0 54px rgba(255, 46, 75, 0.22);
  will-change: transform;
}

.soft-word {
  color: rgba(255, 255, 255, 0.62);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  text-shadow:
    0 0 36px rgba(255, 46, 75, 0.38),
    0 18px 80px rgba(255, 46, 75, 0.32);
}

:root[data-theme="light"] .soft-word {
  color: rgba(255, 46, 75, 0.68);
  -webkit-text-stroke: 1px rgba(22, 19, 22, 0.12);
}

.hero-copy {
  width: min(650px, 100%);
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.42;
  will-change: transform;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
  will-change: transform;
}

.primary-action,
.secondary-action {
  display: inline-grid;
  place-items: center;
  min-height: 56px;
  border-radius: 999px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 780;
}

.primary-action {
  color: #fff;
  background: rgba(255, 46, 75, 0.88);
  box-shadow:
    0 18px 50px rgba(255, 46, 75, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.primary-action::after {
  background: linear-gradient(135deg, rgba(255, 46, 75, 0.94), rgba(119, 20, 36, 0.78));
}

.primary-action.is-auth-locked {
  opacity: 0.78;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 34px rgba(15, 14, 14, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.primary-action.is-auth-locked::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(119, 20, 36, 0.58));
}

.secondary-action {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  backdrop-filter: blur(22px);
}

.preview-card,
.feature-card,
.price-card,
.palette-card,
.contact-form,
.auth-card,
.user-panel,
.auth-side,
.dashboard-hero,
.metric-card,
.dashboard-details {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045)),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 32px 90px rgba(15, 14, 14, 0.28);
  backdrop-filter: blur(26px) saturate(145%);
}

.preview-card {
  align-self: center;
  min-height: 520px;
  padding: 26px;
  border-radius: 32px;
  will-change: transform;
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.preview-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: 62px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 46, 75, 0.38);
  filter: blur(44px);
  pointer-events: none;
}

.card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.card-pill,
.card-tag {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  width: fit-content;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 720;
}

.card-dots {
  display: inline-flex;
  gap: 7px;
}

.card-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.balance-line {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 54px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
}

.balance-line.main {
  background: linear-gradient(135deg, rgba(255, 46, 75, 0.34), rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 54px rgba(255, 46, 75, 0.18);
}

.balance-line span {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 650;
}

.balance-line strong {
  font-family: "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 650;
  letter-spacing: 0;
}

.mini-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 44px;
}

.mini-grid span {
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent),
    rgba(15, 14, 14, 0.22);
}

.content-page {
  position: relative;
  z-index: 2;
  width: min(1720px, calc(100% - 144px));
  margin: 0 auto;
  padding: 154px 0 80px;
}

.page-heading {
  width: min(1160px, 100%);
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--hot-soft);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-heading h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.page-heading p,
.feature-card p,
.price-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.page-heading p {
  max-width: 780px;
  margin: 22px 0 0;
}

.template-grid,
.price-grid,
.about-layout,
.contact-panel {
  display: grid;
  gap: 18px;
}

.template-grid,
.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-layout,
.contact-panel {
  grid-template-columns: 1.05fr 0.95fr;
}

.feature-card,
.price-card,
.palette-card,
.contact-form,
.auth-card,
.user-panel,
.auth-side,
.dashboard-hero,
.metric-card,
.dashboard-details {
  min-height: 260px;
  border-radius: 28px;
  padding: 24px;
}

.feature-card h2,
.price-card h2 {
  margin: 42px 0 12px;
  font-family: var(--font-nav);
  font-size: 30px;
  line-height: 1.05;
}

.feature-card.is-ready,
.price-card.featured {
  background:
    linear-gradient(135deg, rgba(255, 46, 75, 0.34), rgba(255, 255, 255, 0.07)),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 60px rgba(255, 46, 75, 0.16);
}

.price-card strong {
  display: block;
  margin-top: 36px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.9;
}

.price-grid {
  align-items: stretch;
}

.tariff-section {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.tariff-section + .tariff-section {
  margin-top: 52px;
}

.tariff-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.tariff-section-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  line-height: 0.94;
}

.tariff-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 18px;
  min-height: 520px;
  overflow: hidden;
}

.tariff-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 46, 75, 0.2), transparent 34%),
    radial-gradient(circle at 100% 80%, rgba(255, 255, 255, 0.1), transparent 32%);
  opacity: 0.9;
}

.tariff-card.unlimited-card::before {
  background:
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.18), transparent 36%),
    radial-gradient(circle at 88% 78%, rgba(255, 46, 75, 0.28), transparent 34%);
}

.tariff-card.compact {
  min-height: 440px;
}

.tariff-card.compact::before {
  opacity: 0.55;
}

.tariff-card h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 900;
  line-height: 0.92;
}

.tariff-card p {
  margin: 0;
  min-height: 84px;
}

.tariff-card.compact p {
  min-height: 70px;
}

.tariff-value {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(15, 14, 14, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.tariff-card.featured .tariff-value {
  border-color: rgba(255, 125, 144, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 46, 75, 0.2), rgba(255, 255, 255, 0.07)),
    rgba(15, 14, 14, 0.28);
}

.tariff-value strong {
  margin: 0;
  font-size: clamp(58px, 6vw, 82px);
}

.tariff-value span {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 820;
}

.tariff-list {
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.tariff-list li {
  position: relative;
  padding-left: 24px;
}

.tariff-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2e4b;
  box-shadow: 0 0 18px rgba(255, 46, 75, 0.62);
}

.tariff-card .primary-action,
.tariff-card .secondary-action {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.palette-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.palette-list span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 20px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 720;
}

.palette-list span::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: var(--swatch);
}

.about-content {
  display: grid;
  gap: 22px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
  gap: 28px;
  align-items: center;
}

.about-hero-copy h1 {
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(50px, 7vw, 98px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.about-hero-copy p:not(.section-kicker) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.56;
}

.about-showcase,
.about-card,
.about-flow,
.about-style-panel,
.about-security-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04)),
    rgba(42, 31, 36, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 30px 90px rgba(15, 14, 14, 0.24);
  backdrop-filter: blur(26px) saturate(145%);
}

.about-showcase {
  min-height: 440px;
  border-radius: 34px;
  padding: 24px;
  transform-style: preserve-3d;
}

.about-showcase::before,
.about-card::before,
.about-flow::before,
.about-style-panel::before,
.about-security-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 86% 82%, rgba(255, 46, 75, 0.2), transparent 34%);
  opacity: 0.72;
  pointer-events: none;
}

.about-showcase-grid {
  position: absolute;
  inset: 22px;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 0.64fr 1fr;
  gap: 12px;
  opacity: 0.72;
}

.about-showcase-grid span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.about-showcase-panel {
  position: absolute;
  left: 44px;
  right: 36px;
  bottom: 88px;
  z-index: 1;
  display: grid;
  gap: 16px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 46, 75, 0.2), rgba(255, 255, 255, 0.07)),
    rgba(20, 16, 19, 0.55);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  animation: aboutFloat 7s ease-in-out infinite;
}

.about-panel-chip {
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 30px;
}

.about-showcase-panel strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(42px, 4vw, 68px);
  line-height: 0.9;
}

.about-panel-line {
  width: 62%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.about-panel-line.wide {
  width: 86%;
}

.about-showcase-strip {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.about-showcase-strip span,
.about-security-list span {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 820;
  line-height: 42px;
  text-align: center;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-card,
.about-style-panel,
.about-security-panel {
  border-radius: 28px;
  padding: 24px;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  animation: aboutReveal 520ms ease both;
}

.about-card {
  min-height: 290px;
}

.about-card:nth-child(2) {
  animation-delay: 70ms;
}

.about-card:nth-child(3) {
  animation-delay: 140ms;
}

.about-card:hover,
.about-style-panel:hover,
.about-security-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 34px 96px rgba(15, 14, 14, 0.3),
    0 0 54px rgba(255, 46, 75, 0.12);
}

.about-card-featured {
  background:
    linear-gradient(135deg, rgba(255, 46, 75, 0.28), rgba(255, 255, 255, 0.055)),
    rgba(42, 31, 36, 0.45);
}

.about-card h2,
.about-flow h2,
.about-style-panel h2,
.about-security-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 900;
  line-height: 0.95;
}

.about-card p,
.about-style-panel p,
.about-security-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.about-flow {
  display: grid;
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 1fr);
  gap: 24px;
  border-radius: 32px;
  padding: 28px;
}

.about-flow h2 {
  margin-top: 0;
}

.about-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-steps li {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.about-steps span {
  color: var(--hot-soft);
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 900;
}

.about-steps strong {
  color: var(--text);
  font-family: var(--font-nav);
  font-size: 20px;
  line-height: 1.08;
}

.about-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.about-system {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.about-style-panel,
.about-security-panel {
  min-height: 430px;
}

.about-palette {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.about-palette span {
  justify-content: center;
  min-height: 92px;
  padding: 12px;
  border-radius: 22px;
  flex-direction: column;
  font-size: 13px;
}

.about-security-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

@keyframes aboutFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes aboutReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .about-hero,
  .about-flow,
  .about-system {
    grid-template-columns: 1fr;
  }

  .about-cards,
  .about-steps {
    grid-template-columns: 1fr;
  }

  .about-showcase {
    min-height: 360px;
  }

  .about-style-panel,
  .about-security-panel {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .about-content {
    gap: 16px;
  }

  .about-hero {
    gap: 18px;
  }

  .about-hero-copy h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .about-hero-copy p:not(.section-kicker) {
    font-size: 16px;
  }

  .about-showcase,
  .about-card,
  .about-flow,
  .about-style-panel,
  .about-security-panel {
    border-radius: 22px;
    padding: 18px;
  }

  .about-showcase {
    min-height: 300px;
  }

  .about-showcase-panel {
    left: 18px;
    right: 18px;
    bottom: 76px;
    min-height: 150px;
    padding: 18px;
    border-radius: 22px;
  }

  .about-showcase-strip {
    left: 18px;
    right: 18px;
    bottom: 18px;
    grid-template-columns: 1fr;
  }

  .about-showcase-strip span {
    min-height: 34px;
    line-height: 34px;
  }

  .about-card {
    min-height: 220px;
  }

  .about-card h2,
  .about-flow h2,
  .about-style-panel h2,
  .about-security-panel h2 {
    margin-top: 0;
    font-size: clamp(28px, 9vw, 38px);
  }

  .about-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-palette span {
    min-height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-showcase,
  .about-card,
  .about-showcase-panel,
  .about-style-panel,
  .about-security-panel {
    animation: none;
    transition: none;
  }
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-page {
  width: min(1360px, calc(100% - 144px));
}

.contact-heading {
  width: min(940px, 100%);
}

.contact-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.contact-intro-card,
.contact-topic,
.contact-method-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 28px 72px rgba(15, 14, 14, 0.22);
  backdrop-filter: blur(24px) saturate(145%);
}

.contact-intro-card {
  min-height: 276px;
  border-radius: 30px;
  padding: 28px;
}

.contact-intro-card h2,
.contact-form-head h2 {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.contact-intro-card p:not(.section-kicker),
.contact-form-head p:not(.section-kicker) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.contact-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-topic {
  display: grid;
  gap: 7px;
  min-height: 142px;
  border-radius: 24px;
  padding: 18px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.contact-topic:hover,
.contact-topic.active {
  border-color: rgba(255, 92, 112, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 46, 75, 0.24), rgba(255, 255, 255, 0.06)),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 42px rgba(255, 46, 75, 0.14);
  transform: translateY(-2px);
}

.contact-topic span {
  width: max-content;
  min-width: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--hot-soft);
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 900;
}

.contact-topic strong,
.contact-method-card strong {
  color: var(--text);
  font-family: var(--font-nav);
  font-size: 20px;
  font-weight: 900;
}

.contact-topic small,
.contact-method-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.contact-methods {
  display: grid;
  gap: 12px;
}

.contact-method-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  border-radius: 24px;
  padding: 16px;
}

.contact-method-card > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 30px rgba(255, 46, 75, 0.16);
}

.contact-method-card img {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.contact-method-card p {
  margin: 5px 0 0;
}

.contact-method-card button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.contact-method-card button:hover {
  border-color: rgba(255, 92, 112, 0.54);
  background: rgba(255, 46, 75, 0.16);
  transform: translateY(-1px);
}

.contact-request-form {
  align-content: start;
  gap: 18px;
  min-height: 0;
}

.contact-form-head {
  display: grid;
  gap: 12px;
}

.contact-form-row {
  display: grid;
  gap: 12px;
}

.contact-form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 680;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(15, 14, 14, 0.26);
  color: var(--text);
  outline: none;
}

:root[data-theme="light"] .contact-form input,
:root[data-theme="light"] .contact-form select,
:root[data-theme="light"] .contact-form textarea {
  background: rgba(255, 255, 255, 0.54);
}

.contact-form input,
.contact-form select {
  min-height: 54px;
  padding: 0 18px;
}

.contact-form select {
  appearance: none;
  cursor: pointer;
}

.contact-form textarea {
  min-height: 166px;
  resize: vertical;
  padding: 16px 18px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 46, 75, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 46, 75, 0.14);
}

.contact-submit-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.contact-submit-row .primary-action {
  width: 100%;
}

.contact-submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.contact-submit-row p[data-type="success"] {
  color: #56be72;
}

.contact-submit-row p[data-type="error"] {
  color: #ff7a8d;
}

.contact-submit-row p[data-type="loading"] {
  color: var(--hot-soft);
}

.auth-page {
  width: min(1040px, calc(100% - 36px));
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.auth-card {
  display: grid;
  align-content: start;
  gap: 20px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 14, 14, 0.24);
}

.social-auth {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: var(--font-nav);
  font-weight: 760;
  cursor: pointer;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.social-button span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.social-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.social-button:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 28px rgba(255, 46, 75, 0.22);
  transform: translateY(-2px);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

:root[data-theme="light"] .auth-tabs {
  background: rgba(255, 255, 255, 0.38);
}

.auth-tab {
  min-height: 44px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-nav);
  font-weight: 780;
  cursor: pointer;
  transition:
    color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.auth-tab.active,
.auth-tab:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 46, 75, 0.9), rgba(119, 20, 36, 0.72));
  box-shadow: 0 0 28px rgba(255, 46, 75, 0.24);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(15, 14, 14, 0.26);
  color: var(--text);
  outline: none;
}

:root[data-theme="light"] .auth-form input {
  background: rgba(255, 255, 255, 0.54);
}

.auth-form input:focus {
  border-color: rgba(255, 46, 75, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 46, 75, 0.14);
}

.auth-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 14px;
  line-height: 1.45;
}

.auth-status[data-type="success"] {
  color: #7dffb2;
}

.auth-status[data-type="error"] {
  color: #ff9cab;
}

:root[data-theme="light"] .auth-status[data-type="success"] {
  color: #167a43;
}

:root[data-theme="light"] .auth-status[data-type="error"] {
  color: #b31d35;
}

.user-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.auth-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.user-panel h2,
.auth-side h2 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.96;
}

.auth-side p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.auth-side-preview {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 46, 75, 0.3), rgba(255, 255, 255, 0.07));
}

.auth-side-preview span,
.auth-side-preview small {
  color: var(--muted);
  font-family: var(--font-nav);
  font-weight: 700;
}

.auth-side-preview strong {
  font-family: var(--font-display);
  font-size: 76px;
  line-height: 0.88;
}

.user-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.user-panel li {
  position: relative;
  padding-left: 24px;
}

.user-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 18px rgba(255, 46, 75, 0.48);
}

.hidden {
  display: none !important;
}

.dashboard-page {
  width: min(1120px, calc(100% - 36px));
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.72fr));
  gap: 18px;
}

.dashboard-hero {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 260px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.78), transparent 18%),
    linear-gradient(135deg, var(--hot), #7b1426);
  color: #fff;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  box-shadow:
    0 0 46px rgba(255, 46, 75, 0.34),
    inset 0 1px 12px rgba(255, 255, 255, 0.36);
}

.dashboard-hero h2 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.9;
}

.dashboard-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.metric-card {
  display: grid;
  align-content: space-between;
  min-height: 260px;
}

.metric-card.featured {
  background:
    linear-gradient(135deg, rgba(255, 46, 75, 0.36), rgba(255, 255, 255, 0.07)),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 64px rgba(255, 46, 75, 0.16);
}

.metric-card span {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 780;
}

.metric-card strong {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.86;
}

.metric-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.dashboard-details {
  grid-column: span 2;
  display: grid;
  gap: 20px;
}

.dashboard-details dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.dashboard-details div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 46px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-details dt {
  color: var(--muted);
  font-family: var(--font-nav);
  font-weight: 720;
}

.dashboard-details dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-nav);
  font-weight: 800;
  text-align: right;
}

@media (max-width: 1060px) {
  .content-page {
    width: min(100% - 36px, 1180px);
  }

  .page-heading {
    width: min(760px, 100%);
  }

  .glass-nav {
    grid-template-columns: auto 1fr auto;
    min-height: 68px;
    padding-left: 14px;
  }

  .logo span:last-child {
    display: none;
  }

  .nav-links {
    justify-self: center;
  }

  .nav-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 130px;
  }

  .preview-card {
    min-height: 410px;
  }

  .template-grid,
  .price-grid,
  .about-layout,
  .contact-panel,
  .auth-shell,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .dashboard-details {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .glass-nav {
    position: absolute;
    top: 12px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr auto;
    gap: 10px;
    border-radius: 28px;
    padding: 10px;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-actions {
    gap: 7px;
  }

  .theme-toggle {
    width: 62px;
    height: 44px;
  }

  .theme-toggle-track {
    width: 42px;
    height: 24px;
  }

  .theme-toggle-thumb {
    width: 16px;
    height: 16px;
  }

  :root[data-theme="light"] .theme-toggle-thumb {
    left: 22px;
  }

  .profile-button {
    width: 44px;
    height: 44px;
  }

  .profile-initial {
    width: 29px;
    height: 29px;
    font-size: 13px;
  }

  .hero,
  .content-page {
    width: min(100% - 24px, 1180px);
    padding-top: 160px;
  }

  .hero-title {
    font-size: clamp(58px, 21vw, 96px);
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .preview-card {
    min-height: 360px;
    padding: 18px;
    border-radius: 24px;
  }

  .balance-line {
    margin-top: 28px;
  }

  .mini-grid {
    margin-top: 24px;
  }

  .feature-card,
  .price-card,
  .palette-card,
  .contact-form,
  .auth-card,
  .user-panel,
  .auth-side,
  .dashboard-hero,
  .metric-card,
  .dashboard-details {
    border-radius: 22px;
    padding: 18px;
  }

  .social-auth {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .account-avatar {
    width: 84px;
    height: 84px;
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.toast-layer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 36px));
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(15, 14, 14, 0.72);
  color: #fff;
  box-shadow: 0 20px 55px rgba(15, 14, 14, 0.34);
  backdrop-filter: blur(20px) saturate(150%);
  animation: toast-in 240ms ease both;
}

.toast.success {
  border-color: rgba(125, 255, 178, 0.36);
}

.toast.error {
  border-color: rgba(255, 46, 75, 0.42);
}

.toast.leaving {
  animation: toast-out 240ms ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.template-filter {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 auto 24px;
  width: min(760px, 100%);
  max-width: 100%;
}

.template-filter-toggle {
  min-height: 54px;
  min-width: min(100%, 280px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 22px 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(15, 14, 14, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 24px 70px rgba(15, 14, 14, 0.24);
  backdrop-filter: blur(24px) saturate(145%);
  color: var(--text);
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 840;
  cursor: pointer;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.template-filter-toggle:hover {
  border-color: rgba(255, 125, 144, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 42px rgba(255, 46, 75, 0.2),
    0 24px 70px rgba(15, 14, 14, 0.24);
  transform: translateY(-1px);
}

.template-filter-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.78;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 260ms ease;
}

.template-filter.is-open .template-filter-arrow {
  transform: translateY(2px) rotate(225deg);
}

.template-filter-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  max-height: 0;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(15, 14, 14, 0.24);
  box-shadow: 0 18px 58px rgba(15, 14, 14, 0);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition:
    max-height 320ms ease,
    padding 320ms ease,
    opacity 240ms ease,
    transform 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease;
  backdrop-filter: blur(24px) saturate(145%);
}

.template-filter.is-open .template-filter-panel {
  max-height: 140px;
  padding: 10px;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 58px rgba(15, 14, 14, 0.22);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.template-filter-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(15, 14, 14, 0.38);
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 820;
  cursor: pointer;
  transition:
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.template-filter-button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 28px rgba(255, 46, 75, 0.16);
  transform: translateY(-1px);
}

.template-filter-button.active {
  color: #fff;
  border-color: rgba(255, 125, 144, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 46, 75, 0.86), rgba(161, 20, 39, 0.66)),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 32px rgba(255, 46, 75, 0.28);
}

.template-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.template-card,
.generator-form,
.canvas-panel,
.topup-card,
.history-card,
.admin-table {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045)),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 32px 90px rgba(15, 14, 14, 0.28);
  backdrop-filter: blur(26px) saturate(145%);
}

.template-card {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  min-height: 310px;
  overflow: hidden;
}

.template-card.is-filtered-out {
  display: none;
}

.template-preview {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 310px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.82), rgba(255, 255, 255, 0.05)),
    #111;
  overflow: hidden;
}

.template-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.22;
  pointer-events: none;
}

.preview-shot {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 184px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  padding: 18px;
  overflow: hidden;
  filter: grayscale(1) saturate(0.2) contrast(1.02);
  transform: translateZ(0) scale(0.985);
  transition:
    filter 360ms ease,
    transform 360ms ease,
    box-shadow 360ms ease,
    border-color 360ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 44px rgba(0, 0, 0, 0.28);
}

.preview-image-shot {
  display: grid;
  place-items: center;
  padding: 0;
  background: #111;
}

.preview-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 184px;
  object-fit: cover;
}

.period-pnl-preview .preview-image {
  object-fit: contain;
  background: #000;
}

.okxy-pnl-preview .preview-image {
  object-fit: contain;
  background: #000;
}

.template-card:hover .preview-shot {
  filter: grayscale(0) saturate(1.14) contrast(1.04);
  transform: translateZ(0) scale(1);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 62px rgba(0, 0, 0, 0.34);
}

.preview-chip {
  position: relative;
  z-index: 2;
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-nav);
  font-weight: 800;
}

.preview-portfolio {
  display: grid;
  align-content: start;
  gap: 9px;
  background:
    radial-gradient(circle at 12% 95%, rgba(255, 46, 75, 0.44), transparent 40%),
    linear-gradient(135deg, #101010, #34141b 58%, #171315);
}

.preview-shot strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.92;
  color: #fff;
}

.shot-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 850;
}

.shot-title,
.shot-meta,
.preview-pnl p,
.preview-pnl small {
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-nav);
  font-weight: 700;
}

.shot-title {
  color: #fff;
  font-size: 24px;
  font-weight: 850;
}

.shot-meta {
  font-size: 13px;
}

.shot-chart {
  width: min(82%, 260px);
  height: 42px;
  margin-top: 6px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, transparent 12%, #ff2e4b 13% 19%, transparent 20% 31%, #ff7d90 32% 38%, transparent 39% 49%, #ff2e4b 50% 57%, transparent 58%),
    rgba(255, 255, 255, 0.07);
}

.preview-pnl {
  display: grid;
  align-content: start;
  gap: 10px;
  background: #000;
}

.shot-tabs {
  display: flex;
  gap: 18px;
  align-items: center;
  color: #6b6e73;
  font-family: "SF Pro Display", var(--font-nav);
  font-size: 22px;
  font-weight: 650;
}

.shot-tabs b {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 40px;
  border-radius: 999px;
  background: #1e1f24;
  color: #fff;
}

.preview-pnl p {
  margin: 2px 0 4px;
  color: #4c4c4c;
  font-size: 13px;
}

.preview-pnl strong {
  width: fit-content;
  padding-bottom: 6px;
  border-bottom: 1px dashed #2c2d31;
  color: #fff;
  font-family: "SF Pro Display", var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.preview-pnl small {
  color: #777982;
  font-size: 16px;
}

.preview-pnl em {
  color: #56be72;
  font-family: "SF Pro Display", var(--font-display);
  font-size: 34px;
  font-style: normal;
  font-weight: 750;
}

.preview-wallet {
  min-height: 184px;
  background:
    linear-gradient(rgba(17, 17, 17, 0.04), rgba(17, 17, 17, 0.04)),
    url("assets/Wallet-1-icon.png") center / cover;
  font-family: "SF Pro Text", var(--font-nav);
}

.wallet-avatar,
.wallet-name,
.wallet-profit,
.wallet-percent {
  position: absolute;
}

.wallet-avatar {
  left: 18px;
  top: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2a2a2a;
  color: #f5f5f5;
  font-size: 19px;
  font-weight: 500;
}

.wallet-name {
  left: 80px;
  top: 22px;
  color: #f5f5f5;
  font-size: 26px;
  font-weight: 500;
}

.preview-wallet strong {
  position: absolute;
  left: 18px;
  top: 78px;
  font-family: "SF Pro Text", var(--font-nav);
  font-size: 43px;
  font-weight: 700;
}

.wallet-profit {
  left: 18px;
  top: 134px;
  color: #f5f5f5;
  font-size: 19px;
  font-weight: 500;
}

.wallet-percent {
  left: 116px;
  top: 126px;
  padding: 5px 11px 7px;
  border: 1px solid #00b979;
  border-radius: 16px;
  background: #00b979;
  color: #07110d;
  font-size: 18px;
  font-weight: 500;
}

.preview-market,
.preview-statement,
.preview-rank {
  display: grid;
  align-content: start;
  gap: 14px;
  background:
    radial-gradient(circle at 85% 10%, rgba(142, 113, 255, 0.28), transparent 36%),
    linear-gradient(135deg, #111, #242026);
}

.preview-market strong {
  color: #56be72;
}

.preview-statement strong,
.preview-rank strong {
  color: #fff;
}

.shot-row {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.shot-row.short {
  width: 62%;
}

.bank-preview {
  background:
    radial-gradient(circle at 24% 78%, rgba(42, 171, 238, 0.38), transparent 42%),
    linear-gradient(135deg, rgba(15, 14, 14, 0.72), rgba(255, 255, 255, 0.06));
}

.trading-preview {
  background:
    radial-gradient(circle at 24% 78%, rgba(43, 232, 138, 0.34), transparent 42%),
    linear-gradient(135deg, rgba(15, 14, 14, 0.72), rgba(255, 255, 255, 0.06));
}

.futures-preview {
  background:
    radial-gradient(circle at 24% 78%, rgba(255, 46, 75, 0.36), transparent 42%),
    linear-gradient(135deg, rgba(15, 14, 14, 0.72), rgba(255, 255, 255, 0.06));
}

.statement-preview {
  background:
    radial-gradient(circle at 24% 78%, rgba(142, 113, 255, 0.34), transparent 42%),
    linear-gradient(135deg, rgba(15, 14, 14, 0.72), rgba(255, 255, 255, 0.06));
}

.leaderboard-preview {
  background:
    radial-gradient(circle at 24% 78%, rgba(255, 213, 102, 0.34), transparent 42%),
    linear-gradient(135deg, rgba(15, 14, 14, 0.72), rgba(255, 255, 255, 0.06));
}

.property-preview {
  background:
    radial-gradient(circle at 24% 78%, rgba(255, 173, 86, 0.34), transparent 42%),
    linear-gradient(135deg, rgba(15, 14, 14, 0.72), rgba(255, 255, 255, 0.06));
}

.inventory-preview {
  background:
    radial-gradient(circle at 24% 78%, rgba(125, 255, 178, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(15, 14, 14, 0.72), rgba(255, 255, 255, 0.06));
}

.template-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
  gap: 14px;
  padding: 26px;
}

.template-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.94;
}

.template-body p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.template-body .primary-action,
.template-body .secondary-action {
  align-self: end;
}

.template-card.locked {
  opacity: 0.78;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.generator-page {
  width: min(1260px, calc(100% - 36px));
}

.generator-shell {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.generator-form,
.canvas-panel {
  padding: 22px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 720;
}

.form-grid input,
.form-grid select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 0 16px;
  background: rgba(15, 14, 14, 0.28);
  color: var(--text);
  outline: none;
}

.form-grid select {
  appearance: none;
  cursor: pointer;
}

.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.native-datetime-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
  font-family: var(--font-nav);
}

.custom-datetime {
  position: relative;
  width: 100%;
  min-width: 0;
  font-family: var(--font-nav);
}

.custom-select-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 0 14px 0 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(15, 14, 14, 0.3);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 820;
  text-align: left;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.custom-select-button:hover,
.custom-select.is-open .custom-select-button {
  border-color: rgba(255, 46, 75, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 46, 75, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(15, 14, 14, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 26px rgba(255, 46, 75, 0.14);
}

.custom-select-button:focus-visible {
  border-color: rgba(255, 46, 75, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 4px rgba(255, 46, 75, 0.14);
}

.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-arrow {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.78;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.custom-select.is-open .custom-select-arrow {
  transform: translateY(2px) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 140;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 5px;
  max-height: 244px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(92, 74, 82, 0.92), rgba(31, 18, 23, 0.92)),
    rgba(15, 14, 14, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 0 34px rgba(255, 46, 75, 0.12);
  backdrop-filter: blur(22px) saturate(150%);
  animation: pickerReveal 160ms ease both;
}

.custom-select-menu[hidden],
.custom-datetime-menu[hidden] {
  display: none;
}

.custom-datetime-menu {
  position: absolute;
  z-index: 140;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(92, 74, 82, 0.92), rgba(31, 18, 23, 0.92)),
    rgba(15, 14, 14, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 0 34px rgba(255, 46, 75, 0.12);
  backdrop-filter: blur(22px) saturate(150%);
  animation: pickerReveal 160ms ease both;
}

.custom-datetime-menu label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 780;
}

.custom-datetime-menu input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0 10px;
  background: rgba(15, 14, 14, 0.34);
  color: var(--text);
  color-scheme: dark;
  outline: none;
}

.custom-datetime-menu input:focus {
  border-color: rgba(255, 46, 75, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 46, 75, 0.12);
}

.custom-datetime-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.custom-datetime-actions button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.custom-datetime-actions button:hover {
  color: #ffffff;
  border-color: rgba(255, 120, 136, 0.42);
  background: rgba(255, 46, 75, 0.2);
}

.custom-datetime-actions button:last-child {
  color: #ffffff;
  border-color: rgba(255, 120, 136, 0.42);
  background: linear-gradient(135deg, rgba(255, 46, 75, 0.82), rgba(190, 21, 48, 0.72));
}

.custom-select-option {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.custom-select-option:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.095);
  transform: translateX(2px);
}

.custom-select-option[aria-selected="true"] {
  color: #ffffff;
  border-color: rgba(255, 120, 136, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 46, 75, 0.82), rgba(190, 21, 48, 0.72)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(255, 46, 75, 0.22);
}

.form-grid input[type="datetime-local"] {
  color-scheme: dark;
}

.form-grid input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 0.82;
  filter: invert(1);
  cursor: pointer;
}

@keyframes pickerReveal {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.form-grid input[type="color"] {
  padding: 5px;
}

.form-grid input:focus,
.form-grid select:focus {
  border-color: rgba(255, 46, 75, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 46, 75, 0.14);
}

.time-helper,
.profit-helper {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 4px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 46, 75, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(15, 14, 14, 0.22);
}

.time-helper:has(.custom-select.is-open),
.time-helper:has(.custom-datetime.is-open),
.profit-helper:has(.custom-select.is-open),
.profit-helper:has(.custom-datetime.is-open) {
  z-index: 25;
}

.time-helper {
  background:
    linear-gradient(135deg, rgba(86, 190, 114, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(15, 14, 14, 0.2);
}

.time-helper legend,
.profit-helper legend {
  grid-column: 1 / -1;
  padding: 0 8px;
  color: var(--text);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 850;
}

.time-helper label,
.profit-helper label {
  min-width: 0;
}

.profit-mode-field {
  grid-column: 1 / -1;
}

.collapsible-fields {
  display: grid;
  gap: 12px;
  animation: formReveal 180ms ease both;
}

.collapsible-fields[hidden] {
  display: none;
}

.profit-fit-fields {
  grid-column: 1 / -1;
}

@keyframes formReveal {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profit-helper p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.profit-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profit-summary span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(15, 14, 14, 0.18);
}

.profit-summary small {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 760;
}

.profit-summary strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.market-price-note {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(15, 14, 14, 0.18);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.market-price-note.is-live {
  color: rgba(255, 255, 255, 0.78);
}

.generator-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.wide-action {
  width: 100%;
  margin-top: 10px;
}

.generator-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.canvas-panel {
  overflow: auto;
}

.canvas-panel canvas {
  display: block;
  width: 100%;
  min-width: 640px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 26px 80px rgba(15, 14, 14, 0.34);
}

.period-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 14, 14, 0.24);
}

.pnl-canvas-panel canvas {
  aspect-ratio: 1320 / 532;
  min-width: 760px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.08);
  background: #000;
}

.pnl-page .canvas-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(15, 14, 14, 0.36);
}

.wallet-canvas-panel canvas {
  aspect-ratio: 1170 / 802;
  min-width: 760px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.08);
  background: #111;
}

.wallet2-canvas-panel canvas {
  aspect-ratio: 1320 / 852;
  min-width: 760px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.08);
  background: #000;
}

.position-pnl-canvas-panel canvas {
  aspect-ratio: 1280 / 1026;
  min-width: 760px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.08);
  background: #030413;
}

.topup-card,
.history-card {
  padding: 24px;
}

.topup-card {
  display: grid;
  gap: 16px;
}

.topup-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.94;
}

.topup-card p,
.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.topup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.topup-grid button {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 24px;
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.topup-grid button:hover {
  background: rgba(255, 46, 75, 0.24);
  box-shadow: 0 0 28px rgba(255, 46, 75, 0.22);
  transform: translateY(-2px);
}

.history-card {
  grid-column: span 2;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.history-head a {
  color: var(--muted);
  font-family: var(--font-nav);
  font-weight: 760;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item,
.admin-row {
  display: grid;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.history-item {
  grid-template-columns: 1fr auto;
  padding: 16px;
}

.history-item strong,
.admin-row strong {
  display: block;
  color: var(--text);
  font-family: var(--font-nav);
  font-weight: 850;
}

.history-item span,
.history-item small,
.admin-user-main span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 14px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-page {
  width: min(1480px, calc(100% - 56px));
}

.admin-heading {
  width: min(980px, 100%);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat-card,
.admin-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 26px 76px rgba(15, 14, 14, 0.24);
  backdrop-filter: blur(24px) saturate(145%);
}

.admin-stat-card {
  display: grid;
  align-content: space-between;
  min-height: 148px;
  padding: 20px;
}

.admin-stat-card span {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 780;
}

.admin-stat-card strong {
  margin-top: 24px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.9;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.admin-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  min-width: 0;
}

.admin-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  align-items: end;
  gap: 14px;
}

.admin-requests-panel .admin-panel-head {
  grid-template-columns: 1fr;
}

.admin-panel-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 48px);
  line-height: 0.95;
}

.admin-panel-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.admin-search input,
.admin-credit-action input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(15, 14, 14, 0.26);
  color: var(--text);
  outline: none;
}

.admin-search input:focus,
.admin-credit-action input:focus {
  border-color: rgba(255, 46, 75, 0.68);
  box-shadow: 0 0 0 4px rgba(255, 46, 75, 0.13);
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-table {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.admin-row {
  grid-template-columns: 1fr;
  padding: 14px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
}

.admin-user-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.admin-user-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.76), transparent 18%),
    linear-gradient(135deg, rgba(255, 46, 75, 0.78), rgba(119, 20, 36, 0.62));
  color: #fff;
  font-family: var(--font-nav);
  font-weight: 900;
  box-shadow: 0 0 26px rgba(255, 46, 75, 0.2);
}

.admin-user-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-user-badges span {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 850;
}

.admin-user-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-meta span {
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-user-meta small {
  display: block;
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 760;
}

.admin-user-meta strong {
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.admin-user-actions {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr) minmax(180px, 0.8fr);
  gap: 10px;
  min-width: 0;
}

.admin-control-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 12px;
  background: rgba(15, 14, 14, 0.16);
}

.admin-control-card-wide {
  grid-column: 1 / -1;
}

.admin-control-card > span {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 850;
}

.admin-action-group,
.admin-credit-action {
  display: grid;
  grid-template-columns: minmax(72px, 0.55fr) minmax(92px, 0.7fr);
  gap: 8px;
}

.admin-action-group {
  grid-template-columns: 1fr;
}

.admin-plan-group {
  grid-template-columns: minmax(0, 1fr) 76px;
}

.admin-plan-group .secondary-action {
  grid-column: 1 / -1;
}

.admin-message-group {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(110px, 0.44fr);
}

.admin-user-actions input,
.admin-user-actions select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  padding: 0 12px;
  background: rgba(15, 14, 14, 0.26);
  color: var(--text);
  outline: none;
}

.admin-user-actions input:focus,
.admin-user-actions select:focus {
  border-color: rgba(255, 46, 75, 0.68);
  box-shadow: 0 0 0 4px rgba(255, 46, 75, 0.13);
}

.admin-user-actions .secondary-action,
.admin-credit-action .secondary-action {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}

.secondary-action.danger {
  border-color: rgba(246, 6, 107, 0.38);
  color: #fff;
}

.secondary-action.danger::after {
  background: linear-gradient(135deg, rgba(246, 6, 107, 0.3), rgba(119, 20, 36, 0.35));
}

.admin-block-button {
  width: 100%;
}

.admin-account-actions {
  display: grid;
  gap: 8px;
}

.admin-requests-panel .admin-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-request-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-request-card[data-request-status="new"] {
  border-color: rgba(255, 92, 112, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 46, 75, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
}

.admin-request-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.admin-request-head strong {
  display: block;
  color: var(--text);
  font-family: var(--font-nav);
  font-size: 17px;
  font-weight: 900;
}

.admin-request-head span,
.admin-request-footer span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 13px;
}

.admin-request-head small {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.admin-request-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.admin-request-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-request-footer div {
  display: inline-flex;
  gap: 8px;
}

.admin-request-footer button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.admin-request-footer button:hover {
  border-color: rgba(255, 92, 112, 0.5);
  background: rgba(255, 46, 75, 0.16);
  transform: translateY(-1px);
}

@media (max-width: 1060px) {
  .template-gallery,
  .generator-shell {
    grid-template-columns: 1fr;
  }

  .history-card {
    grid-column: auto;
  }

  .admin-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-user-row,
  .admin-user-actions,
  .admin-action-group,
  .admin-plan-group,
  .admin-message-group {
    grid-template-columns: 1fr;
  }

  .admin-user-meta,
  .admin-requests-panel .admin-list {
    grid-template-columns: 1fr;
  }

  .admin-user-top {
    grid-template-columns: 1fr;
  }

  .admin-user-badges {
    justify-content: flex-start;
  }

  .admin-control-card-wide {
    grid-column: auto;
  }

  .admin-block-button {
    justify-self: stretch;
    width: 100%;
  }

  .admin-stats,
  .admin-layout,
  .admin-panel-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .template-card {
    grid-template-columns: 1fr;
  }

  .generator-actions,
  .topup-grid,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .canvas-panel canvas {
    min-width: 520px;
  }

  .pnl-canvas-panel canvas {
    min-width: 620px;
  }
}

/* Layout hardening: keep dense dashboard/template content inside glass panels. */
.content-page,
.dashboard-shell,
.template-gallery,
.generator-shell,
.dashboard-hero,
.metric-card,
.dashboard-details,
.topup-card,
.history-card,
.template-card,
.template-body,
.template-preview {
  min-width: 0;
}

.dashboard-shell {
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.62fr) minmax(180px, 0.62fr);
}

.dashboard-hero {
  grid-column: span 2;
}

.dashboard-details {
  grid-column: span 2;
}

.history-card {
  grid-column: span 3;
}

.dashboard-hero h2,
.template-body h2,
.page-heading h1,
.metric-card strong,
.topup-card h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.dashboard-hero h2 {
  font-size: clamp(34px, 4.4vw, 58px);
}

.metric-card strong {
  font-size: clamp(40px, 4.4vw, 64px);
}

.dashboard-details div {
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
}

.dashboard-details dt,
.dashboard-details dd,
.history-item strong,
.history-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-actions .primary-action,
.dashboard-actions .secondary-action {
  min-width: 0;
  padding-inline: 14px;
  text-align: center;
  white-space: normal;
}

.topup-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topup-grid button {
  min-width: 0;
}

.template-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-card {
  grid-template-columns: 1fr;
}

.template-preview {
  min-height: 210px;
}

.template-body {
  align-content: stretch;
}

.template-body h2 {
  font-size: clamp(30px, 3vw, 42px);
}

@media (min-width: 1061px) {
  .page-heading h1 {
    white-space: nowrap;
    font-size: clamp(54px, 4.4vw, 84px);
  }
}

.template-body .primary-action,
.template-body .secondary-action {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.canvas-panel {
  min-width: 0;
}

.generator-form {
  min-width: 0;
  max-height: none;
}

.form-grid input {
  min-width: 0;
}

@media (max-width: 1180px) {
  .template-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero,
  .dashboard-details,
  .history-card {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .template-gallery,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .dashboard-details,
  .history-card {
    grid-column: auto;
  }

  .dashboard-actions {
    grid-template-columns: 1fr;
  }
}

/* Dashboard balance: keep Top up readable and make Details less dominant. */
@media (min-width: 1181px) {
  .dashboard-shell {
    grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.46fr) minmax(250px, 0.68fr);
  }

  .dashboard-hero {
    grid-column: span 2;
  }

  .dashboard-details {
    grid-column: span 2;
  }

  .topup-card {
    grid-column: span 1;
    min-width: 250px;
  }

  .history-card {
    grid-column: span 3;
  }
}

.topup-card h2 {
  font-size: clamp(28px, 2.35vw, 42px);
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.topup-grid {
  grid-template-columns: repeat(3, minmax(58px, 1fr));
}

.topup-grid button {
  min-height: 52px;
  font-size: clamp(18px, 1.45vw, 24px);
}

.dashboard-details {
  min-height: 0;
}

.dashboard-details dl {
  gap: 8px;
}

.dashboard-details div {
  min-height: 40px;
  padding-bottom: 8px;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .dashboard-shell {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.72fr);
  }

  .dashboard-hero,
  .dashboard-details,
  .history-card {
    grid-column: span 2;
  }

  .topup-card {
    grid-column: span 1;
  }
}

/* Phone ergonomics: compact navigation, readable panels, no accidental horizontal canvas overflow. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  body::before {
    opacity: 0.62;
  }

  .home-scene::before {
    left: -28vw;
    top: -16vh;
    width: 70vw;
    height: 42vh;
    opacity: 0.58;
  }

  .home-scene::after {
    right: -34vw;
    bottom: -18vh;
    width: 78vw;
    height: 42vh;
    opacity: 0.5;
  }

  .home-network {
    opacity: 0.32;
    background-size: 120% 120%;
  }

  .home-symbols {
    opacity: 0.68;
  }

  .bg-scale-icon {
    width: 48px;
    height: 48px;
    stroke-width: 1.15;
    opacity: 0.34;
  }

  .home-ui-layer {
    right: -18vw;
    top: 47vh;
    width: 82vw;
  }

  .home-market-ghost {
    opacity: 0.22;
  }

  .home-network-map path {
    animation: none;
  }

  .market-glass-card {
    backdrop-filter: none;
  }

  .market-chart i {
    animation: none;
  }

  .cursor-light {
    display: none;
  }

  .glass-nav {
    position: fixed;
    top: 10px;
    left: 10px;
    right: auto;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
    padding: 9px;
    border-radius: 24px;
    transform: none;
  }

  .logo {
    gap: 9px;
    min-width: 0;
  }

  .logo span:last-child {
    display: inline;
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }

  .logo-orb {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
  }

  .mobile-nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(15, 14, 14, 0.28);
    color: var(--text);
    cursor: pointer;
    transition:
      border-color 220ms ease,
      background 220ms ease,
      box-shadow 220ms ease,
      transform 220ms ease;
  }

  .mobile-nav-toggle:hover {
    border-color: rgba(255, 125, 144, 0.52);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 24px rgba(255, 46, 75, 0.18);
  }

  .mobile-nav-toggle span {
    grid-area: 1 / 1;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
      transform 220ms ease,
      opacity 180ms ease;
  }

  .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(-6px);
  }

  .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(6px);
  }

  .glass-nav.is-menu-open .mobile-nav-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .glass-nav.is-menu-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .glass-nav.is-menu-open .mobile-nav-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .nav-actions {
    justify-self: end;
    gap: 7px;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 4;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 0;
    gap: 5px;
    padding: 0;
    border-color: rgba(255, 255, 255, 0);
    background: rgba(15, 14, 14, 0);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      max-height 260ms ease,
      padding 260ms ease,
      opacity 220ms ease,
      transform 260ms ease,
      border-color 260ms ease,
      background 260ms ease;
  }

  .glass-nav.is-menu-open .nav-links {
    max-height: 286px;
    padding: 7px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 14, 14, 0.24);
    border-radius: 18px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    justify-content: start;
    text-align: left;
    border-radius: 14px;
  }

  :root[data-theme="light"] .glass-nav.is-menu-open .nav-links {
    border-color: rgba(255, 46, 75, 0.12);
    background: rgba(255, 255, 255, 0.44);
  }

  .theme-toggle {
    width: 56px;
    height: 40px;
  }

  .profile-button {
    width: 40px;
    height: 40px;
  }

  .hero,
  .content-page,
  .generator-page,
  .admin-page {
    width: min(100% - 20px, 1180px);
    padding-top: 146px;
    padding-bottom: 46px;
  }

  .hero {
    gap: 22px;
  }

  .hero-title {
    font-size: clamp(48px, 17vw, 74px);
    line-height: 0.9;
  }
  .hero-copy,
  .page-heading p,
  .feature-card p,
  .price-card p,
  .template-body p,
  .generator-note {
    font-size: 15px;
    line-height: 1.48;
  }

  .page-heading {
    margin-bottom: 22px;
  }

  .tariff-section {
    margin-top: 24px;
  }

  .tariff-section + .tariff-section {
    margin-top: 36px;
  }

  .tariff-section-head {
    display: grid;
    align-items: start;
    gap: 8px;
  }

  .tariff-card,
  .tariff-card.compact {
    min-height: 0;
    gap: 14px;
  }

  .tariff-card p,
  .tariff-card.compact p {
    min-height: 0;
  }

  .tariff-value {
    padding: 18px;
    border-radius: 20px;
  }

  .page-heading h1 {
    white-space: normal;
    font-size: clamp(36px, 12vw, 56px);
    line-height: 0.98;
    overflow-wrap: normal;
  }

  .section-kicker {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .hero-actions,
  .generator-actions,
  .dashboard-actions,
  .topup-grid,
  .admin-row,
  .history-item {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    min-height: 52px;
    width: 100%;
    padding-inline: 18px;
  }

  .preview-card,
  .feature-card,
  .price-card,
  .palette-card,
  .contact-form,
  .auth-card,
  .user-panel,
  .auth-side,
  .dashboard-hero,
  .metric-card,
  .dashboard-details,
  .topup-card,
  .history-card,
  .template-card,
  .generator-form,
  .canvas-panel,
  .admin-table {
    border-radius: 20px;
    padding: 16px;
  }

  .template-filter {
    width: 100%;
    margin-bottom: 18px;
  }

  .template-filter-toggle {
    width: min(100%, 320px);
    min-height: 50px;
  }

  .template-filter-panel {
    width: 100%;
    border-radius: 24px;
  }

  .template-filter.is-open .template-filter-panel {
    max-height: 230px;
  }

  .template-filter-button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .template-gallery,
  .price-grid,
  .about-layout,
  .contact-panel,
  .auth-shell,
  .dashboard-shell,
  .generator-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .template-preview {
    min-height: 176px;
    padding: 14px;
  }

  .contact-page {
    width: min(100% - 24px, 1180px);
  }

  .contact-intro-card {
    min-height: 0;
    padding: 22px;
  }

  .contact-topic-grid {
    grid-template-columns: 1fr;
  }

  .contact-topic {
    min-height: 118px;
  }

  .contact-method-card,
  .contact-submit-row,
  .contact-form-row.two {
    grid-template-columns: 1fr;
  }

  .contact-method-card {
    align-items: start;
  }

  .contact-method-card button {
    width: 100%;
  }

  .preview-shot,
  .preview-image {
    min-height: 138px;
  }

  .template-body {
    padding: 18px;
    gap: 12px;
  }

  .template-body h2 {
    font-size: clamp(28px, 10vw, 38px);
  }

  .generator-form {
    order: 1;
  }

  .canvas-panel {
    order: 2;
    overflow: hidden;
  }

  .form-grid {
    gap: 12px;
  }

  .form-row.two,
  .fit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-row label:first-child,
  .price-row label:last-child {
    grid-column: 1 / -1;
  }

  .form-grid label {
    gap: 6px;
    font-size: 12px;
  }

  .form-grid input,
  .form-grid select,
  .custom-select-button {
    min-height: 44px;
    border-radius: 13px;
    padding-inline: 12px;
    font-size: 15px;
  }

  .custom-select-menu {
    max-height: 220px;
    border-radius: 15px;
    padding: 6px;
  }

  .custom-datetime-menu {
    grid-template-columns: 1fr;
    border-radius: 15px;
    padding: 8px;
  }

  .custom-select-option {
    min-height: 36px;
    border-radius: 10px;
    font-size: 13px;
  }

  .time-helper,
  .profit-helper {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 11px;
  }

  .profit-summary {
    grid-template-columns: 1fr;
  }

  .canvas-panel canvas,
  .pnl-canvas-panel canvas,
  .wallet-canvas-panel canvas,
  .wallet2-canvas-panel canvas,
  .position-pnl-canvas-panel canvas {
    width: 100%;
    min-width: 0;
    height: auto;
    border-radius: 12px;
  }

  .dashboard-hero,
  .dashboard-details,
  .history-card,
  .topup-card {
    grid-column: auto;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dashboard-hero h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .account-avatar {
    width: 76px;
    height: 76px;
    font-size: 34px;
  }

  .metric-card strong {
    font-size: clamp(38px, 14vw, 56px);
  }

  .dashboard-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dashboard-details dd {
    text-align: left;
  }

  .history-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-item {
    gap: 8px;
  }

  .history-item > span,
  .history-item small {
    text-align: left;
  }

  .admin-table {
    padding: 12px;
  }

  .admin-row {
    gap: 10px;
  }

  .admin-user-row,
  .admin-user-actions,
  .admin-action-group,
  .admin-plan-group,
  .admin-message-group,
  .admin-user-meta {
    grid-template-columns: 1fr;
  }

  .admin-block-button {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .hero,
  .content-page,
  .generator-page,
  .admin-page {
    width: min(100% - 14px, 1180px);
  }

  .glass-nav {
    left: 7px;
    right: auto;
    width: calc(100vw - 14px);
    max-width: calc(100vw - 14px);
    border-radius: 20px;
  }

  .logo span:last-child {
    max-width: 92px;
  }

  .nav-link {
    padding-inline: 10px;
  }

  .page-heading h1 {
    font-size: clamp(34px, 13vw, 48px);
  }

  .template-filter-button {
    flex: 1 1 calc(50% - 8px);
  }

  .generator-form,
  .canvas-panel,
  .template-body {
    padding: 14px;
  }
}

@media (max-width: 360px) {

  .form-row.two.mode-row,
  .form-row.two.fit-row {
    grid-template-columns: 1fr;
  }

  .form-grid input,
  .form-grid select {
    font-size: 14px;
  }
}

/* QIRIS web identity: public pages intentionally mirror the desktop control surface. */
html:not([data-webbalance-desktop="true"]) body.qiris-web {
  --qiris-red: #ff315d;
  --qiris-ink: #050607;
  --qiris-panel: #0b0d0f;
  --qiris-line: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
  color: #f7f7f2;
  background:
    linear-gradient(rgba(255, 49, 93, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 49, 93, 0.027) 1px, transparent 1px),
    #070809;
  background-size: 42px 42px;
  font-family: Inter, "Segoe UI", sans-serif;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web::before {
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.012) 4px);
  mix-blend-mode: screen;
  opacity: 0.52;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .cursor-light {
  width: 21rem;
  height: 21rem;
  opacity: 0.14;
  background: radial-gradient(circle, rgba(255, 49, 93, 0.24), transparent 68%);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .page-noise {
  opacity: 0.34;
  background-size: 42px 42px;
  mask-image: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .glass-nav {
  top: 14px;
  width: min(1560px, calc(100% - 28px));
  min-height: 64px;
  padding: 8px 12px 8px 18px;
  border-color: var(--qiris-line);
  border-radius: 7px;
  background: rgba(7, 8, 10, 0.9);
  box-shadow: inset 3px 0 0 var(--qiris-red), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px) saturate(120%);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .glass-nav::after {
  content: "QIRIS // PUBLIC NODE";
  justify-self: end;
  color: rgba(255, 255, 255, 0.34);
  font: 600 10px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .logo {
  gap: 11px;
  color: #f7f7f2;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .logo-orb {
  position: relative;
  width: 32px;
  height: 22px;
  border: 1px solid rgba(255, 94, 126, 0.72);
  border-radius: 50% / 62%;
  background: rgba(255, 49, 93, 0.08);
  box-shadow: 0 0 22px rgba(255, 49, 93, 0.22);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .logo-orb::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid #ff7894;
  border-radius: 50%;
  background: #190a0f;
  box-shadow: 0 0 10px var(--qiris-red);
  transform: translate(-50%, -50%);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .logo-orb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .nav-links {
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .nav-link {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 49, 93, 0.32);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 49, 93, 0.045);
  font: 700 11px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .nav-link::before,
html:not([data-webbalance-desktop="true"]) body.qiris-web .nav-link::after { display: none; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .nav-link.active,
html:not([data-webbalance-desktop="true"]) body.qiris-web .nav-link:hover {
  border-color: rgba(255, 49, 93, 0.8);
  color: #fff;
  background: rgba(255, 49, 93, 0.16);
  box-shadow: inset 2px 0 var(--qiris-red), 0 0 18px rgba(255, 49, 93, 0.12);
  transform: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .theme-toggle { display: none; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .profile-button {
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .profile-button::before,
html:not([data-webbalance-desktop="true"]) body.qiris-web .profile-glow { display: none; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .profile-initial {
  width: auto;
  height: auto;
  background: transparent;
  font: 700 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .profile-button:hover {
  border-color: rgba(255, 49, 93, 0.7);
  background: rgba(255, 49, 93, 0.12);
  box-shadow: inset 2px 0 var(--qiris-red);
  transform: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .content-page {
  width: min(1560px, calc(100% - 56px));
  padding: 126px 0 72px;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .section-kicker,
html:not([data-webbalance-desktop="true"]) body.qiris-web .hero-kicker {
  margin: 0 0 16px;
  color: var(--qiris-red);
  font: 800 10px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.05em;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .page-heading h1 {
  color: #f7f7f2;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 800;
  line-height: 0.96;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .page-heading p,
html:not([data-webbalance-desktop="true"]) body.qiris-web .feature-card p,
html:not([data-webbalance-desktop="true"]) body.qiris-web .price-card p {
  color: rgba(247, 247, 242, 0.58);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .page-home {
  background: #070809;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .home-scene::before,
html:not([data-webbalance-desktop="true"]) body.qiris-web .home-scene::after,
html:not([data-webbalance-desktop="true"]) body.qiris-web .home-symbols,
html:not([data-webbalance-desktop="true"]) body.qiris-web .home-ui-layer { display: none; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .home-network {
  opacity: 0.18;
  mask-image: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .home-network-map path {
  stroke: rgba(255, 49, 93, 0.34);
  stroke-width: 1;
  stroke-dasharray: 2 12;
  animation-duration: 28s;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .home-network-map circle {
  fill: rgba(255, 49, 93, 0.1);
  stroke: rgba(255, 49, 93, 0.32);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .hero {
  width: min(1560px, calc(100% - 56px));
  min-height: 100vh;
  padding: 126px 0 72px;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .hero-content {
  max-width: 980px;
  padding: clamp(28px, 6vw, 82px) 0;
  border-left: 3px solid var(--qiris-red);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .hero-title {
  display: grid;
  gap: 8px;
  color: #f7f7f2;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(58px, 10vw, 150px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .soft-word {
  color: rgba(247, 247, 242, 0.34);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .hero-copy {
  max-width: 530px;
  margin: 26px 0 0;
  color: rgba(247, 247, 242, 0.58);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .hero-actions { margin-top: 30px; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .primary-action,
html:not([data-webbalance-desktop="true"]) body.qiris-web .secondary-action {
  min-height: 46px;
  border-radius: 4px;
  padding: 0 18px;
  font: 700 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .primary-action {
  border-color: rgba(255, 49, 93, 0.94);
  background: rgba(255, 49, 93, 0.16);
  box-shadow: inset 3px 0 var(--qiris-red), 0 0 24px rgba(255, 49, 93, 0.12);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .primary-action::after,
html:not([data-webbalance-desktop="true"]) body.qiris-web .primary-action::before,
html:not([data-webbalance-desktop="true"]) body.qiris-web .secondary-action::after,
html:not([data-webbalance-desktop="true"]) body.qiris-web .secondary-action::before { display: none; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .secondary-action {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.025);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .primary-action:hover,
html:not([data-webbalance-desktop="true"]) body.qiris-web .secondary-action:hover {
  transform: translateY(-1px);
  border-color: #fff;
  box-shadow: inset 3px 0 var(--qiris-red), 0 0 26px rgba(255, 49, 93, 0.16);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .preview-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .feature-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .price-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .palette-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .contact-form,
html:not([data-webbalance-desktop="true"]) body.qiris-web .auth-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .user-panel,
html:not([data-webbalance-desktop="true"]) body.qiris-web .auth-side,
html:not([data-webbalance-desktop="true"]) body.qiris-web .dashboard-hero,
html:not([data-webbalance-desktop="true"]) body.qiris-web .metric-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .dashboard-details,
html:not([data-webbalance-desktop="true"]) body.qiris-web .template-card {
  border-color: var(--qiris-line);
  border-radius: 5px;
  background: rgba(10, 12, 14, 0.9);
  box-shadow: inset 2px 0 0 rgba(255, 49, 93, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 52px rgba(0, 0, 0, 0.24);
  backdrop-filter: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-card:hover,
html:not([data-webbalance-desktop="true"]) body.qiris-web .feature-card:hover,
html:not([data-webbalance-desktop="true"]) body.qiris-web .price-card:hover {
  border-color: rgba(255, 49, 93, 0.64);
  box-shadow: inset 3px 0 var(--qiris-red), 0 18px 44px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web input,
html:not([data-webbalance-desktop="true"]) body.qiris-web textarea,
html:not([data-webbalance-desktop="true"]) body.qiris-web select {
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.15);
  background: #090b0d;
  color: #f7f7f2;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web input:focus,
html:not([data-webbalance-desktop="true"]) body.qiris-web textarea:focus,
html:not([data-webbalance-desktop="true"]) body.qiris-web select:focus {
  border-color: var(--qiris-red);
  box-shadow: inset 2px 0 var(--qiris-red), 0 0 0 2px rgba(255, 49, 93, 0.1);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web *::-webkit-scrollbar-track { border-radius: 0; background: #090b0d; }
html:not([data-webbalance-desktop="true"]) body.qiris-web *::-webkit-scrollbar-thumb { border-radius: 0; background: rgba(255, 255, 255, 0.32); }
html:not([data-webbalance-desktop="true"]) body.qiris-web *::-webkit-scrollbar-thumb:hover { background: var(--qiris-red); }

@media (max-width: 900px) {
  html:not([data-webbalance-desktop="true"]) body.qiris-web .glass-nav { width: calc(100% - 20px); }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .glass-nav::after { display: none; }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .content-page,
  html:not([data-webbalance-desktop="true"]) body.qiris-web .hero { width: min(100% - 28px, 760px); }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .hero-content { padding-left: 18px; }
}

/* QIRIS module surfaces. Kept scoped to the public website so template exports stay untouched. */
html:not([data-webbalance-desktop="true"]) body.qiris-web .glass-nav {
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .glass-nav::after { display: none; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .hero,
html:not([data-webbalance-desktop="true"]) body.qiris-web .hero-content,
html:not([data-webbalance-desktop="true"]) body.qiris-web .hero-actions {
  justify-items: center;
  text-align: center;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .hero-content {
  display: grid;
  justify-items: center;
  border-left: 0;
  border-top: 3px solid var(--qiris-red);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .hero-title { justify-items: center; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-filter {
  position: relative;
  z-index: 12;
  justify-items: start;
  width: 100%;
  margin: 0 0 18px;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-filter-toggle {
  min-width: 238px;
  min-height: 44px;
  justify-content: space-between;
  border-color: var(--qiris-line);
  border-radius: 4px;
  background: #0a0c0e;
  box-shadow: inset 2px 0 var(--qiris-red);
  backdrop-filter: none;
  font: 700 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-filter-toggle:hover {
  border-color: rgba(255, 49, 93, 0.76);
  box-shadow: inset 3px 0 var(--qiris-red), 0 0 20px rgba(255, 49, 93, 0.12);
  transform: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 6px;
  width: min(360px, 100%);
  max-height: none;
  padding: 10px;
  border-color: transparent;
  border-radius: 4px;
  background: #0a0c0e;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62);
  backdrop-filter: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-filter.is-open .template-filter-panel {
  max-height: 260px;
  padding: 10px;
  border-color: var(--qiris-line);
  box-shadow: inset 2px 0 var(--qiris-red), 0 18px 44px rgba(0, 0, 0, 0.62);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-filter-button {
  min-height: 34px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(247, 247, 242, 0.62);
  font: 700 11px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-filter-button:hover,
html:not([data-webbalance-desktop="true"]) body.qiris-web .template-filter-button.active {
  border-color: rgba(255, 49, 93, 0.68);
  background: rgba(255, 49, 93, 0.14);
  color: #fff;
  box-shadow: inset 2px 0 var(--qiris-red);
  transform: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-card {
  min-height: 270px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(250px, 1fr);
  border-radius: 5px;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-preview {
  min-height: 270px;
  padding: 14px;
  background: #080a0c;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-preview::after { opacity: 0.08; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .preview-shot {
  min-height: 160px;
  border-radius: 3px;
  box-shadow: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .preview-image { min-height: 160px; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .preview-chip,
html:not([data-webbalance-desktop="true"]) body.qiris-web .card-tag {
  min-height: 26px;
  padding: 0 8px;
  border-color: rgba(255, 49, 93, 0.4);
  border-radius: 3px;
  background: rgba(255, 49, 93, 0.08);
  color: rgba(255, 181, 194, 0.92);
  font: 700 9px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.02em;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-body { gap: 10px; padding: 18px; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-body h2 {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(23px, 2.1vw, 34px);
  font-weight: 750;
  line-height: 0.98;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .template-body p {
  color: rgba(247, 247, 242, 0.56);
  font-size: 14px;
  line-height: 1.4;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .price-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-showcase,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-flow,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-style-panel,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-security-panel,
html:not([data-webbalance-desktop="true"]) body.qiris-web .contact-intro-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .contact-topic,
html:not([data-webbalance-desktop="true"]) body.qiris-web .contact-method-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .topup-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .history-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-stat-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-panel,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-control-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-request-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .history-item,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-row,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-user-meta span {
  border-color: var(--qiris-line);
  border-radius: 4px;
  background: #0a0c0e;
  box-shadow: inset 2px 0 rgba(255, 49, 93, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .price-card::before,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-showcase::before,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-card::before,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-flow::before,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-style-panel::before,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-security-panel::before { display: none; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .tariff-card.featured,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-card-featured,
html:not([data-webbalance-desktop="true"]) body.qiris-web .metric-card.featured {
  border-color: rgba(255, 49, 93, 0.68);
  background: linear-gradient(90deg, rgba(255, 49, 93, 0.13), transparent 52%), #0a0c0e;
  box-shadow: inset 3px 0 var(--qiris-red), 0 0 26px rgba(255, 49, 93, 0.08);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .tariff-section-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--qiris-line);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .tariff-section-head h2,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-card h2,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-flow h2,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-style-panel h2,
html:not([data-webbalance-desktop="true"]) body.qiris-web .about-security-panel h2,
html:not([data-webbalance-desktop="true"]) body.qiris-web .contact-intro-card h2,
html:not([data-webbalance-desktop="true"]) body.qiris-web .contact-form-head h2,
html:not([data-webbalance-desktop="true"]) body.qiris-web .price-card h2 {
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 750;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .tariff-value strong,
html:not([data-webbalance-desktop="true"]) body.qiris-web .metric-card strong,
html:not([data-webbalance-desktop="true"]) body.qiris-web .dashboard-hero h2 {
  color: #f7f7f2;
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 800;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .tariff-list li::before { color: var(--qiris-red); }

html:not([data-webbalance-desktop="true"]) body.qiris-web .auth-shell { display: grid; grid-template-columns: minmax(0, 560px); justify-content: center; }

html:not([data-webbalance-desktop="true"]) body.qiris-web .auth-card {
  border-radius: 5px;
  background: #0a0c0e;
  box-shadow: inset 3px 0 var(--qiris-red), 0 24px 60px rgba(0, 0, 0, 0.36);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .auth-tabs {
  padding: 4px;
  border-color: var(--qiris-line);
  border-radius: 4px;
  background: #070809;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .auth-tab,
html:not([data-webbalance-desktop="true"]) body.qiris-web .social-button {
  border-radius: 3px;
  font-family: Inter, "Segoe UI", sans-serif;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .auth-tab.active {
  background: rgba(255, 49, 93, 0.16);
  box-shadow: inset 2px 0 var(--qiris-red);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .social-button {
  border-color: var(--qiris-line);
  background: #0b0d0f;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .auth-divider::before,
html:not([data-webbalance-desktop="true"]) body.qiris-web .auth-divider::after { background: var(--qiris-line); }

html:not([data-webbalance-desktop="true"]) body.qiris-web .dashboard-shell {
  gap: 12px;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .dashboard-hero,
html:not([data-webbalance-desktop="true"]) body.qiris-web .metric-card,
html:not([data-webbalance-desktop="true"]) body.qiris-web .dashboard-details {
  border-color: var(--qiris-line);
  border-radius: 4px;
  background: #0a0c0e;
  box-shadow: inset 2px 0 rgba(255, 49, 93, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .account-avatar,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-avatar {
  border-radius: 4px;
  background: rgba(255, 49, 93, 0.16);
  box-shadow: inset 2px 0 var(--qiris-red);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .dashboard-details div,
html:not([data-webbalance-desktop="true"]) body.qiris-web .topup-grid button {
  border-radius: 3px;
  background: #080a0c;
  border-color: rgba(255, 255, 255, 0.12);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .dashboard-details div { box-shadow: inset 2px 0 rgba(255, 49, 93, 0.22); }

html:not([data-webbalance-desktop="true"]) body.qiris-web .contact-topic.active,
html:not([data-webbalance-desktop="true"]) body.qiris-web .contact-topic:hover,
html:not([data-webbalance-desktop="true"]) body.qiris-web .contact-method-card button:hover,
html:not([data-webbalance-desktop="true"]) body.qiris-web .topup-grid button:hover {
  border-color: rgba(255, 49, 93, 0.7);
  background: rgba(255, 49, 93, 0.12);
  box-shadow: inset 2px 0 var(--qiris-red);
  transform: none;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .contact-method-card > span {
  border-radius: 3px;
  background: #070809;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .contact-method-card button,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-request-footer button {
  border-radius: 3px;
  background: #0a0c0e;
  font-family: Inter, "Segoe UI", sans-serif;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-user-badges span,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-request-head small {
  border-radius: 3px;
  background: rgba(255, 49, 93, 0.08);
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-search input,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-credit-action input,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-user-actions input,
html:not([data-webbalance-desktop="true"]) body.qiris-web .admin-user-actions select {
  border-radius: 3px;
  background: #070809;
}

html:not([data-webbalance-desktop="true"]) body.qiris-web .generator-form,
html:not([data-webbalance-desktop="true"]) body.qiris-web .canvas-panel {
  border-color: var(--qiris-line);
  border-radius: 4px;
  background: #0a0c0e;
  box-shadow: inset 2px 0 rgba(255, 49, 93, 0.32);
  backdrop-filter: none;
}

@media (max-width: 1180px) {
  html:not([data-webbalance-desktop="true"]) body.qiris-web .template-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  html:not([data-webbalance-desktop="true"]) body.qiris-web .glass-nav {
    grid-template-columns: 1fr auto;
    min-height: 58px;
    padding-left: 14px;
  }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .template-card { grid-template-columns: 1fr; }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .template-preview { min-height: 210px; }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .template-filter-panel { grid-template-columns: 1fr 1fr; }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .hero { padding-top: 150px; }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .hero-title { font-size: clamp(52px, 18vw, 88px); }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .mobile-nav-toggle {
    border-radius: 3px;
    border-color: var(--qiris-line);
    background: #0a0c0e;
  }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .glass-nav.is-menu-open .nav-links {
    border-color: var(--qiris-line);
    border-radius: 3px;
    background: #0a0c0e;
    box-shadow: inset 2px 0 var(--qiris-red);
  }
  html:not([data-webbalance-desktop="true"]) body.qiris-web .nav-link { border-radius: 3px; }
}
