@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=UnifrakturMaguntia&display=swap");

/* Global base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cinzel Decorative", "UnifrakturMaguntia", "Old English Text MT", "Cinzel", Georgia, serif;
  background: radial-gradient(circle at top, #0fd3ff 0, #001427 45%, #000814 100%);
  color: #f5f7ff;
  display: flex;
  flex-direction: column;
  position: relative;
}

:root {
  --panel: rgba(3, 10, 22, 0.8);
  --panel-strong: rgba(3, 10, 22, 0.92);
  --border: rgba(255, 255, 255, 0.12);
  --glow: rgba(15, 211, 255, 0.8);
  --accent: #0fd3ff;
  --accent-2: #7b2cff;
  --muted: rgba(245, 247, 255, 0.72);
  --radius-panel: 22px;
  --radius-card: 16px;
  --radius-chip: 12px;
  --radius-image: 14px;
  --radius-popup: 16px;
}

.admin-body {
  min-height: 100vh;
  overflow-y: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Remove browser focus rings sitewide */
*:focus,
*:focus-visible,
*:focus-within,
*:active {
  outline: none !important;
  box-shadow: none !important;
}

*:focus {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* Final override for Chrome mouse focus */
*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Absolute kill-switch for any button focus ring/glow */
button,
button:focus,
button:focus-visible,
button:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  outline-color: transparent !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

/* Explicitly silence shared card slot focus/active visuals */
.card-slot,
.card-slot:focus,
.card-slot:focus-visible,
.card-slot:active,
.card-slot.selected {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  outline-color: transparent !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
}

/* Top bar shared */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(15, 211, 255, 0.1));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0fd3ff, #7b2cff);
  color: #001427;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.8rem;
  opacity: 0.92;
}

.brand-clickable {
  cursor: pointer;
}

.top-nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.nav-btn {
  border: none;
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.4);
}

.nav-btn-accent {
  background: linear-gradient(90deg, #0fd3ff, #7b2cff);
  color: #001427;
  font-weight: 600;
}

/* Admin auth overlay */
.admin-app-shell.hidden {
  display: none;
}

.admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: radial-gradient(circle at 20% 20%, rgba(15, 211, 255, 0.08), rgba(0, 0, 0, 0.9));
  backdrop-filter: blur(12px);
}

.admin-login-card {
  width: min(420px, 100%);
  background: rgba(3, 10, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.7);
}

.admin-login-card h1 {
  margin: 0 0 0.4rem;
  letter-spacing: 0.05em;
}

.admin-login-hint {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-login-form label {
  font-size: 0.82rem;
  opacity: 0.9;
}

.admin-login-status {
  min-height: 1.1rem;
  margin: 0.2rem 0 0;
  color: #f7c244;
  font-size: 0.85rem;
}

.admin-login-status.error {
  color: #ff8a8a;
}

.page-footer {
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Global overlay GIF (admin/entrance) */
.page-gif-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-gif, none) center/cover repeat;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.5s ease;
}

.page-gif-overlay.overlay-active {
  opacity: 0.35;
}


/* =============================== */
/*           ENTRANCE              */
/* =============================== */

.entrance-single {
  min-height: 100vh;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 25vh 1.4rem 1.4rem;
  background: #000;
  color: #fff;
}

.entrance-single-wrapper {
  padding: 1.4rem;
  text-align: center;
}

.entrance-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: transparent;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(252, 244, 255, 0.98) 0%,
    rgba(98, 70, 155, 0.95) 38%,
    rgba(28, 144, 189, 0.9) 68%,
    rgba(255, 110, 82, 0.88) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 10px rgba(252, 244, 255, 0.9),
    0 0 22px rgba(98, 70, 155, 0.85),
    0 0 38px rgba(28, 144, 189, 0.7),
    0 0 56px rgba(255, 110, 82, 0.44),
    0 0 72px rgba(0, 0, 0, 0.9);
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.6));
  mix-blend-mode: screen;
  opacity: 0.95;
  animation: hauntPulse 3s ease-in-out infinite alternate;
  cursor: pointer;
}

@keyframes hauntPulse {
  0% {
    opacity: 0.82;
    letter-spacing: 0.12em;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.4));
  }
  50% {
    opacity: 0.94;
    letter-spacing: 0.14em;
    text-shadow:
      0 0 24px rgba(98, 70, 155, 0.86),
      0 0 48px rgba(28, 144, 189, 0.68),
      0 0 66px rgba(255, 110, 82, 0.5),
      0 0 80px rgba(0, 0, 0, 0.95);
  }
  100% {
    opacity: 0.86;
    letter-spacing: 0.16em;
    text-shadow:
      0 0 26px rgba(98, 70, 155, 0.78),
      0 0 56px rgba(28, 144, 189, 0.6),
      0 0 82px rgba(255, 110, 82, 0.42),
      0 0 90px rgba(0, 0, 0, 0.82);
  }
}

.page-fade {
  opacity: 0;
  transition: opacity 280ms ease;
}

.page-fade.page-loaded {
  opacity: 1;
}

.page-fade.page-exit {
  opacity: 0;
}


.boot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: grid;
  place-items: center;
  z-index: 120;
}

.boot-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  min-width: 240px;
}

.boot-title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.boot-title .blink {
  animation: blink 0.5s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.boot-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
}

.boot-option {
  position: relative;
  text-align: left;
  padding-left: 3.5rem;
}

/* Nuke Chrome focus ring/glow on boot options */
.boot-option,
.boot-option:focus,
.boot-option:focus-visible,
.boot-option:active,
.boot-option.selected {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  outline-offset: 0 !important;
  -webkit-tap-highlight-color: transparent;
}

.boot-option::before {
  content: "►";
  position: absolute;
  left: -1.4rem;
  top: 50%;
  transform: translate(0, -50%) scale(1.2);
  opacity: 0;
  transition: transform 140ms ease, opacity 140ms ease;
  color: #2dfc7f;
  font-size: 1.2rem;
  text-shadow: 0 0 12px rgba(45, 252, 127, 0.6);
}

.boot-option.selected::before {
  opacity: 1;
  transform: translate(6px, -50%) scale(1.25);
}

.entrance-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 1rem 1.4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.entrance-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  background: linear-gradient(140deg, rgba(15, 211, 255, 0.18), rgba(0, 12, 26, 0.9));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
}

.hero-copy h1 {
  margin: 0.15rem 0 0.4rem;
}

.hero-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.entrance-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 0.6rem;
}

.ghost-link {
  align-self: center;
  color: var(--muted);
  text-decoration: underline;
  font-size: 0.9rem;
}

.entrance-stats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #f5f7ff;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.entrance-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-card {
  width: 100%;
  max-width: 460px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.65);
}

.status-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.status-card h3 {
  margin: 0.2rem 0 0.35rem;
}

.status-card p {
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.status-list {
  margin: 0.4rem 0 0.65rem 0.8rem;
  padding: 0;
  color: var(--muted);
}

.status-footer {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
}

.chip.online {
  background: rgba(57, 255, 160, 0.18);
  color: #9cffc7;
}

.chip.passive {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7ff;
}

.entrance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}

.entrance-tile {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.55);
}

.entrance-tile h3 {
  margin: 0.1rem 0 0.3rem;
}

.entrance-tile p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .entrance-hero {
    grid-template-columns: 1fr;
  }

  .entrance-layout {
    padding: 0.9rem 0.7rem 1.2rem;
  }
}

/* Two-column layout:
   - LEFT: preview + Add Card (stacked)
   - RIGHT: box grid                          */
.admin-page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem 0;
  width: 100%;
  margin: 0;
}

.hero-text h1 {
  margin: 0.2rem 0 0.4rem;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.hero-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(500px, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0.75rem;
  width: 100%;
  margin: 0.4rem 0 0.75rem;
  padding: 0 0.8rem;
  min-height: 0;
  align-items: stretch;
}

@media (max-width: 960px) {
  .admin-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 0.6rem 0;
  }

  .admin-layout {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    padding: 0 0.6rem;
  }

  .admin-tools-panel {
    padding-left: 0;
  }
}

/* Left column wrapper: stacks preview card and Add Card panel */
.admin-left {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding-right: 0.35rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

/* Preview section itself */
.admin-preview {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.admin-form-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-heading {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
}

.panel-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.preview-card {
  border-radius: 22px;
  background: radial-gradient(circle at top, rgba(15, 211, 255, 0.3), rgba(0, 0, 0, 0.96));
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.9);
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "image details"
    "actions actions";
  gap: 0.8rem;
}

/* FIXED CARD RATIO + NO ZOOM */
.preview-image-wrapper {
  background: #9cd0ff;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* keep the card shape consistent */
  aspect-ratio: 2 / 3;
  grid-area: image;
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.preview-placeholder {
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.preview-details {
  display: flex;
  flex-direction: column;
  grid-area: details;
}

.preview-name {
  margin: 0.5rem 0 0;
  font-size: 1.3rem;
}

.preview-meta {
  margin: 0.18rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-price {
  font-weight: 700;
  color: #4cf0a6;
  margin-top: 0.4rem;
}

.preview-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.preview-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding: 0.45rem 0.65rem 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  grid-area: actions;
  width: 100%;
}

.preview-actions label {
  grid-column: 1 / -1;
  color: var(--muted);
}

.preview-actions .inline-input {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}

.preview-actions select,
.preview-actions button {
  width: 100%;
  grid-column: 1 / -1;
}

/* RIGHT: Grid section on its own column */

.admin-main {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.admin-grid-section {
  border-radius: 20px;
  background: var(--panel);
  border: none;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.admin-tools-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-left: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  align-self: stretch;
  max-height: none;
  overflow: visible;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.admin-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

@media (max-width: 720px) {
  .admin-grid-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.box-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chip-btn {
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7ff;
  cursor: pointer;
  font-size: 0.8rem;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0fd3ff, #7b2cff);
  color: #001427;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7ff;
  border: 1px solid var(--border);
}

.box-label {
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.box-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.search-input {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.7);
  color: #f5f7ff;
  font-size: 0.8rem;
  min-width: 160px;
}

.search-input::placeholder {
  color: rgba(245, 247, 255, 0.65);
}

.chip-select {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.7);
  color: #f5f7ff;
  font-size: 0.8rem;
  padding: 0.26rem 0.55rem;
}

/* Card grid */

.admin-grid-shell {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(15, 211, 255, 0.08));
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 0;
  scrollbar-gutter: stable;
}

.admin-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  grid-template-rows: repeat(5, 110px);
  grid-auto-rows: 110px;
  grid-auto-flow: row;
  gap: 0.55rem;
  padding: 0.8rem 0.9rem;
  background: radial-gradient(circle at 20% 20%, rgba(15, 211, 255, 0.08), transparent 42%),
    radial-gradient(circle at 70% 10%, rgba(123, 44, 255, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 9, 20, 0.88)),
    var(--sprite-grid-gif, #000c1a);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(1.12) saturate(1.12);
  border-radius: 14px;
  min-height: 0;
  width: 100%;
  overflow: auto;
  position: relative;
  min-height: calc(110px * 5 + 0.5rem * 4 + 1.2rem);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1080px) {
  .admin-grid {
    grid-template-columns: repeat(5, minmax(90px, 1fr));
  }
}

@media (max-width: 780px) {
  .admin-grid {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }
}

.grid-empty {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
}

.admin-theme-panel {
  margin-top: 0;
  padding: 0.85rem 0.85rem 0.9rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.6rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 0.15rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.theme-card {
  padding: 0.7rem;
  border-radius: 10px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
  min-height: 0;
}

.admin-theme-panel h3 {
  margin: 0 0 0.35rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.theme-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.theme-card h4 {
  margin: 0;
  letter-spacing: 0.04em;
}

.admin-theme-panel .inline-input {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.admin-theme-panel .inline-input input {
  flex: 1;
}

.admin-theme-panel h3 + .form-row h3 {
  margin-top: 0;
}

.admin-card-slot {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.95));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.3rem 0.25rem;
  cursor: pointer;
  transition: 0.1s ease;
  position: relative;
  overflow: hidden;
}

.admin-card-slot.has-request-tag {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 12px 26px rgba(0, 0, 0, 0.55);
}

.admin-card-slot.has-request-tag { border-color: rgba(67, 204, 255, 0.55); }

.admin-card-slot:hover {
  border-color: rgba(15, 211, 255, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.admin-card-slot::before {
  content: none;
}

.request-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #05060a;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

/* thumbnail wrapper in grid */
.admin-card-image-wrapper {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.8);
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-card-sprite {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.admin-card-label {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 0.1rem;
}

/* Shared store/admin card slots */

.box-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  grid-auto-rows: 110px;
  gap: 0.5rem;
  background: #000c1a;
  padding: 0.5rem;
  border-radius: 14px;
  border: 3px solid rgba(15, 211, 255, 0.8);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.card-slot {
  background: #02152f;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

.card-slot:focus,
.card-slot:focus-visible,
.card-slot:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.04);
}

/* GRID SPRITES – keep full card ratio, no squish */
.card-sprite {
  max-width: 100%;
  max-height: 100%;
  width: 90%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.card-slot-name {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  font-size: 0.7rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  padding: 0.1rem 0.25rem;
  border-radius: 6px;
  color: #f5f7ff;
}

/* Admin form */

.admin-form-section {
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85);
  /* prevent children from visually spilling past rounded edges */
  overflow: hidden;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-row label {
  font-size: 0.78rem;
  opacity: 0.9;
}

/* make all inputs respect panel width */
.form-row input,
.form-row select {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.65);
  color: #f5f7ff;
  padding: 0.32rem 0.7rem;
  font-size: 0.84rem;
  width: 100%;
  max-width: 100%;
}

.form-row input:focus,
.form-row select:focus,
.search-input:focus,
.chip-select:focus,
.trade-field input:focus,
.trade-field select:focus,
.trade-request-actions button:focus {
  outline: 2px solid rgba(59, 199, 255, 0.9);
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px rgba(255, 79, 163, 0.35),
    0 0 18px rgba(59, 199, 255, 0.7);
  border-color: rgba(255, 79, 163, 0.6);
}

/* two-column rows stay inside the panel */
.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}

/* better behavior for file inputs so they don't stick out */
.admin-form input[type="file"] {
  padding: 0.25rem 0.7rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  width: 100%;
  max-width: 100%;
}

/* stack columns on very narrow screens */
@media (max-width: 480px) {
  .form-row.two-cols {
    grid-template-columns: 1fr;
  }
}

.primary-btn {
  border-radius: 999px;
  border: none;
  padding: 0.38rem 0.9rem;
  background: linear-gradient(90deg, #0fd3ff, #7b2cff);
  color: #001427;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.secondary-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.35rem 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  color: #f5f7ff;
  font-size: 0.85rem;
  cursor: pointer;
}

.danger-btn {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  background: #ff3355;
  color: #f5f7ff;
}

.danger-btn:hover {
  background: #ff5577;
}

.full-width {
  width: 100%;
}

/* === Checkout === */
.checkout-trade {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 0.8rem;
  padding: 0.9rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .checkout-trade {
    grid-template-columns: 1fr;
    padding: 0.45rem 0.4rem 0.9rem;
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
  }

  .trade-panel {
    padding: 0.75rem 0.7rem 0.8rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .trade-banner {
    transform: translateX(-50%) scale(0.9);
  }

  /* Swap order so Eli panel shows above payment on mobile */
  .trade-panel-left {
    order: 2;
  }

  .trade-panel-right {
    order: 1;
    max-width: 100%;
    overflow: hidden;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .trade-form {
    gap: 0.5rem;
  }

  .trade-field {
    font-size: 0.86rem;
    gap: 0.3rem;
  }

  .trade-field span {
    font-size: 0.85rem;
  }

  .trade-field input,
  .trade-field select {
    padding: 0.55rem 0.65rem;
    font-size: 0.9rem;
  }

  /* Soften neon outlines on payment cards */
  .payment-option {
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
  }

  .payment-option.selected {
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.3);
  }
}

.trade-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 1.1rem 0.9rem 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.trade-panel-left {
  align-self: start;
  height: auto;
}

.trade-panel-right {
  background: linear-gradient(180deg, rgba(17, 31, 68, 0.7), rgba(5, 12, 28, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.trade-header h1,
.trade-header h2 {
  margin: 0 0 0.1rem;
}

.trade-total {
  font-weight: 800;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0fd3ff, #7b2cff);
  color: #001427;
  box-shadow: 0 0 12px rgba(15, 211, 255, 0.35);
}

.trade-empty {
  background: rgba(0, 0, 0, 0.45);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-card);
  border: 1px dashed var(--border);
  margin: 0.4rem 0;
}

.trade-banner {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f89a1c, #d96a00);
  color: #1b0d00;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.4rem 1.6rem;
  border-radius: var(--radius-card);
  border: 2px solid #b05300;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.payment-options {
  display: grid;
  gap: 0.5rem;
  margin: 0.4rem 0 0.4rem;
}

.payment-option {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-radius: var(--radius-card);
  background: none;
  border: none;
  color: #f5f7ff;
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease;
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "icon label"
    "icon detail"
    "icon desc";
  column-gap: 0.55rem;
  align-items: center;
}

.payment-option.selected {
  box-shadow: none;
  transform: translateY(-2px);
  color: #0fd3ff;
}

.payment-option-icon {
  grid-area: icon;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-card);
  background: none;
  border: none;
  padding: 0.35rem;
  animation: spriteBounce 0.9s ease-in-out infinite;
}

.payment-option-label {
  grid-area: label;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.payment-option-detail {
  grid-area: detail;
  color: #0fd3ff;
  font-weight: 700;
  margin-top: 0.1rem;
}

.payment-option-desc {
  grid-area: desc;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.12rem;
}

@media (max-width: 720px) {
  .payment-option {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "icon label"
      "icon desc";
  }

  .payment-option-icon {
    width: 56px;
    height: 56px;
    padding: 0.25rem;
  }

  .payment-option-label {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
  }

  .payment-option-desc {
    font-size: 0.86rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
  }

  .payment-option-detail {
    letter-spacing: 0.02em;
  }

  .payment-option.selected {
    transform: none;
    background: rgba(15, 211, 255, 0.1);
    box-shadow: none;
  }

  .payment-options {
    gap: 0.45rem;
  }
}

.payment-option:nth-child(odd) .payment-option-icon {
  animation-duration: 0.82s;
  animation-delay: -0.1s;
}

.payment-option:nth-child(3n) .payment-option-icon {
  animation-duration: 0.78s;
  animation-delay: -0.2s;
}

.payment-option.key-focus,
.party-slot-card.key-focus {
  outline: 2px solid #7cffd5 !important;
  outline-offset: 2px;
  border-radius: var(--radius-card);
  box-shadow: 0 0 18px rgba(124, 255, 213, 0.95), 0 0 32px rgba(124, 255, 213, 0.4);
}

.payment-option:focus,
.payment-option:focus-visible,
.payment-option:active,
.party-slot-card:focus,
.party-slot-card:focus-visible,
.party-slot-card:active {
  outline: none;
  box-shadow: none;
}

/* Remove transient browser focus ring on checkout buttons */
.checkout-trade button:focus,
.checkout-trade button:focus-visible,
.checkout-trade button:active {
  outline: none;
  box-shadow: none;
}

/* Allow custom key-focus highlights */
.key-focus,
.key-focus:focus,
.key-focus:focus-visible,
.key-focus:active {
  outline: 2px solid #7cffd5;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px rgba(124, 255, 213, 0.45),
    0 0 18px rgba(124, 255, 213, 0.6);
}

.party-slot-card.selected {
  outline: none;
  outline-offset: 0;
  border-radius: var(--radius-card);
  box-shadow: none;
}

.checkout-popup {
  position: absolute;
  background: linear-gradient(135deg, rgba(20, 8, 32, 0.92), rgba(6, 20, 46, 0.92));
  border-radius: 10px;
  border: 1px solid rgba(255, 79, 163, 0.45);
  padding: 0.35rem 0.45rem;
  display: flex;
  flex-direction: row;
  gap: 0.3rem;
  z-index: 200;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(59, 199, 255, 0.4),
    0 0 12px rgba(255, 79, 163, 0.35);
  min-width: 140px;
  pointer-events: auto;
}

.checkout-popup:focus-within {
  box-shadow:
    0 0 0 3px rgba(59, 199, 255, 0.95),
    0 0 36px rgba(255, 79, 163, 0.95),
    0 16px 28px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 79, 163, 0.7);
}

.checkout-popup button {
  border: 1px solid rgba(255, 79, 163, 0.45);
  border-radius: 999px;
  padding: 0.32rem 0.95rem;
  background: linear-gradient(140deg, rgba(12, 28, 56, 0.9), rgba(18, 10, 32, 0.9));
  color: #e7e9ff;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(255, 79, 163, 0.3),
    0 0 16px rgba(59, 199, 255, 0.38);
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}

.checkout-popup-primary {
  background: linear-gradient(120deg, #0fd3ff 0%, #7b2cff 55%, #ff4fa3 100%);
  color: #0c0f1a;
  border: none;
  font-weight: 700;
  box-shadow:
    0 0 0 2px rgba(255, 79, 163, 0.45),
    0 0 18px rgba(59, 199, 255, 0.55),
    0 0 22px rgba(255, 79, 163, 0.45);
}

.checkout-popup-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e7e9ff;
}

.checkout-popup button:hover {
  box-shadow:
    0 0 0 2px rgba(255, 79, 163, 0.55),
    0 0 24px rgba(59, 199, 255, 0.65),
    0 0 20px rgba(255, 79, 163, 0.6);
}

.checkout-popup button.key-focus {
  outline: 2px solid #ff4fa3;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px rgba(59, 199, 255, 0.55),
    0 0 22px rgba(255, 79, 163, 0.95),
    0 0 28px rgba(59, 199, 255, 0.95);
  background: linear-gradient(120deg, rgba(255, 79, 163, 0.35), rgba(59, 199, 255, 0.35));
}

/* Trade request modal */
.trade-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
}

.trade-modal.hidden {
  display: none;
}

.trade-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(8px);
}

.trade-card {
  position: relative;
  width: min(520px, 92vw);
  background: radial-gradient(circle at 20% 20%, rgba(255, 79, 163, 0.08), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(59, 199, 255, 0.08), transparent 38%),
    linear-gradient(135deg, rgba(20, 12, 32, 0.95), rgba(10, 22, 42, 0.95));
  border: 1px solid rgba(255, 79, 163, 0.6);
  border-radius: 18px;
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.85),
    0 0 36px rgba(255, 79, 163, 0.35),
    0 0 28px rgba(59, 199, 255, 0.3);
  padding: 0.9rem 1.1rem 1.05rem;
  display: grid;
  gap: 0.6rem;
}

@media (max-width: 520px) {
  .trade-card {
    width: 90vw;
    max-height: 90vh;
    padding: 0.55rem 0.7rem 0.75rem;
    gap: 0.38rem;
    overflow-y: auto;
  }

  .trade-card-title {
    font-size: 0.98rem;
  }

  .trade-card-subtitle {
    font-size: 0.78rem;
  }

  .trade-form {
    gap: 0.42rem;
  }

  .trade-field {
    font-size: 0.82rem;
    gap: 0.24rem;
  }

  .trade-field span {
    font-size: 0.8rem;
  }

  .trade-field input,
  .trade-field select {
    padding: 0.46rem 0.6rem;
    font-size: 0.85rem;
  }
}

@media (orientation: landscape) and (max-width: 1100px) {
  .trade-card {
    width: 88vw;
    max-height: 86vh;
    overflow-y: auto;
  }
}


.trade-card-header {
  display: grid;
  gap: 0.25rem;
}

.trade-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.trade-card-subtitle {
  margin: 0;
  color: #cfd6ff;
  opacity: 0.9;
  font-size: 0.9rem;
}

.trade-form {
  display: grid;
  gap: 0.65rem;
}

.trade-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #e7e9ff;
}

.trade-field span {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.trade-field input,
.trade-field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7ff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  color-scheme: dark;
}

.trade-field input:focus,
.trade-field select:focus {
  outline: none;
  border-color: rgba(255, 79, 163, 0.7);
  box-shadow:
    0 0 0 2px rgba(59, 199, 255, 0.35),
    0 0 16px rgba(255, 79, 163, 0.6);
}

.trade-field select option {
  background: #0c1628;
  color: #f5f7ff;
}

.trade-date-input-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.trade-date-display {
  margin-top: 0.35rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.trade-calendar {
  margin-top: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  padding: 0.6rem;
  display: grid;
  gap: 0.4rem;
  max-width: 320px;
}

.trade-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.trade-calendar-nav {
  display: inline-flex;
  gap: 0.35rem;
}

.trade-calendar button {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7ff;
  cursor: pointer;
}

.trade-calendar button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.trade-calendar-title {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.trade-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 0.75rem;
  opacity: 0.75;
  text-align: center;
}

.trade-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.trade-day {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.trade-day:hover {
  background: rgba(255, 255, 255, 0.12);
}

.trade-day.unavailable {
  opacity: 0.35;
  cursor: not-allowed;
}

.trade-day.selected {
  background: linear-gradient(120deg, rgba(255, 79, 163, 0.35), rgba(59, 199, 255, 0.35));
  border-color: rgba(255, 79, 163, 0.8);
  box-shadow: 0 0 0 2px rgba(59, 199, 255, 0.3), 0 0 14px rgba(255, 79, 163, 0.6);
}

.trade-day.today {
  border-color: rgba(59, 199, 255, 0.7);
}

.day-checkbox-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.day-checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.32rem 0.55rem;
}

.day-checkbox-group input[type="checkbox"] {
  accent-color: #ff4fa3;
}

.active-request-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(135deg, rgba(67, 204, 255, 0.16), rgba(15, 211, 255, 0.08));
  border: 1px solid rgba(67, 204, 255, 0.35);
  border-radius: 12px;
  margin: 0.5rem 0;
  color: #dff6ff;
  backdrop-filter: blur(6px);
}

.active-request-banner .chip-btn {
  background: rgba(255, 255, 255, 0.12);
}

.active-request-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.active-request-text {
  flex: 1;
}

.trade-requests-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trade-request-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 0.35rem;
}

.trade-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.trade-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.trade-request-actions button {
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7ff;
  cursor: pointer;
}

.pill-status {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  background: rgba(59, 199, 255, 0.15);
  border: 1px solid rgba(59, 199, 255, 0.4);
}

.pill-status.pending { background: rgba(255, 193, 59, 0.15); border-color: rgba(255, 193, 59, 0.5); }
.pill-status.accepted { background: rgba(59, 199, 255, 0.15); border-color: rgba(59, 199, 255, 0.5); }
.pill-status.denied, .pill-status.cancelled { background: rgba(255, 79, 163, 0.15); border-color: rgba(255, 79, 163, 0.5); }
.pill-status.sold { background: rgba(80, 215, 137, 0.18); border-color: rgba(80, 215, 137, 0.5); }
.pill-status.released { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }

.day-time-grid {
  display: grid;
  gap: 0.35rem;
}

.day-time-row {
  display: grid;
  grid-template-columns: 42px 1fr 24px 1fr;
  gap: 0.35rem;
  align-items: center;
}

.day-time-row input {
  border-radius: 10px;
}

.trade-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.checkout-summary {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 250;
}

.checkout-summary.hidden {
  display: none;
}

.footer-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-link {
  color: #0fd3ff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(15, 211, 255, 0.4);
  border-radius: 999px;
  background: rgba(15, 211, 255, 0.08);
  box-shadow: 0 0 12px rgba(15, 211, 255, 0.25);
  display: inline-block;
}

.footer-link:hover {
  background: rgba(15, 211, 255, 0.16);
}

.footer-link:focus,
.footer-link:focus-visible {
  outline: 2px solid #7cffd5 !important;
  outline-offset: 3px;
  box-shadow:
    0 0 0 2px rgba(124, 255, 213, 0.45),
    0 0 16px rgba(124, 255, 213, 0.8) !important;
}

.trade-footer-link {
  margin-top: 0.6rem;
}

/* Final force-off for mouse focus rings anywhere shared */
body *:focus,
body *:focus-visible,
body *:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.checkout-summary-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.checkout-summary-card {
  position: relative;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-panel);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
  width: min(480px, 90vw);
}

.checkout-summary-image-wrap {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  aspect-ratio: 1;
}

.checkout-summary-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.summary-lens {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background-repeat: no-repeat;
  pointer-events: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.summary-lens.hidden {
  display: none;
}

.checkout-summary-details h3 {
  margin: 0 0 0.3rem;
}

.checkout-summary-details p {
  margin: 0.1rem 0;
  color: var(--muted);
}

.checkout-summary-close {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7ff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.payment-notes {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.4rem 0 0.6rem;
}

.payment-notes textarea {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  color: #f5f7ff;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  min-height: 90px;
  resize: vertical;
}

.trade-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trade-bottom {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.trade-footnote {
  margin-top: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.party-total-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.center-total {
  justify-content: center;
}

.stick-bottom {
  margin-top: auto;
  padding-top: 0.6rem;
}

.party-grid-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.6rem;
}

@media (max-width: 640px) {
  .party-grid-roster {
    grid-template-columns: 1fr;
  }
}

.party-slot-card {
  background: linear-gradient(180deg, rgba(16, 36, 84, 0.8), rgba(6, 14, 34, 0.92));
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "img name"
    "img meta";
  column-gap: 0.5rem;
  row-gap: 0.22rem;
}

.party-slot-sprite {
  grid-area: img;
  width: 76px;
  height: 76px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: var(--radius-image);
  background: none;
  padding: 0.2rem;
  border: none;
  animation: spriteBounce 0.9s ease-in-out infinite;
}

.party-slot-card:nth-child(odd) .party-slot-sprite {
  animation-duration: 0.82s;
  animation-delay: -0.1s;
}

.party-slot-card:nth-child(3n) .party-slot-sprite {
  animation-duration: 0.78s;
  animation-delay: -0.2s;
}

.party-slot-name {
  grid-area: name;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.party-slot-meta {
  grid-area: meta;
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes spriteBounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Party sprites lived in store.css; only store uses them */

/* Utility */
.hidden {
  display: none !important;
}
