:root {
  color-scheme: dark;
  --ink: #f1eee6;
  --muted: #b0aa9a;
  --line: #3b3b32;
  --paper: #171914;
  --paper-strong: #202219;
  --soft: #0d0f0c;
  --accent: #9b7a35;
  --accent-strong: #c59a3b;
  --danger: #e06b55;
  --warning: #d9a441;
  --success: #88a85d;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.38);
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #171914;
  --muted: #55594f;
  --line: #d5d1bf;
  --paper: #f5f2e8;
  --paper-strong: #ffffff;
  --soft: #e9e5d8;
  --accent: #8d6d26;
  --accent-strong: #b1842c;
  --danger: #b94936;
  --warning: #9b6f16;
  --success: #547531;
  --shadow: 0 16px 44px rgba(51, 44, 25, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(13, 15, 12, 0.9), rgba(13, 15, 12, 0.96)),
    repeating-linear-gradient(135deg, rgba(112, 120, 85, 0.14) 0 2px, transparent 2px 14px),
    radial-gradient(circle at 20% 0%, rgba(128, 103, 43, 0.18), transparent 38%),
    var(--soft);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.55;
}

:root[data-theme="light"] body {
  background:
    linear-gradient(rgba(245, 242, 232, 0.9), rgba(233, 229, 216, 0.96)),
    repeating-linear-gradient(135deg, rgba(128, 103, 43, 0.12) 0 2px, transparent 2px 14px),
    var(--soft);
}

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

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

.app-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 116px;
  padding: 10px 18px;
  background: #1f2329;
  border-bottom: 1px solid #323741;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] .app-header {
  background: #f7f5ee;
  border-bottom-color: #d6d0bd;
  box-shadow: 0 8px 24px rgba(51, 44, 25, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(280px, 30vw, 520px);
  height: auto;
}

.nav {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  color: #ffe45a;
  font-weight: 800;
}

.nav a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid #48515d;
  border-radius: 7px;
  background: #343c44;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .nav a {
  border-color: #cabf9f;
  background: #ece7d8;
  color: #4a3711;
}

:root[data-theme="light"] .nav a:hover,
:root[data-theme="light"] .nav a:focus-visible {
  border-color: #a77d26;
  background: #fff4c4;
  color: #14120c;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: #ffe45a;
  background: #404954;
  color: #ffe45a;
}

.nav a.active {
  border-color: #ffe45a;
  background: #20252c;
  color: #ffe45a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 228, 90, 0.12);
}

.header-tools {
  display: grid;
  width: 60px;
  justify-items: center;
  gap: 10px;
  margin-left: auto;
}

.theme-button,
.header-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #404956;
  border-radius: 999px;
  background: #303842;
  color: #ffe45a;
  font-weight: 900;
  cursor: pointer;
}

:root[data-theme="light"] .theme-button,
:root[data-theme="light"] .header-avatar {
  border-color: #c5b98f;
  background: #fff7d8;
  color: #5c4212;
}

.header-avatar {
  border-color: #d5b84d;
  background:
    radial-gradient(circle, rgba(255, 228, 90, 0.18), transparent 52%),
    #15171a;
  font-size: 0.8rem;
}

.header-avatar.has-avatar {
  color: transparent;
  background:
    var(--customer-avatar, none) center / cover no-repeat,
    #15171a;
}

.header-avatar:hover,
.header-avatar:focus-visible {
  border-color: #ffe45a;
  box-shadow: 0 0 0 3px rgba(255, 228, 90, 0.18);
}

.top-spacer {
  height: 52px;
  background: linear-gradient(180deg, #111313, #151819);
  border-bottom: 1px solid #242a2f;
}

:root[data-theme="light"] .top-spacer {
  background: linear-gradient(180deg, #eee9dc, #e4dece);
  border-bottom-color: #d6d0bd;
}

.app-shell {
  width: min(100%, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 0;
}

.view-hidden {
  display: none !important;
}

.shop-home {
  display: grid;
  gap: 28px;
}

.shop-question {
  display: grid;
  min-height: 144px;
  place-items: center;
  border: 1px solid #333944;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #1f2329;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .shop-question,
:root[data-theme="light"] .product-card,
:root[data-theme="light"] .license-card {
  border-color: #d4c9aa;
  background: #ffffff;
  color: #171914;
}

.shop-question h1 {
  max-width: none;
  margin: 0;
  color: #f5f5f1;
  font-size: clamp(2rem, 3vw, 2.4rem);
  text-align: center;
}

:root[data-theme="light"] .shop-question h1,
:root[data-theme="light"] .product-heading h2,
:root[data-theme="light"] h1,
:root[data-theme="light"] h2 {
  color: #171914;
}

.product-heading h2 {
  margin: 10px 0 -4px;
  color: #f5f5f1;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.server-list-panel {
  margin-top: 0;
}

.product-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid #2c3440;
  border-radius: 8px;
  padding: 54px 18px 18px;
  background:
    linear-gradient(135deg, rgba(197, 154, 59, 0.12), transparent 34%),
    #1d2227;
  box-shadow: 0 15px 42px rgba(0, 0, 0, 0.42);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #ffe45a, #8b6b26);
}

.product-strip {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #303945;
  padding: 8px 18px 8px 24px;
  background: rgba(10, 12, 14, 0.5);
  color: #ffe45a;
  font-weight: 900;
}

.product-strip span {
  color: #b8c0c8;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.product-media {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
}

.product-media img,
.product-logo {
  width: 88px;
  height: 88px;
  border: 1px solid #4c5664;
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(255, 217, 74, 0.16), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    #090b0e;
  object-fit: cover;
}

.product-logo {
  display: grid;
  place-items: center;
  color: #d5c26a;
  font-size: 2rem;
  font-weight: 900;
}

.product-prices {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.product-price,
.product-popular {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #6d5b2d;
  border-radius: 6px;
  padding: 5px 9px;
  background: rgba(197, 154, 59, 0.14);
  color: #f1d36c;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.product-popular {
  min-height: 28px;
  background: #232b30;
  color: #ffe45a;
}

.product-body h3 {
  margin: 0 0 10px;
  color: #ffe45a;
  font-size: 1.55rem;
}

:root[data-theme="light"] .product-body h3,
:root[data-theme="light"] .license-card h3,
:root[data-theme="light"] .account-profile h2 {
  color: #8d6d26;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.product-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid #46515d;
  border-radius: 6px;
  padding: 5px 10px;
  background: #29313a;
  color: #e7eced;
  font-size: 0.82rem;
  font-weight: 800;
}

.product-badge.gold {
  border-color: #78622c;
  background: rgba(197, 154, 59, 0.18);
  color: #ffe45a;
}

.product-body ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #f1f1ed;
  font-weight: 650;
}

:root[data-theme="light"] .product-body ul,
:root[data-theme="light"] .account-profile p,
:root[data-theme="light"] .rich-text,
:root[data-theme="light"] .side-panel p {
  color: #303329;
}

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

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.admin-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.account-layout {
  margin-top: 48px;
  grid-template-columns: minmax(0, 1fr);
}

.account-summary {
  width: 100%;
}

.account-profile {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.account-avatar {
  display: grid;
  width: 110px;
  height: 110px;
  place-items: center;
  border-radius: 12px;
  background:
    var(--customer-avatar, none) center / cover no-repeat,
    radial-gradient(circle, rgba(255, 217, 74, 0.18), transparent 50%),
    #101318;
  color: #ffd94a;
  font-weight: 900;
}

.account-profile h2 {
  margin-bottom: 8px;
  color: #ffd94a;
  font-size: 1.6rem;
}

.account-profile p {
  color: #f1f1ed;
  font-size: 1.05rem;
  font-weight: 800;
}

.account-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.account-buttons .button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 120px),
    var(--paper);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent 120px),
    var(--paper);
}

.main-panel,
.side-panel,
.table-panel {
  padding: clamp(20px, 3vw, 30px);
}

.panel-heading {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 0;
  color: #fff8df;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: #fff8df;
  font-size: 1.25rem;
  line-height: 1.2;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 14px;
  align-items: end;
}

.form-grid.compact {
  grid-template-columns: minmax(0, 1fr) 140px;
}

.full {
  grid-column: 1 / -1;
}

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

.checkbox-label {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.download-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.download-fields .checkbox-label {
  justify-content: flex-start;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #4a4b3e;
  border-radius: 5px;
  padding: 10px 12px;
  background: #0f110d;
  color: var(--ink);
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  border-color: #c8bea1;
  background: #fffdf7;
  color: #171914;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-strong);
  outline: 3px solid rgba(197, 154, 59, 0.18);
}

input,
select {
  min-height: 46px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.button,
.table-actions button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.button.primary {
  border-color: #d3aa4b;
  background: linear-gradient(180deg, #b28a39, #745719);
  color: #14120c;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: linear-gradient(180deg, #d0a64a, #8a681f);
}

.button.secondary,
.table-actions button {
  border-color: #4f503f;
  background: #11130e;
  color: var(--ink);
}

:root[data-theme="light"] .button.secondary,
:root[data-theme="light"] .table-actions button {
  border-color: #bcb08e;
  background: #fffaf0;
  color: #171914;
}

.button.discord {
  border-color: #5865f2;
  background: #5865f2;
  color: #fff;
}

.button.danger {
  border-color: rgba(224, 107, 85, 0.65);
  background: #27110d;
  color: #ffb8aa;
}

.button.danger:hover,
.button.danger:focus-visible {
  background: #3a1711;
  color: #ffd0c7;
}

.table-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.notice {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 14px;
  background: #11130e;
  font-weight: 800;
}

:root[data-theme="light"] .notice,
:root[data-theme="light"] pre,
:root[data-theme="light"] .status {
  background: #fffdf7;
  color: #171914;
}

.notice.success {
  border-color: rgba(136, 168, 93, 0.45);
  color: var(--success);
}

.notice.error {
  border-color: rgba(224, 107, 85, 0.45);
  color: var(--danger);
}

.notice.pending {
  border-color: rgba(217, 164, 65, 0.45);
  color: var(--warning);
}

.global-notice {
  width: min(1500px, calc(100% - 42px));
  margin: 14px auto 0;
}

.json-card {
  margin-top: 24px;
}

.json-card-header,
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

pre {
  overflow: auto;
  max-width: 100%;
  margin: 0;
  border: 1px solid #474a39;
  border-radius: 5px;
  padding: 16px;
  background: #090b09;
  color: #f0e9ce;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.steps {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.steps li + li {
  margin-top: 10px;
}

.divider {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
}

.side-panel p {
  color: var(--muted);
}

.table-panel,
.info-panel {
  margin-top: 18px;
}

.info-panel {
  padding: clamp(20px, 3vw, 30px);
}

.mod-detail-view {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.mod-detail-left {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.mod-detail-left h1 {
  margin: 0;
  color: #f4f1e8;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 0.95;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.mod-detail-hero {
  display: grid;
  min-height: 320px;
  place-items: center;
  border: 1px solid #343d45;
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 228, 90, 0.14), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
    #080a0d;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.mod-detail-hero span {
  color: #d5c26a;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
}

.mod-detail-hero img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.mod-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.mod-gallery img {
  aspect-ratio: 1 / 1;
  border-color: #626b76;
}

.mod-detail-right {
  display: grid;
  gap: 18px;
}

.mod-feature-panel,
.mod-config-panel {
  margin-top: 0;
  border-radius: 8px;
}

.mod-feature-panel h2,
.mod-config-panel h2 {
  color: #f4f1e8;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.mod-feature-panel .rich-text {
  color: #f2eee2;
  font-weight: 650;
}

.rich-text {
  max-width: 820px;
  color: var(--muted);
  white-space: pre-wrap;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.image-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #4a4b3e;
  border-radius: 5px;
  object-fit: cover;
  background: var(--soft);
  filter: saturate(0.85) contrast(1.08);
}

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

.mono-input {
  font-family:
    "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #d4c89f;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  border-radius: 4px;
  padding: 4px 8px;
  background: #10120e;
  font-weight: 900;
}

.status.active {
  color: var(--success);
}

.status.revoked {
  color: var(--danger);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.license-list {
  display: grid;
  gap: 18px;
}

.license-card {
  max-width: 560px;
  border: 1px solid #333844;
  border-radius: 3px;
  padding: 24px;
  background: #2c313b;
  color: #f1f1ed;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.license-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.license-card h3 {
  margin: 0;
  color: #ffd94a;
  font-size: 1.45rem;
}

.license-card p {
  margin-bottom: 5px;
}

.mod-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid #0b0d10;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 217, 74, 0.18), transparent 45%),
    #08090b;
  color: #ffd94a;
  font-weight: 900;
}

.license-meta strong {
  color: #fff;
}

.license-meta span {
  color: #83aefc;
  font-weight: 900;
}

.ip-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.ip-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.85fr) minmax(180px, 1fr) 44px 44px;
  gap: 10px;
}

.ip-row input {
  min-height: 34px;
  border-color: #4a5363;
  background: #20252c;
  color: #fff;
}

:root[data-theme="light"] .ip-row input {
  border-color: #c3b899;
  background: #fffdf7;
  color: #171914;
}

.square-button {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid #252a32;
  border-radius: 4px;
  background: #282d36;
  color: #ffd94a;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.square-button.danger {
  color: #ff7676;
}

@media (max-width: 720px) {
  .ip-row {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
  }

  .ip-row input[data-field="server-ip"],
  .ip-row input[data-field="server-name"] {
    grid-column: 1 / -1;
  }
}

.license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.muted-note {
  color: var(--muted);
  font-weight: 800;
}

.customer-license-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.account-json {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .workspace,
  .admin-layout,
  .product-card,
  .mod-detail-view,
  .form-grid,
  .form-grid.compact,
  .customer-license-form,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .app-header,
  .json-card-header,
  .table-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-tools {
    display: flex;
    width: auto;
    margin-left: 0;
  }

  .brand-logo {
    width: min(100%, 360px);
  }

  .product-media {
    justify-items: start;
  }

  .mod-detail-left {
    position: static;
  }

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

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

  .nav a {
    min-height: 44px;
  }

  .app-shell {
    width: min(100%, calc(100% - 28px));
  }
}

/* Sneax custom interface */
body {
  background:
    linear-gradient(180deg, rgba(6, 8, 7, 0.96), rgba(15, 18, 15, 0.98)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(156, 179, 139, 0.035) 0 1px, transparent 1px 46px),
    #0a0d0b;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  padding: 12px clamp(14px, 2vw, 28px);
  border-bottom: 1px solid rgba(205, 176, 94, 0.32);
  background:
    linear-gradient(90deg, rgba(13, 17, 15, 0.98), rgba(26, 31, 27, 0.96)),
    #121611;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}

.brand {
  flex: 0 0 auto;
  min-height: 64px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(216, 184, 78, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(216, 184, 78, 0.12), transparent 32%),
    rgba(7, 10, 8, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 26px rgba(0, 0, 0, 0.28);
}

.brand-logo {
  width: clamp(230px, 22vw, 340px);
}

.nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #d7c27a;
}

.nav a {
  position: relative;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding: 8px 15px;
  background: transparent;
  color: #cbc7b7;
  box-shadow: none;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.nav a::after {
  content: "";
  position: absolute;
  inset: auto 14px 3px;
  height: 2px;
  background: transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  border-color: transparent;
  background: rgba(224, 189, 86, 0.08);
  color: #ffe45a;
  box-shadow: none;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.active::after {
  background: #ffe45a;
}

.header-tools {
  display: flex;
  width: auto;
  gap: 8px;
}

.theme-button,
.header-avatar {
  width: 38px;
  height: 38px;
  border-color: rgba(224, 189, 86, 0.52);
  background: #151a17;
}

.top-spacer {
  height: 10px;
  border-bottom: 1px solid rgba(205, 176, 94, 0.22);
  background:
    linear-gradient(90deg, transparent, rgba(216, 184, 78, 0.72) 18%, rgba(113, 148, 93, 0.4) 50%, rgba(216, 184, 78, 0.72) 82%, transparent),
    repeating-linear-gradient(90deg, rgba(205, 176, 94, 0.16) 0 2px, transparent 2px 22px),
    #070908;
}

.app-shell {
  width: min(1500px, calc(100% - 42px));
  padding: clamp(24px, 4vw, 54px) 0;
}

.shop-home {
  gap: 20px;
}

.shop-question {
  min-height: 86px;
  place-items: start;
  border-radius: 8px;
  padding: 20px 24px;
  background:
    linear-gradient(90deg, rgba(224, 189, 86, 0.14), transparent 34%),
    #121711;
}

.shop-question h1 {
  text-align: left;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.product-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 189, 86, 0.42), transparent);
}

.product-list {
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-card {
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  min-height: 188px;
  border-color: rgba(105, 119, 103, 0.75);
  border-radius: 8px;
  padding: 18px 20px 18px 24px;
  background:
    linear-gradient(90deg, rgba(38, 52, 44, 0.78), rgba(20, 25, 22, 0.96)),
    #151a17;
}

.product-card::before {
  width: 3px;
  background: #6f8f69;
}

.product-strip {
  position: static;
  grid-column: 1 / -1;
  order: 3;
  min-height: 34px;
  border: 1px solid rgba(205, 176, 94, 0.28);
  border-radius: 6px;
  padding: 7px 12px;
  background: rgba(6, 8, 7, 0.38);
}

.product-media {
  grid-row: 1 / span 2;
  gap: 8px;
}

.product-media img,
.product-logo {
  width: 118px;
  height: 118px;
  border-color: rgba(205, 176, 94, 0.48);
  background:
    linear-gradient(135deg, rgba(205, 176, 94, 0.14), transparent 55%),
    #080a09;
}

.product-prices {
  justify-items: stretch;
  width: 100%;
}

.product-price,
.product-popular {
  width: 100%;
  border-radius: 4px;
  background: rgba(6, 8, 7, 0.48);
  color: #e5d28c;
}

.product-body h3 {
  color: #f3eac2;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.product-badge {
  border-color: rgba(117, 134, 115, 0.75);
  background: rgba(46, 62, 54, 0.78);
  color: #dbe4d3;
}

.product-badge.gold {
  border-color: rgba(205, 176, 94, 0.55);
  background: rgba(205, 176, 94, 0.12);
}

.product-body ul {
  max-width: 780px;
  color: #d8d8cf;
}

.button.primary {
  background: linear-gradient(180deg, #d2b05c, #8a6924);
}

.button.secondary,
.table-actions button {
  border-color: rgba(105, 119, 103, 0.84);
  background: rgba(11, 14, 12, 0.72);
}

.panel {
  border-color: rgba(105, 119, 103, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(40, 52, 43, 0.55), rgba(15, 18, 15, 0.96)),
    #111510;
}

.table-panel,
.main-panel,
.side-panel,
.info-panel {
  padding: clamp(18px, 2.4vw, 28px);
}

.server-list-panel {
  border-left: 3px solid #6f8f69;
}

.account-layout {
  margin-top: 0;
}

.account-profile {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
}

.account-avatar {
  width: 82px;
  height: 82px;
  border-radius: 8px;
}

.mod-detail-view {
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  max-width: 1320px;
  gap: 24px;
}

.mod-detail-left {
  position: static;
  border: 1px solid rgba(105, 119, 103, 0.76);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(40, 52, 43, 0.55), rgba(15, 18, 15, 0.96)),
    #111510;
}

.mod-detail-left h1 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  text-decoration: none;
}

.mod-detail-hero {
  min-height: 260px;
  border-color: rgba(205, 176, 94, 0.38);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, rgba(205, 176, 94, 0.16), transparent),
    #090c0a;
}

.mod-detail-hero img {
  min-height: 260px;
}

.mod-detail-right {
  gap: 14px;
}

.mod-feature-panel,
.mod-config-panel {
  border-left: 3px solid #6f8f69;
}

.mod-feature-panel h2,
.mod-config-panel h2 {
  text-decoration: none;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
}

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

@media (max-width: 900px) {
  .app-header {
    position: static;
  }

  .nav {
    justify-content: stretch;
  }

  .nav a {
    justify-content: flex-start;
  }

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

  .product-media {
    grid-row: auto;
    justify-items: start;
  }

  .product-strip {
    order: initial;
  }
}
