:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --panel-2: #141414;
  --text: #f2f2f2;
  --muted: #c4c4c4;
  --dim: #696969;
  --red: #d51209;
  --red-dark: #810700;
  --line: rgba(255, 255, 255, 0.14);
  --font-display: Impact, Haettenschweiler, "Arial Black", sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  content: "";
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  animation: grainShift 1.8s steps(3) infinite;
}

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

button,
input {
  font: inherit;
}

button,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-main {
  min-height: 100svh;
  padding-top: 84px;
  padding-left: 92px;
}

.page-status {
  position: sticky;
  z-index: 12;
  top: 84px;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,5,5,0.86);
  padding: 0 clamp(20px, 5vw, 64px);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
}

.page-status strong,
.page-status em {
  color: var(--red);
  font-style: normal;
}

.page-titlebar {
  grid-column: 1 / -1;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 28px;
}

.page-titlebar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.88;
  text-transform: uppercase;
}

.app-screen-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 14px;
}

.app-screen-head h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.app-page {
  display: none;
}

.app-page:not(.is-active) {
  display: none !important;
}

.app-page.is-active {
  display: grid;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px clamp(24px, 5vw, 64px);
  color: #fff;
  transition: background 180ms ease, border-color 180ms ease;
}

.auth-result {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: #54d17a;
  font-size: 13px;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: fit-content;
  text-transform: uppercase;
}

.brand-main {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 0.84;
}

.brand-sub,
.nav-links a,
.nav-links button,
.header-action,
.kicker {
  font-family: var(--font-mono);
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav-links a,
.nav-links button,
.header-action {
  color: rgba(255,255,255,0.76);
  font-size: 12px;
}

.nav-links button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links button.is-active,
.header-action:hover {
  color: var(--red);
}

.nav-links a,
.nav-links button,
.header-action,
.btn,
.product-row article,
.signal-card,
.order-form button {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.header-action {
  justify-self: end;
  min-width: 126px;
  text-align: right;
  padding-bottom: 5px;
  border: 0;
  border-bottom: 2px solid var(--red);
  background: transparent;
  cursor: pointer;
}

.app-sidebar {
  position: fixed;
  z-index: 18;
  top: 84px;
  bottom: 0;
  left: 0;
  display: grid;
  width: 92px;
  align-content: start;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,5,5,0.88);
  backdrop-filter: blur(18px);
}

.app-sidebar button {
  display: grid;
  gap: 8px;
  min-height: 76px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  padding: 12px 8px;
  color: rgba(255,255,255,0.62);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}

.app-sidebar button span {
  color: var(--red);
}

.app-sidebar button:hover,
.app-sidebar button.is-active {
  color: #fff;
  background: rgba(213,18,9,0.16);
}

.hero {
  position: relative;
  min-height: calc(100svh - 126px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(280px, 1fr) minmax(120px, 190px);
  align-items: start;
  gap: clamp(24px, 4vw, 58px);
  padding: 132px clamp(24px, 5vw, 64px) 64px;
  background:
    radial-gradient(circle at 78% 22%, rgba(213, 18, 9, 0.3), transparent 28%),
    radial-gradient(circle at 58% 82%, rgba(72, 98, 116, 0.22), transparent 30%),
    linear-gradient(90deg, #040404 0%, #070707 38%, #090b0d 100%);
}

.platform-home {
  min-height: calc(100svh - 126px);
  grid-template-columns: minmax(0, 1fr);
  padding: 96px clamp(16px, 3vw, 34px) 34px;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0.22) 72%, rgba(0,0,0,0.78) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.16), rgba(0,0,0,0.72)),
    url("assets/local-hub-tech-bg.png") center / cover no-repeat,
    linear-gradient(135deg, #040404 0%, #0b0d0f 54%, #120201 100%);
  background-size:
    auto,
    auto,
    cover,
    auto;
  filter: contrast(1.1) saturate(0.98) brightness(0.82);
  transform: scale(1.01);
  animation: imageDrift 18s ease-in-out infinite alternate;
}

.hero-image::before,
.hero-image::after {
  position: absolute;
  inset: -12%;
  content: "";
  pointer-events: none;
}

.hero-image::before {
  opacity: 0.48;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(213,18,9,0.22) 18.05%, transparent 18.28% 100%),
    linear-gradient(90deg, transparent 0 43%, rgba(255,255,255,0.09) 43.05%, transparent 43.22% 100%),
    linear-gradient(180deg, transparent 0 27%, rgba(213,18,9,0.18) 27.05%, transparent 27.22% 100%),
    linear-gradient(180deg, transparent 0 68%, rgba(255,255,255,0.08) 68.05%, transparent 68.22% 100%),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(255,255,255,0.055) 119px 120px),
    repeating-linear-gradient(180deg, transparent 0 78px, rgba(213,18,9,0.08) 79px 80px);
  transform: perspective(900px) rotateX(58deg) rotateZ(-8deg) translateY(10%);
  transform-origin: center bottom;
}

.hero-image::after {
  opacity: 0.56;
  background:
    linear-gradient(90deg, transparent 0 62%, rgba(5,5,5,0.64) 62% 100%),
    radial-gradient(circle at 76% 32%, rgba(213,18,9,0.32), transparent 9%),
    radial-gradient(circle at 86% 60%, rgba(255,255,255,0.12), transparent 8%),
    repeating-linear-gradient(120deg, transparent 0 42px, rgba(255,255,255,0.055) 43px 44px);
}

.hero::before,
.hero::after,
.hero-noise,
.hero-grid,
.hero-slash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero::before {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.98) 0%, rgba(5,5,5,0.9) 33%, rgba(5,5,5,0.28) 58%, rgba(5,5,5,0.82) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.18) 0%, rgba(5,5,5,0.36) 70%, #050505 100%);
}

.hero::after {
  z-index: -2;
  background:
    linear-gradient(90deg, transparent 0 50%, rgba(0,0,0,0.24) 50.2%, transparent 50.4% 100%),
    linear-gradient(160deg, transparent 0 72%, rgba(213,18,9,0.34) 72.2%, transparent 73% 100%);
}

.hero-noise {
  z-index: -1;
  opacity: 0.22;
  background:
    repeating-radial-gradient(circle at 24% 40%, rgba(255,255,255,0.16) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
  animation: noisePulse 2.4s steps(2) infinite;
}

.hero-grid {
  z-index: -1;
  background:
    linear-gradient(90deg, transparent calc(100% - 128px), rgba(213,18,9,0.3) calc(100% - 127px), transparent calc(100% - 126px)),
    linear-gradient(180deg, transparent 79%, rgba(213,18,9,0.62) 79.1%, transparent 79.3%),
    linear-gradient(180deg, transparent calc(100% - 34px), rgba(213,18,9,0.72) calc(100% - 33px), transparent calc(100% - 32px));
  animation: linePulse 3.2s ease-in-out infinite;
}

.hero-slash {
  z-index: -1;
  opacity: 0.78;
  background:
    linear-gradient(104deg, transparent 0 42%, rgba(213,18,9,0.76) 42.15%, transparent 42.7% 100%),
    linear-gradient(104deg, transparent 0 65%, rgba(255,255,255,0.16) 65.05%, transparent 65.35% 100%);
  transform: translateX(-14%);
  animation: slashSweep 4.8s cubic-bezier(.65, 0, .35, 1) infinite;
}

.hero-copy {
  position: relative;
  z-index: 3;
  grid-column: 1;
  max-width: 420px;
  padding-top: 0;
}

.kicker {
  position: relative;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.kicker::after {
  display: inline-block;
  width: 38px;
  height: 2px;
  margin-left: 11px;
  vertical-align: middle;
  content: "";
  background: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  position: relative;
  margin-bottom: 52px;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.8vw, 84px);
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 3px 0 0 rgba(213,18,9,0.28), -2px 0 0 rgba(255,255,255,0.12);
  animation: titleKick 5.6s steps(1) infinite;
}

.hero h1::before,
.hero h1::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  pointer-events: none;
  opacity: 0;
}

.hero h1::before {
  color: rgba(213,18,9,0.78);
  transform: translate(3px, -1px);
  clip-path: inset(0 0 58% 0);
  animation: glitchTop 5.6s steps(1) infinite;
}

.hero h1::after {
  color: rgba(255,255,255,0.72);
  transform: translate(-3px, 2px);
  clip-path: inset(64% 0 0 0);
  animation: glitchBottom 5.6s steps(1) infinite;
}

.manifesto {
  max-width: 320px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.btn-primary {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 0 rgba(213,18,9,0);
}

.btn-secondary {
  background: rgba(0,0,0,0.28);
}

.btn:hover,
.order-form button:hover {
  transform: translateY(-2px) skewX(-4deg);
}

.btn-primary:hover,
.order-form button:hover {
  box-shadow: 0 0 26px rgba(213,18,9,0.34);
}

.btn-secondary:hover {
  border-color: rgba(213,18,9,0.86);
  color: var(--red);
}

.hero-right {
  position: absolute;
  top: 132px;
  right: clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 128px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-right strong {
  color: var(--red);
  font-weight: 700;
}

.hero-right i {
  position: relative;
  display: block;
  width: 10px;
  height: 160px;
  margin-top: 18px;
  border-left: 2px solid var(--red);
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  animation: bracketScan 2.8s ease-in-out infinite;
}

.hero-right i::before,
.hero-right i::after {
  position: absolute;
  right: -7px;
  width: 5px;
  height: 36px;
  content: "";
  border: 1px solid var(--red);
}

.hero-right i::before {
  top: 88px;
}

.hero-right i::after {
  bottom: 2px;
}

.vertical-title {
  position: absolute;
  z-index: 1;
  bottom: 23vh;
  left: clamp(24px, 5vw, 64px);
  margin: 0;
  color: rgba(213, 18, 9, 0.78);
  font-family: var(--font-display);
  font-size: clamp(58px, 7vw, 104px);
  line-height: 0.68;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-shadow: 0 0 18px rgba(225,6,0,0.28);
  mix-blend-mode: screen;
  animation: verticalBuzz 4.2s steps(1) infinite;
}

.hero-specs {
  position: absolute;
  z-index: 3;
  bottom: 62px;
  left: clamp(20px, 5vw, 64px);
  display: grid;
  gap: 5px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
}

.hero-specs p {
  margin: 0;
}

.hero-specs span {
  display: block;
  width: 34px;
  height: 2px;
  margin: 11px 0;
  background: var(--red);
}

.hero-year {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: 70px;
  display: grid;
  gap: 2px;
  color: var(--red);
  font-family: var(--font-mono);
  text-align: right;
  text-transform: uppercase;
}

.hero-year::before {
  position: absolute;
  right: 0;
  bottom: -26px;
  width: 220px;
  height: 1px;
  content: "";
  background: var(--red);
}

.app-home-shell {
  display: none;
}

.platform-home .app-home-shell {
  position: relative;
  z-index: 5;
  display: grid;
  width: min(1180px, 100%);
  justify-self: center;
  gap: 16px;
}

.ticker {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34px;
  overflow: hidden;
  border-top: 1px solid rgba(213,18,9,0.72);
  border-bottom: 1px solid rgba(213,18,9,0.42);
  background: rgba(8, 0, 0, 0.72);
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  height: 100%;
  align-items: center;
  gap: 36px;
  color: rgba(255,255,255,0.86);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  animation: tickerMove 18s linear infinite;
}

.ticker span {
  position: relative;
  white-space: nowrap;
}

.ticker span::after {
  position: absolute;
  top: 50%;
  right: -22px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--red);
  transform: translateY(-50%) rotate(45deg);
}

.drop,
.craft,
.contact,
.market,
.drops,
.product-page,
.platform,
.seller-page,
.admin-page {
  padding: 96px clamp(16px, 3vw, 34px) 34px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.drop,
.market {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(213,18,9,0.16), transparent 34%),
    #080808;
}

.platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  background:
    radial-gradient(circle at 16% 12%, rgba(213,18,9,0.18), transparent 28%),
    linear-gradient(180deg, #060606, #0d0d0d);
}

.seller-page,
.admin-page {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100svh - 126px);
  background:
    radial-gradient(circle at 18% 20%, rgba(213,18,9,0.18), transparent 26%),
    #070707;
}

.product-page {
  position: relative;
  grid-template-columns: minmax(260px, 520px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: stretch;
  min-height: calc(100svh - 126px);
  background:
    radial-gradient(circle at 78% 18%, rgba(213,18,9,0.2), transparent 28%),
    #070707;
}

.product-back {
  position: absolute;
  top: 26px;
  left: clamp(20px, 5vw, 64px);
  z-index: 3;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  background: rgba(0,0,0,0.42);
  padding: 0 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.product-back svg {
  transform: rotate(180deg);
}

.product-detail-visual {
  min-height: min(680px, 70svh);
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.18) 48%, rgba(0,0,0,0.86) 100%),
    var(--detail-bg, linear-gradient(135deg, #161616, #050505));
  background-position: center;
  background-size: cover;
}

.product-detail-info {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
}

.product-detail-info h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.86;
  text-transform: uppercase;
}

.product-detail-meta,
.product-detail-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-detail-meta span,
.product-detail-sizes span {
  border: 1px solid rgba(255,255,255,0.14);
  background: #090909;
  padding: 8px 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.product-detail-meta span:last-child {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.product-detail-price {
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 86px);
  line-height: 0.9;
}

.product-detail-info p {
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-shell {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(135deg, rgba(213,18,9,0.1), transparent 28%),
    rgba(7,7,7,0.96);
}

.workspace-shell {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8,8,8,0.94);
}

.workspace-head {
  padding: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.workspace-head h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.92;
  text-transform: uppercase;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.1);
}

.workspace-grid article {
  min-height: 260px;
  background:
    linear-gradient(145deg, rgba(213,18,9,0.14), transparent 40%),
    #090909;
  padding: 24px;
}

.workspace-grid span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.workspace-grid strong {
  display: block;
  margin: 42px 0 14px;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 0.9;
  text-transform: uppercase;
}

.workspace-grid p {
  color: var(--muted);
}

.platform-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.platform-head h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 0.94;
  text-transform: uppercase;
}

.platform-tabs {
  display: flex;
  gap: 8px;
}

.platform-tabs button {
  min-height: 40px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #080808;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.platform-tabs button.is-active,
.platform-tabs button:hover {
  border-color: var(--red);
  background: var(--red);
}

.platform-view {
  display: none;
}

.platform-view.is-active {
  display: grid;
}

.platform-view[data-platform-view="chat"].is-active {
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  min-height: 620px;
}

.signal-messenger.is-active {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(9,10,14,0.92);
}

.chat-list-panel {
  display: grid;
  align-content: start;
  border-right: 1px solid rgba(255,255,255,0.1);
  background: rgba(12,13,17,0.96);
}

.messenger-sidebar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
}

.signal-brand-mini {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.signal-brand-mini span {
  overflow: hidden;
  color: rgba(255,255,255,0.86);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.messenger-icon-button:hover {
  color: #fff;
  background: rgba(213,18,9,0.28);
}

.messenger-icon-button svg,
.messenger-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.messenger-search {
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  padding: 0 12px;
}

.messenger-search input {
  width: 100%;
  min-height: 40px;
  border: 0;
  color: #fff;
  background: transparent;
  outline: none;
}

.messenger-search input::placeholder {
  color: rgba(255,255,255,0.38);
}

.new-chat-form {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
  background:
    radial-gradient(circle at 92% 12%, rgba(213,18,9,0.12), transparent 30%),
    rgba(255,255,255,0.025);
}

.new-chat-form strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}

.new-chat-form label,
.privacy-toggle {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.new-chat-form input:not([type="checkbox"]),
.order-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  color: #fff;
  background: rgba(0,0,0,0.42);
  padding: 0 12px;
  outline: none;
}

.new-chat-form input:focus,
.order-form select:focus {
  border-color: var(--red);
}

.privacy-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
}

.privacy-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.new-chat-form button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), #8f0e09);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.chat-list {
  border-right: 0;
  background: transparent;
}

.chat-item {
  display: grid;
  width: 100%;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.chat-item:hover,
.chat-item.is-active {
  background: rgba(255,255,255,0.06);
}

.chat-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.22), transparent 32%),
    linear-gradient(135deg, var(--red), #1f2028);
  font-weight: 900;
  font-size: 17px;
}

.chat-name,
.chat-time,
.chat-preview,
.chat-unread,
.chat-top span,
.message-form button,
.order-status {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.chat-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 13px;
}

.chat-privacy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 4px 7px;
  color: rgba(255,255,255,0.58);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.chat-name svg {
  width: 13px;
  height: 13px;
  color: var(--red);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-privacy svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-preview {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-time {
  color: var(--dim);
  font-size: 11px;
}

.chat-unread {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  font-size: 11px;
}

.chat-window {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
}

.chat-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(12,13,17,0.92);
}

.chat-top-profile {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.chat-top-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.2), transparent 32%),
    linear-gradient(135deg, var(--red), #24252d);
  font-weight: 900;
}

.chat-top h3 {
  margin: 0;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-top > span {
  margin-left: auto;
  color: var(--red);
  font-size: 12px;
}

.chat-actions {
  display: inline-flex;
  gap: 8px;
}

.chat-actions button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.06);
}

.chat-actions svg,
.signal-safety-strip svg,
.message-tool svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-safety-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.68);
  background: rgba(255,255,255,0.035);
  padding: 9px 18px;
  font-size: 12px;
}

.signal-safety-strip svg {
  color: #54d17a;
}

.signal-safety-strip button {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(84,209,122,0.16);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
}

.message-list {
  display: grid;
  align-content: end;
  gap: 10px;
  overflow: auto;
  padding: 22px;
  background:
    radial-gradient(circle at 82% 16%, rgba(213,18,9,0.12), transparent 28%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 26px 26px;
}

.message {
  max-width: min(520px, 82%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px 16px 16px 5px;
  padding: 11px 13px;
  background: rgba(28,30,38,0.9);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.message.is-me {
  justify-self: end;
  border-color: rgba(213,18,9,0.44);
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(135deg, rgba(213,18,9,0.86), rgba(121,10,7,0.86));
}

.message p {
  margin: 0 0 7px;
}

.message time {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
}

.order-chip {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  border-left: 2px solid var(--red);
  padding-left: 10px;
  color: var(--muted);
  font-size: 13px;
}

.order-chip strong {
  color: #fff;
}

.message-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(12,13,17,0.94);
}

.message-tool {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255,255,255,0.76);
  background: rgba(255,255,255,0.07);
}

.message-form input {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.07);
  padding: 0 18px;
  outline: none;
}

.message-form input:focus {
  border-color: var(--red);
}

.message-form button[type="submit"] {
  min-height: 48px;
  width: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #8f0e09);
  padding: 0;
  cursor: pointer;
}

.orders-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.order-card,
.profile-grid article {
  min-height: 230px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(145deg, rgba(213,18,9,0.14), transparent 36%),
    #080808;
  padding: 22px;
}

.order-card h3,
.profile-grid strong {
  display: block;
  margin: 28px 0 12px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.94;
  text-transform: uppercase;
}

.order-card p,
.profile-grid p {
  color: var(--muted);
}

.order-status,
.profile-grid span {
  color: var(--red);
  font-size: 12px;
}

.market-head {
  display: grid;
  grid-template-columns: minmax(260px, 520px);
  gap: 24px;
  align-items: end;
}

.section-label {
  color: var(--red);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.section-label span {
  display: block;
  margin-bottom: 20px;
  font-size: 52px;
  font-family: var(--font-display);
}

.section-label p {
  color: var(--muted);
}

.section-copy h2,
.craft h2,
.contact h2 {
  max-width: 890px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 0.94;
  text-transform: uppercase;
}

.section-copy > p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.market-search,
.filter-panel,
.product-card,
.cart-drawer {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8,8,8,0.92);
}

.market-search {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.market-search label,
.sort-control span,
.filter-panel label span,
.panel-kicker {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.market-search input,
.sort-control select,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0;
  color: #fff;
  background: #050505;
  padding: 0 12px;
  outline: none;
}

.market-search input:focus,
.sort-control select:focus,
.filter-panel select:focus {
  border-color: var(--red);
}

.market-toolbar {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs button {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #090909;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.category-tabs button:hover,
.category-tabs button.is-active {
  border-color: var(--red);
  background: var(--red);
}

.sort-control {
  display: grid;
  min-width: 220px;
  gap: 8px;
}

.shop-layout {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.filter-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
}

.filter-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.filter-line strong {
  color: #fff;
  text-align: right;
}

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

.product-card {
  position: relative;
  display: grid;
  min-height: 430px;
  overflow: hidden;
}

.product-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.18) 48%, rgba(0,0,0,0.94) 100%),
    var(--product-bg, linear-gradient(135deg, #1a1a1a, #070707));
  transition: transform 220ms ease, filter 220ms ease;
}

.product-card:hover::before {
  transform: scale(1.04);
  filter: contrast(1.12);
}

.product-card::after {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(213,18,9,0.22);
  pointer-events: none;
}

.product-badge,
.favorite-button {
  position: absolute;
  z-index: 2;
  top: 18px;
}

.product-badge {
  left: 18px;
  background: var(--red);
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.favorite-button {
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.52);
  cursor: pointer;
}

.favorite-button.is-active {
  border-color: var(--red);
  color: var(--red);
}

.product-info {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  gap: 12px;
  padding: 24px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.94;
  text-transform: uppercase;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.product-buy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.product-price {
  color: #fff;
  font-family: var(--font-display);
  font-size: 30px;
}

.add-button {
  min-height: 42px;
  border: 1px solid var(--red);
  background: var(--red);
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.empty-products {
  grid-column: 1 / -1;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 34px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.product-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: rgba(255,255,255,0.08);
}

.product-row article {
  min-height: 210px;
  padding: 28px;
  background: #0b0b0b;
}

.product-row article:hover {
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(213,18,9,0.2), transparent 45%),
    #101010;
  box-shadow: 0 0 0 1px rgba(213,18,9,0.42);
  transform: translateY(-6px);
}

.product-row span,
.signal-card span,
dt {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
}

.product-row h3 {
  margin: 52px 0 12px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 0.98;
  text-transform: uppercase;
}

.product-row p,
.signal-card p,
dd {
  color: var(--muted);
}

.craft,
.drops {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: stretch;
  background:
    linear-gradient(90deg, #050505, #101010),
    var(--bg);
}

.craft-panel,
.signal-card,
.contact {
  background-color: var(--panel);
}

.craft-panel {
  padding: clamp(28px, 5vw, 54px);
  border-left: 3px solid var(--red);
}

dl {
  display: grid;
  gap: 1px;
  max-width: 620px;
  margin: 36px 0 0;
  background: rgba(255,255,255,0.1);
}

dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 18px 0;
  background: var(--panel);
}

dd {
  margin: 0;
}

.signal-card {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  border: 1px solid rgba(225,6,0,0.38);
  background:
    linear-gradient(180deg, rgba(225,6,0,0.18), transparent 46%),
    var(--panel-2);
  overflow: hidden;
  position: relative;
}

.signal-card::before {
  position: absolute;
  inset: -40% 42% -40% auto;
  width: 90px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(213,18,9,0.34), transparent);
  transform: rotate(18deg);
  animation: cardScan 4.6s ease-in-out infinite;
}

.signal-card strong {
  display: block;
  margin: 18px 0 16px;
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 94px);
  line-height: 0.76;
  text-transform: uppercase;
}

.contact {
  min-height: 70vh;
}

.order-form {
  display: grid;
  max-width: 720px;
  gap: 14px;
}

.order-form label {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.order-form input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 0;
  color: #fff;
  background: #080808;
  padding: 0 16px;
  outline: none;
}

.auth-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.telegram-auth-form {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 82% 0%, rgba(213,18,9,0.18), transparent 30%),
    rgba(12,13,17,0.9);
}

.telegram-auth-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin: -22px -22px 8px;
  padding: 24px 22px 20px;
  background:
    linear-gradient(135deg, rgba(213,18,9,0.32), transparent 56%),
    rgba(255,255,255,0.035);
}

.telegram-auth-panel span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
}

.telegram-auth-panel strong {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.92;
}

.telegram-auth-panel p {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,0.62);
}

.auth-phone-field {
  grid-column: 1 / -1;
}

.auth-form label:first-child,
.auth-privacy-toggle {
  grid-column: 1 / -1;
}

.auth-reset {
  min-height: 58px;
}

.order-form input:focus {
  border-color: var(--red);
}

.order-form button {
  min-height: 58px;
  border: 0;
  color: #fff;
  background: var(--red);
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
}

.auth-form.is-sent button[type="submit"] {
  background:
    linear-gradient(135deg, var(--red), rgba(213,18,9,0.42));
}

.cart-drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  display: grid;
  width: min(420px, 100%);
  height: 100svh;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  padding: 24px;
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.cart-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.85;
  text-transform: uppercase;
}

.cart-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #050505;
  font-size: 26px;
  cursor: pointer;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px;
}

.cart-item h3 {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #050505;
  cursor: pointer;
}

.cart-empty {
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.cart-drawer.has-items .cart-empty {
  display: none;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.cart-summary strong {
  color: var(--red);
}

.checkout-button {
  min-height: 54px;
  border: 0;
  background: var(--red);
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  background: rgba(0,0,0,0.64);
}

.cart-backdrop.is-open {
  display: block;
}

.reveal {
  opacity: 1;
  transform: none;
}

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.has-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes imageDrift {
  from {
    transform: scale(1.02) translate3d(-0.4%, -0.2%, 0);
  }
  to {
    transform: scale(1.055) translate3d(0.7%, 0.4%, 0);
  }
}

@keyframes slashSweep {
  0%, 58%, 100% {
    transform: translateX(-18%);
    opacity: 0.18;
  }
  64% {
    transform: translateX(6%);
    opacity: 0.82;
  }
  70% {
    transform: translateX(10%);
    opacity: 0.28;
  }
}

@keyframes linePulse {
  0%, 100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

@keyframes noisePulse {
  0%, 100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-1px, 1px);
  }
  66% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes titleKick {
  0%, 92%, 100% {
    transform: translate(0, 0);
  }
  93% {
    transform: translate(2px, -1px);
  }
  94% {
    transform: translate(-2px, 1px);
  }
}

@keyframes glitchTop {
  0%, 91%, 100% {
    opacity: 0;
  }
  92%, 94% {
    opacity: 0.88;
  }
}

@keyframes glitchBottom {
  0%, 93%, 100% {
    opacity: 0;
  }
  94%, 96% {
    opacity: 0.7;
  }
}

@keyframes bracketScan {
  0%, 100% {
    box-shadow: 0 0 0 rgba(213,18,9,0);
  }
  50% {
    box-shadow: -8px 0 18px rgba(213,18,9,0.34);
  }
}

@keyframes verticalBuzz {
  0%, 90%, 100% {
    transform: rotate(180deg) translate(0, 0);
  }
  91% {
    transform: rotate(180deg) translate(-2px, 1px);
  }
  92% {
    transform: rotate(180deg) translate(2px, -1px);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes cardScan {
  0%, 52%, 100% {
    transform: translateX(-260%) rotate(18deg);
  }
  70% {
    transform: translateX(260%) rotate(18deg);
  }
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

button svg,
.btn svg,
.header-action svg,
.nav-links svg,
.app-sidebar svg,
.category-tabs svg,
.platform-tabs svg,
.add-button svg,
.checkout-button svg,
.message-form button svg,
.favorite-button svg,
.cart-close svg,
.qty-controls svg,
.input-with-icon svg,
.chat-unread svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  gap: 18px;
}

.nav-links button,
.header-action,
.btn,
.category-tabs button,
.platform-tabs button,
.add-button,
.checkout-button,
.message-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.app-sidebar button svg {
  justify-self: center;
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--red);
  transform: translateY(-50%);
}

.input-with-icon input {
  padding-left: 42px;
}

.favorite-button,
.cart-close,
.qty-controls button {
  display: grid;
  place-items: center;
}

.favorite-button svg,
.cart-close svg,
.qty-controls svg {
  width: 15px;
  height: 15px;
}

.cart-close {
  font-size: 0;
}

.chat-unread {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.chat-unread svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 900px) {
  .app-main {
    padding-left: 0;
    padding-top: 72px;
  }

  .page-status {
    top: 72px;
    min-height: 38px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .app-sidebar {
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,0.1);
    border-right: 0;
  }

  .app-sidebar [data-mobile-hidden] {
    display: none;
  }

  .app-sidebar button {
    min-height: 58px;
    border-bottom: 0;
    border-right: 1px solid rgba(255,255,255,0.08);
    font-size: 9px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    display: block;
    min-height: 860px;
    padding-bottom: 78px;
  }

  .hero-image {
    background-position: center top;
    background-size: cover;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5,5,5,0.94) 0%, rgba(5,5,5,0.52) 38%, rgba(5,5,5,0.76) 72%, #050505 100%),
      linear-gradient(90deg, rgba(5,5,5,0.9), rgba(5,5,5,0.22), rgba(5,5,5,0.78));
  }

  .hero h1 {
    margin-bottom: 28px;
  }

  .vertical-title {
    left: 16px;
    bottom: 240px;
    font-size: clamp(46px, 12vw, 72px);
  }

  .hero-right {
    top: auto;
    right: 22px;
    bottom: 240px;
  }

  .hero-specs {
    bottom: 62px;
  }

  .hero-year {
    display: none;
  }

  .drop,
  .craft,
  .market,
  .drops,
  .product-page,
  .platform,
  .seller-page,
  .admin-page {
    grid-template-columns: 1fr;
  }

  .drop,
  .craft,
  .contact,
  .market,
  .drops,
  .product-page,
  .platform,
  .seller-page,
  .admin-page {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .page-titlebar {
    padding-bottom: 20px;
  }

  .section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 0;
  }

  .section-label span {
    margin-bottom: 0;
    font-size: 28px;
    line-height: 0.9;
  }

  .section-label p {
    margin: 0;
  }

  .market-head,
  .shop-layout,
  .product-page,
  .platform-head,
  .platform-view[data-platform-view="chat"].is-active {
    grid-template-columns: 1fr;
  }

  .platform-tabs {
    flex-wrap: wrap;
  }

  .chat-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .chat-list-panel {
    border-right: 0;
  }

  .messenger-sidebar-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .chat-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .chat-time,
  .chat-unread {
    display: none;
  }

  .orders-grid,
  .profile-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .app-main {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .page-status {
    display: none;
  }

  .app-sidebar {
    z-index: 45;
    overflow-x: auto;
    background: rgba(17,17,22,0.96);
    box-shadow: 0 -10px 28px rgba(0,0,0,0.38);
  }

  .app-sidebar button {
    min-width: 0;
    min-height: 68px;
    gap: 5px;
    border-right: 0;
    padding: 8px 4px 7px;
    color: rgba(255,255,255,0.54);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: none;
  }

  .app-sidebar button span {
    display: none;
  }

  .app-sidebar button svg {
    width: 23px;
    height: 23px;
  }

  .app-sidebar button:nth-of-type(3) {
    color: #fff;
  }

  .app-sidebar button:nth-of-type(3) svg {
    width: 28px;
    height: 28px;
    color: var(--red);
    filter: drop-shadow(0 0 10px rgba(213,18,9,0.55));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 56px;
    padding: 10px 16px;
    background: rgba(17,17,22,0.96);
    backdrop-filter: blur(18px);
  }

  .brand {
    gap: 8px;
  }

  .brand-main {
    font-size: 24px;
  }

  .brand-sub {
    display: none;
  }

  .header-action {
    display: inline-flex;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(255,255,255,0.05);
    font-size: 0;
  }

  .header-action svg,
  .header-action span {
    font-size: 12px;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 12px 12px 88px;
    background:
      radial-gradient(circle at 92% 8%, rgba(213,18,9,0.36), transparent 28%),
      linear-gradient(180deg, #15151b, #0d0d11 34%, #060606 100%);
  }

  .hero.app-page.is-active {
    display: block;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(213,18,9,0.2), transparent 210px),
      linear-gradient(180deg, rgba(0,0,0,0.1), #060606 88%);
  }

  .hero-copy,
  .hero-right,
  .vertical-title,
  .hero-specs,
  .ticker {
    display: none;
  }

  .app-home-shell {
    position: relative;
    z-index: 5;
    display: grid;
    gap: 12px;
  }

  .app-search-card svg,
  .app-promo svg,
  .app-services svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .app-search-card button {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: rgba(255,255,255,0.08);
  }

  .app-search-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    padding: 8px;
  }

  .app-search input {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: rgba(255,255,255,0.08);
    font-size: 17px;
    font-weight: 800;
  }

  .app-search input::placeholder {
    color: rgba(255,255,255,0.44);
  }

  .app-promo {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 142px;
    overflow: hidden;
    border-radius: 22px;
    padding: 18px;
    background:
      linear-gradient(90deg, rgba(0,0,0,0.78), rgba(0,0,0,0.34) 56%, rgba(90,0,0,0.18)),
      linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.38)),
      url("assets/local-hub-tech-bg.png") center 48% / cover no-repeat;
    background-size:
      auto,
      auto,
      cover;
    box-shadow: 0 18px 44px rgba(0,0,0,0.36);
  }

  .app-promo span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.72);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
  }

  .app-promo strong {
    display: block;
    max-width: 210px;
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 0.88;
    text-transform: uppercase;
  }

  .app-promo p {
    max-width: 190px;
    margin: 8px 0 0;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
  }

  .app-promo button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #050505;
    padding: 0 13px;
    font-weight: 800;
  }

  .app-services {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .app-services button {
    display: grid;
    min-width: 72px;
    gap: 7px;
    justify-items: center;
    border: 0;
    color: rgba(255,255,255,0.86);
    background: transparent;
    font-size: 11px;
    font-weight: 800;
  }

  .app-services span {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 18px;
    background:
      linear-gradient(145deg, rgba(213,18,9,0.9), rgba(213,18,9,0.22)),
      #202027;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  }

  .auth-entry-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 16px;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
      rgba(18,18,22,0.94);
    box-shadow: 0 18px 36px rgba(0,0,0,0.28);
  }

  .auth-entry-card span {
    display: block;
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
  }

  .auth-entry-card strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
  }

  .auth-entry-card p {
    margin: 6px 0 0;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    line-height: 1.35;
  }

  .auth-entry-card button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    padding: 0 14px;
    font-weight: 900;
  }

  .auth-entry-card svg {
    width: 16px;
    height: 16px;
  }

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

  .app-category-grid button {
    display: grid;
    gap: 6px;
    min-height: 88px;
    place-items: center;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: #202027;
    font-size: 12px;
    font-weight: 800;
  }

  .app-category-grid button span {
    display: grid;
    width: 48px;
    height: 42px;
    place-items: center;
    border-radius: 15px;
    background:
      radial-gradient(circle at 70% 20%, rgba(255,255,255,0.22), transparent 32%),
      linear-gradient(145deg, rgba(213,18,9,0.9), #101014);
    font-family: var(--font-display);
    font-size: 19px;
  }

  .app-category-grid svg {
    width: 22px;
    height: 22px;
  }

  .app-category-grid button.is-active {
    background: rgba(213,18,9,0.34);
    box-shadow: inset 0 0 0 1px rgba(213,18,9,0.64);
  }

  .app-feed-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding-top: 4px;
  }

  .app-feed-head strong {
    font-family: var(--font-display);
    font-size: 36px;
    line-height: 0.9;
    text-transform: uppercase;
  }

  .app-feed-head span {
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
  }

  .home-product-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero h1 {
    max-width: 330px;
    font-size: clamp(42px, 13vw, 58px);
    margin-bottom: 34px;
  }

  .manifesto {
    max-width: 300px;
    font-size: 14px;
  }

  .hero-right {
    right: 16px;
    bottom: 224px;
    font-size: 12px;
  }

  .hero-right i {
    height: 102px;
  }

  .ticker-track {
    gap: 24px;
    font-size: 11px;
    animation-duration: 14s;
  }

  .hero-specs {
    font-size: 12px;
  }

  .drop,
  .craft,
  .contact,
  .market,
  .drops,
  .product-page,
  .platform,
  .seller-page,
  .admin-page {
    padding-top: 28px;
    padding-right: 16px;
    padding-bottom: 52px;
    padding-left: 16px;
  }

  .product-page {
    gap: 16px;
    min-height: auto;
    padding-top: 14px;
  }

  .product-back {
    position: static;
    width: fit-content;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
  }

  .product-detail-visual {
    min-height: 420px;
    border: 0;
    border-radius: 24px;
  }

  .product-detail-info {
    gap: 12px;
  }

  .product-detail-info h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .product-detail-price {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 34px;
    font-weight: 900;
  }

  .product-detail-info p {
    font-size: 15px;
  }

  .product-detail-actions .btn {
    flex: 1 1 150px;
    border-radius: 16px;
  }

  .page-titlebar {
    padding-bottom: 14px;
  }

  .section-label span {
    font-size: 22px;
  }

  .platform-head,
  .orders-grid,
  .profile-grid,
  .workspace-head {
    padding: 16px;
  }

  .workspace-grid article {
    min-height: 210px;
  }

  .chat-list {
    grid-template-columns: 1fr;
  }

  .new-chat-form {
    padding: 14px;
  }

  .chat-top h3 {
    font-size: 28px;
  }

  .message {
    max-width: 94%;
  }

  .message-form {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

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

  .telegram-auth-panel {
    margin: -18px -18px 8px;
    padding: 22px 18px 18px;
  }

  .market-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control {
    min-width: 0;
  }

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

  .product-card {
    min-height: 292px;
    border: 0;
    border-radius: 20px;
    background: #1d1d23;
  }

  .product-card::before {
    background:
      linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.06) 45%, rgba(0,0,0,0.72) 100%),
      var(--product-bg, linear-gradient(135deg, #1a1a1a, #070707));
  }

  .product-card::after {
    inset: 0;
    border-color: rgba(255,255,255,0.08);
    border-radius: 20px;
  }

  .product-badge {
    top: 10px;
    bottom: auto;
    left: 0;
    border-radius: 0 10px 10px 0;
    padding: 4px 8px;
    font-size: 10px;
  }

  .favorite-button {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    color: #090909;
  }

  .product-info {
    gap: 6px;
    padding: 146px 10px 10px;
  }

  .product-meta {
    order: 3;
    font-size: 9px;
  }

  .product-card h3 {
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
  }

  .product-card p {
    display: none;
  }

  .product-buy {
    grid-template-columns: 1fr auto;
    gap: 6px;
  }

  .product-price {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 900;
    color: var(--red);
  }

  .add-button {
    min-width: 42px;
    min-height: 42px;
    border: 0;
    border-radius: 15px;
    padding: 0;
    font-size: 0;
  }

  .add-button svg {
    width: 20px;
    height: 20px;
  }

  .product-row article,
  .craft-panel,
  .signal-card {
    padding: 22px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
