:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f6f6;
  --muted: #a8a8a8;
  --soft: #d7d7d7;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, black, black 68%, transparent);
  animation: gridDrift 26s linear infinite;
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 0 0, 0 72px, 72px 0;
  }
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.72s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header {
  min-height: 76px;
}

.site-header .brand,
.site-header nav {
  line-height: 1;
}

.site-header nav a,
.site-header nav button {
  font-size: 15px;
  font-weight: 800;
}

.site-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-menu-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.site-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-header.menu-open .site-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .site-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .site-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  font-size: 20px;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-separator {
  width: 1px;
  height: 28px;
  margin: 0 10px;
  background: rgba(255, 255, 255, 0.22);
}

nav a,
nav button,
.nav-cta,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--soft);
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

nav button {
  font: inherit;
  cursor: pointer;
  background: transparent;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-toggle {
  min-width: 74px;
  gap: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.language-option-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.language-flag {
  width: 22px;
  height: 15px;
  display: block;
  flex: 0 0 22px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 5px 14px rgba(0, 0, 0, 0.24);
}

.language-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.language-switcher.open .language-toggle::after {
  transform: translateY(2px) rotate(225deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  min-width: 168px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.language-switcher.open .language-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language-menu button,
.language-menu a {
  width: 100%;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--soft);
  font-size: 14px;
}

.language-menu a {
  position: relative;
}

.language-menu a .language-option-content {
  flex: 1;
}

.language-active-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-left: auto;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
}

.language-menu button:hover,
.language-menu a:hover,
.language-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.site-header .nav-cta {
  color: #050505;
}

nav a:hover,
nav button:hover,
.back-button:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-cta {
  color: #050505;
  background: #fff;
  font-weight: 800;
}

nav a.nav-cta:hover,
.site-header .nav-cta:hover {
  color: #050505;
  background: #e7e7e7;
  border-color: #fff;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: 56px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
  margin-bottom: 24px;
}

h1.typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.86em;
  margin-left: 0.08em;
  background: currentColor;
  transform: translateY(0.1em);
  animation: typingCursor 0.78s steps(1) infinite;
}

@keyframes typingCursor {
  50% {
    opacity: 0;
  }
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
}

.lead,
.hero-copy p,
.section p,
.form-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.08);
}

.button.primary {
  color: #050505;
  background: #fff;
  border-color: #fff;
}

.button.primary:hover {
  background: #dcdcdc;
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.11);
}

.button.danger {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.button.danger:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-panel,
.form-card,
.terms-card,
.admin-panel,
.admin-stats > div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  transform-style: preserve-3d;
  animation: panelFloat 10s ease-in-out infinite;
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-logo {
  display: block;
  width: min(220px, 65%);
  margin: 0 auto 32px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(255, 255, 255, 0.09));
  animation: logoGlow 7s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    filter: drop-shadow(0 18px 40px rgba(255, 255, 255, 0.08));
  }

  50% {
    filter: drop-shadow(0 22px 54px rgba(255, 255, 255, 0.18));
  }
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-pill {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.status-pill:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.2);
}

.status-pill span {
  color: var(--muted);
}

.section {
  padding: 84px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.subhero {
  padding: 86px 0 42px;
  max-width: 850px;
}

.subhero h1 {
  font-size: clamp(48px, 7vw, 92px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

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

.feature-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.13), transparent 38%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card::before,
.screenshot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle), transparent 0deg, transparent 245deg, rgba(255, 255, 255, 0.95) 290deg, transparent 338deg, transparent 360deg);
  opacity: 0.62;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: borderOrbit 7s linear infinite;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.08), transparent 48%);
  pointer-events: none;
}

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

@keyframes borderOrbit {
  to {
    --border-angle: 360deg;
  }
}

.feature-card:hover {
  transform: translateY(-6px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 42%),
    var(--panel-strong);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.feature-card span {
  color: var(--muted);
  font-weight: 900;
}

.feature-card p {
  font-size: 16px;
}

.catalog-page {
  padding-bottom: 90px;
}

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

.category-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.05);
}

.category-card h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 46px);
}

.category-card p {
  color: var(--muted);
  line-height: 1.65;
}

.category-card ul,
.rules-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-card li,
.rules-list li {
  position: relative;
  padding: 12px 14px 12px 40px;
  border-radius: 14px;
  color: var(--soft);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-card li::before,
.rules-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

.category-link {
  color: #050505;
  background: #fff;
  align-self: flex-start;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-link:hover {
  transform: translateY(-3px);
  background: #dcdcdc;
}

.store-section {
  padding: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.product-card,
.order-card,
.admin-product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.28);
}

.product-image {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  text-decoration: none;
  overflow: hidden;
}

.product-image img,
.product-detail-media img,
.admin-product-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image em {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #050505;
  background: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.product-content p {
  color: var(--muted);
  line-height: 1.6;
}

.product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-bottom strong,
.product-price {
  font-size: 26px;
  font-weight: 900;
}

.empty-store-card {
  display: grid;
  gap: 6px;
  padding: 28px;
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}

.empty-store-card strong {
  color: #fff;
}

.product-page {
  padding: 70px 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.product-detail-media {
  min-height: 520px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-detail-info {
  padding: clamp(26px, 5vw, 46px);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.checkout-form {
  margin-top: 26px;
}

.small-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.compact-subhero {
  padding-bottom: 34px;
}

.inline-cart-form {
  margin: 0;
}

.cart-page,
.account-page {
  padding: 70px 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.cart-list,
.client-orders {
  display: grid;
  gap: 16px;
}

.cart-item,
.cart-summary,
.client-order {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.cart-item {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  align-items: center;
}

.cart-item h2,
.client-order h2 {
  margin: 0;
  font-size: 24px;
}

.cart-item p,
.client-order p {
  color: var(--muted);
  line-height: 1.55;
}

.cart-item-image {
  width: 138px;
  aspect-ratio: 1.25;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.cart-item-meta strong {
  font-size: 24px;
}

.cart-summary {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.cart-summary h2 {
  margin: 0;
  font-size: 26px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row strong {
  font-size: 26px;
}

.discount-form {
  display: grid;
  gap: 10px;
}

.discount-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.discount-applied {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.discount-applied span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-row-discount strong {
  color: #fff;
}

.summary-row-total {
  color: #050505;
  background: #fff;
  border-color: #fff;
}

.summary-row-total strong {
  color: #050505;
}

.payment-method-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.payment-method-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-method-card strong {
  font-size: 24px;
}

.payment-method-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.full-width {
  width: 100%;
}

.link-button {
  appearance: none;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.client-order {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.client-order-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.client-order-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.client-order-grid > div,
.token-box {
  display: grid;
  gap: 7px;
  padding: 15px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.client-order-grid span,
.token-box span,
.token-box small {
  color: var(--muted);
}

.token-box code {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: 10px 12px;
  overflow-x: auto;
  border-radius: 12px;
  color: #050505;
  background: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #050505;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge.pending {
  background: #d8d8d8;
}

.status-badge.paid {
  background: #fff;
}

.status-badge.delivered {
  background: #b8ffcf;
}

.status-badge.cancelled {
  color: #fff;
  background: #5f1111;
}

.status-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.progress-stack {
  display: grid;
  gap: 18px;
}

.progress-item {
  display: grid;
  gap: 10px;
}

.progress-item div {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

.progress-item span {
  color: var(--soft);
}

.progress-item i {
  height: 10px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.progress-item i::before,
.progress-item i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.progress-item i::before {
  z-index: 1;
  width: var(--progress-current, var(--progress));
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.24);
}

.progress-item i::after {
  z-index: 2;
  width: 42%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
  transform: translateX(-130%);
  animation: progressShine 4s ease-in-out infinite;
}

@keyframes progressShine {
  0%,
  35% {
    transform: translateX(-130%);
    opacity: 0;
  }

  55% {
    opacity: 0.55;
  }

  100% {
    transform: translateX(240%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

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

.screenshot-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  cursor: zoom-in;
  transition: transform 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
}

.screenshot-card::before {
  opacity: 0.72;
  animation-duration: 6s;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.34);
  filter: brightness(1.08);
}

.screenshot-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-placeholder {
  display: none;
  grid-column: 1 / -1;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  place-content: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.screenshot-grid:has(.screenshot-card.empty:nth-of-type(1)):has(.screenshot-card.empty:nth-of-type(2)):has(.screenshot-card.empty:nth-of-type(3)) .screenshot-placeholder {
  display: grid;
}

.screenshot-card.empty {
  display: none;
}

.no-scroll {
  overflow: hidden;
}

.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  grid-template-columns: 52px minmax(0, min(1120px, 100%)) 52px;
  grid-template-areas: "prev stage next";
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  padding: clamp(24px, 5vw, 72px);
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.preview-lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.preview-stage {
  grid-area: stage;
  width: 100%;
  height: min(72vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.preview-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate3d(calc(var(--preview-slide, 0px) + var(--preview-pan-x, 0px)), var(--preview-pan-y, 0px), 0) scale(var(--preview-zoom, 1));
  transform-origin: center;
  opacity: 1;
  transition: transform 0.22s ease, opacity 0.16s ease, filter 0.16s ease;
  will-change: transform, opacity;
}

.preview-stage img.changing {
  opacity: 0;
  filter: blur(4px);
}

.preview-stage img.zoomed {
  cursor: grab;
}

.preview-stage img.dragging {
  cursor: grabbing;
  transition: opacity 0.16s ease, filter 0.16s ease;
}

.preview-close,
.preview-arrow {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.preview-close:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
}

.preview-close {
  position: absolute;
  top: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
}

.preview-arrow {
  position: static;
  align-self: center;
  justify-self: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
}

.preview-arrow:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
}

.preview-close::before,
.preview-arrow::before {
  display: block;
  line-height: 1;
}

.preview-close::before {
  content: "x";
  font-size: 34px;
  transform: translateY(-1px);
}

.preview-prev::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-left: 5px;
  border-top: 4px solid #fff;
  border-left: 4px solid #fff;
  transform: rotate(-45deg);
}

.preview-next::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-right: 5px;
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
  transform: rotate(45deg);
}

.preview-prev {
  grid-area: prev;
}

.preview-next {
  grid-area: next;
}

code {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  overflow: hidden;
  transition: background 0.24s ease, border-color 0.24s ease;
}

details:hover,
details[open] {
  background: var(--panel-strong);
  border-color: rgba(255, 255, 255, 0.22);
}

summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

details[open] summary::before {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.16s ease, transform 0.16s ease;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
}

details[open] .faq-answer {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

details.closing .faq-answer {
  opacity: 0;
  transform: translateY(-8px);
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.terms-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 54px 0 90px;
}

.rules-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 54px 0 90px;
}

.terms-sidebar {
  position: sticky;
  top: 100px;
  height: max-content;
  display: grid;
  gap: 10px;
}

.terms-sidebar button {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.terms-sidebar button:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.back-button {
  margin-bottom: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.terms-card {
  padding: clamp(28px, 5vw, 58px);
  border-radius: 24px;
}

.terms-card h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.terms-card section {
  scroll-margin-top: 110px;
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rules-card section {
  padding: 38px 0;
}

.rules-list {
  margin-top: 18px;
  counter-reset: rules;
}

.rules-list li {
  counter-increment: rules;
  padding-left: 58px;
  line-height: 1.55;
}

.rules-list li::before {
  content: counter(rules);
  display: grid;
  place-items: center;
  top: 12px;
  left: 14px;
  width: 30px;
  height: 30px;
  color: #050505;
  font-size: 13px;
  font-weight: 900;
  transform: none;
}

.note {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.discord-link {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.discord-link:hover {
  color: #d7d7d7;
  border-color: #ffffff;
}

.form-page,
.admin-login {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 54px 0;
}

.form-card {
  width: min(760px, 100%);
  padding: clamp(26px, 5vw, 48px);
  border-radius: 24px;
}

.form-card.compact {
  width: min(520px, 100%);
  text-align: center;
}

.discord-account {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.discord-account img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

.discord-account div {
  display: grid;
  gap: 3px;
}

.discord-account span,
.discord-account small {
  color: var(--muted);
  font-size: 13px;
}

.discord-account strong {
  color: #fff;
  font-size: 18px;
}

.status-alert {
  display: grid;
  gap: 8px;
}

.login-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 24px;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 255, 255, 0.42);
}

.alert {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.admin-body {
  background: #111111;
}

.admin-body .admin-header {
  min-height: 66px;
  padding: 0 clamp(18px, 4vw, 42px);
}

.admin-body .brand span {
  font-size: 18px;
}

.admin-body .brand img {
  width: 34px;
  height: 34px;
}

.admin-main {
  width: min(1280px, calc(100% - 32px));
  padding: 26px 0 64px;
}

.admin-body form {
  gap: 12px;
}

.admin-body label {
  gap: 7px;
  font-size: 13px;
}

.admin-body input,
.admin-body textarea,
.admin-body select {
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14px;
}

.admin-body .button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.admin-body h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.admin-body h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
}

.admin-page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-page-title p {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.admin-page-title h1 {
  margin: 0;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.admin-user a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.admin-nav {
  margin-left: auto;
  margin-right: auto;
}

.admin-nav a {
  font-size: 14px;
  padding: 8px 12px;
}

.admin-nav a.active {
  color: #050505;
  background: #fff;
  border-color: #fff;
}

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

.admin-stats > div,
.admin-stats > a {
  display: block;
  color: #fff;
  text-decoration: none;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-stats > a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.admin-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1;
}

.admin-panel {
  border-radius: 18px;
  padding: 18px;
  margin-top: 16px;
}

.admin-grid {
  display: grid;
  gap: 16px;
}

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

.panel-heading,
.application-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.muted {
  color: var(--muted);
}

.text-link {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.text-link:hover {
  border-color: #fff;
}

.compact-list {
  display: grid;
  gap: 8px;
}

.compact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-list span {
  color: var(--soft);
}

.compact-list strong {
  font-size: 13px;
}

.application-list {
  display: grid;
  gap: 12px;
}

.application-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-card.paid,
.order-card.delivered {
  border-color: rgba(255, 255, 255, 0.34);
}

.order-card.cancelled {
  opacity: 0.7;
}

.application-card.accepted {
  border-color: rgba(255, 255, 255, 0.34);
}

.application-card.rejected {
  opacity: 0.74;
}

.application-card h2 {
  margin: 8px 0 5px;
  font-size: 22px;
}

.application-card dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 16px 0;
}

.order-card dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 16px 0;
}

.application-card dt {
  color: var(--muted);
  font-weight: 900;
}

.order-card dt {
  color: var(--muted);
  font-weight: 900;
}

.application-card dd {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.order-card dd {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.application-card form {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
}

.order-card form {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
}

.admin-product-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
}

.admin-product-form h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: 22px;
}

.admin-product-form .wide,
.admin-product-card .wide {
  grid-column: 1 / -1;
}

.discount-admin-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.discount-admin-form > .discount-usage {
  grid-column: span 3;
}

.discount-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.admin-discount-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.discount-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.discount-usage strong {
  color: #fff;
}

.discount-status-pill {
  display: inline-flex;
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #050505;
  background: #fff;
  font-weight: 900;
}

.discount-status-pill.off {
  color: #bcbcbc;
  background: rgba(255, 255, 255, 0.1);
}

.delete-inline-form {
  justify-items: end;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkline input {
  width: 18px;
  height: 18px;
}

.admin-product-list,
.order-list {
  display: grid;
  gap: 12px;
}

.admin-product-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-product-preview {
  min-height: 138px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.32);
  border-radius: 14px;
  overflow: hidden;
}

.admin-product-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-card > form:first-of-type {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.admin-delete-form {
  align-self: start;
}

.admin-category-manager {
  display: grid;
  gap: 22px;
}

.admin-category-filter {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-filter-pill {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-filter-pill:hover,
.admin-filter-pill.active {
  color: #050505;
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.admin-filter-pill strong {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: inherit;
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 12px;
}

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

.admin-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-category-row.admin-category-create {
  grid-template-columns: minmax(260px, 1fr) auto auto;
}

.admin-category-edit {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.admin-product-category-section {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

.admin-product-category-section + .admin-product-category-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-heading h3 {
  margin: 0;
  font-size: clamp(28px, 5vw, 54px);
}

.admin-section-heading span {
  color: var(--muted);
  font-weight: 800;
}

.admin-store-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 18px;
}

.admin-store-product-card {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.admin-store-product-card .admin-product-preview {
  min-height: 220px;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 0;
}

.admin-store-product-card > form:first-of-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  align-items: end;
  padding: 18px;
}

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

.admin-store-product-card .admin-delete-form {
  width: auto;
  padding: 0 18px 18px;
}

.admin-store-product-card .admin-delete-form .button {
  width: 100%;
}

.order-actions {
  display: grid;
  gap: 10px;
}

.order-actions form {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.order-actions form:last-child {
  display: flex;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

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

.log-list > div {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.log-list span {
  color: var(--muted);
  margin-left: 8px;
}

.log-list small {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 5px;
}

.log-list p {
  color: var(--soft);
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    flex-direction: row;
    align-items: center;
    min-height: 70px;
    padding: 12px 16px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-store-card-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .admin-category-row,
  .admin-category-row.admin-category-create,
  .admin-category-edit {
    grid-template-columns: 1fr;
  }

  .site-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .site-header.menu-open nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-header nav a,
  .site-header nav > button,
  .site-header nav > .language-switcher > .language-toggle {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 14px;
  }

  .language-switcher {
    width: 100%;
    display: grid;
  }

  .language-menu {
    position: static;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.045);
    transform-origin: top center;
  }

  .language-switcher:not(.open) .language-menu {
    display: none;
  }

  .language-switcher.open .language-menu {
    display: grid;
  }

  .site-header nav .nav-cta {
    justify-content: center;
    margin-top: 4px;
  }

  .site-header .nav-separator {
    width: 100%;
    height: 1px;
    margin: 6px 0;
    background: rgba(255, 255, 255, 0.12);
  }

  .hero,
  .status-section,
  .terms-layout,
  .rules-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .admin-stats,
  .screenshot-grid,
  .admin-grid.two,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .terms-sidebar {
    position: static;
  }

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

  .product-detail,
  .admin-product-card {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

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

  .cart-item-meta {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .client-order-grid {
    grid-template-columns: 1fr 1fr;
  }

  .application-card dl,
  .application-card form,
  .order-card dl,
  .order-card form,
  .admin-product-form,
  .discount-admin-form,
  .admin-product-card > form:first-of-type {
    grid-template-columns: 1fr;
  }

  .discount-admin-form > .discount-usage {
    grid-column: auto;
  }

  .panel-heading,
  .application-top {
    flex-direction: column;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero-actions {
    display: grid;
    width: 100%;
  }

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

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-image {
    width: 100%;
  }

  .discount-input-row,
  .discount-applied {
    grid-template-columns: 1fr;
  }

  .client-order-grid {
    grid-template-columns: 1fr;
  }

  .admin-store-card-grid,
  .admin-store-product-card > form:first-of-type,
  .admin-product-form,
  .discount-admin-form {
    grid-template-columns: 1fr;
  }

  .button,
  .hero-actions .button {
    width: 100%;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
  }

  .site-header {
    padding: 10px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand span {
    font-size: 18px;
  }

  .site-menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .site-header nav {
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }

  h1 {
    font-size: 42px;
  }

  .preview-lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 64px 10px 24px;
  }

  .preview-stage {
    height: 64vh;
    border-radius: 16px;
  }

  .preview-arrow {
    width: 40px;
    height: 40px;
  }

  .preview-close {
    width: 40px;
    height: 40px;
  }

  .preview-close::before {
    font-size: 30px;
  }

  .preview-prev::before {
    width: 10px;
    height: 10px;
    border-width: 3px;
    margin-left: 4px;
  }

  .preview-next::before {
    width: 10px;
    height: 10px;
    border-width: 3px;
    margin-right: 4px;
  }
}
