/*
 * Agony — visual port of the old valkyriecain-dayz-ecommerce (Next.js + MUI dark theme).
 * Palette = MUI createTheme({ mode: dark, primary: #FF0000, secondary: #4c00ff }).
 */
:root {
  --primary: #ff0000;
  --primary-dark: #b20000;
  --primary-light: #ff3333;
  --secondary: #4c00ff;
  --secondary-dark: #3500b2;
  --secondary-light: #6f33ff;
  --bg: #121212;
  --paper: #121212;
  --paper-overlay: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .05));
  --text: #fff;
  --muted: rgba(255, 255, 255, .7);
  --faint: rgba(255, 255, 255, .5);
  --divider: rgba(255, 255, 255, .12);
  --ok: #66bb6a;
  --warn: #ffa726;
  --error: #ff1744;
  --font: 'Roboto', 'Helvetica', 'Arial', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --shadow-1: 0 2px 1px -1px rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 1px 3px 0 rgba(0, 0, 0, .12);
  --shadow-2: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
  --shadow-6: 0 3px 5px -1px rgba(0, 0, 0, .2), 0 6px 10px 0 rgba(0, 0, 0, .14), 0 1px 18px 0 rgba(0, 0, 0, .12);
  --shadow-8: 0 5px 5px -3px rgba(0, 0, 0, .2), 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12);

  /* Aliases still used by the admin views */
  --crimson: var(--primary);
  --crimson-hi: var(--primary-light);
  --line: var(--divider);
  --line-strong: rgba(255, 255, 255, .23);
  --surface: rgba(255, 255, 255, .05);
  --surface-2: rgba(255, 255, 255, .08);
  color-scheme: dark;
}

* { box-sizing: border-box; padding: 0; margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--font);
  letter-spacing: .00938em;
  overscroll-behavior: contain;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.red { color: var(--primary); }
.stack > * + * { margin-top: var(--gap, 1rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }

/* MUI typography variants */
.t-h2 { font-size: 3.75rem; font-weight: 300; line-height: 1.2; letter-spacing: -.00833em; }
.t-h3 { font-size: 3rem; line-height: 1.167; }
.t-h4 { font-size: 2.125rem; line-height: 1.235; letter-spacing: .00735em; }
.t-h5 { font-size: 1.5rem; line-height: 1.334; }
.t-h6 { font-size: 1.25rem; font-weight: 500; line-height: 1.6; letter-spacing: .0075em; }
.t-body2 { font-size: .875rem; line-height: 1.43; letter-spacing: .01071em; }
.gutter { margin-bottom: .35em; }
@media (max-width: 599px) { .t-h3 { font-size: 2.25rem; } .t-h2 { font-size: 2.6rem; } .t-h4 { font-size: 1.75rem; } }

/* MUI containers */
.wrap, .container { width: 100%; margin: 0 auto; padding: 0 16px; max-width: 1200px; }
.container.md { max-width: 900px; }
.container.sm { max-width: 600px; }
.container.xl { max-width: 1536px; }
@media (min-width: 600px) { .wrap, .container { padding: 0 24px; } }

/* ---------- Particles + main layout ---------- */
#tsparticles { position: fixed; inset: 0; z-index: 0; background: var(--bg); }
#tsparticles canvas { position: absolute !important; }
.layout {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; min-height: 100vh;
  box-shadow: inset 0 0 25px black;
}
.layout.store { background-color: rgba(0, 0, 0, .4); }
.layout.product { background-color: rgba(20, 20, 20, .95); background-image: linear-gradient(rgba(20, 20, 20, .95), #4c00ff25); }
.layout-content { display: flex; flex-direction: column; justify-content: center; align-items: center; flex-grow: 1; width: 100%; }
.layout-content > .wrap, .layout-content > .container { flex-grow: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 64px; padding: 6px 16px; border: 0; border-radius: 4px;
  font: 500 .875rem/1.75 var(--font); letter-spacing: .02857em; text-transform: uppercase;
  background: var(--primary); color: #fff; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-2);
  transition: background-color 250ms cubic-bezier(.4, 0, .2, 1), box-shadow 250ms cubic-bezier(.4, 0, .2, 1), border-color 250ms, color 250ms;
  -webkit-user-select: none; user-select: none;
}
.btn:hover { background: var(--primary-dark); box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12); }
.btn[disabled] { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .3); box-shadow: none; cursor: default; pointer-events: none; }
.btn.lg { padding: 8px 22px; font-size: .9375rem; }
.btn.sm { padding: 4px 10px; font-size: .8125rem; }
.btn.block { width: 100%; }
/* outlined */
.btn.ghost, .btn.outlined { background: transparent; box-shadow: none; padding: 5px 15px; border: 1px solid rgba(255, 0, 0, .5); color: var(--primary); }
.btn.ghost:hover, .btn.outlined:hover { background: rgba(255, 0, 0, .08); border-color: var(--primary); }
.btn.outlined.lg { padding: 7px 21px; }
.btn.outlined.sm, .btn.ghost.sm { padding: 3px 9px; }
.btn.white { color: #fff; }
.btn.discord { background: #5865f2; }
.btn.discord:hover { background: #4752c4; }
.btn.steam { background: #1b2838; }
.btn.steam:hover { background: #2a475e; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--text); }
.icon { width: 1.5rem; height: 1.5rem; fill: currentColor; flex-shrink: 0; }
.icon.sm { width: 1.25rem; height: 1.25rem; }

/* BrandButton — the "#" corner frame that snaps to a border on hover */
.brand-btn {
  --b: 2px; --s: .4rem; --color: var(--primary); --_p: var(--s);
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: calc(.5em + var(--s)) 40px;
  font: 500 16px/1.75 var(--font); letter-spacing: .02857em; text-transform: uppercase;
  color: lightgray; cursor: pointer; border: 0; border-radius: 0;
  background: conic-gradient(from 90deg at var(--b) var(--b), #0000 90deg, var(--color) 0) var(--_p) var(--_p) / calc(100% - var(--b) - 2 * var(--_p)) calc(100% - var(--b) - 2 * var(--_p));
  transition: .3s linear, color 0s, background-color .6s, color .3s, transform .3s ease-in-out;
  outline: var(--b) solid #0000; outline-offset: .6em;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.brand-btn:is(:hover, :focus-visible) { --_p: -1px; color: #fff; background-color: color-mix(in srgb, var(--color) 50%, transparent); }
.brand-btn.double:is(:hover, :focus-visible) { outline-color: var(--color); outline-offset: 0; }
.brand-btn:active { background: var(--color); color: #fff; }
.brand-btn.secondary { --color: var(--secondary); }
.brand-btn.nav { --s: -.4rem; padding: calc(.5em + var(--s)) 24px; margin: 16px 0; }
.brand-btn.hero { --b: 5px; --s: .5rem; color: #fff; padding: 20px 48px; font-size: 115%; }
.brand-btn.big { font-size: 1.25rem; font-weight: 600; box-shadow: var(--shadow-2); }

/* ---------- App bar ---------- */
.appbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  transition: all .3s ease, border 0s;
  background: transparent; border-bottom: 0 solid transparent;
}
.appbar[data-scrolled] { background: rgba(0, 0, 0, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #ff0000aa; }
.appbar .container { max-width: 1536px; }
.toolbar { display: flex; align-items: center; min-height: 64px; width: 100%; }
.toolbar.desktop .logo img { display: block; width: 50px; height: 50px; margin: .5rem 0; border-radius: 50%; }
.toolbar.desktop .logo { margin-right: 8px; }
.nav-pages { flex-grow: 1; display: flex; margin: 0 40px; gap: 1.5rem; }
.toolbar.mobile { display: none; justify-content: space-evenly; }
.toolbar.mobile .side { flex: 1 0 10%; display: flex; }
.toolbar.mobile .side.end { justify-content: flex-end; }
.toolbar.mobile .logo { flex: 3 0 60%; display: flex; justify-content: center; }
.toolbar.mobile .logo img { width: 80px; height: auto; padding: .45rem; border-radius: 50%; }
.btn.signin { padding: 2px 16px; color: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background-color 150ms; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.icon-btn[aria-disabled="true"] { color: rgba(255, 255, 255, .3); pointer-events: none; }
.toolbar-spacer { min-height: 64px; }
@media (max-width: 899px) {
  .toolbar.desktop { display: none; }
  .toolbar.mobile { display: flex; }
}
@media (max-width: 599px) { .toolbar-spacer { min-height: 56px; } }

/* MUI Menu (nav + profile dropdowns) */
.menu-anchor { position: relative; }
.menu {
  position: absolute; top: calc(100% + 4px); z-index: 1300; min-width: 160px; padding: 8px 0;
  background: var(--paper); background-image: linear-gradient(rgba(255,255,255,.11), rgba(255,255,255,.11));
  border-radius: 4px; box-shadow: var(--shadow-8);
}
.menu.left { left: 0; }
.menu.right { right: 0; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 6px 16px; min-height: 48px; line-height: 36px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, .08); }
.menu .divider { border-bottom: 1px solid var(--divider); }
@media (min-width: 600px) { .menu a, .menu button { min-height: auto; line-height: 1.5; padding: 6px 16px; } }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; background: #bdbdbd; }

/* ---------- Footer / FAB / flash ---------- */
.footer { position: relative; padding: 16px 0; border-top: 3px solid var(--primary-dark); background: #000; color: var(--muted); text-align: center; }
.footer p:first-child { font-size: 1rem; }
.footer p + p { font-size: .875rem; line-height: 1.43; }
.footer strong { font-weight: 700; }
.fab {
  position: fixed; bottom: 16px; right: 16px; z-index: 1050;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; box-shadow: var(--shadow-6);
  opacity: 0; visibility: hidden; transition: opacity 225ms, visibility 225ms, background-color 250ms;
}
.fab[data-show] { opacity: 1; visibility: visible; }
.fab:hover { background: var(--primary-dark); }
.flash { margin: 16px 0 0; }

/* MUI Alert (standard) */
.alert, .flash { display: flex; gap: 12px; padding: 6px 16px; border-radius: 4px; font-size: .875rem; line-height: 1.43; align-items: center; min-height: 48px; }
.alert.error, .flash.error, .form-error:not(:empty) { background: rgb(22, 11, 11); color: rgb(244, 199, 199); }
.alert.ok, .flash.ok { background: rgb(12, 19, 13); color: rgb(204, 232, 205); }
.alert.info { background: rgb(7, 19, 24); color: rgb(184, 231, 251); }
.alert.warn { background: rgb(25, 18, 7); color: rgb(255, 226, 183); }
.form-error { border-radius: 4px; font-size: .875rem; }
.form-error:not(:empty) { padding: 14px 16px; margin-top: 8px; }

/* ---------- Home: hero + server cards ---------- */
.home-grid {
  width: 100%; max-width: 1200px; min-height: 95vh; flex-grow: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 8px;
}
@media (min-width: 600px) { .home-grid { padding: 16px; } }
@media (min-width: 900px) { .home-grid { padding: 24px; } }
@media (min-width: 1200px) { .home-grid.has-servers { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.home-grid > * { display: flex; justify-content: center; align-items: center; min-width: 0; }
.home-servers { flex-direction: column; gap: 1rem; }

.hero { position: relative; padding: 16px 0; width: 100%; }
@media (min-width: 600px) { .hero { padding: 40px 0; } }
.hero-inner { max-width: 750px; margin: 0 auto; padding: 0 16px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-bottom: 8px; margin-top: -8px; }
.hero h1 { font-weight: 600; font-size: min(4rem, 15vw); line-height: .9; color: var(--primary); text-transform: uppercase; letter-spacing: -.00833em; }
.hero h1 span { color: var(--text); }
.hero .lede { margin-top: -8px; font-size: min(2rem, 7vw); line-height: 1.1; }
.hero .cta { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; }
.hero .cta img { width: 25px; height: 25px; margin-right: .35rem; }

.server-card {
  min-width: 250px; max-width: min(100vw, 500px); overflow: hidden;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .2); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.server-card .content { padding: 16px; }
.server-card .addr { font-size: 14px; color: var(--muted); margin-bottom: .35em; }
.server-card .name { display: flex; align-items: center; }
.server-card .name .dot { width: 24px; height: 24px; margin-right: 8px; fill: red; }
.server-card .name .dot.on { fill: lightgreen; }
.server-card .count { color: var(--muted); margin-bottom: 12px; }
.server-card .meter { height: 4px; background: rgba(255, 0, 0, .25); border-radius: 2px; overflow: hidden; }
.server-card .meter > i { display: block; height: 100%; background: var(--primary); }
.server-card .btn { width: 100%; border-radius: 0 0 4px 4px; }

/* ---------- Home: about + banners ---------- */
.about { width: 100%; border-top: 1px solid var(--secondary); border-bottom: 1px solid var(--secondary); background: #000000aa; }
.about > .fx { height: 100%; transition: backdrop-filter .3s ease-in-out; }
.about > .fx:is(:hover, :focus-within) { backdrop-filter: brightness(2) hue-rotate(-80deg); }
.about .container { padding: 0; }
.about-grid { display: grid; grid-template-columns: 1fr; padding: 8px; }
@media (min-width: 600px) { .about-grid { padding: 16px; } }
@media (min-width: 900px) { .about-grid { grid-template-columns: 7fr 5fr; padding: 120px 120px 40px; } }
.about-grid h2 { margin: 8px 0; text-transform: uppercase; font-weight: 700; }
.about-grid .about-text { font-size: 1.25rem; white-space: pre-line; }
.about-logo-sm { display: flex; }
.about-logo-sm img, .about-logo-lg img { border-radius: 50%; }
.about-logo-lg { display: none; justify-content: center; align-items: center; }
@media (min-width: 900px) { .about-logo-sm { display: none; } .about-logo-lg { display: flex; } }

.banners { padding: 8px 8px 0; }
@media (min-width: 600px) { .banners { padding: 16px 16px 0; } }
@media (min-width: 900px) { .banners { padding: 24px 24px 0; } }
.banners .container { padding: 0; display: flex; flex-direction: column; }
.banner-wrap { animation: fade-in 2.5s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.banner { width: 100%; margin: 0 auto; background: var(--primary); color: #000; }
.banner.odd { background: var(--secondary); }
.thumb { position: relative; color: #fff; height: 284px; margin-left: 8px; }
.banner.odd .thumb { margin-left: 0; margin-right: 8px; }
@media (min-width: 600px) { .thumb { margin-left: 16px; } .banner.odd .thumb { margin-right: 16px; } }
@media (min-width: 900px) { .thumb { height: 364px; margin-left: 24px; } .banner.odd .thumb { margin-right: 24px; } }
@media (min-width: 1200px) {
  .banner { width: 85%; box-shadow: black 0 0 10px; border-radius: 15px; }
  .thumb { height: 500px; }
  .banner .thumb .parent, .banner .thumb .child, .banner .thumb .hidden-content { border-radius: 0 15px 15px 0; }
  .banner.odd .thumb .parent, .banner.odd .thumb .child, .banner.odd .thumb .hidden-content { border-radius: 15px 0 0 15px; }
}
.thumb .parent { position: relative; overflow: hidden; display: block; height: 100%; width: 100%; cursor: pointer; }
.thumb .child { height: 100%; width: 100%; background-size: cover; background-repeat: no-repeat; background-position: 50% 15%; transition: all .5s; }
.thumb .child::before { content: ''; position: absolute; inset: 0; background: rgba(52, 73, 94, .75); opacity: 0; transition: opacity 250ms ease-in-out; }
.thumb .parent:is(:hover, :focus-visible) .child { transform: scale(1.2); }
.thumb .parent:is(:hover, :focus-visible) .child::before { opacity: 1; }
.thumb .hidden-content {
  position: absolute; inset: 0; z-index: 0; display: flex; justify-content: center; align-items: center;
  background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity 250ms ease-in-out;
}
.thumb .parent:is(:hover, :focus-visible) .hidden-content { opacity: 1; }
@media (hover: none), (pointer: coarse) { .thumb .hidden-content { opacity: 1; } }
.thumb article { max-width: min(100%, 750px); padding: 16px; text-align: center; }
@media (min-width: 600px) { .thumb article { padding: 40px 24px; } }
@media (min-width: 900px) { .thumb article { padding: 80px 24px; } }
.thumb h3 { margin-bottom: 16px; font-size: 2rem; text-transform: uppercase; font-weight: 400; line-height: 1.235; }
.banner-footer { width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px 8px; }
.banner-footer.roomy { padding-top: 80px; padding-bottom: 80px; }
.banner-footer.last { margin-top: 1rem; }
.banner-footer .badge { width: 50px; height: 50px; padding: 5px; border-radius: 50%; background: var(--primary); fill: #fff; }
.banner-footer p { max-width: 750px; margin: 8px 0; font-weight: 700; text-align: center; font-size: 1rem; }
@media (min-width: 600px) { .banner-footer p { font-size: 1.25rem; } }
.about-cta { display: flex; justify-content: center; width: 100%; }
.about-cta .brand-btn { margin: 24px auto 48px; }

/* ---------- Home: best sellers ---------- */
.best { width: 100%; background: #12121240; }
.best-inner { text-align: center; padding: 24px 8px; }
@media (min-width: 600px) { .best-inner { padding: 48px 24px; } }
@media (min-width: 900px) { .best-inner { padding: 48px 40px; } }
.best h2 { text-transform: uppercase; font-weight: 700; }
.promo-inner {
  margin: 32px auto 0; max-width: 95%; padding: 16px 8px;
  background: #000000aa; border: 1px solid #ff000080; border-radius: 5px;
  transition: backdrop-filter .3s ease-in-out;
}
.promo-inner:is(:hover, :focus, :focus-within) { backdrop-filter: hue-rotate(-80deg); }
.promo-grid { display: grid; grid-template-columns: 1fr; column-gap: 16px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 900px) { .promo-grid { grid-template-columns: 3fr 9fr; } }
.promo-grid .logo { display: flex; align-items: center; justify-content: center; }
.promo-grid .logo img { margin-top: .75rem; width: 100%; max-width: 250px; height: auto; border-radius: 50%; -webkit-mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 70%); }
.promo-grid .copy { display: flex; flex-direction: column; }
.promo-grid h2 { margin-top: 16px; margin-bottom: .35em; font-weight: 700; font-size: 3rem; line-height: 1.235; text-transform: none; }
@media (max-width: 599px) { .promo-grid h2 { font-size: 2.2rem; } }
.promo-grid .desc { white-space: pre-wrap; font-size: 1.25rem; }
.promo-grid .brand-btn { margin-top: 16px; align-self: center; }

/* ---------- Product cards ---------- */
.products { display: flex; flex-wrap: wrap; width: 100%; justify-content: center; align-items: stretch; gap: 8px; }
@media (min-width: 600px) { .products { gap: 24px; } }
@media (min-width: 900px) { .products { gap: 40px; } }
.product-card {
  --accent: var(--secondary-dark);
  position: relative; max-width: 25rem; flex-grow: 1; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px;
  background-color: color-mix(in srgb, var(--accent) 30%, transparent);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  box-shadow: var(--shadow-1); color: #fff;
  transition: box-shadow 300ms cubic-bezier(.4, 0, .2, 1);
}
.product-card.plain { padding: .35rem; }
.product-card.plain .card-content { border-radius: 4px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.product-card:is(:hover, :active, :focus-within) { box-shadow: 0 0 10px var(--accent); }
.product-card:is(:hover, :active, :focus-within) .card-content { box-shadow: 0 0 25px var(--accent); }
.product-card.plain:is(:hover, :active, :focus-within) { box-shadow: none; }
.product-card.plain:is(:hover, :active, :focus-within) .card-content { box-shadow: 0 25px 25px var(--accent); }
.product-card .ribbon { display: block; font-size: 1.5rem; line-height: 1.5; text-align: center; background: var(--accent); }
.product-card.ribboned { border-color: var(--accent); }
.card-content {
  flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 16px 24px; background: rgba(0, 0, 0, .65);
  transition: box-shadow 300ms cubic-bezier(.4, 0, .2, 1), border 300ms cubic-bezier(.4, 0, .2, 1);
}
.card-content .name { font-size: 1.5rem; line-height: 1.334; margin-bottom: .35em; }
.card-content .price { font-size: 1.25rem; font-weight: 500; line-height: 1.6; color: lightgreen; margin-bottom: 16px; }
.card-content .desc { color: var(--muted); margin-bottom: 16px; }
.card-content .btn { margin-top: 8px; background: var(--accent); }
.card-content .btn:hover { background: color-mix(in srgb, var(--accent) 50%, transparent); }

/* ---------- Store ---------- */
.store-nav {
  width: 100%; max-width: 600px; margin: 24px auto; padding: 8px 16px;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
}
.store-nav.with-product { justify-content: space-between; }
.store-nav.sticky {
  position: sticky; top: 10px; z-index: 2; margin-top: 32px;
  border: 1px solid var(--secondary); border-bottom: 5px solid var(--secondary); border-radius: 5px;
  background: rgba(20, 20, 20, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 15px black;
}
@media (max-width: 599px) { .store-nav { flex-wrap: wrap; } .store-nav.sticky { position: relative; width: 90%; top: 0; } .store-nav .pager { flex-grow: 1; justify-content: center; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; color: var(--muted); list-style: none; }
.crumbs li { display: flex; align-items: center; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 8px; width: 20px; height: 20px; fill: currentColor; }
.crumbs .ico { width: 1rem; height: 1rem; margin-right: 4px; fill: currentColor; }
.crumbs .active { color: var(--secondary); font-weight: 700; white-space: nowrap; }
.pager { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.store-main { width: 100%; padding: 0 8px; }
@media (min-width: 600px) { .store-main { padding: 0 24px 24px; } }
@media (min-width: 900px) { .store-main { padding: 0 40px 40px; } }
.disclaimer { position: relative; margin: 40px 0; display: flex; justify-content: center; }
.disclaimer > .btn { background: var(--paper); background-image: var(--paper-overlay); border: 1px solid #ff000080; color: lightgrey; }
.disclaimer > .btn:is(:hover, :focus) { border-color: #ff0000aa; color: #fff; background: var(--paper); }
.popover {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 20;
  width: min(450px, 92vw); max-height: 50vh; overflow: auto; padding: 8px 16px;
  background: #ff000020; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.popover h2 { font-size: 2em; font-weight: 700; margin: .67em 0; }
.popover h3 { font-size: 1.5em; font-weight: 700; margin: .83em 0 .5em; }
.popover p { margin-bottom: 1em; }
.tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- Product page ---------- */
.product-page { padding: 0 8px 8px; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 600px) { .product-page { padding: 0 16px 16px; } }
@media (min-width: 900px) { .product-page { padding: 0 24px 24px; } }
.product-title { border-bottom: 2px solid #fff; margin-bottom: 16px; font-weight: 700; text-align: center; }
.product-cols { display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; align-items: start; }
@media (min-width: 900px) { .product-cols { grid-template-columns: 1fr 1fr; } }
.product-image { width: 100%; border: 1px solid rgba(255, 255, 255, .25); border-radius: 5px; background: rgba(0, 0, 0, .5); overflow: hidden; margin-bottom: 16px; }
.product-image img { display: block; width: 100%; height: 350px; object-fit: contain; transition: transform .5s ease; }
.product-image:hover img { transform: scale(1.05); }
.styled-list { list-style-type: lower-roman; list-style-position: inside; padding: 0 8px; margin-bottom: 16px; }
.styled-list > li::marker { font-size: large; font-weight: bold; color: var(--primary); }
.styled-list > li + li { margin-top: 4px; }
.product-cols p { margin-bottom: 1em; }
.buy > * + * { margin-top: 8px; }
.buy h2 { margin-top: 8px; }
@media (max-width: 899px) { .buy { display: flex; flex-direction: column; align-items: center; text-align: center; } .buy .field, .buy .totals, .buy #paypal-buttons, .buy .form-error { width: 100%; } }
.legal { font-size: .8rem; color: var(--faint); }
#paypal-buttons { min-height: 50px; border-radius: 4px; overflow: hidden; }

/* MUI outlined select / text field */
.field { position: relative; width: 100%; margin-bottom: 8px; }
.field label {
  position: absolute; top: -9px; left: 10px; z-index: 1; padding: 0 4px;
  font-size: .75rem; line-height: 1.4375em; letter-spacing: .00938em; color: var(--muted);
  background: linear-gradient(transparent 45%, rgb(20, 20, 20) 45%, rgb(20, 20, 20) 55%, transparent 55%);
}
.field select, .field input, .field textarea, .standard-input, input[type=text], input[type=number], input[type=date], input[type=search], textarea, select {
  width: 100%; padding: 16.5px 14px; font: 400 1rem/1.4375em var(--font); letter-spacing: .00938em;
  color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .23); border-radius: 4px;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; background-size: 24px; }
.field select option { background: #1e1e1e; }
.field :is(select, input, textarea):hover { border-color: #fff; }
.field :is(select, input, textarea):focus { outline: none; border: 2px solid var(--primary); padding: 15.5px 13px; }
.field:focus-within label { color: var(--primary); }
textarea { min-height: 120px; resize: vertical; }
.promo { display: flex; gap: 4px; align-items: flex-end; }
@media (max-width: 899px) { .promo { justify-content: center; } }
.standard-input { width: auto; flex: 0 1 200px; padding: 4px 0 5px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .7); border-radius: 0; }
.standard-input:hover { border-bottom: 2px solid #fff; padding-bottom: 4px; }
.standard-input:focus { outline: none; border-bottom: 2px solid var(--primary); padding-bottom: 4px; }
.totals { display: grid; gap: 2px; font-size: .95rem; padding: 8px 0; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals .grand { font-weight: 700; font-size: 1.1rem; }
.totals .grand span:last-child { color: lightgreen; }
label { display: block; }

/* Glass cards (Discord / Steam on profile + product) */
.glass {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: var(--shadow-1);
}
.account-card { max-width: 375px; width: 100%; text-align: left; overflow: hidden; }
.account-card .content { padding: 16px; }
.account-card .who { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; font-size: .875rem; line-height: 1.43; margin-top: 4px; }
.account-card .who code { background: #404040; color: #dc8080; padding: 0 2px; }
.account-card .note { font-size: 70%; color: lightgrey; margin-top: 8px; }
.account-card .actions { display: flex; flex-wrap: wrap; gap: .35rem; padding: 8px; }
.account-card .actions > * { flex-grow: 1; }
.account-card .actions form { display: flex; }
.account-card .actions form .btn { flex-grow: 1; }

/* ---------- Profile ---------- */
.profile { padding: 16px 0; }
.profile h1 { font-weight: 500; text-align: center; }
.profile-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0; }
.profile-cards > .connect { display: flex; align-items: center; }
.section-title { font-weight: 500; text-align: center; border-bottom: 1px solid var(--primary); margin: 16px 0 8px; }
.tier-bar { position: relative; height: 30px; border-radius: 5px; background: #ff000040; overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 8px 0; isolation: isolate; }
.tier-bar > i { position: absolute; left: 0; top: 0; bottom: 0; z-index: -1; border-radius: 5px; background: #ff000080; animation: tier-progress 1s ease-in-out, tier-color 10s infinite linear; }
.tier-bar span { font-weight: 700; font-size: 1rem; text-shadow: 0 0 2px black; }
@keyframes tier-progress { from { width: 0; } }
@keyframes tier-color { 0%, 60% { background: var(--primary); } 20%, 80% { background: var(--primary-light); } 40%, 100% { background: var(--primary-dark); } }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.kv:last-child { border-bottom: 0; }
.center { text-align: center; }
.center-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table-wrap.glass { border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.43; letter-spacing: .01071em; }
th, td { text-align: left; padding: 16px; border-bottom: 1px solid rgba(81, 81, 81, 1); vertical-align: middle; }
th { font-weight: 500; line-height: 1.5rem; }
td.r, th.r { text-align: right; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 16px; font-size: .8125rem; border: 1px solid #616161; color: #fff; white-space: nowrap; text-transform: capitalize; }
.pill.ok, .pill.done, .pill.delivered, .pill.paid { border-color: rgba(102, 187, 106, .7); color: #66bb6a; }
.pill.failed, .pill.retrying, .pill.refunded { border-color: rgba(244, 67, 54, .7); color: #f44336; }
.pill.pending, .pill.processing, .pill.waiting { border-color: rgba(255, 167, 38, .7); color: #ffa726; }

/* ---------- Page heads (rules, order, error, admin) ---------- */
.page-head { padding: 32px 0 8px; text-align: center; }
.page-head h1 { font-weight: 500; }
.page-head p { margin: 8px auto 0; max-width: 62ch; }
.page-head .red-line { display: inline-block; border-bottom: 1px solid var(--primary); }
.eyebrow { font-size: .75rem; letter-spacing: .08333em; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }
.section { padding: 32px 0; width: 100%; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.panel {
  background: var(--paper); background-image: var(--paper-overlay); border-radius: 4px; padding: 16px;
  box-shadow: var(--shadow-1);
}
.panel.glass { background: rgba(255, 255, 255, .1); }

/* Rules */
.rules-box { width: 100%; max-width: 900px; margin: 0 auto; padding: 16px; border: 1px solid #ff000080; border-radius: 5px; background: #000000aa; }
.rules { list-style-type: decimal; list-style-position: outside; padding-left: 2.2em; }
.rules > li { padding: 8px 0; }
.rules > li::marker { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.rules h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.6; text-transform: uppercase; }

/* Order */
.order-box { width: 100%; max-width: 640px; margin: 32px auto 48px; text-align: center; }
.order-box h2 { font-size: 2.125rem; line-height: 1.235; }
.steps { display: grid; gap: 8px; list-style: none; text-align: left; }
.steps li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255, 255, 255, .06); border-radius: 4px; }

/* Error / not found */
.not-found { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; text-align: center; padding: 48px 16px; }
.not-found h2 { margin-top: -16px; }

/* ---------- Admin ---------- */
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { padding: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; }
.stat b { display: block; font-size: 2rem; font-weight: 700; line-height: 1.2; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: red; }
.status.on { color: lightgreen; }
.status.on::before { background: lightgreen; }
.inline-form { display: inline; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.form-grid label, .admin label { font-size: .875rem; font-weight: 500; margin-bottom: 6px; position: static; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.layout-content > .wrap { padding-bottom: 32px; }

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