:root {
  --bg: #0a0a12;
  --bg-dark: #06060c;
  --surface: #14141f;
  --surface-elevated: #1a1a28;
  --ink: #eef0f6;
  --muted: #8b8fa3;
  --line: rgba(255, 255, 255, .08);
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --accent: #00d2ff;
  --accent-warm: #ff6b6b;
  --soft-purple: rgba(139, 92, 246, .12);
  --gradient-brand: linear-gradient(135deg, #8e2de2 0%, #4a00e0 45%, #00d2ff 100%);
  --gradient-text: linear-gradient(90deg, #c084fc 0%, #8b5cf6 35%, #00d2ff 100%);
  --platform-ps: #003087;
  --platform-xbox: #107c10;
  --platform-nintendo: #e60012;
  --platform-ps-text: #8ec5ff;
  --platform-ps-bg: rgba(59, 130, 246, .2);
  --platform-ps-border: rgba(96, 165, 250, .38);
  --platform-xbox-text: #86efac;
  --platform-xbox-bg: rgba(34, 197, 94, .18);
  --platform-xbox-border: rgba(74, 222, 128, .34);
  --platform-nintendo-text: #ffa3ad;
  --platform-nintendo-bg: rgba(244, 63, 94, .18);
  --platform-nintendo-border: rgba(251, 113, 133, .34);
  --platform-other-text: #c4b5fd;
  --platform-other-bg: rgba(139, 92, 246, .18);
  --platform-other-border: rgba(167, 139, 250, .34);
  --success: #7ee8ff;
  --success-soft: rgba(0, 210, 255, .1);
  --success-border: rgba(0, 210, 255, .32);
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
  --shadow-glow: 0 12px 32px rgba(139, 92, 246, .22);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --page-gutter: clamp(16px, 2.5vw, 28px);
  --content-max: 1920px;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .12);
  --portrait-ratio: 2 / 3;
  --font-display: Rajdhani, Inter, ui-sans-serif, system-ui, sans-serif;
  --header-height: 92px;
  --logo-height: clamp(54px, 4.6vw, 62px);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

main#top:focus {
  outline: none;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

button { cursor: pointer; color: inherit; }

h1, h2, h3, .section-label {
  font-family: var(--font-display);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient {
  background: var(--gradient-brand);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(calc(var(--content-max) - (var(--page-gutter) * 2)), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 18, .82);
  border-bottom: 1px solid rgba(139, 92, 246, .18);
  overflow: visible;
}

.site-header.nav-open {
  border-bottom-color: rgba(139, 92, 246, .28);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  padding: 0;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  background: transparent;
  padding: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: var(--logo-height);
  width: auto;
  background: transparent;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, .28));
}

.brand-logo--footer {
  height: 38px;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 2px 0;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gradient-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-account-menu {
  position: relative;
}

.nav-account-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.nav-account-trigger {
  display: inline-flex;
  cursor: default;
}

.nav-burger-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.nav-burger-toggle:hover {
  border-color: rgba(139, 92, 246, .35);
  background: rgba(139, 92, 246, .08);
}

.nav-burger-icon,
.nav-burger-icon::before,
.nav-burger-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-burger-icon {
  position: relative;
}

.nav-burger-icon::before,
.nav-burger-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-burger-icon::before { top: -6px; }
.nav-burger-icon::after { top: 6px; }

.site-header.nav-open .nav-burger-icon { background: transparent; }
.site-header.nav-open .nav-burger-icon::before { top: 0; transform: rotate(45deg); }
.site-header.nav-open .nav-burger-icon::after { top: 0; transform: rotate(-45deg); }

.nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 18, .96);
}

.nav-mobile-panel a,
.nav-mobile-panel .nav-dropdown-link,
.nav-mobile-panel .logout-form button.nav-dropdown-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}

.nav-mobile-panel a:hover,
.nav-mobile-panel a.active,
.nav-mobile-panel .nav-dropdown-link:hover,
.nav-mobile-panel .logout-form button.nav-dropdown-link:hover {
  color: var(--ink);
  background: var(--soft-purple);
}

.nav-mobile-divider {
  height: 1px;
  margin: 8px 0;
  background: var(--line);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: .95rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.nav-dropdown a,
.nav-dropdown .nav-link-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  color: var(--ink);
  background: var(--soft-purple);
}

.nav-dropdown .logout-form {
  margin: 0;
}

.nav-dropdown .nav-dropdown-link,
.nav-dropdown .logout-form button.nav-dropdown-link {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.nav-dropdown .logout-form button.nav-dropdown-link:hover {
  color: var(--ink);
  background: var(--soft-purple);
  transform: none;
  box-shadow: none;
}

.nav-account-menu:hover:not(.nav-account-menu--closed) .account-dropdown,
.notification-bell:hover:not(.notification-bell--closed) .notification-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-account-menu--closed .account-dropdown,
.notification-bell--closed .notification-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: none;
}

.btn {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-weight: 750;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 9px 28px rgba(139, 92, 246, .32);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 12px 34px rgba(139, 92, 246, .42);
}

.btn-soft {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-soft:hover:not(:disabled) {
  border-color: rgba(139, 92, 246, .35);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  border: 0;
  color: var(--muted);
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  color: var(--ink);
  transform: none;
}

.btn-small {
  min-height: 38px;
  border-radius: 11px;
  padding: 0 13px;
  font-size: .9rem;
}

.desktop-cta {
  flex-shrink: 0;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  max-width: 200px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, .24);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-badge-header {
  flex-shrink: 1;
  min-width: 0;
}

.account-badge-menu {
  width: 100%;
  max-width: none;
  margin-bottom: 4px;
}

.nav-account-badge {
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.hero {
  position: relative;
  padding: 0 0 52px;
  overflow: hidden;
  min-height: clamp(520px, 78vh, 820px);
  background:
    radial-gradient(circle at 18% 22%, rgba(139, 92, 246, .18), transparent 38%),
    radial-gradient(circle at 82% 8%, rgba(0, 210, 255, .14), transparent 34%),
    linear-gradient(180deg, rgba(6, 6, 12, .4), transparent 55%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(139, 92, 246, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 210, 255, .04) 1px, transparent 1px);
  background-size: 120px 100%, 100% 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding-top: 16px;
  min-height: clamp(420px, 62vh, 640px);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-scene::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(10, 10, 18, .55) 55%, var(--bg) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-character-scene {
  position: absolute;
  top: 0;
  left: min(46%, calc(100% - 380px));
  right: 0;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 14%, #000 28%, #000 78%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 90%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 14%, #000 28%, #000 78%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero-character-img {
  position: absolute;
  top: -4%;
  right: -14%;
  width: 118%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  object-position: 62% 38%;
  display: block;
  filter: saturate(1.1) brightness(1.05);
}

.hero-scene-glow {
  position: absolute;
  top: 18%;
  right: 8%;
  width: min(480px, 38vw);
  height: min(480px, 58%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(139, 92, 246, .32) 0%, rgba(0, 210, 255, .14) 42%, transparent 72%);
  filter: blur(32px);
}

.hero-scene-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 18, .94) 18%, rgba(10, 10, 18, .55) 32%, rgba(10, 10, 18, .12) 46%, transparent 58%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(139, 92, 246, .28);
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, .1);
  font-size: .86rem;
  font-weight: 720;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 210, 255, .12);
}

h1, h2, h3, p { margin-top: 0; }

.hero-title {
  margin: 18px 0 20px;
  max-width: 680px;
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.04em;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-headline-main {
  display: block;
  color: var(--ink);
}

.hero-headline-accent {
  display: block;
}

h1 {
  margin: 18px 0 20px;
  max-width: 680px;
  font-size: clamp(2.85rem, 6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.hero-copy {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-proof {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: .93rem;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  max-width: fit-content;
}

.avatars { display: flex; }

.avatar {
  width: 30px;
  height: 30px;
  margin-left: -7px;
  border: 2px solid var(--surface);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #ffd5b1, #ff8c7d);
  color: #7d312c;
  font-size: .7rem;
  font-weight: 800;
}

.avatar:first-child {
  margin-left: 0;
  background: linear-gradient(140deg, #7dd3fc, #6366f1);
  color: #1e1b4b;
}

.avatar:nth-child(3) {
  background: linear-gradient(140deg, #d8f1b0, #96c76a);
  color: #386232;
}

.avatar:nth-child(4) {
  background: linear-gradient(140deg, #f3c4ff, #ba73d2);
  color: #5f236e;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(63, 58, 243, .12);
  border-radius: 50%;
}

.orbit.one { width: 455px; height: 455px; right: -58px; top: 18px; }
.orbit.two { width: 325px; height: 325px; right: 8px; top: 84px; }

.loan-card {
  position: absolute;
  z-index: 2;
  width: min(100%, 415px);
  padding: 19px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.93);
  box-shadow: 0 26px 65px rgba(32, 37, 69, .16);
  backdrop-filter: blur(12px);
}

.loan-card.top { top: 42px; right: 30px; }
.loan-card.bottom { bottom: 16px; left: 2px; width: 330px; }

.loan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.label {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.status {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eff8df;
  color: #557b17;
  font-size: .74rem;
  font-weight: 760;
}

.game-row {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.cover {
  position: relative;
  flex: 0 0 auto;
  width: 91px;
  height: 117px;
  border-radius: 13px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 10px 24px rgba(28, 31, 48, .16);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 34%, rgba(7,7,12,.65));
}

.cover-text {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-weight: 900;
  letter-spacing: -.06em;
  font-size: 1.05rem;
  line-height: .92;
}

.cover-vice { background: linear-gradient(150deg, #f7b0d4 0%, #8d58e8 36%, #1b214b 72%); }
.cover-zelda { background: linear-gradient(148deg, #f2dd79 0%, #6aaa58 38%, #1e5b3b 100%); }
.cover-retro { background: linear-gradient(150deg, #ed8f55 0%, #d93c52 42%, #2e2250 100%); }
.cover-blue { background: linear-gradient(150deg, #8ec5ff 0%, #4a6fe8 42%, #1a2a5e 100%); }
.cover-green { background: linear-gradient(148deg, #b8e986 0%, #4caf50 38%, #1b5e20 100%); }

.cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--portrait-ratio);
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-elevated);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing .cover.portrait-frame {
  border-radius: 17px;
}

.listing .cover:has(.cover-photo)::after {
  display: none;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}

.upload-field {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.upload-label {
  font-weight: 650;
  font-size: .92rem;
}

.upload-preview-frame {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.upload-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.upload-preview[hidden] {
  display: none !important;
}

.upload-preview-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
}

.upload-file-control {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.upload-file-button {
  width: 100%;
  cursor: pointer;
}

.upload-file-name {
  min-height: 1.1em;
  overflow: hidden;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.listing-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.listing-gallery-item {
  margin: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.listing-gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 0;
}

.listing-gallery-button:hover img {
  transform: scale(1.02);
  opacity: .94;
}

.listing-gallery-button img {
  transition: transform .2s ease, opacity .2s ease;
}

.listing-gallery-item figcaption {
  padding: 6px 8px;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}

.image-lightbox {
  position: relative;
  width: min(92vw, 720px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #11111a;
  color: #fff;
  overflow: hidden;
}

.image-lightbox::backdrop {
  background: rgba(10, 10, 18, .84);
  backdrop-filter: blur(4px);
}

.image-lightbox-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  z-index: 2;
}

.image-lightbox-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(78vh, 900px);
  padding: 48px 20px 16px;
  background: #0b0b12;
}

.image-lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(82vw, 520px);
  max-height: calc(94vh - 120px);
  object-fit: contain;
  border-radius: 10px;
}

.image-lightbox-caption {
  margin: 0;
  padding: 12px 16px 16px;
  font-size: .92rem;
  color: #d5d5df;
  text-align: center;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-meta h3 { margin-bottom: 6px; font-size: 1.12rem; letter-spacing: -.035em; }
.game-meta p { margin-bottom: 8px; color: var(--muted); font-size: .87rem; }

.pills { display: flex; gap: 6px; flex-wrap: wrap; }

.pill {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, .08);
  color: #c5c9d6;
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: .73rem;
  font-weight: 720;
}

.swap-line {
  position: relative;
  margin: 17px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

.swap-line strong { color: var(--ink); }

.swap-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary);
}

.mini-user { display: flex; align-items: center; gap: 9px; }

.mini-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #d4d4fb;
  color: #3934c2;
  font-weight: 850;
  font-size: .76rem;
}

.mini-user small { display: block; color: var(--muted); }

.trust-strip { padding: 24px 0 56px; }

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-item {
  min-height: 98px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(139, 92, 246, .16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
}

.trust-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(139, 92, 246, .14);
  color: var(--accent);
  font-size: 1.08rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, .15);
}

.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { display: block; margin-top: 2px; color: var(--muted); font-size: .83rem; }

section { padding: 90px 0; }

.page-section { padding: 56px 0 90px; }

.section-label {
  margin-bottom: 11px;
  color: var(--primary);
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}

h2 {
  max-width: 760px;
  margin-bottom: 17px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-style: italic;
  text-transform: uppercase;
  font-weight: 800;
}

.section-intro {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.04rem;
}

.how { background: var(--bg-dark); color: var(--ink); }
.how .section-label { color: var(--accent); }
.how .section-intro { color: var(--muted); }

.steps {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 25px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.055);
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #1d1d2b;
  font-size: .88rem;
  font-weight: 900;
}

.step h3 { margin: 32px 0 10px; font-size: 1.25rem; letter-spacing: -.04em; }
.step p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }

.listings-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.listing-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 200px));
  justify-content: center;
  gap: 12px;
  align-items: stretch;
}

.listing {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.listing-clickable {
  cursor: pointer;
}

.listing-stretch-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.listing-stretch-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.listing:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(139, 92, 246, .35);
}

.listing-cover-wrap {
  margin-bottom: 8px;
}

.listing .cover {
  width: 100%;
  height: auto;
  flex: none;
  border-radius: 10px;
}

.listing .cover.portrait-frame {
  aspect-ratio: var(--portrait-ratio);
  border-radius: 10px;
}

.listing .cover.portrait-frame .cover-photo {
  object-fit: cover;
}

.listing .cover-text {
  font-size: .88rem;
  bottom: 7px;
  left: 7px;
  line-height: 1.1;
}

.listing-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 1px;
  text-align: left;
}

.listing-title {
  margin: 0 0 4px;
  font-size: .96rem;
  letter-spacing: -.03em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-subtitle {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-location {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.2;
}

.listing-distance {
  color: var(--ink-soft, var(--muted));
}

.listing-pills {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px;
}

.listing .pills {
  margin-bottom: 0;
}

.listing .pills .pill {
  font-size: .72rem;
  padding: 4px 8px;
}

.listing-footer {
  margin-top: auto;
  padding-top: 8px;
}

.listing-footer-interactive {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.listing-user-profile-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  text-align: left;
}

.listing-user-profile-link:hover .listing-user-name,
.listing-user-profile-link:hover .stars-value,
.listing-user-profile-link:hover .stars-count {
  color: var(--primary);
}

.listing-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  min-width: 0;
}

.listing-user .mini-avatar,
.listing-user-profile-link .mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: .64rem;
  flex-shrink: 0;
}

.beta { padding: 90px 0; }

.beta-box {
  position: relative;
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
  border-radius: 34px;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.beta-box::before,
.beta-box::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
}

.beta-box::before { width: 520px; height: 520px; right: -220px; top: -250px; }
.beta-box::after { width: 280px; height: 280px; right: 80px; bottom: -195px; }

.beta-content { position: relative; z-index: 1; max-width: 690px; }
.beta h2 { margin-bottom: 14px; }
.beta p { color: rgba(255,255,255,.83); font-size: 1.05rem; }

.signup {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  max-width: 560px;
}

.signup input {
  min-width: 0;
  flex: 1;
  height: 50px;
  border: 0;
  border-radius: 13px;
  padding: 0 15px;
  outline: none;
  color: var(--bg-dark);
  background: rgba(255, 255, 255, .95);
}

.signup .btn {
  height: 50px;
  background: var(--accent);
  color: var(--ink);
  box-shadow: none;
}

.signup .btn:hover { background: #33e0ff; }

.form-note { margin-top: 11px; color: rgba(255,255,255,.68); font-size: .78rem; }

.site-footer { padding: 30px 0 42px; color: var(--muted); }

.footer-inner {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
}

.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--ink); }
.footer-meta { margin: 0; font-size: 0.85rem; color: var(--muted); }
.footer-meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-meta a:hover { color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  transform: translate(-50%, 130px);
  padding: 12px 16px;
  border-radius: 13px;
  background: #1d1d2b;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform .28s ease;
  font-weight: 700;
  font-size: .9rem;
}

.toast.show { transform: translate(-50%, 0); }

.empty-state {
  margin-top: 35px;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
}

.empty-state h2 {
  margin: 0 auto 12px;
  font-size: 1.5rem;
}

.empty-state p {
  max-width: 420px;
  margin: 0 auto 22px;
  color: var(--muted);
}

.alert {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: .92rem;
}

.alert-danger {
  background: var(--danger-soft);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, .35);
}

.alert-success {
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  color: var(--success);
  margin-bottom: 1rem;
}

.loading-note {
  margin-top: 35px;
  color: var(--muted);
  font-size: .95rem;
}

.page-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(248, 249, 252, .78);
  backdrop-filter: blur(4px);
}

.page-busy-overlay[hidden] {
  display: none !important;
}

.page-busy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: min(100%, 280px);
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.page-busy-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(108, 92, 231, .18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: page-busy-spin .75s linear infinite;
}

.page-busy-message {
  margin: 0;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
}

.page-busy-progress {
  width: min(100%, 320px);
  height: 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, .16);
  overflow: hidden;
}

.page-busy-progress[hidden] {
  display: none !important;
}

.page-busy-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gradient-brand);
  transition: width .15s linear;
}

.page-busy-progress--indeterminate .page-busy-progress-bar {
  width: 40%;
  transition: none;
  animation: page-busy-progress-indeterminate 1.15s ease-in-out infinite;
}

@keyframes page-busy-progress-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(420%); }
}

@keyframes page-busy-spin {
  to { transform: rotate(360deg); }
}

body.page-busy-active {
  overflow: hidden;
}

.btn.btn--busy {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.btn.btn--busy::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 14px;
  height: 14px;
  margin-left: 0;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: page-busy-spin .75s linear infinite;
}

.btn-soft.btn--busy::after {
  border-color: rgba(108, 92, 231, .25);
  border-top-color: var(--primary);
}

.form-shell {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 20px; }

.field-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
  gap: 16px;
  margin-bottom: 20px;
}

.field-row .field {
  margin-bottom: 0;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: .9rem;
  font-weight: 700;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: rgba(139, 92, 246, .55);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .14);
}

.field-textarea { resize: vertical; min-height: 130px; }

.field-select {
  min-height: 46px;
  padding-right: 36px;
  appearance: none;
  background:
    var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b5cf6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  font-weight: 600;
}

.field-hint {
  margin-top: 7px;
  color: var(--muted);
  font-size: .82rem;
}

.check-grid {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.page-head h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.page-head .section-intro { margin-bottom: 0; }

.form-submit {
  width: 100%;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

.auth-links a {
  color: var(--muted);
  text-decoration: none;
}

.auth-links a:hover {
  color: var(--primary);
}

.validation-summary {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: .88rem;
}

.validation-summary ul {
  margin: 0;
  padding-left: 18px;
}

.validation-message {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: .82rem;
}

.valid.modified:not([type=checkbox]) {
  border-color: #4caf50;
}

.invalid {
  border-color: var(--danger) !important;
}

h1:focus { outline: none; }

#blazor-error-ui {
  background: rgba(248, 113, 113, .15);
  color: var(--ink);
  border-top: 1px solid rgba(248, 113, 113, .35);
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N0oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }

  .nav-burger-toggle {
    display: none;
  }

  .nav-mobile-panel {
    display: none !important;
  }

  .account-badge-header-wrap {
    display: block;
  }
}

@media (max-width: 991px) {
  .nav-links {
    display: none;
  }

  .nav-burger-toggle {
    display: inline-flex;
  }

  .account-badge-header-wrap {
    display: none;
  }

  .desktop-cta {
    display: none;
  }

  .site-header.nav-open .nav-mobile-panel {
    display: flex;
  }

  .nav {
    gap: 12px;
  }
}

@media (max-width: 1200px) {
  .listing-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 196px));
  }
}

@media (max-width: 900px) {
  .hero { min-height: clamp(480px, 72vh, 680px); }
  .hero-grid { padding-top: 12px; min-height: clamp(360px, 52vh, 520px); }
  .hero-character-scene {
    left: 18%;
    right: -6%;
  }

  .hero-character-img {
    top: -2%;
    right: -18%;
    width: 130%;
    object-position: 58% 40%;
  }

  .hero-scene-glow {
    top: 20%;
    right: -4%;
    width: min(85vw, 420px);
    height: min(55vh, 420px);
  }

  .hero-scene-vignette {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 18, .94) 28%, rgba(10, 10, 18, .35) 48%, transparent 68%);
  }
  .trust-inner, .steps { grid-template-columns: 1fr; }
  .trust-inner { gap: 10px; }
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: none;
  }
  .page-head { align-items: start; flex-direction: column; }
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 14px;
    --header-height: 80px;
    --logo-height: clamp(48px, 11vw, 56px);
  }

  .brand-logo { height: var(--logo-height); }
  h1, .hero-title { font-size: clamp(2.2rem, 11vw, 3.6rem); }
  .hero-copy { font-size: 1rem; }
  .hero-character-scene {
    left: 8%;
    right: -10%;
  }

  .hero-character-img {
    top: 0;
    right: -22%;
    width: 145%;
    height: 102%;
    object-position: 54% 42%;
  }

  .hero-scene-glow { opacity: .85; }
  .trust-strip { padding-bottom: 30px; }
  section { padding: 65px 0; }
  .listings-head { align-items: start; flex-direction: column; }
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .listing {
    padding: 6px;
    border-radius: 12px;
  }
  .listing-title { font-size: .9rem; }
  .listing-subtitle { font-size: .76rem; }
  .listing-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .signup { flex-direction: column; }
  .signup .btn { width: 100%; }
  .footer-inner { align-items: start; flex-direction: column; }
  .desktop-login { display: none; }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}

.platform-fee-banner {
  margin-bottom: 1.25rem;
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
}

.platform-fee-banner--waiting {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
}

.platform-fee-banner h2 {
  margin-top: 0;
}

.detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-list dd {
  margin: 0;
  font-weight: 600;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

@media (max-width: 600px) {
  .table-shell {
    overflow-x: visible;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table th,
  .data-table td,
  .data-table tr {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    padding: 0.5rem 0;
    overflow: hidden;
  }

  .data-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }

  .data-table td:last-child {
    border-bottom: none;
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    flex-shrink: 0;
    text-align: left;
  }

  .data-table td.table-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .data-table td.table-actions::before {
    display: none;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 38px;
}

.table-action-placeholder {
  color: var(--muted);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.65rem;
}

.timeline li {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.timeline li > span {
  display: block;
}

.timeline-meta {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.timeline li.timeline-done {
  border-left-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

.timeline li.timeline-done > span {
  font-weight: 600;
}

.loan-next-step-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.loan-hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.logout-form {
  display: inline;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #e8a700;
  font-size: 1rem;
  line-height: 1;
}

.stars-compact {
  font-size: .84rem;
}

.stars-stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.1;
}

.stars-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-empty {
  color: #d9d2b8;
}

.stars-value,
.stars-count {
  margin-left: 4px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.stars-count-stacked {
  margin-left: 0;
  margin-top: 2px;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.1;
}

.user-rating-link {
  display: inline-flex;
  margin-top: 4px;
  text-decoration: none;
}

.user-rating-link:hover .stars-value,
.user-rating-link:hover .stars-count {
  color: var(--primary);
}

.user-rating-empty {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
}

.listing-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  line-height: 1.1;
}

.listing-user-name {
  font-weight: 600;
  font-size: .78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-section {
  margin-top: 2.5rem;
}

.profile-section-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  letter-spacing: -.03em;
}

.profile-listing-grid {
  margin-top: 0;
}

.profile-empty {
  padding: 1.5rem 0;
}

.favorite-user-btn {
  white-space: nowrap;
}

.favorite-user-list {
  display: grid;
  gap: 10px;
}

.favorite-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.favorite-user-card:hover {
  border-color: rgba(108, 92, 231, .3);
  box-shadow: var(--shadow-glow);
}

.favorite-user-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.favorite-user-card-name {
  font-weight: 700;
  font-size: .95rem;
}

.favorite-user-card-arrow {
  color: var(--muted);
  font-size: 1.1rem;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.review-card-head time {
  color: var(--muted);
  font-size: .82rem;
}

.review-card-meta {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 8px;
}

.review-card-meta strong {
  color: var(--ink);
}

.review-card-comment {
  margin: 0;
  line-height: 1.5;
}

.review-form-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.review-form-block h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.review-done {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(46, 160, 67, 0.08);
  border: 1px solid rgba(46, 160, 67, 0.2);
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* Community & trust */
.community-banner {
  display: flex;
  gap: 14px;
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(108, 92, 231, .06), rgba(0, 210, 255, .05));
}

.community-banner-prominent {
  border-color: rgba(108, 92, 231, .25);
  background: linear-gradient(135deg, rgba(108, 92, 231, .1), rgba(0, 210, 255, .08));
}

.community-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.community-banner-body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.community-banner-actions {
  margin-top: 12px;
}

.trust-section {
  padding: 70px 0;
}

.trust-demo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.trust-demo-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, .16);
  background: rgba(255, 255, 255, .03);
}

.trust-demo-card h3 {
  margin: 0 0 8px;
}

.trust-demo-card p {
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  margin: 24px 0 28px;
  padding: 22px 24px;
  border: 1px solid rgba(139, 92, 246, .18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .06), rgba(0, 210, 255, .04)),
    var(--surface);
  box-shadow: var(--shadow);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.filter-field {
  min-width: 0;
}

.filter-field-search {
  grid-column: 1 / -1;
}

.filter-input-wrap {
  position: relative;
}

.filter-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1rem;
  pointer-events: none;
}

.filter-input {
  padding-left: 40px;
  border-color: rgba(108, 92, 231, .2);
  background: var(--surface);
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, .14);
}

.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(108, 92, 231, .2);
  border-radius: 13px;
  padding: 0 36px 0 14px;
  background:
    var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b5cf6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  appearance: none;
  color: var(--ink);
  font-weight: 600;
}

.filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(108, 92, 231, .12);
}

.filter-result-count {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.filter-refreshing {
  margin-right: .5rem;
  color: var(--primary);
  font-weight: 600;
}

.listing-results {
  transition: opacity .2s ease;
}

.listing-results-refreshing {
  opacity: .55;
  pointer-events: none;
}

.faq-preview {
  padding: 65px 0;
}

.faq-section {
  margin-top: 2.5rem;
}

.faq-section-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  letter-spacing: -.03em;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item[open] {
  border-color: rgba(139, 92, 246, .28);
  box-shadow: var(--shadow-glow);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-purple);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.faq-cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.faq-cta p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.faq-teaser {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.faq-teaser-item {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-teaser-item:hover {
  border-color: rgba(108, 92, 231, .28);
  box-shadow: var(--shadow-glow);
}

.faq-teaser-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: .95rem;
}

.faq-teaser-item span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-field-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

/* Platform pills */
.pill-ps {
  background: var(--platform-ps-bg);
  color: var(--platform-ps-text);
  border: 1px solid var(--platform-ps-border);
}

.pill-xbox {
  background: var(--platform-xbox-bg);
  color: var(--platform-xbox-text);
  border: 1px solid var(--platform-xbox-border);
}

.pill-nintendo {
  background: var(--platform-nintendo-bg);
  color: var(--platform-nintendo-text);
  border: 1px solid var(--platform-nintendo-border);
}

.pill-other {
  background: var(--platform-other-bg);
  color: var(--platform-other-text);
  border: 1px solid var(--platform-other-border);
}

.shipment-info {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 210, 255, .06);
  border: 1px solid rgba(0, 210, 255, .18);
  font-size: .92rem;
}

.shipment-info p {
  margin: 4px 0;
}

.pending-reviews-block {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 107, 107, .25);
  background: rgba(255, 107, 107, .06);
}

.pending-reviews-block h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.pending-reviews-block p {
  margin: 0 0 12px;
  color: var(--muted);
}

.pending-reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pending-reviews-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.completed-loans-block {
  margin-top: 32px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(108, 92, 231, .15);
  background: rgba(108, 92, 231, .04);
}

.completed-loans-block h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.completed-loans-block p {
  margin: 0 0 16px;
  color: var(--muted);
}

.chat-panel {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, .18);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .06), rgba(0, 210, 255, .04)),
    var(--surface);
  box-shadow: var(--shadow);
}

.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chat-panel-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.chat-panel-status {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.chat-connected {
  color: #86efac;
  background: rgba(46, 160, 67, .12);
}

.chat-disconnected {
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
}

.chat-messages {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}

.chat-empty {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
  padding: 24px 12px;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
}

.chat-bubble-mine {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), #7b6cf0);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble-other {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.chat-bubble p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: .78rem;
  opacity: .9;
}

.chat-bubble-meta time {
  font-weight: 500;
}

.chat-readonly-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(108, 92, 231, .08);
  border: 1px solid rgba(108, 92, 231, .15);
  color: var(--muted);
  font-size: .9rem;
}

.chat-input-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.chat-textarea {
  min-height: 72px;
  resize: vertical;
}

@media (max-width: 900px) {
  .trust-demo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* Notifications */
.notification-bell {
  position: relative;
}

.notification-bell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.notification-bell-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.notification-bell-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
  z-index: 120;
  overflow: hidden;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.notification-bell:hover:not(.notification-bell--closed) .notification-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.notification-bell--closed .notification-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: none;
}

@media (max-width: 991px) {
  .notification-dropdown {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 50%;
    right: auto;
    width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    transform: translateX(-50%) translateY(-10px);
  }

  .notification-bell:hover:not(.notification-bell--closed) .notification-dropdown {
    transform: translateX(-50%) translateY(0);
  }

  .notification-bell--closed .notification-dropdown {
    transform: translateX(-50%) translateY(-10px);
  }
}

@media (max-width: 680px) {
  .notification-dropdown {
    top: calc(76px + 8px);
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
}

.notification-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.notification-mark-all {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.notification-empty {
  margin: 0;
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
  font-size: .92rem;
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
}

.notification-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notification-item:hover {
  background: rgba(139, 92, 246, .1);
}

.notification-item--unread {
  background: rgba(139, 92, 246, .14);
}

.notification-item-title {
  display: block;
  font-weight: 800;
  font-size: .92rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.notification-item-message {
  display: block;
  margin-top: 2px;
  color: #b8bdd0;
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.notification-item-time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .76rem;
}

.notification-view-all {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--line);
}

.notification-inbox {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.notification-inbox-item {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px 16px;
  cursor: pointer;
  color: var(--ink);
}

.notification-inbox-item:hover {
  border-color: rgba(139, 92, 246, .35);
  background: rgba(139, 92, 246, .08);
}

.notification-inbox-item--unread {
  border-color: rgba(139, 92, 246, .35);
  background: rgba(139, 92, 246, .12);
}

.notification-inbox-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(139, 92, 246, .14);
  color: var(--accent);
  font-size: 1.05rem;
}

.notification-inbox-body {
  display: grid;
  gap: 2px;
}

.notification-inbox-title {
  font-weight: 800;
  color: var(--ink);
}

.notification-inbox-message {
  color: #b8bdd0;
  font-size: .92rem;
}

.notification-inbox-time {
  margin-top: 4px;
  color: var(--muted);
  font-size: .8rem;
}

.account-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-hub-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(108, 92, 231, .14);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(28, 31, 48, .04);
  transition: border-color .15s ease, transform .15s ease;
}

.account-hub-card:hover {
  border-color: rgba(108, 92, 231, .28);
  transform: translateY(-1px);
}

.account-hub-card-label {
  font-weight: 800;
  font-size: 1rem;
}

.account-hub-card-text {
  color: var(--muted);
  font-size: .9rem;
}

.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 640px) {
  .account-hub-grid {
    grid-template-columns: 1fr;
  }
}

.manage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.manage-nav-link {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.manage-nav-link:hover {
  color: var(--primary);
  background: rgba(108, 92, 231, .08);
}

.manage-nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7b6cf0);
  box-shadow: 0 4px 14px rgba(108, 92, 231, .25);
}

.field-with-badge {
  position: relative;
}

.field-with-badge .field-input {
  padding-right: 44px;
}

.field-badge {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: .9rem;
  font-weight: 800;
}

.field-badge-success {
  color: #1f6f3f;
}

.btn-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--primary);
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--primary-dark);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  box-shadow: 0 9px 22px rgba(231, 76, 60, .25);
}

.btn-danger:hover:not(:disabled) {
  background: #c0392b;
}

.alert-warning {
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .34);
  color: #fcd34d;
  margin-bottom: 20px;
}

.alert-info {
  background: rgba(0, 210, 255, .08);
  border: 1px solid rgba(0, 210, 255, .22);
  color: #ccefff;
  margin-bottom: 20px;
}

.account-deletion-blockers {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.account-deletion-blocker {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.account-deletion-blocker p {
  margin: 8px 0 12px 0;
  color: var(--muted);
  line-height: 1.55;
}

.recovery-code-list {
  display: grid;
  gap: 8px;
}

.recovery-code {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.auth-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 18px;
}

.auth-steps li {
  color: var(--muted);
}

.auth-steps p {
  margin: 0 0 12px;
  color: var(--ink);
}

.form-divider {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.form-section-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.manage-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.manage-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.manage-list-item:last-child {
  border-bottom: 0;
}

.manage-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.display-name-status {
  margin-top: 8px;
  font-size: .84rem;
  font-weight: 600;
}

.display-name-status-checking {
  color: var(--muted);
}

.display-name-status-available {
  color: #1f6f3f;
}

.display-name-status-taken {
  color: var(--danger);
}

.display-name-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: .84rem;
}

.display-name-suggestion {
  border: 1px solid rgba(108, 92, 231, .25);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(108, 92, 231, .08);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.display-name-suggestion:hover {
  background: rgba(108, 92, 231, .16);
}

.display-name-input-available:focus {
  border-color: rgba(46, 160, 67, .55);
  box-shadow: 0 0 0 4px rgba(46, 160, 67, .12);
}

.display-name-input-taken:focus {
  border-color: rgba(231, 76, 60, .55);
  box-shadow: 0 0 0 4px rgba(231, 76, 60, .12);
}

.feedback-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.feedback-prompt-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feedback-prompt-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.feedback-thread-list,
.feedback-admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-thread,
.feedback-admin-card {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
}

.feedback-thread--answered,
.feedback-admin-card--answered {
  border-color: rgba(0, 210, 255, .18);
}

.feedback-thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .88rem;
}

.feedback-thread-head time {
  margin-left: auto;
}

.feedback-thread-message {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.feedback-thread-reply {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 210, 255, .08);
  border: 1px solid rgba(0, 210, 255, .16);
}

.feedback-thread-reply-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.feedback-thread-reply p {
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.feedback-thread-reply time {
  color: var(--muted);
  font-size: .82rem;
}

.pill-answered {
  color: #8fe8ff;
  background: rgba(0, 210, 255, .12);
  border-color: rgba(0, 210, 255, .24);
}

.form-actions-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
