:root {
  --bg: #0f0f10;
  --panel: rgba(22, 22, 23, 0.96);
  --panel-soft: rgba(28, 28, 30, 0.88);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f7f5;
  --muted: #b7b7b2;
  --accent: #d9d9d3;
  --accent-strong: #ffffff;
  --ok: #e8e8e3;
  --warn: #cccccc;
  --danger: #f2f2f2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, #080808 0%, #101010 48%, #0a0a0a 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.72));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #050505;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #cfcfcf);
  box-shadow: var(--shadow);
}

.logo-image {
  object-fit: contain;
  padding: 4px;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 0.85rem;
}

.brand strong {
  font-size: 1.04rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cart-launcher {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cart-launcher:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.cart-launcher.has-items {
  border-color: rgba(216, 207, 176, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.cart-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.cart-icon svg {
  width: 100%;
  height: 100%;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #d8d8d8);
  color: #080808;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.cart-badge.is-empty {
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-link {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.nav-link.active {
  color: #080808;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.main {
  padding: 34px 0 60px;
  flex: 1 0 auto;
}

.site-footer {
  padding: 0 0 28px;
}

.site-footer .shell {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.server-showcase {
  margin-bottom: 24px;
  padding: 12px 0 4px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.server-showcase-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  text-align: center;
  justify-items: center;
}

.server-showcase-head h3 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.server-showcase-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  display: flex;
  justify-content: center;
}

.server-showcase-track {
  display: flex;
  gap: 16px;
  width: max-content;
  align-items: center;
  animation: showcase-scroll 28s linear infinite;
}

.server-showcase-track.single {
  width: 100%;
  animation: none;
  justify-content: center;
  flex-wrap: wrap;
}

.server-showcase-card {
  min-width: 148px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 24px;
  background: transparent;
  border: 0;
  text-align: center;
}

.server-showcase-card strong {
  max-width: 110px;
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.server-showcase-logo {
  width: 112px;
  height: 112px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  overflow: hidden;
  font-weight: 700;
  color: var(--text);
  box-shadow: none;
}

.server-showcase-logo.image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.server-showcase-logo.small {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.server-showcase-inline {
  flex: 0 0 auto;
}

.server-showcase-empty {
  padding: 14px 0 2px;
}

@keyframes showcase-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.site-footer p {
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.hero {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 30px 0;
}

.hero-card,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  width: min(980px, 100%);
  text-align: center;
  padding: 54px 34px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.hero-logo {
  width: 118px;
  height: 118px;
  margin: 0 auto 24px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffffff, #cfcfcf);
  color: #080808;
  font-size: 2.2rem;
  font-weight: 700;
}

.hero-logo-image {
  width: min(220px, 60vw);
  height: auto;
  display: block;
  margin: 0 auto 26px;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.35));
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.title {
  font-family: "Cinzel", serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.03;
  letter-spacing: 0.02em;
}

.lead,
.section-copy,
.helper,
.empty,
.note {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  font-size: 1.08rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero-meta,
.meta-line,
.actions,
.field-actions,
.stats-row,
.grid,
.nav-stack {
  display: grid;
  gap: 18px;
}

.hero-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.eyebrow,
.mods-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: #d8cfb0;
}

.eyebrow::before,
.mods-panel-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(216, 207, 176, 0.7);
}

.pill,
.meta-chip,
.price-tag,
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
}

.pill,
.meta-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.meta-chip-update {
  background: rgba(216, 207, 176, 0.16);
  border-color: rgba(216, 207, 176, 0.3);
  color: #f4ebcb;
  font-weight: 700;
}

.grid.two {
  grid-template-columns: 1.2fr 0.8fr;
}

.grid.admin {
  grid-template-columns: 1.1fr 0.9fr;
}

.grid.admin-users {
  grid-template-columns: 0.72fr 1.28fr;
}

.grid.auth {
  grid-template-columns: 1fr 1fr;
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.mods-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.7fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}

.mods-hero-copy,
.mods-hero-panel {
  position: relative;
  overflow: hidden;
}

.mods-hero-copy {
  padding: 34px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(216, 207, 176, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(17, 17, 18, 0.94);
  box-shadow: var(--shadow);
}

.mods-title {
  margin-top: 18px;
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.08;
}

.mods-lead {
  margin-top: 18px;
  max-width: 760px;
}

.mods-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.mods-panel-stat {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mods-panel-stat strong {
  font-size: 1.02rem;
}

.mods-panel-stat span {
  color: var(--muted);
  line-height: 1.65;
}

.mods-catalog {
  padding: 26px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(15, 15, 16, 0.96);
  box-shadow: var(--shadow);
}

.mods-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.mods-list {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  align-items: stretch;
}

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

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

.user-mods-sidebar,
.user-mod-detail {
  min-height: 720px;
}

.user-mods-sidebar {
  position: sticky;
  top: 96px;
}

.user-purchase-button {
  width: 100%;
  text-align: left;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.user-purchase-button:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 207, 176, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.user-purchase-button.active {
  border-color: rgba(216, 207, 176, 0.4);
  background:
    linear-gradient(180deg, rgba(216, 207, 176, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
}

.user-purchase-top,
.user-detail-top,
.user-detail-actions,
.detail-server-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.user-purchase-copy,
.user-detail-copy {
  display: grid;
  gap: 6px;
}

.user-purchase-meta,
.user-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-detail-shell {
  display: grid;
  gap: 22px;
}

.user-detail-cover {
  min-height: 0;
  aspect-ratio: 1.08 / 1;
  max-width: 760px;
  width: 100%;
  justify-self: center;
  border-radius: 26px;
  padding: 24px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.52)),
    linear-gradient(135deg, rgba(216, 207, 176, 0.24), rgba(255, 255, 255, 0.03)),
    #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.user-detail-cover.image {
  background-color: #0d0d0e;
}

.user-detail-cover.image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 18px;
  opacity: 0.4;
}

.user-detail-cover-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.user-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-detail-tab {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-detail-tab.active {
  background: linear-gradient(135deg, #ffffff, #d8d8d8);
  color: #080808;
}

.user-detail-panel {
  display: grid;
  gap: 18px;
}

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

.detail-info-card,
.detail-server-box,
.detail-faq-item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-info-card-wide {
  max-width: 820px;
  width: 100%;
  justify-self: center;
}

.pending-proof-card {
  display: grid;
  gap: 14px;
}

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

.detail-server-box form {
  margin-top: 16px;
}

.detail-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
}

.card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-visit-inline {
  min-width: 170px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(254, 209, 102, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 2px;
  text-align: right;
  flex-shrink: 0;
}

.admin-visit-inline-label,
.admin-visit-inline-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-visit-inline strong {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.button-nav {
  background: #ffffff;
  color: #080808;
  border-radius: 999px;
  padding: 12px 18px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #080808;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.button-danger {
  background: rgba(255, 140, 125, 0.14);
  color: var(--danger);
  border: 1px solid rgba(255, 140, 125, 0.2);
}

.button-paypal {
  background: linear-gradient(135deg, #ffffff, #d8d8d8);
  color: #080808;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
}

.checkbox-row {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field-full {
  grid-column: 1 / -1;
}

.list {
  display: grid;
  gap: 16px;
}

.item {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mod-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  padding: 18px;
  min-width: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(18, 18, 19, 0.95);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.mod-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 207, 176, 0.34);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.32);
}

.mod-card-link {
  transition: color 0.18s ease, opacity 0.18s ease;
}

.mod-card-link:hover {
  color: var(--accent);
}

.list-button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.list-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-users-sidebar {
  align-self: start;
}

.admin-users-detail {
  min-height: 100%;
}

.list-button.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.search-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.item-cover {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, #121212, #1a1a1a);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.item-cover.image {
  background-color: #050505;
  position: relative;
  overflow: hidden;
}

.item-cover-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.item-cover.image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.24));
}

.item-cover-label {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: absolute;
  right: 14px;
  top: 14px;
}

.item-discount-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 9px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 199, 103, 0.95), rgba(198, 151, 48, 0.95));
  color: #15120a;
  border: 1px solid rgba(255, 232, 177, 0.55);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-discount-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(21, 18, 10, 0.78);
  box-shadow: inset 0 0 0 2px rgba(255, 240, 196, 0.28);
}

.item-top,
.server-item,
.session-box {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.price-tag {
  min-width: 124px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ffffff, #d9d9d9);
  color: #080808;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mod-copy {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.mod-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
}

.mod-title-row > :first-child,
.mod-card h3,
.mod-card-link {
  min-width: 0;
}

.mod-card h3 {
  overflow-wrap: anywhere;
}

.mod-title-row .price-tag {
  min-width: 0;
  max-width: 100%;
  justify-self: start;
  align-self: start;
}

.mod-description {
  min-height: 76px;
}

.mod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.status-pending {
  background: rgba(255, 255, 255, 0.08);
  color: #d7d7d7;
}

.status-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.mod-card-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: auto;
  align-self: end;
}

.mod-card-actions .button {
  min-height: 56px;
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  line-height: 1.2;
}

.mod-card-actions .button:last-child {
  grid-column: 1 / -1;
}

.mod-public-detail {
  max-width: 920px;
  margin: 0 auto;
}

.mod-public-actions {
  justify-content: center;
}

.detail-back-link {
  width: fit-content;
}

.status-banner.ok {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.status-banner.warn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.server-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.server-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.server-copy strong,
.server-copy span {
  display: block;
}

.server-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-server-edit {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(96px, 120px) auto;
  align-items: end;
  gap: 10px;
  width: min(100%, 520px);
}

.admin-server-edit .field {
  gap: 6px;
}

.admin-server-edit .field input {
  padding: 11px 12px;
  border-radius: 12px;
}

.admin-server-edit .button {
  min-height: 43px;
  white-space: nowrap;
}

.mini-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.message-box {
  margin-top: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  z-index: 60;
}

.modal {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 24px));
  z-index: 70;
}

.modal-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(16, 16, 17, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.auth-register-form {
  gap: 16px;
}

.modal-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.modal-tab {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-tab.active {
  background: linear-gradient(135deg, #ffffff, #d8d8d8);
  color: #080808;
}

.modal-panel {
  display: none;
}

.modal-panel.active {
  display: block;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-row input {
  margin-top: 3px;
}

.auth-consent-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.auth-consent-row {
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 14px;
}

.auth-consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 0;
  flex: 0 0 auto;
}

.auth-consent-row span {
  display: block;
  max-width: 320px;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .mods-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .grid.two,
  .grid.admin,
  .grid.auth,
  .hero-meta,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .user-stats-grid,
  .user-workspace,
  .detail-info-grid {
    grid-template-columns: 1fr;
  }

  .mod-card-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .item-top,
  .server-item,
  .session-box {
    display: block;
  }

  .admin-visit-inline {
    width: 100%;
    text-align: left;
  }

  .nav-links {
    margin-top: 16px;
  }

  .button {
    width: 100%;
  }

  .mods-hero-copy,
  .mods-catalog {
    padding: 22px;
  }

  .user-mods-sidebar {
    position: static;
  }

  .mod-title-row {
    display: grid;
  }

  .mods-hero-pills {
    display: grid;
  }

  .user-purchase-top,
  .user-detail-top,
  .user-detail-actions,
  .detail-server-item {
    display: grid;
  }

  .admin-server-edit {
    grid-template-columns: 1fr;
    width: 100%;
  }
}
