@import url("https://fonts.googleapis.com/css2?family=Syne:wght@700;800&display=swap");

:root {
  --bg: #030303;
  --bg-elevated: #0c0c0c;
  --red: #d00000;
  --red-bright: #ff1a1a;
  --text: #f2f2f2;
  --text-muted: #9a9a9a;
  --border: #1f1f1f;
  --discord: #5865f2;
  --rail-width: 3.25rem;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  /* Header wordmark — geometric, spaced */
  --font-brand: "Syne", "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: calc(var(--rail-width) + env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 640px) {
  body {
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  }
}

a {
  color: inherit;
}

.text-red {
  color: var(--red-bright);
}

/* —— Fixed Discord rail —— */
.discord-rail {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: var(--rail-width);
  height: 100vh;
  padding: 1rem 0;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 40%, #0a0a0a 100%);
  border-left: 2px solid var(--red);
  box-shadow: -8px 0 32px rgba(208, 0, 0, 0.15);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.discord-rail:hover,
.discord-rail:focus-visible {
  background: linear-gradient(
    180deg,
    #120505 0%,
    #0a0505 50%,
    #120505 100%
  );
  border-left-color: var(--red-bright);
  outline: none;
}

.discord-rail__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 40% at 50% 30%,
    rgba(208, 0, 0, 0.12),
    transparent 70%
  );
}

.discord-rail__icon {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--discord);
  filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.45));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.discord-rail:hover .discord-rail__icon,
.discord-rail:focus-visible .discord-rail__icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(88, 101, 242, 0.7));
}

.discord-rail__text {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.discord-rail:hover .discord-rail__text,
.discord-rail:focus-visible .discord-rail__text {
  color: #fff;
}

@media (max-width: 640px) {
  .discord-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    min-height: 3.25rem;
    flex-direction: row;
    border-left: none;
    border-top: 2px solid var(--red);
    box-shadow: 0 -8px 32px rgba(208, 0, 0, 0.12);
    padding: 0.65rem 1rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    gap: 0.75rem;
  }

  .discord-rail__text {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
  }
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.85rem, env(safe-area-inset-top, 0px)) 1.5rem 0.85rem;
  padding-left: max(1.65rem, env(safe-area-inset-left, 0px));
  padding-right: calc(1.5rem + var(--rail-width) + env(safe-area-inset-right, 0px));
  background: rgba(3, 3, 3, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  .site-header {
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 0.65rem;
    align-items: center;
  }

  .site-header__end {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem 0.65rem;
    justify-content: flex-start;
  }

  .site-nav {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.65rem 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0 0.35rem;
    margin: 0 -0.15rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .site-nav a {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .auth-nav {
    flex-shrink: 0;
  }
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(1.05rem, 0.35rem + 1.9vw, 1.22rem);
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  color: #fafafa;
  line-height: 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color 0.15s ease;
}

.brand-mark:hover,
.brand-mark:focus-visible {
  color: #fff;
  outline: none;
}

.brand-mark__rust {
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-mark__x {
  color: var(--red-bright);
  font-weight: 800;
  letter-spacing: 0;
  /* Single “X” reads lighter than wide-tracked “RUST” — slight scale for a balanced lockup */
  font-size: 1.14em;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.site-nav .nav-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: middle;
  color: var(--red-bright);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.site-nav a:hover .nav-icon,
.site-nav a:focus-visible .nav-icon {
  filter: drop-shadow(0 0 5px rgba(255, 26, 26, 0.55));
}

.site-nav a.is-active .nav-icon {
  filter: drop-shadow(0 0 7px rgba(255, 26, 26, 0.65));
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  outline: none;
}

.site-nav a.is-active {
  color: var(--red-bright);
  font-weight: 600;
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 2rem;
}

.btn-auth-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--discord);
  border-radius: 2px;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-auth-discord:hover,
.btn-auth-discord:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.45);
  outline: none;
}

/* —— Header profile menu (hover / tap) —— */
.auth-menu {
  position: relative;
}

.auth-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(100%, 14rem);
  padding: 0.35rem 0.6rem 0.35rem 0.4rem;
  margin: 0;
  font: inherit;
  color: var(--text);
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.auth-menu__trigger:hover,
.auth-menu__trigger:focus-visible {
  border-color: rgba(208, 0, 0, 0.45);
  box-shadow: 0 0 18px rgba(208, 0, 0, 0.12);
  outline: none;
}

.auth-menu--open .auth-menu__trigger,
.auth-menu:hover .auth-menu__trigger {
  border-color: rgba(208, 0, 0, 0.55);
}

.auth-menu__trigger-avatar {
  border-radius: 50%;
  border: 1px solid #2a2a2a;
  flex-shrink: 0;
  object-fit: cover;
}

.auth-menu__trigger-name {
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-menu__chevron {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.1rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}

.auth-menu:hover .auth-menu__chevron,
.auth-menu--open .auth-menu__chevron,
.auth-menu:focus-within .auth-menu__chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.auth-menu__dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 100;
  min-width: 17rem;
  max-width: calc(100vw - 2rem);
  padding: 0;
  background: linear-gradient(165deg, #141414 0%, #0a0a0a 100%);
  border: 1px solid rgba(208, 0, 0, 0.25);
  border-radius: 6px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
}

@media (hover: hover) and (pointer: fine) {
  .auth-menu:hover .auth-menu__dropdown,
  .auth-menu:focus-within .auth-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.auth-menu--open .auth-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.auth-menu__dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(208, 0, 0, 0.06);
}

.auth-menu__dropdown-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.auth-menu__dropdown-badge {
  padding: 0.15rem 0.45rem;
  font-size: 0.58rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border-radius: 2px;
}

.auth-menu__card {
  padding: 1rem;
}

.auth-menu__card-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.auth-menu__card-names {
  min-width: 0;
  flex: 1;
}

.auth-menu__card-avatar {
  border-radius: 50%;
  border: 2px solid rgba(208, 0, 0, 0.35);
  object-fit: cover;
}

.auth-menu__card-display {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.auth-menu__card-username {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.auth-menu__dates {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.auth-menu__dates dt {
  margin: 0.5rem 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.auth-menu__dates dt:first-child {
  margin-top: 0;
}

.auth-menu__dates dd {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-menu__logout {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--red);
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-menu__logout:hover,
.auth-menu__logout:focus-visible {
  background: var(--red-bright);
  box-shadow: 0 0 20px rgba(208, 0, 0, 0.35);
  outline: none;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: calc(1.5rem + var(--rail-width) + env(safe-area-inset-right, 0px));
  overflow: hidden;
}

@media (max-width: 640px) {
  .hero {
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(208, 0, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 50%, rgba(208, 0, 0, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(208, 0, 0, 0.06), transparent 50%),
    linear-gradient(180deg, #080808 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__inner {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 0 48px rgba(208, 0, 0, 0.35);
}

.hero__title-rust {
  color: #fff;
}

.hero__title-x {
  color: var(--red);
}

.hero__tagline {
  margin: 1.5rem auto 0;
  max-width: 28rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(208, 0, 0, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--red-bright);
  border-color: var(--red-bright);
  box-shadow: 0 0 28px rgba(255, 26, 26, 0.45);
  outline: none;
}

.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--primary:disabled:hover,
.btn--primary:disabled:focus-visible {
  background: var(--red);
  border-color: var(--red);
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: #333;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--red);
  color: #fff;
  outline: none;
}

/* —— Sections —— */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: calc(1.5rem + var(--rail-width) + env(safe-area-inset-right, 0px));
  max-width: 56rem;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .section {
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

.section--dim {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
  text-align: center;
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.section--dim .section__lead {
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.feature-card {
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: rgba(208, 0, 0, 0.45);
  box-shadow: 0 0 24px rgba(208, 0, 0, 0.08);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer {
  padding: 1.25rem 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: calc(1.5rem + var(--rail-width) + env(safe-area-inset-right, 0px));
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--red-bright);
  outline: none;
}

@media (max-width: 640px) {
  .site-footer {
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Inner pages (store) —— */
.page-hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: calc(1.5rem + var(--rail-width) + env(safe-area-inset-right, 0px));
  overflow: hidden;
  text-align: center;
}

@media (max-width: 640px) {
  .page-hero {
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(208, 0, 0, 0.12), transparent 50%),
    linear-gradient(180deg, #080808 0%, var(--bg) 100%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
}

.page-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.page-hero__lead {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.page-hero__strong {
  color: #fff;
  font-weight: 600;
}

.page-hero--store {
  padding-bottom: clamp(2.75rem, 6vw, 4rem);
}

.page-hero__inner--wide {
  max-width: 42rem;
}

.page-hero__eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.store-hero-meta {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  justify-content: center;
}

.store-hero-meta__item {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Store page: pull content up — tighter hero + panel overlap */
.page-store .store-main > .page-hero.page-hero--store.page-hero--store-tight {
  padding-top: clamp(0.5rem, 1.4vw, 0.85rem);
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.page-store .store-main > .page-hero.page-hero--store:not(.page-hero--product):not(.page-hero--store-tight) {
  padding-top: clamp(0.65rem, 1.6vw, 1.1rem);
  padding-bottom: clamp(0.85rem, 2vw, 1.25rem);
}

.page-store .store-main > .page-hero.page-hero--store:not(.page-hero--product):not(.page-hero--store-tight) .page-hero__eyebrow {
  margin-bottom: 0.4rem;
}

.page-store .store-main > .page-hero.page-hero--store:not(.page-hero--product):not(.page-hero--store-tight) .page-hero__lead {
  margin-top: 0.55rem;
}

.page-store .store-hero-meta {
  margin-top: 0.75rem;
}

.page-hero--store.page-hero--product {
  padding-bottom: clamp(1.1rem, 2.5vw, 1.55rem);
}

.store-jump {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.store-jump__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.store-jump__link:hover,
.store-jump__link:focus-visible {
  color: #fff;
  border-color: rgba(208, 0, 0, 0.5);
  box-shadow: 0 0 20px rgba(208, 0, 0, 0.12);
  outline: none;
}

/* Store hub (main store.html) */
.store-hub {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.store-hub__heading {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--red-bright);
}

.store-hub__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .store-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.store-hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.35rem 1.35rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-top: 3px solid rgba(208, 0, 0, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.store-hub-card:hover,
.store-hub-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(208, 0, 0, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  outline: none;
}

.store-hub-card--rce {
  border-top-color: rgba(90, 200, 140, 0.75);
}

.store-hub-card--rce:hover,
.store-hub-card--rce:focus-visible {
  border-color: rgba(90, 200, 140, 0.4);
  box-shadow: 0 18px 48px rgba(40, 120, 80, 0.15);
}

.store-hub-card--manager {
  border-top-color: rgba(120, 170, 240, 0.85);
}

.store-hub-card--manager:hover,
.store-hub-card--manager:focus-visible {
  border-color: rgba(120, 170, 240, 0.45);
  box-shadow: 0 18px 48px rgba(60, 100, 180, 0.12);
}

.store-hub-card--web {
  border-top-color: rgba(200, 140, 240, 0.85);
}

.store-hub-card--web:hover,
.store-hub-card--web:focus-visible {
  border-color: rgba(200, 140, 240, 0.45);
  box-shadow: 0 18px 48px rgba(140, 80, 180, 0.12);
}

.store-hub-card__eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.store-hub-card__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.store-hub-card__lead {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.store-hub-card__bullets {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.store-hub-card__bullets li {
  margin-bottom: 0.35rem;
}

.store-hub-card__cta {
  align-self: flex-start;
  margin-top: auto;
  pointer-events: none;
}

/* Store product subpages */
.store-bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.store-bc a {
  color: var(--red-bright);
  text-decoration: none;
  font-weight: 600;
}

.store-bc a:hover {
  text-decoration: underline;
}

.store-bc__sep {
  opacity: 0.45;
  user-select: none;
}

.store-bc__here {
  color: #fff;
  font-weight: 600;
}

.store-product .page-hero--product .page-hero__title {
  font-size: clamp(2rem, 5.5vw, 2.65rem);
  letter-spacing: 0.14em;
}

.page-hero--accent-rce .page-hero__bg {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(60, 160, 110, 0.14), transparent 52%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(208, 0, 0, 0.1), transparent 50%),
    linear-gradient(180deg, #080808 0%, var(--bg) 100%);
}

.page-hero--accent-manager .page-hero__bg {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(100, 140, 220, 0.16), transparent 52%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(208, 0, 0, 0.08), transparent 50%),
    linear-gradient(180deg, #080808 0%, var(--bg) 100%);
}

.page-hero--accent-web .page-hero__bg {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(170, 100, 210, 0.14), transparent 52%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(208, 0, 0, 0.08), transparent 50%),
    linear-gradient(180deg, #080808 0%, var(--bg) 100%);
}

.store-product__links {
  margin: 1.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  justify-content: center;
}

.store-product__links .btn {
  margin: 0;
}

/* Unified store: tabbed showcase + auto-rotate */
.store-showcase {
  position: relative;
  z-index: 0;
}

.store-main > .store-showcase.section {
  position: relative;
  z-index: 1;
  margin-top: clamp(-2.65rem, -5.5vw, -1.35rem);
  padding: clamp(0.55rem, 1.4vw, 0.85rem) clamp(1rem, 2.2vw, 1.5rem) clamp(1.65rem, 3.5vw, 2.65rem);
  padding-left: max(clamp(1rem, 2.2vw, 1.5rem), env(safe-area-inset-left, 0px));
  padding-right: calc(
    clamp(1rem, 2.2vw, 1.5rem) + var(--rail-width) + env(safe-area-inset-right, 0px)
  );
  max-width: min(72rem, calc(100% - 1.25rem));
  background:
    linear-gradient(145deg, rgba(22, 22, 22, 0.97) 0%, rgba(10, 10, 10, 0.99) 45%, #060606 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(208, 0, 0, 0.07),
    0 3px 0 rgba(208, 0, 0, 0.14),
    0 40px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

@media (max-width: 640px) {
  .store-main > .store-showcase.section {
    margin-left: 0.65rem;
    margin-right: 0.65rem;
    padding-left: max(clamp(1rem, 2.2vw, 1.5rem), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(1rem, 2.2vw, 1.5rem), env(safe-area-inset-right, 0px));
    max-width: none;
  }
}

.store-main > .store-showcase.store-showcase--tabs.section {
  margin-top: clamp(0.65rem, 2vw, 1.35rem);
  padding-top: clamp(0.65rem, 1.6vw, 0.95rem);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(208, 0, 0, 0.06),
    0 2px 0 rgba(208, 0, 0, 0.1),
    0 28px 56px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-hero--store-tight .page-hero__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.18em;
}

.page-hero__lead--tight {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.store-showcase__chrome {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 0.25rem 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  justify-content: space-between;
}

.store-showcase__status {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.store-showcase__resume {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red-bright);
  background: transparent;
  border: 1px solid rgba(208, 0, 0, 0.45);
  border-radius: 3px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.store-showcase__resume:hover,
.store-showcase__resume:focus-visible {
  color: #fff;
  border-color: var(--red-bright);
  background: rgba(208, 0, 0, 0.12);
  outline: none;
}

.store-showcase--tabs .store-showcase__tabs {
  list-style: none;
  margin: 0 auto 1.25rem;
  padding: 0.45rem;
  max-width: fit-content;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.store-showcase__tabs > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-showcase__tab {
  margin: 0;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: var(--font-display);
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.store-showcase__tab:hover {
  color: #e8e8e8;
  background: rgba(255, 255, 255, 0.04);
}

.store-showcase__tab:focus-visible {
  outline: none;
}

.store-showcase__tab:focus-visible:not(.is-active) {
  color: #e8e8e8;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.store-showcase__tab.is-active {
  color: #fff;
  background: rgba(208, 0, 0, 0.22);
  border-color: rgba(208, 0, 0, 0.45);
  box-shadow: 0 0 24px rgba(208, 0, 0, 0.15);
}

.store-showcase__tab--rce.is-active {
  background: rgba(60, 160, 110, 0.2);
  border-color: rgba(60, 160, 110, 0.5);
  box-shadow: 0 0 26px rgba(60, 160, 110, 0.14);
}

.store-showcase__tab--manager.is-active {
  background: rgba(100, 140, 220, 0.18);
  border-color: rgba(120, 170, 240, 0.48);
  box-shadow: 0 0 26px rgba(100, 140, 220, 0.12);
}

.store-showcase__tab--websites.is-active {
  background: rgba(170, 100, 210, 0.16);
  border-color: rgba(200, 140, 240, 0.48);
  box-shadow: 0 0 26px rgba(170, 100, 210, 0.12);
}

@media (pointer: coarse) {
  .store-showcase__tab {
    min-height: 2.75rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
}

.store-showcase__panels {
  position: relative;
  min-height: 16rem;
}

.store-showcase__panel[hidden] {
  display: none !important;
}

.store-showcase__panel--rce {
  animation: store-panel-in 0.35s ease both;
}

.store-showcase__panel--manager {
  animation: store-panel-in 0.35s ease both;
}

.store-showcase__panel--web {
  animation: store-panel-in 0.35s ease both;
}

@keyframes store-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-showcase__panel--rce,
  .store-showcase__panel--manager,
  .store-showcase__panel--web {
    animation: none;
  }
}

.store-checkout-flash {
  max-width: 72rem;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.store-checkout-flash--ok {
  color: #c8f0d8;
  border-color: rgba(80, 170, 120, 0.45);
  background: rgba(40, 120, 80, 0.12);
}

.store-checkout-flash--warn {
  color: var(--text-muted);
  border-color: rgba(208, 0, 0, 0.35);
  background: rgba(208, 0, 0, 0.06);
}

.store-category--solo {
  padding-top: clamp(1rem, 2.5vw, 1.65rem);
}

.store-grid--manager {
  max-width: 58rem;
  margin-inline: auto;
}

.store-main {
  padding-bottom: 0.5rem;
}

.store-category {
  position: relative;
  z-index: 0;
  scroll-margin-top: 5rem;
  overflow-x: clip;
}

.store-category + .store-category {
  padding-top: clamp(2.75rem, 6vw, 4rem);
  border-top: 1px solid var(--border);
}

.store-category--alt::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(208, 0, 0, 0.08), transparent 55%),
    rgba(6, 6, 6, 0.72);
  pointer-events: none;
}

.store-showcase__panel .store-category__header--pricing {
  display: block;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.15rem;
  padding: 0 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0;
}

.store-showcase__panel .store-category__header--pricing .store-category__title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.12em;
}

.store-showcase__panel .store-category__header--pricing .store-category__lead {
  margin: 0 auto;
  font-size: 0.86rem;
  line-height: 1.55;
}

.store-showcase__panel .store-category--pricing.store-category--solo {
  padding-top: 0.15rem;
}

@media (min-width: 640px) {
  .store-showcase__panel .store-category__header--pricing {
    display: block;
    grid-template-columns: 1fr;
  }
}

.store-category__header {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1rem, 2vw, 1.35rem) 1.5rem;
  margin-left: -1.5rem;
  margin-right: calc(-1.5rem - var(--rail-width) - env(safe-area-inset-right, 0px));
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

@media (max-width: 640px) {
  .store-category__header {
    margin-right: -1.5rem;
  }
}

@media (min-width: 640px) {
  .store-category__header {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1.25rem 2.25rem;
  }
}

.store-category__index {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgba(208, 0, 0, 0.32);
  line-height: 1;
}

.store-category__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.store-category__product-eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.store-category__titles .store-category__title {
  margin-top: 0;
}

.store-category__lead {
  margin: 0;
  max-width: 42rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.store-category__inline {
  color: #fff;
  font-weight: 600;
}

.section--wide {
  max-width: 72rem;
}

.store-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  align-items: stretch;
}

.store-grid--plans {
  gap: 1.35rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .store-grid--plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .store-grid--plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Two-up row (e.g. websites) — centred, max width */
.store-grid--two {
  gap: 1.35rem;
  grid-template-columns: 1fr;
  max-width: 52rem;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .store-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Parent showcase already pads for the Discord rail — inner .section must not, or cards sit left */
.store-showcase--tabs .store-showcase__panel .store-category.section {
  padding-left: clamp(1rem, 2.2vw, 1.5rem);
  padding-right: clamp(1rem, 2.2vw, 1.5rem);
}

.store-showcase--tabs .store-grid--plans {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  justify-content: center;
}

.store-showcase--tabs .store-grid--two {
  width: 100%;
  margin-inline: auto;
}

@media (min-width: 1060px) {
  .store-showcase--tabs .store-grid--plans .price-card--featured {
    transform: translateY(-6px) scale(1.025);
    z-index: 1;
  }

  .store-showcase--tabs .store-grid--plans .price-card--featured:hover {
    transform: translateY(-8px) scale(1.025);
  }
}

@media (min-width: 1060px) and (prefers-reduced-motion: reduce) {
  .store-showcase--tabs .store-grid--plans .price-card--featured {
    transform: none;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.6rem 1.45rem;
  background: linear-gradient(165deg, #121212 0%, var(--bg-elevated) 42%, #0a0a0a 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, rgba(208, 0, 0, 0.35), transparent);
  opacity: 0.65;
  pointer-events: none;
}

.price-card:hover {
  border-color: rgba(208, 0, 0, 0.38);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.price-card--featured {
  border-color: rgba(208, 0, 0, 0.5);
  box-shadow:
    0 0 0 1px rgba(208, 0, 0, 0.12),
    0 16px 56px rgba(208, 0, 0, 0.14);
}

.price-card--featured::before {
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, rgba(208, 0, 0, 0.2), var(--red-bright), rgba(208, 0, 0, 0.2));
  opacity: 1;
}

.price-card--featured:hover {
  border-color: var(--red-bright);
  box-shadow:
    0 0 0 1px rgba(255, 26, 26, 0.2),
    0 20px 64px rgba(208, 0, 0, 0.22);
}

.price-card__ribbon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.28rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #b80000 0%, var(--red-bright) 100%);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(208, 0, 0, 0.35);
}

.price-card__head {
  margin-bottom: 1rem;
}

.price-card--featured .price-card__head {
  padding-right: 5.5rem;
}

.price-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.price-card__tagline {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.price-card__amount {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}

.price-card__currency {
  font-size: 1.1rem;
  font-weight: 700;
  vertical-align: super;
  margin-right: 0.05em;
}

.price-card__decimals {
  font-size: 1.35rem;
  font-weight: 800;
}

.price-card__amount--text {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  letter-spacing: 0.06em;
}

.price-card__period {
  margin: 0.25rem 0 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-card__billing {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.price-card__features {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.1rem;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.price-card__features li {
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}

.price-card__features li:last-child {
  margin-bottom: 0;
}

.price-card__inline-strong {
  color: #fff;
  font-weight: 700;
}

.price-card__cta {
  width: 100%;
  margin-top: auto;
}

.price-card__cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  width: 100%;
}

.price-card__cta-stack .price-card__cta {
  margin-top: 0;
}

.store-hub-card__bullets a {
  color: var(--red-bright);
  font-weight: 600;
  text-decoration: none;
}

.store-hub-card__bullets a:hover {
  text-decoration: underline;
}

.auth-menu__bots,
.auth-menu__enquiries {
  display: block;
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: #c8d4ff;
  border: 1px solid rgba(88, 101, 242, 0.45);
  border-radius: 3px;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-menu__bots:hover,
.auth-menu__bots:focus-visible,
.auth-menu__enquiries:hover,
.auth-menu__enquiries:focus-visible {
  color: #fff;
  border-color: rgba(88, 101, 242, 0.75);
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.15);
  outline: none;
}

.auth-menu__admin {
  display: block;
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-menu__admin:hover,
.auth-menu__admin:focus-visible {
  color: #fff;
  border-color: rgba(208, 0, 0, 0.45);
  box-shadow: 0 0 14px rgba(208, 0, 0, 0.1);
  outline: none;
}

.page-denied {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.denied-main {
  text-align: center;
  max-width: 22rem;
}

.denied-main__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.denied-main__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.enquire-main {
  position: relative;
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.enquire-main__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  opacity: 0.85;
  pointer-events: none;
}

.enquire-main__inner {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  margin: 0 auto;
}

.enquire-main__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.enquire-main__lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- My enquiries (/my-enquiries.html) — card list (not admin table) --- */
.my-enquiries__status {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.my-enquiries__empty {
  margin: 0 0 1.5rem;
}

.my-enquiries-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0 0 2rem;
}

.my-enq-card {
  margin: 0;
  padding: 1.1rem 1.15rem 1.15rem;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.my-enq-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.my-enq-card__titles {
  min-width: 0;
  flex: 1 1 12rem;
}

.my-enq-card__product {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
}

.my-enq-card__time {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.my-enq-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.my-enq-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.my-enq-pill--yes {
  color: #c8f0d8;
  background: rgba(40, 120, 80, 0.2);
  border-color: rgba(80, 170, 120, 0.45);
}

.my-enq-pill--no {
  color: #ffb4b4;
  background: rgba(160, 40, 40, 0.18);
  border-color: rgba(208, 0, 0, 0.35);
}

.my-enq-pill--pending {
  color: #ffe8c8;
  background: rgba(200, 120, 40, 0.18);
  border-color: rgba(230, 150, 70, 0.4);
}

.my-enq-pill--done {
  color: #d4e8ff;
  background: rgba(60, 100, 160, 0.22);
  border-color: rgba(100, 140, 200, 0.45);
}

.my-enq-pill--muted {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.my-enq-card__preview {
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.my-enq-card__preview-title {
  margin: 0 0 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.my-enq-card__preview-body {
  margin: 0;
  max-height: 11rem;
  overflow-y: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(230, 232, 240, 0.92);
  word-break: break-word;
}

.my-enq-card__preview-body em {
  font-style: italic;
  color: var(--text-muted);
}

.my-enq-card__foot {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.my-enq-card__cta {
  width: 100%;
  max-width: 20rem;
  text-align: center;
}

.my-enq-card__action-hint {
  margin: 0.5rem 0 0;
  max-width: 26rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.my-enq-card__action-note {
  margin: 0;
  max-width: 32rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.my-enq-card__action-note a {
  color: var(--red-bright);
  font-weight: 600;
  text-decoration: none;
}

.my-enq-card__action-note a:hover {
  text-decoration: underline;
}

.my-enq-card__action-note--warn {
  color: #ffd4a8;
}

.enquire-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.enquire-form__block {
  margin-bottom: 0.25rem;
}

.enquire-form__notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: rgba(208, 0, 0, 0.06);
  border: 1px solid rgba(208, 0, 0, 0.22);
  border-radius: 4px;
}

.enquire-form__notice code {
  font-size: 0.82em;
  color: var(--text);
}

.enquire-form__select,
.enquire-form__textarea,
.enquire-form__input {
  width: 100%;
  margin-bottom: 1.1rem;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 4px;
  resize: vertical;
  min-height: 2.75rem;
}

.enquire-form__input {
  resize: none;
}

.enquire-form__textarea--short {
  min-height: 5.5rem;
}

.enquire-form__textarea:focus,
.enquire-form__select:focus,
.enquire-form__input:focus {
  outline: none;
  border-color: rgba(208, 0, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(208, 0, 0, 0.15);
}

.enquire-form__hint {
  margin: -0.65rem 0 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.enquire-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.enquire-form__alert {
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(208, 0, 0, 0.08);
  color: var(--text-muted);
}

.enquire-form__alert--error {
  border-color: rgba(208, 0, 0, 0.45);
  color: #ffb4b4;
}

.enquire-form__alert--ok {
  border-color: rgba(80, 170, 120, 0.45);
  background: rgba(40, 120, 80, 0.12);
  color: #c8f0d8;
}

@media (max-width: 480px) {
  .enquire-form__select,
  .enquire-form__textarea,
  .enquire-form__input {
    font-size: 1rem;
  }
}

.enquire-done__block {
  margin: 0;
}

.enquire-done__block--stripe {
  margin-top: 1rem;
}

.enquire-done__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1rem;
}

.enquire-done__actions .btn {
  margin: 0;
}

.enquire-done__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.enquire-done__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.enquire-done__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.enquire-done__lead a {
  color: var(--red-bright);
  font-weight: 600;
  text-decoration: none;
}

.enquire-done__lead a:hover,
.enquire-done__lead a:focus-visible {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

.admin-page-head {
  margin-bottom: 0.5rem;
}

.admin-page-head__titles .admin-main__lead {
  margin-bottom: 0;
}

.admin-main__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.admin-main__lead {
  margin: 0 0 1.5rem;
  max-width: 44rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.admin-section__lead--tight {
  margin-bottom: 0.65rem;
}

.admin-main__status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-dashboard {
  margin-top: 0.5rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.admin-toolbar__search {
  flex: 1 1 16rem;
  min-width: min(100%, 14rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-toolbar__label {
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.admin-toolbar__input {
  width: 100%;
  max-width: 28rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.admin-toolbar__input:focus {
  outline: none;
  border-color: rgba(208, 0, 0, 0.45);
}

.admin-toolbar__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.admin-toolbar__hint {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.admin-toolbar__meta {
  flex: 2 1 18rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.55;
  word-break: break-word;
}

.admin-toolbar__meta .admin-meta__sep {
  opacity: 0.45;
  padding: 0 0.2rem;
}

.admin-panel {
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: 1.75rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.admin-panel__head {
  margin-bottom: 0.85rem;
}

.admin-panel .admin-section__title {
  margin-bottom: 0.35rem;
}

.admin-tr--hidden {
  display: none;
}

.admin-table__empty td {
  color: var(--text-muted);
  font-style: italic;
  padding: 1.25rem 0.75rem;
}

.admin-meta {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: break-word;
}

.admin-stats {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.admin-stats__item {
  padding: 1rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  transition: border-color 0.15s ease;
}

.admin-stats__item:hover {
  border-color: rgba(208, 0, 0, 0.35);
}

.admin-stats__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.admin-stats__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-section {
  margin-bottom: 2.5rem;
}

.admin-panel.admin-section {
  margin-bottom: 1.75rem;
}

.admin-section__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.admin-section__lead {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.admin-section__lead strong {
  color: #fff;
  font-weight: 600;
}

.admin-premium-grant {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 28rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.admin-premium-grant__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-premium-grant__label {
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.admin-premium-grant__input,
.admin-premium-grant__select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.admin-premium-grant__input:focus,
.admin-premium-grant__select:focus {
  outline: none;
  border-color: rgba(208, 0, 0, 0.45);
}

.admin-premium-grant__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.admin-premium-grant__status {
  margin: 0 0 0.5rem;
  max-width: 36rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.admin-premium-grant__status--ok {
  color: #c8f0d8;
}

.admin-premium-grant__status--error {
  color: #ffb4b4;
}

.admin-table-wrap--scroll {
  max-height: min(70vh, 32rem);
  overflow: auto;
}

.admin-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

.admin-pill--yes {
  color: #fff;
  background: rgba(208, 0, 0, 0.85);
}

.admin-pill--no {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.admin-pill--pending {
  color: #ffe8c8;
  background: rgba(200, 120, 40, 0.22);
  border: 1px solid rgba(230, 150, 70, 0.45);
}

.admin-pill--done {
  color: #e8f4ff;
  background: rgba(80, 120, 180, 0.75);
}

.admin-enquiries-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-enquiries-empty {
  margin: 0;
  padding: 1rem 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 6px;
}

.admin-enquiry-acc {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.admin-enquiry-acc[open] {
  border-color: rgba(208, 0, 0, 0.38);
}

.admin-enquiry-acc__summary {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text);
}

.admin-enquiry-acc__summary::-webkit-details-marker {
  display: none;
}

.admin-enquiry-acc__summary::marker {
  content: "";
}

.admin-enquiry-acc__when {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.admin-enquiry-acc__product {
  flex: 1 1 8rem;
  font-weight: 600;
  color: #fff;
  min-width: 0;
}

.admin-enquiry-acc__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.admin-enquiry-acc__pill {
  font-size: 0.58rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.38rem;
  border-radius: 2px;
  color: #fff;
  background: rgba(90, 90, 90, 0.65);
}

.admin-enquiry-acc__pill--pay {
  background: rgba(208, 0, 0, 0.45);
}

.admin-enquiry-acc__pill--rev {
  background: rgba(60, 100, 140, 0.65);
}

.admin-enquiry-acc__id {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.admin-enquiry-acc__id code {
  font-size: inherit;
}

.admin-enquiry-acc__chev {
  width: 0.5rem;
  height: 0.5rem;
  margin-left: auto;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.admin-enquiry-acc[open] .admin-enquiry-acc__chev {
  transform: rotate(45deg);
  margin-top: 0.15rem;
}

.admin-enquiry-acc__body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid var(--border);
}

.admin-enquiry-acc__cols {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin: 0.75rem 0 0.65rem;
}

.admin-enquiry-acc__col--wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .admin-enquiry-acc__col--wide {
    grid-column: span 1;
  }

  .admin-enquiry-acc__cols {
    grid-template-columns: 1fr 1fr 1.2fr;
  }
}

.admin-enquiry-acc__h {
  margin: 0 0 0.35rem;
  font-size: 0.58rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.admin-enquiry-acc__message {
  margin-top: 0.5rem;
}

.admin-enquiry-acc__message pre {
  margin: 0;
  max-height: min(40vh, 14rem);
  overflow: auto;
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-payment-cell {
  vertical-align: top;
  max-width: 16rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-payment-cell__meta {
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.admin-payment-cell__meta strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.admin-review-cell {
  vertical-align: top;
  max-width: 14rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-review-cell__actions {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.admin-review-cell__actions .btn {
  margin: 0;
}

.admin-enquiry-delete-btn {
  color: #ffb4b4 !important;
  border-color: rgba(208, 80, 80, 0.45) !important;
}

.admin-enquiry-delete-btn:hover:not(:disabled) {
  color: #fff !important;
  background: rgba(160, 40, 40, 0.35) !important;
  border-color: rgba(208, 0, 0, 0.55) !important;
}

.admin-muted {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.btn--small {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.bots-main {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.bots-main__subtitle {
  margin: 2rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.bots-purchases {
  scroll-margin-top: 5.5rem;
  margin-top: 2.75rem;
  padding-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.bots-purchases .bots-main__subtitle {
  margin-top: 0.25rem;
}

.bots-purchases__lead {
  margin: 0 0 0.85rem;
  max-width: 44rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.bots-purchases__empty {
  margin: 0.5rem 0 0;
  max-width: 44rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.bots-purchases__empty strong {
  color: #fff;
  font-weight: 600;
}

.bots-code {
  font-size: 0.9rem;
  color: #fff;
  word-break: break-all;
}

.bots-main__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.bots-main__lead {
  margin: 0 0 1.25rem;
  max-width: 44rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bots-main__lead strong {
  color: #fff;
  font-weight: 600;
}

.bots-main__lead code {
  font-size: 0.85em;
  color: var(--red-bright);
}

.bots-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(208, 0, 0, 0.07), rgba(0, 0, 0, 0.35));
}

.bots-toolbar .btn {
  margin: 0;
}

.bots-main__status {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.bots-main__note {
  margin: 2rem 0 0;
  max-width: 44rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.bots-main__note code {
  font-size: 0.85em;
  color: var(--text-muted);
}

.bots-banner {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(208, 160, 0, 0.45);
  border-radius: 4px;
  background: rgba(208, 160, 0, 0.08);
  color: var(--text-muted);
  line-height: 1.5;
}

.bots-banner--warn strong {
  color: #ffd88a;
}

.bots-banner .btn {
  margin-top: 0.75rem;
}

.bots-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.bots-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.bots-card:hover {
  border-color: rgba(208, 0, 0, 0.35);
  box-shadow: 0 0 20px rgba(208, 0, 0, 0.06);
}

.bots-card--rce {
  border-color: rgba(80, 170, 120, 0.35);
  box-shadow: 0 0 0 1px rgba(80, 170, 120, 0.08);
}

.bots-card__actions {
  margin-top: 0.65rem;
}

.bots-card__actions .btn {
  margin: 0;
}

.bots-card--empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bots-card__top {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.bots-card__icon {
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.bots-card__icon--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--text-muted);
}

.bots-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.bots-card__owner {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.58rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(208, 0, 0, 0.5);
  border-radius: 2px;
  vertical-align: middle;
}

.bots-card__id {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bots-card__bots {
  margin: 0;
}

.bots-card__row {
  margin-bottom: 0.85rem;
}

.bots-card__row:last-child {
  margin-bottom: 0;
}

.bots-card__row dt {
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.25rem;
}

.bots-card__row dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.bots-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

.bots-pill--yes {
  color: #fff;
  background: rgba(40, 160, 80, 0.35);
  border: 1px solid rgba(80, 200, 120, 0.45);
}

.bots-pill--no {
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.bots-pill--na {
  color: var(--text-muted);
  background: rgba(120, 120, 140, 0.2);
  border: 1px solid var(--border);
}

.bots-pill-hint {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  vertical-align: middle;
}

.bots-pill-hint code {
  font-size: 0.85em;
}

.bots-card__rust-hint {
  margin: 0.45rem 0 0;
  max-width: 22rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.bots-card__rust-hint strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.bots-plan-line {
  display: inline;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
}

.bots-guild-root {
  margin-top: 0.5rem;
}

.bots-guild-block {
  margin-bottom: 2.25rem;
}

.bots-guild-block:last-child {
  margin-bottom: 0;
}

.bots-guild-block .bots-main__subtitle {
  margin-top: 0;
}

.bots-guild-block__lead {
  margin: 0 0 1rem;
  max-width: 42rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.bots-guild-block__lead code {
  font-size: 0.85em;
  color: var(--text-muted);
}

.bots-guild-inline-note {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.bots-guild-inline-note code {
  font-size: 0.88em;
}

.bots-guild-inline-note--warn {
  border-color: rgba(208, 160, 0, 0.35);
  background: rgba(208, 160, 0, 0.06);
}

.bots-dialog {
  max-width: min(36rem, 94vw);
  width: 100%;
  padding: 0;
  border: 1px solid rgba(208, 0, 0, 0.35);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.bots-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.bots-dialog__panel {
  position: relative;
  padding: 1.35rem 1.35rem 1.15rem;
}

.bots-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.bots-dialog__close:hover {
  color: #fff;
  border-color: rgba(208, 0, 0, 0.45);
}

.bots-dialog__title {
  margin: 0 2.5rem 0.75rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.bots-dialog__body {
  font-size: 0.88rem;
  line-height: 1.5;
}

.bots-dialog__pills {
  margin-bottom: 0.75rem;
}

.bots-dialog__plan {
  margin-left: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.bots-dialog__meta {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.bots-dialog__meta strong {
  color: #e8e8e8;
  font-weight: 600;
}

.bots-dialog__table-wrap {
  margin-top: 0.5rem;
}

.bots-dialog__empty {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.bots-dialog__hint {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.bots-dialog__hint code {
  font-size: 0.88em;
  color: var(--red-bright);
}

.admin-denied {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-bright);
  background: rgba(208, 0, 0, 0.06);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table code {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-table__msg pre {
  margin: 0;
  font-family: inherit;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-muted);
  line-height: 1.45;
}

.admin-user-cell {
  min-width: 11rem;
}

.admin-user-cell__row {
  margin-bottom: 0.35rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.admin-user-cell__row:last-child {
  margin-bottom: 0;
}

.admin-user-cell__label {
  display: inline-block;
  min-width: 6.5rem;
  margin-right: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
  vertical-align: baseline;
}

.admin-user-cell__row--missing {
  font-size: 0.78rem;
  color: #c9a227;
}

.section--dim .section__lead a {
  color: var(--red-bright);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section--dim .section__lead a:hover,
.section--dim .section__lead a:focus-visible {
  color: #fff;
  outline: none;
}

/* —— Home landing (stats + centered Discord login) —— */
body.page-home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.site-header--home {
  flex-shrink: 0;
}

.landing-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4rem) 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: calc(1.5rem + var(--rail-width) + env(safe-area-inset-right, 0px));
  overflow: hidden;
}

@media (max-width: 640px) {
  .landing-main {
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  }
}

.landing-main__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% 20%, rgba(208, 0, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(208, 0, 0, 0.06), transparent 45%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(208, 0, 0, 0.06), transparent 45%),
    linear-gradient(180deg, #060606 0%, var(--bg) 100%);
  pointer-events: none;
}

.landing-main__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.landing-main__center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.landing-main__eyebrow {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.stat-glance {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

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

.stat-glance__item {
  padding: 1rem 0.75rem;
  background: rgba(12, 12, 12, 0.75);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.stat-glance__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 0 32px rgba(208, 0, 0, 0.2);
}

.stat-glance__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.stat-glance__meta {
  margin: 0 0 2.25rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.home-auth-center {
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-auth-center__inner {
  width: 100%;
}

.home-auth-center__inner--signedin {
  text-align: center;
}

.home-auth-center__hint {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.btn-auth-discord--hero {
  padding: 0.95rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.35);
}

.btn-auth-discord--hero:hover,
.btn-auth-discord--hero:focus-visible {
  box-shadow: 0 0 36px rgba(88, 101, 242, 0.55);
}

.home-auth-center__welcome {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.home-auth-center__welcome--compact {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.home-auth-center__welcome--compact strong {
  color: #fff;
  font-weight: 600;
}

.btn--enter-store {
  padding: 0.95rem 2.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  box-shadow: 0 0 28px rgba(208, 0, 0, 0.25);
}

.btn--enter-store:hover,
.btn--enter-store:focus-visible {
  box-shadow: 0 0 36px rgba(208, 0, 0, 0.4);
}

.site-footer--home {
  flex-shrink: 0;
  margin-top: auto;
}

/* —— Global leaderboard —— */
.page-leaderboard .lb-main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.lb-main__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #fff;
}

.lb-main__lead {
  margin: 0 0 1.75rem;
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.lb-main__lead code {
  color: var(--text);
  font-size: 0.9em;
}

.lb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.lb-filter {
  flex: 0 1 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lb-filter__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lb-filter__select {
  min-width: 11rem;
}

.lb-search {
  flex: 1 1 16rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lb-search__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lb-search__input {
  max-width: 28rem;
}

@media (max-width: 480px) {
  .lb-filter__select,
  .lb-search__input {
    font-size: 1rem;
  }
}

.lb-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lb-status {
  margin: 0 0 1rem;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lb-empty {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.lb-empty code {
  color: var(--text);
}

.lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lb-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: linear-gradient(145deg, var(--bg-elevated), #080808);
  align-items: start;
}

.lb-card__body {
  min-width: 0;
}

.lb-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a1a;
  border: 1px solid var(--border);
}

.lb-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-card__avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lb-card__rank {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red-bright);
  line-height: 1;
  align-self: start;
}

.lb-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.lb-card__guild {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lb-card__host {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lb-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.lb-card__stats dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.lb-card__stats dd {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.lb-card__updated {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .lb-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .lb-filter,
  .lb-search {
    flex: 1 1 auto;
    max-width: none;
  }

  .lb-filter__select {
    width: 100%;
    min-width: 0;
  }

  .lb-search__input {
    max-width: none;
    width: 100%;
  }

  .lb-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 0.85rem;
    row-gap: 0.65rem;
    padding: 1rem 1.05rem;
  }

  .lb-card__rank {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .lb-card__avatar {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .lb-card__body {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .lb-card__title {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }

  .lb-card__guild,
  .lb-card__host {
    overflow-wrap: anywhere;
  }
}
