:root {
  --bg: #0f1117;
  --bg-elevated: #141720;
  --card: #181a20;
  --card-2: #20232d;
  --primary: #5865f2;
  --primary-soft: rgba(88, 101, 242, 0.18);
  --accent: #7289da;
  --cyan: #41d9ff;
  --green: #4ade80;
  --amber: #f5c451;
  --danger: #ef4444;
  --text: #ffffff;
  --text-soft: #b9bbbe;
  --muted: #7f8492;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --header-height: 76px;
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.light-mode {
  --bg: #f4f6fb;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-2: #eef1f8;
  --text: #111827;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, 0.12);
  color-scheme: light;
}

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

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  display: block;
  max-width: 100%;
}

.particle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  z-index: -2;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 70% 45%, rgba(65, 217, 255, 0.45) 0 1px, transparent 1.6px),
    radial-gradient(circle at 38% 86%, rgba(88, 101, 242, 0.6) 0 1px, transparent 1.6px);
  background-size: 170px 170px, 230px 230px, 210px 210px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(15, 17, 23, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

body.light-mode .site-header {
  background: rgba(244, 246, 251, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark,
.icon-button,
.category-icon,
.product-fallback-icon {
  display: inline-grid;
  place-items: center;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #fff;
  background: #050505;
  box-shadow: 0 0 28px rgba(245, 196, 81, 0.22);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-button svg,
.button svg,
.filter-title svg,
.benefit-card svg,
.about-card svg,
.contact-methods svg {
  width: 18px;
  height: 18px;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.primary-nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 0.93rem;
  font-weight: 600;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--text);
  background: var(--primary-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(240px, 22vw);
  min-width: 150px;
  height: 42px;
  padding: 0 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.search-shell svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex: 0 0 auto;
}

.search-shell input,
.coupon-row input,
.auth-form input,
.profile-form input,
.ticket-form input,
.ticket-form textarea,
.ticket-form select,
.contact-form input,
.contact-form textarea,
.reply-form textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-shell input::placeholder,
.coupon-row input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

select {
  height: 42px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
  border-radius: var(--radius);
  padding: 0 10px;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--card);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow: 0 0 22px rgba(88, 101, 242, 0.18);
}

.badge-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  color: #fff;
  background: var(--primary);
  border: 2px solid var(--bg);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  padding: clamp(70px, 8vw, 110px) clamp(18px, 6vw, 72px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 23, 0.92) 0%, rgba(15, 17, 23, 0.72) 34%, rgba(15, 17, 23, 0.1) 100%),
    linear-gradient(180deg, rgba(15, 17, 23, 0.08), rgba(15, 17, 23, 0.88)),
    url("assets/hero-marketplace.png") center right / cover no-repeat;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
  z-index: -1;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: Outfit, Inter, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
}

.hero-subtitle {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}

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

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 0 34px rgba(88, 101, 242, 0.32);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(88, 101, 242, 0.48);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.button.secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 137, 218, 0.58);
}

.button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.button:disabled,
.icon-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.section-block,
.section-band,
.shop-layout,
.product-page,
.dashboard-auth,
.dashboard-shell,
.admin-layout,
.support-layout,
.about-grid,
.blog-grid,
.contact-layout,
.legal-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section-block,
.section-band {
  padding: clamp(54px, 8vw, 88px) 0;
}

.section-band {
  width: 100%;
  padding-inline: max(18px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.page-hero h1,
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.category-grid,
.benefit-grid,
.stats-grid,
.review-grid,
.about-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card,
.benefit-card,
.stat-card,
.review-card,
.about-card,
.blog-card,
.empty-state,
.filter-panel,
.dashboard-panel,
.auth-form,
.ticket-form,
.support-dashboard,
.contact-form,
.contact-methods,
.legal-page,
.product-info,
.product-media,
.product-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
}

.category-card,
.benefit-card,
.stat-card,
.review-card,
.about-card,
.blog-card {
  padding: 18px;
}

.category-card {
  min-height: 138px;
  display: grid;
  align-content: space-between;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.5);
  background: linear-gradient(180deg, var(--card), rgba(88, 101, 242, 0.1));
}

.category-icon,
.product-fallback-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(88, 101, 242, 0.18);
}

.category-card h3,
.benefit-card h3,
.about-card h2,
.blog-card h2 {
  margin-top: 14px;
  font-size: 1.12rem;
}

.category-card p,
.benefit-card p,
.about-card p,
.blog-card p,
.empty-state p,
.page-hero p,
.legal-page p,
.product-copy,
.requirement-list,
.feature-list,
.review-card p {
  color: var(--text-soft);
  line-height: 1.65;
}

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

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

.product-card {
  display: grid;
  grid-template-rows: 210px auto;
  min-height: 430px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26), 0 0 28px rgba(88, 101, 242, 0.14);
}

.media-button {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.28), rgba(65, 217, 255, 0.13)),
    var(--card-2);
}

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

.product-visual.generated::before,
.product-visual.generated::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.product-visual.generated::before {
  width: 58%;
  height: 52%;
  background: rgba(15, 17, 23, 0.42);
  transform: translate(-14%, -4%);
}

.product-visual.generated::after {
  width: 42%;
  height: 34%;
  right: 12%;
  bottom: 14%;
  background: rgba(88, 101, 242, 0.2);
}

.product-fallback-icon {
  position: relative;
  z-index: 1;
  background: rgba(15, 17, 23, 0.55);
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.open {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.3);
}

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

.product-body h3 {
  font-size: 1.25rem;
}

.product-body p {
  min-height: 52px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.rating {
  display: inline-flex;
  color: var(--amber);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.empty-state i {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 12px;
}

.stat-card {
  min-height: 124px;
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.stat-value {
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  color: var(--text-soft);
  font-weight: 700;
}

.benefit-card svg,
.about-card svg {
  color: var(--cyan);
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  color: var(--text-soft);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

.page-hero {
  padding: clamp(48px, 8vw, 88px) 0 24px;
}

.page-hero.compact {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.page-hero p {
  max-width: 720px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0 82px;
}

.filter-panel,
.dashboard-panel,
.auth-form,
.ticket-form,
.support-dashboard,
.contact-form,
.contact-methods,
.product-info,
.product-media,
.product-block {
  padding: 18px;
}

.filter-panel {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.filter-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 16px;
}

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

.filter-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  padding: 0 12px;
  font-weight: 700;
}

.filter-button:hover,
.filter-button.active {
  color: var(--text);
  background: var(--primary-soft);
  border-color: rgba(88, 101, 242, 0.44);
}

.shop-main {
  min-width: 0;
}

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

.shop-search {
  width: min(420px, 100%);
}

.sort-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 700;
}

.product-page {
  padding: clamp(48px, 8vw, 84px) 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.product-media {
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-media .product-visual {
  width: 100%;
  height: 100%;
  min-height: 470px;
  border-radius: var(--radius);
}

.product-info {
  display: grid;
  gap: 18px;
}

.product-info h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.feature-list,
.requirement-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.product-block h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.preview-frame {
  min-height: 170px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
}

.dashboard-auth,
.dashboard-shell {
  margin-bottom: 82px;
}

.dashboard-auth {
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

.auth-form,
.discord-auth-card,
.admin-form,
.profile-form,
.ticket-form,
.contact-form,
.reply-form {
  display: grid;
  gap: 14px;
}

.auth-form {
  max-width: 480px;
  margin: 0;
}

.discord-auth-card,
.discord-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
}

.discord-auth-card {
  min-height: 223px;
  align-content: space-between;
}

.discord-auth-card p,
.discord-status p {
  color: var(--text-soft);
  line-height: 1.65;
}

label span {
  display: block;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.auth-form input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.profile-form input,
.ticket-form input,
.ticket-form textarea,
.ticket-form select,
.contact-form input,
.contact-form textarea,
.reply-form textarea,
.coupon-row input {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.ticket-form textarea,
.admin-form textarea,
.contact-form textarea,
.reply-form textarea {
  resize: vertical;
}

.profile-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  margin-bottom: 18px;
}

.profile-banner {
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(245, 196, 81, 0.28), rgba(88, 101, 242, 0.14)),
    var(--bg-elevated);
  background-size: cover;
  background-position: center;
}

.profile-identity {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 0 18px 18px;
  margin-top: -38px;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  border: 4px solid var(--card);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--primary);
}

.profile-avatar.fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.profile-name-row,
.role-list,
.access-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-name-row h3 {
  font-size: 1.45rem;
}

.profile-identity p {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.role-list,
.access-list {
  padding: 0 18px 18px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--role-color, var(--border));
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--role-color, #5865f2) 16%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
}

.staff-overview {
  display: grid;
  gap: 18px;
  padding-bottom: 82px;
}

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

.staff-stats article,
.staff-card,
.admin-staff-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.staff-stats article {
  padding: 16px;
}

.staff-stats strong {
  display: block;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.staff-stats span,
.staff-card p,
.admin-staff-row p,
.panel-heading p {
  color: var(--text-soft);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.staff-card {
  min-height: 210px;
  padding: 18px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.12), transparent 46%),
    var(--card);
}

.staff-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.staff-avatar.small {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card-body {
  min-width: 0;
}

.staff-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.staff-name-row h2 {
  font-size: 1.28rem;
}

.grade-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--role-color, var(--primary));
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--role-color, #5865f2) 20%, transparent);
  font-size: 0.76rem;
  font-weight: 900;
}

.role-list.compact {
  padding: 0;
  margin-top: 12px;
}

.staff-status:empty {
  display: none;
}

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

.admin-staff-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg-elevated);
}

.admin-staff-row.muted-row {
  opacity: 0.68;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  padding: 16px 0 82px;
}

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

.admin-overview article {
  min-height: 110px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.16), transparent 58%),
    var(--card);
}

.admin-overview span {
  color: var(--text-soft);
  font-weight: 800;
}

.admin-overview strong {
  font-family: Outfit, Inter, sans-serif;
  font-size: 2rem;
}

.admin-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%),
    var(--card);
  padding: 18px;
}

.admin-products-panel {
  grid-column: 1 / -1;
}

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

.admin-form .full-field,
.admin-form button {
  grid-column: 1 / -1;
}

.product-admin-form {
  align-items: end;
}

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

.admin-category-list,
.admin-contact-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-product-row,
.admin-category-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.admin-contact-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.admin-contact-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-contact-row a {
  color: var(--cyan);
}

.admin-contact-row p {
  color: var(--text-soft);
  line-height: 1.6;
}

.admin-contact-row footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-product-thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.category-icon.small {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
}

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

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.dashboard-tabs {
  display: grid;
  gap: 8px;
  align-self: start;
}

.tab-button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.tab-button.active,
.tab-button:hover {
  color: var(--text);
  border-color: rgba(88, 101, 242, 0.45);
  background: var(--primary-soft);
}

.dashboard-panel {
  display: none;
  min-height: 430px;
}

.dashboard-panel.active {
  display: block;
}

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

.panel-heading h2 {
  font-size: 1.35rem;
}

.list-row,
.ticket-row,
.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.list-stack,
#ordersList,
#downloadsList,
#licensesList,
#dashboardTickets {
  display: grid;
  gap: 10px;
}

.analytics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.analytics-strip article {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.analytics-strip span {
  display: block;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.analytics-strip small {
  color: var(--text-soft);
}

.discord-panel {
  margin-top: 18px;
}

.discord-status {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.discord-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--primary-soft);
}

.discord-avatar.fallback {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

.guild-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.guild-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.guild-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--card);
}

.guild-icon.fallback {
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 800;
}

.support-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 82px;
}

.ticket-board {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
}

.ticket-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.ticket-row {
  display: grid;
  cursor: pointer;
}

.ticket-row.active {
  border-color: rgba(88, 101, 242, 0.55);
  background: var(--primary-soft);
}

.conversation {
  min-height: 420px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 14px;
}

.message {
  max-width: 78%;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text-soft);
}

.message.customer {
  justify-self: end;
  color: var(--text);
  background: var(--primary);
}

.message small {
  display: block;
  margin-top: 8px;
  opacity: 0.76;
}

.reply-form {
  margin-top: 8px;
}

.about-grid,
.blog-grid {
  padding: 16px 0 82px;
}

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

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

.blog-card .pill {
  width: fit-content;
}

.contact-methods {
  display: grid;
  align-content: start;
  gap: 10px;
}

.contact-methods a {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font-weight: 800;
}

.contact-methods a:hover {
  border-color: rgba(88, 101, 242, 0.5);
}

.legal-page {
  margin-block: clamp(48px, 8vw, 84px);
  padding: 28px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(440px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 14px;
  padding: 18px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform 220ms ease;
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-body {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
}

.cart-line {
  align-items: start;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quantity-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--card);
  cursor: pointer;
}

.coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 1.1rem;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.5);
}

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--card);
  box-shadow: var(--shadow);
  animation: toastIn 220ms ease both;
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 18px 36px;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
}

.site-footer a {
  padding: 8px 10px;
  border-radius: var(--radius);
}

.site-footer a:hover {
  color: var(--text);
  background: var(--primary-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .search-shell {
    width: min(100%, 360px);
  }

  .category-grid,
  .benefit-grid,
  .stats-grid,
  .staff-stats,
  .about-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shop-layout,
  .dashboard-auth,
  .dashboard-shell,
  .admin-layout,
  .support-layout,
  .contact-layout,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .filter-group,
  .dashboard-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ticket-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    gap: 12px;
    padding-inline: 14px;
  }

  .brand {
    justify-content: space-between;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr 72px 72px 42px 42px 42px;
    width: 100%;
  }

  .header-actions .search-shell {
    grid-column: 1 / -1;
    width: 100%;
  }

  .header-actions select {
    width: 100%;
    padding-inline: 6px;
  }

  .primary-nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: 760px;
    padding-inline: 18px;
  }

  .hero-backdrop {
    background:
      linear-gradient(180deg, rgba(15, 17, 23, 0.88), rgba(15, 17, 23, 0.52), rgba(15, 17, 23, 0.94)),
      url("assets/hero-marketplace.png") center / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.6rem);
  }

  .section-heading,
  .shop-toolbar,
  .panel-heading,
  .price-row {
    align-items: start;
    flex-direction: column;
  }

  .category-grid,
  .benefit-grid,
  .stats-grid,
  .review-grid,
  .about-grid,
  .blog-grid,
  .product-grid,
  .compact-grid,
  .analytics-strip,
  .filter-group,
  .dashboard-tabs {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 190px auto;
  }

  .product-media {
    min-height: 340px;
  }

  .product-media .product-visual {
    min-height: 300px;
  }

  .message {
    max-width: 100%;
  }

  .admin-form,
  .admin-product-row,
  .admin-staff-row,
  .staff-card,
  .profile-identity {
    grid-template-columns: 1fr;
  }

  .profile-identity {
    align-items: start;
  }

  .admin-form .full-field,
  .admin-form button {
    grid-column: auto;
  }

  .guild-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .guild-row .pill {
    width: fit-content;
    grid-column: 2;
  }

  .cart-drawer {
    width: 100vw;
  }
}

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