:root {
  color-scheme: dark;
  --bg: #111419;
  --panel: #1a1f27;
  --line: #303842;
  --ink: #f3f7fb;
  --muted: #acb9c8;
  --accent: #efb4b9;
  --accent-border: var(--red);
  --accent-surface: #302127;
  --red: #ff4d58;
  --red-dark: #d72939;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --heading: "Barlow Condensed", "Arial Narrow", Impact, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 1rem/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  color: var(--ink); background: #222b35; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  padding: .53rem .85rem; font-weight: 650; text-align: center;
}
button:hover, .button:hover { border-color: var(--accent-border); }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.primary { background: var(--red-dark); color: white; border-color: var(--red); }
.primary:hover { background: #b71f31; }
.quiet { background: transparent; }
.danger { color: #ff9399; }
.wrap { margin-inline: clamp(.75rem, 2vw, 2rem); }
.top { background: #14181e; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 76px; display: flex; align-items: center; gap: clamp(1rem, 4vw, 3.5rem); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
.brand b { color: var(--red); }
.brand-icon { display: grid; place-items: center; width: 36px; height: 38px; border: 1px solid var(--red); color: var(--red); border-radius: 4px; font-size: 1.35rem; background: #261a21; }
#navigation { display: flex; gap: 1.4rem; }
#navigation a { padding-block: .6rem; color: var(--muted); border-bottom: 2px solid transparent; }
#navigation a[aria-current="page"] { color: var(--ink); border-color: var(--red); }
#identity { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; margin-top: 1.6rem;
  min-height: 330px; padding: clamp(1.5rem, 6vw, 4rem); border: 1px solid #3c404a; border-radius: 10px;
  background: linear-gradient(112deg, #211b22 12%, #161c24 59%, #203848 100%);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: repeating-linear-gradient(133deg, transparent 0 46px, #a4d5ef17 47px 48px, transparent 49px 56px);
  mask-image: linear-gradient(to left, #000 0%, transparent 73%);
}
.hero::after {
  content: "W"; position: absolute; right: 4%; bottom: -48%; color: #badcf514; z-index: -1;
  font: 900 clamp(230px, 49vw, 530px)/1 var(--heading); transform: skew(-9deg);
}
.eyebrow { color: #f88e95; font-weight: 800; letter-spacing: .15em; font-size: .88rem; text-transform: uppercase; }
h1,h2,h3,p { margin: 0; }
h1 { font: 900 clamp(2.6rem, 7.8vw, 5.5rem)/.99 var(--heading); text-transform: uppercase; letter-spacing: -.025em; }
h1 span { color: var(--accent); }
.hero p { margin-top: 1rem; max-width: 34rem; color: #d1dbe7; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.035em; line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.25; }
main { min-height: 68vh; }
.section { margin-block: 2rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-head p { margin-top: .35rem; }
.muted, small { color: var(--muted); }
small { font-size: .85rem; }
.accent { color: var(--accent); }
.price, .cart-units { color: var(--red); }
.price { font-weight: 800; white-space: nowrap; }
.server-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.server-chip { color: #dce9f3; background: #131820ba; border: 1px solid #425264; padding: .35rem .65rem; border-radius: 5px; font-size: .88rem; }
.server-chip .dot { display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: #738293; }
.server-chip .live { background: #7de6ba; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)) minmax(200px, 1.5fr); gap: .75rem; margin-bottom: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: .85rem; }
.card, .panel, .empty {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1rem;
}
.card { min-height: 195px; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; border-top: 2px solid var(--accent-border); }
.card.vip { border-top-color: var(--red); }
.card p { color: #c0ccd8; white-space: pre-line; overflow-wrap: anywhere; }
.card-foot { display: flex; flex-wrap: wrap; width: 100%; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .3rem; }
.empty { grid-column: 1/-1; border-style: dashed; color: var(--muted); padding: 1.5rem; }
.stack { display: grid; gap: .85rem; }
.form { display: grid; gap: .9rem; }
.form .actions { margin-top: .15rem; }
.actions, .row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.row { justify-content: space-between; }
label { display: grid; gap: .26rem; font-size: .92rem; }
label.check { display: flex; flex-direction: row; align-items: center; }
input,select,textarea { width: 100%; min-height: 44px; color: var(--ink); background: #12171e; border: 1px solid #465464; border-radius: 5px; padding: .5rem .7rem; }
input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--red); }
textarea { min-height: 85px; resize: vertical; }
select[multiple] { min-height: 9rem; padding: .25rem; }
option { padding: .15rem; }
.list { display: grid; gap: .55rem; margin-top: .75rem; }
.list-row { padding: .6rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.catalog-order-card { padding: .75rem; border: 1px solid var(--line); border-radius: .5rem; overflow-wrap: anywhere; }
.catalog-order-card .row:last-child { border-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem; align-items: start; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin: .9rem 0; }
.admin-tabs .selected { border-color: var(--accent-border); color: var(--accent); }
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 0 1.25rem; }
.plugin-grid .check { min-height: 44px; cursor: pointer; }
.plugin-grid input[type="checkbox"] { flex-shrink: 0; }
.admin-server-filter { max-width: 24rem; margin-bottom: 1rem; }
.pill { display: inline-block; font-size: .84rem; padding: .22rem .52rem; background: #27323e; color: #d4e3f2; border-radius: 5px; }
.token-box { word-break: break-all; color: var(--accent); user-select: all; }
.footer { display: flex; gap: 1rem; justify-content: space-between; margin-top: 2rem; padding: 1.2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
.notice { position: fixed; z-index: 5; bottom: 1rem; right: 1rem; left: auto; max-width: min(34rem, calc(100% - 2rem)); padding: .8rem 1rem; background: #202a35; border: 1px solid var(--accent-border); border-radius: 7px; box-shadow: 0 6px 40px #0008; }
.notice.error { border-color: var(--red); }
dialog { width: min(460px, 100% - 2rem); padding: 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
dialog::backdrop { background: #090c10c9; }
@media (max-width: 630px) {
  .top-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    padding-block: .65rem; gap: .4rem clamp(.4rem, 2vw, .7rem);
  }
  .top-inner .brand {
    grid-column: 1; grid-row: 1; min-width: 0; gap: .45rem;
    font-size: clamp(.73rem, 3.25vw, 1rem); white-space: normal;
  }
  .top-inner .brand-icon {
    flex: none; width: clamp(26px, 8vw, 36px); height: clamp(28px, 8.5vw, 38px);
  }
  #navigation { grid-column: 1 / -1; grid-row: 2; gap: 1rem; }
  #identity { grid-column: 2; grid-row: 1; gap: .35rem; }
  #identity .price { font-size: clamp(.79rem, 3.6vw, 1rem); white-space: nowrap; }
  #identity button, #identity .button {
    padding-inline: clamp(.42rem, 2vw, .85rem);
    font-size: clamp(.76rem, 3.35vw, 1rem);
    white-space: nowrap;
  }
  .hero { min-height: 270px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:last-child { grid-column: 1/-1; }
}

#navigation { flex-wrap: wrap; row-gap: .15rem; }

.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .7rem; }
.server-choice { display: flex; flex-direction: column; gap: .4rem; }
.server-choice .server-card { flex: 1; }
.server-card { min-height: 5.4rem; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; text-align: left; }
.server-card.selected, .catalog-tabs [aria-pressed="true"] { border-color: var(--accent-border); background: var(--accent-surface); color: var(--ink); }
.server-status { color: var(--muted); font-size: .85rem; }
.server-status .dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #657284; margin-right: .4rem; }
.server-status .dot.live { background: #73daba; }
.catalog-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.discord-section { margin-top: 2rem; }
.discord-card { border: 1px solid var(--line); border-top: 2px solid var(--accent-border); border-radius: .75rem; overflow: hidden; background: var(--panel); }
.discord-header { padding: .85rem 1rem; background: var(--accent-surface); color: var(--ink); }
.discord-header h2 { font: 800 1.2rem/1.3 var(--body); }
.discord-online { font-size: .86rem; }
.discord-online::before { content: ''; display: inline-block; margin-right: .4rem; width: .5rem; height: .5rem; border-radius: 50%; background: #8ce9c4; }
.discord-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; padding: 1rem; }
.discord-list { min-width: 0; border: 1px solid var(--line); border-radius: .5rem; padding: .75rem; }
.discord-list ul { list-style: none; margin: .4rem 0 0; padding: 0; max-height: 16rem; overflow: auto; }
.discord-list li { padding: .35rem .2rem; overflow-wrap: anywhere; }
.discord-footer { padding: .9rem 1rem; }
.discord-join { background: var(--red-dark); border-color: var(--accent-border); }
.payment-error { color: #ff9399; }
.uploaded-preview { display: block; max-width: 100%; max-height: 28rem; object-fit: contain; border-radius: .45rem; }
.image-reset[hidden] { display: none; }
.steam-copy { overflow-wrap: anywhere; text-align: left; }
.item-picker { width: min(53rem, calc(100vw - 1.4rem)); max-width: unset; max-height: 87dvh; padding: 1rem; color: inherit; }
.item-picker[open] { display: grid; gap: .65rem; }
.item-picker::backdrop { background: #060b12c9; }
.picker-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr)); gap: .55rem; }
.picker-results .empty { grid-column: 1 / -1; }
.picker-tile { min-width: 0; padding: .6rem .45rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .25rem; text-align: center; overflow-wrap: anywhere; }
.picker-tile small { font-size: .72rem; line-height: 1.23; }
.item-icon { display: inline-grid; flex: none; place-items: center; width: 2.3rem; height: 2.3rem; background: #26313b; border-radius: .42rem; }
.item-icon-large { width: 4.1rem; height: 4.1rem; }
.item-icon > * { grid-area: 1 / 1; }
.item-icon img { opacity: 0; object-fit: contain; width: 92%; height: 92%; }
.item-icon.has-image img { opacity: 1; }
.item-icon.has-image .item-icon-fallback { visibility: hidden; }
.item-icon-fallback { color: #9faebd; font-size: 1.35rem; }
.picked-item { display: grid; grid-template-columns: auto minmax(0,1fr) 4.7rem auto; align-items: center; gap: .45rem; }
.picked-item strong, .picked-item small { display: block; overflow-wrap: anywhere; }
.picked-item input { min-width: 0; }
@media (max-width: 480px) {
  .picker-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picked-item { grid-template-columns: auto minmax(0,1fr) 4rem; }
  .picked-item button { grid-column: 2 / -1; justify-self: end; }
}

.payment-qr { display: block; width: min(13rem, 100%); height: auto; aspect-ratio: 1; border-radius: .5rem; background: white; }
.card { position: relative; }
.card { min-width: 0; }
.card h3 { overflow-wrap: anywhere; }
.card-art { width: 100%; display: grid; place-items: center; aspect-ratio: 1.6;
  background: radial-gradient(ellipse at 50% 68%, #2f4350, #141c24 76%); border-radius: .5rem; }
.card-art .item-icon { width: 100%; height: 100%; background: transparent; }
.card-art .item-icon img { width: 88%; height: 88%; min-height: 0; min-width: 0; }
.card:has(.card-art) .product-open { z-index: 1; }
.card-foot .primary { z-index: 2; }
@media (max-width: 630px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(8rem, (100% - .55rem) / 2)), 1fr)); gap: .55rem; }
  .grid .card { padding: .65rem; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot button { padding-inline: .25rem; }
}
.product-open { position: absolute; inset: 0; background: transparent; border: 0; }
.product-open:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.card-foot .primary { position: relative; }
.product-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.product-preview { max-height: 88vh; max-height: 88dvh; padding: clamp(.85rem, 3vw, 1.5rem); }
.product-preview[open] { gap: .75rem; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.preview-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .3rem; }
.privilege-kits { display: grid; gap: 1.25rem; }
.privilege-kit { border: 1px solid var(--line); border-radius: 8px; background: #10151d; }
.privilege-kit summary { padding: .75rem .9rem; cursor: pointer; font-weight: 700; color: var(--accent); overflow-wrap: anywhere; }
.privilege-kit[open] summary { border-bottom: 1px solid var(--line); }
.privilege-kit > section { padding: .8rem; }
.product-description { white-space: pre-line; overflow-wrap: anywhere; }
.duration-option[aria-pressed="true"] { border-color: var(--accent-border); color: var(--accent); background: var(--accent-surface); }
.inventory-section { background: #10151d; border: 1px solid var(--line); border-radius: 8px; padding: .7rem; }
.inventory-section h4 { margin: 0 0 .5rem; color: var(--accent); font-size: .9rem; }
.inventory-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .32rem; }
.inventory-slot { position: relative; display: grid; gap: .2rem; justify-items: center; align-content: center;
  min-width: 0; min-height: clamp(2.1rem, 9vw, 4.4rem); padding: .2rem; background: #1d2733; border: 1px solid #39495a; border-radius: 4px; }
.inventory-slot .item-icon { max-width: 100%; width: 2.15rem; height: auto; aspect-ratio: 1; }
.inventory-slot.vacant { background: #161d26; border-color: #2b3542; }
.inventory-slot small { display: block; width: 100%; font-size: .67rem; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inventory-slot strong { font-size: clamp(.61rem, 2vw, .83rem); overflow-wrap: anywhere; color: var(--accent); }
.preview-footer { border-top: 1px solid var(--line); padding-top: .75rem; }

.cart-quantity { display: inline-flex; align-items: center; gap: .35rem; }
.cart-quantity button { inline-size: 2.5rem; min-block-size: 2.5rem; padding-inline: 0; }
.cart-quantity output { min-inline-size: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.cart-units { display: block; margin-top: .25rem; }
.card-art, .offer-preview-art { position: relative; }
.item-quantity-badge { position: absolute; right: .45rem; bottom: .45rem; pointer-events: none;
  padding: .23rem .46rem; border-radius: .35rem; background: #111820ed; color: #fff;
  border: 1px solid #ffffff3b; font-size: .94rem; font-weight: 750; line-height: 1.1; }
@media (max-width: 630px) {
  .cart-row > .actions { flex-wrap: wrap; justify-content: flex-start; }
}

:root { --bg: #0b0b0d; --panel: #17171b; --line: #343039; --red: #ef4449; --red-dark: #c42e35; }
.top { background: #111113; }
.hero {
  min-height: clamp(220px, 26vw, 350px);
  padding: clamp(1.6rem, 5vw, 3.35rem) clamp(.9rem, 7vw, 6.5rem);
  justify-content: center;
  text-align: center;
  border-color: #32262a;
  background: #101013;
}
.hero::before, .hero::after { content: none; }
.hero > div { width: 100%; }
.hero h1 {
  display: block; margin: .65rem 0 0; padding-top: .75rem;
  color: var(--red); border-top: 1px solid #67282e;
  font: 800 clamp(1.65rem, 7.6vw, 6.8rem)/1.08 var(--body);
  letter-spacing: .065em; overflow-wrap: anywhere;
}
.hero .hero-kicker, .hero .hero-motto { max-width: none; margin: 0; color: #b9878b; text-transform: uppercase; }
.hero .hero-kicker { font-size: clamp(.62rem, 1.24vw, .92rem); letter-spacing: .42em; }
.hero .hero-motto {
  margin-top: .42rem; padding: .35rem 0 .7rem; border-bottom: 1px solid #67282e;
  font-size: clamp(.57rem, 1.25vw, .95rem); letter-spacing: .28em;
}
.hero p:not(.hero-kicker):not(.hero-motto) {
  max-width: 35rem; margin: .82rem auto 0; color: var(--muted);
  font-size: clamp(.78rem, 1.18vw, .96rem);
}
.server-card.selected { box-shadow: inset 3px 0 0 var(--accent-border); }
.catalog-tabs [aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--accent-border); }
.plugin-version { display: inline-block; margin-inline-start: .45rem; color: var(--muted); }

.checkout-panel { width: min(100%, 42rem); }
.checkout-form, .checkout-amount { display: grid; gap: .8rem; }
.checkout-amount { grid-template-columns: minmax(7.5rem, .8fr) minmax(0, 1.2fr); align-items: end; }
.checkout-amount label { min-width: 0; }
.checkout-amount input { font-size: 1rem; min-height: 44px; }
.checkout-presets, .checkout-methods { display: grid; gap: .45rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.checkout-presets button { padding-inline: .25rem; min-width: 0; white-space: nowrap; font-size: .9rem; }
.checkout-methods { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.checkout-option { justify-content: start; text-align: left; background: transparent; min-height: 58px; }
.checkout-option span { display: grid; }
.checkout-option small { color: var(--muted); font-weight: 500; }
.checkout-option[aria-pressed="true"] { border-color: var(--accent-border); background: var(--accent-surface); }
.checkout-method, .checkout-submit p { margin: 0; }
.checkout-submit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .65rem; }
.checkout-submit button { min-height: 44px; }
.checkout-submit button:disabled { cursor: default; }
@media (max-width: 620px) {
  .checkout-amount, .checkout-submit { grid-template-columns: 1fr; }
  .checkout-submit button { width: 100%; }
}

.invoice-dialog {
  width: min(34rem, calc(100% - 1.25rem));
  max-height: calc(100dvh - 1.25rem);
  overflow: auto;
  overscroll-behavior: contain;
}
.invoice-dialog[open] { display: grid; gap: .75rem; }
.invoice-dialog h3, .invoice-dialog p { margin: 0; }
.invoice-dialog .token-box { overflow-wrap: anywhere; }
.invoice-dialog .payment-qr { margin-inline: auto; }
.invoice-dialog .actions { flex-wrap: wrap; }
.invoice-heading { flex-wrap: nowrap; }

.legal-footer { align-items: baseline; flex-wrap: wrap; }
.legal-footer > span { white-space: nowrap; }
.legal-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; }
.legal-links a, .legal-inline a, .legal-document a, .legal-footer > a {
  color: var(--ink); text-decoration: underline; text-underline-offset: .19em;
}
.legal-links a:hover, .legal-inline a:hover, .legal-document a:hover { color: var(--red); }
.legal-links a[aria-current="page"] { font-weight: 750; }
.legal-main { max-width: 64rem; margin-inline: auto; padding: 1.5rem clamp(.75rem, 4vw, 2rem); }
.legal-top .button { margin-inline-start: auto; }
.legal-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem; margin-block-end: .85rem; }
.legal-nav .legal-links { font-size: .9rem; }
.legal-document { max-width: 49rem; padding: clamp(1rem, 4vw, 2.4rem); }
.legal-document h1 { font: 850 clamp(1.55rem, 5vw, 2.6rem)/1.12 var(--body); margin: 0; }
.legal-document h2 { font: 760 1.08rem/1.4 var(--body); margin: 1.35rem 0 .35rem; }
.legal-document p { margin: .45rem 0; overflow-wrap: break-word; }
.legal-inline { color: var(--muted); font-size: .875rem; margin: 0; }
@media (max-width: 630px) { .legal-top .button { grid-column: 2; grid-row: 1; } }
