:root {
  --bg: #0e0e0f;
  --bg-card: #161618;
  --bg-input: #1c1c1f;
  --border: #2a2a2e;
  --border-soft: #222226;

  --text-primary: #f0ede8;
  --text-secondary: #8a8784;
  --text-muted: #55524f;

  --accent: #e8a030;
  --accent-dim: #c4862299;
  --accent-bg: #e8a03012;

  --red: #e05252;
  --green: #52a878;
  --blue: #5288e0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --nav-h: 64px;
  --max-w: 1200px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}
select,
input {
  font: inherit;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(14, 14, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-mark {
  color: var(--accent);
  font-size: 10px;
}

.nav-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.nav-search:focus-within {
  border-color: var(--accent-dim);
}

.search-input {
  flex: 1;
  padding: 9px 14px;
  background: none;
  border: none;
  color: var(--text-primary);
  outline: none;
  font-size: 14px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  padding: 9px 12px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.search-btn:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-user-menu {
  position: relative;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.user-avatar:hover {
  border-color: var(--accent);
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 160px;
  padding: 6px;
  box-shadow: var(--shadow-card);
  z-index: 200;
  flex-direction: column;
}

.user-dropdown a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition:
    background 0.15s,
    color 0.15s;
}

.user-dropdown a:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 4px 0;
}
.danger-link {
  color: var(--red) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  transition:
    opacity 0.18s,
    transform 0.12s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #0e0e0f;
  padding: 9px 18px;
}
.btn-primary:hover {
  opacity: 0.88;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 9px 18px;
}

.btn-ghost:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-sm {
  font-size: 13px;
  padding: 7px 14px;
}
.btn-lg {
  font-size: 15px;
  padding: 12px 24px;
}

.flash-container {
  max-width: var(--max-w);
  margin: 16px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid;
}

.flash-success {
  background: rgba(82, 168, 120, 0.1);
  border-color: rgba(82, 168, 120, 0.3);
  color: #7dcca0;
}
.flash-error {
  background: rgba(224, 82, 82, 0.1);
  border-color: rgba(224, 82, 82, 0.3);
  color: #e88080;
}
.flash-info {
  background: var(--accent-bg);
  border-color: var(--accent-dim);
  color: var(--accent);
}

.flash-close {
  color: inherit;
  font-size: 18px;
  opacity: 0.6;
  padding: 0 4px;
}
.flash-close:hover {
  opacity: 1;
}

.main-content {
  min-height: calc(100vh - var(--nav-h) - 200px);
}

.hero {
  padding: 80px 24px 80px;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 64px;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 420px;
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 28px;
}

.stat-item:not(:last-child) {
  margin-right: 28px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin-right: 28px;
  flex-shrink: 0;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-stack {
  position: relative;
  width: 260px;
  height: 360px;
}

.stack-card {
  position: absolute;
  width: 220px;
  height: 300px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stack-card--back {
  background: #1a1a1c;
  top: 40px;
  left: 40px;
  transform: rotate(8deg);
  z-index: 1;
}

.stack-card--mid {
  background: #191919;
  top: 20px;
  left: 20px;
  transform: rotate(4deg);
  z-index: 2;
}

.stack-card--front {
  background: var(--bg-card);
  top: 0;
  left: 0;
  transform: rotate(-1deg);
  z-index: 3;
  border-color: var(--accent-dim);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--accent-dim);
}

.card-stack:hover .stack-card--back {
  transform: rotate(12deg) translateY(-4px);
}
.card-stack:hover .stack-card--mid {
  transform: rotate(6deg) translateY(-6px);
}
.card-stack:hover .stack-card--front {
  transform: rotate(-2deg) translateY(-8px);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--accent);
}

.fake-card-inner {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  background: linear-gradient(
    160deg,
    rgba(232, 160, 48, 0.04) 0%,
    transparent 60%
  );
}

.fake-card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-dim),
    transparent
  );
}

.fake-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.fake-card-set {
  font-size: 12px;
  color: var(--text-muted);
}

.fake-card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  margin-top: 4px;
}

.stack-escrow-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--green);
  background: rgba(82, 168, 120, 0.1);
  border: 1px solid rgba(82, 168, 120, 0.25);
  border-radius: 20px;
  padding: 5px 12px;
  z-index: 10;
}

.escrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.listings-section {
  padding: 48px 24px 64px;
}
.listings-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.listings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-title.centered {
  text-align: center;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--accent-dim);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.18s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.card-img-wrap {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background: var(--bg-input);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.card-item:hover .card-img {
  transform: scale(1.03);
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

.rarity-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.rarity-common {
  background: rgba(120, 120, 120, 0.75);
  color: #e0e0e0;
}
.rarity-uncommon {
  background: rgba(82, 168, 120, 0.75);
  color: #d0f0e0;
}
.rarity-rare {
  background: rgba(82, 136, 224, 0.75);
  color: #d0e4ff;
}
.rarity-ultra_rare {
  background: rgba(160, 96, 224, 0.75);
  color: #ead0ff;
}
.rarity-secret_rare {
  background: rgba(232, 160, 48, 0.85);
  color: #fff3d0;
}

.card-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-set {
  font-size: 12px;
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

.card-condition {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}
.condition-mint {
  background: rgba(82, 168, 120, 0.15);
  color: #7dcca0;
}
.condition-near_mint {
  background: rgba(82, 136, 224, 0.15);
  color: #7daae0;
}
.condition-played {
  background: rgba(232, 160, 48, 0.15);
  color: var(--accent);
}
.condition-damaged {
  background: rgba(224, 82, 82, 0.15);
  color: #e08080;
}

.card-seller {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.seller-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.pagination {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.page-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 18px;
  transition:
    border-color 0.18s,
    color 0.18s;
}

.page-btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}
.page-info {
  font-size: 13px;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 36px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trust-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 64px 24px;
}

.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.trust-card {
  padding: 28px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color 0.2s;
}

.trust-card:hover {
  border-color: var(--accent-dim);
}
.trust-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.8;
}
.trust-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}
.trust-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 220px;
  margin-top: 6px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-muted);
}

.stack-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.stack-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.auth-header {
  margin-bottom: 28px;
}

.auth-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-sub a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition:
    border-color 0.18s,
    background 0.18s;
  cursor: pointer;
}

.btn-google:hover {
  border-color: var(--text-secondary);
  background: var(--bg-card);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.auth-error {
  background: rgba(224, 82, 82, 0.1);
  border: 1px solid rgba(224, 82, 82, 0.3);
  color: #e88080;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s;
  width: 100%;
}

.field-input::placeholder {
  color: var(--text-muted);
}

.field-input:focus {
  border-color: var(--accent-dim);
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 15px;
}

.auth-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.auth-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  flex-shrink: 0;
}

.auth-back:hover {
  background: var(--border);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-right {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 48px 20px 40px;
  }
  .listings-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  .nav-search {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
}

.user-dropdown.open {
  display: flex;
}

.profile-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 48px;
}

.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 2px solid var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-username {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.profile-stats-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-stat-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.profile-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-joined {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-section {
  margin-bottom: 56px;
}

.profile-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.listing-status-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-active {
  background: rgba(82, 168, 120, 0.75);
  color: #d0f0e0;
}
.status-sold {
  background: rgba(82, 136, 224, 0.75);
  color: #d0e4ff;
}
.status-removed {
  background: rgba(120, 120, 120, 0.75);
  color: #e0e0e0;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color 0.2s;
}

.order-row:hover {
  border-color: var(--border);
}

.order-img-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-input);
}

.order-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-img-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 18px;
}

.order-info {
  flex: 1;
}

.order-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.order-card-set {
  font-size: 12px;
  color: var(--text-muted);
}
.order-seller {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.order-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.order-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

.order-status-badge {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pending {
  background: rgba(232, 160, 48, 0.15);
  color: var(--accent);
}
.status-paid {
  background: rgba(82, 136, 224, 0.15);
  color: #7daae0;
}
.status-shipped {
  background: rgba(160, 96, 224, 0.15);
  color: #c090e0;
}
.status-confirmed {
  background: rgba(82, 168, 120, 0.15);
  color: #7dcca0;
}
.status-done {
  background: rgba(82, 168, 120, 0.15);
  color: #7dcca0;
}
.status-disputed {
  background: rgba(224, 82, 82, 0.15);
  color: #e08080;
}
.status-refunded {
  background: rgba(120, 120, 120, 0.15);
  color: var(--text-secondary);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-bio {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  max-width: 500px;
  line-height: 1.6;
  font-style: italic;
}

.profile-fav-pokemon {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.profile-fav-pokemon strong {
  color: var(--accent);
  font-weight: 600;
}

.profile-edit-btn {
  margin-top: 16px;
}

.profile-edit-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
}

.field-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.profile-edit-actions {
  display: flex;
  gap: 10px;
}

.profile-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.profile-empty-icon {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 12px;
  opacity: 0.5;
}

.profile-empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.profile-empty-sub {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.6;
}

.avatar-upload-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 2px solid var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-upload-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.avatar-upload-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.sell-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.sell-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}

.sell-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.sell-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.sell-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sell-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-soft);
}

.sell-section:last-child {
  border-bottom: none;
}

.sell-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sell-section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sell-optional-badge {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-body);
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.sell-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group--full {
  grid-column: 1 / -1;
}

.field-optional {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.field-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.field-checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.sell-submit {
  display: flex;
  gap: 12px;
  padding-top: 32px;
}

.card-search-wrap {
  position: relative;
}

.card-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-card);
}

.card-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.card-search-item:hover {
  background: var(--bg-input);
}

.card-search-thumb {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.card-search-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.card-search-item-set {
  font-size: 12px;
  color: var(--text-muted);
}

.card-search-loading,
.card-search-empty {
  padding: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.selected-card-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.selected-card-img {
  width: 80px;
  height: 112px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.selected-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.selected-card-set {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.selected-card-rarity {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-slot {
  aspect-ratio: 3 / 4;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
  display: block;
}

.photo-slot:hover {
  border-color: var(--accent-dim);
}
.photo-slot.has-photo {
  border-style: solid;
  border-color: var(--accent-dim);
}

.photo-slot input {
  display: none;
}

.photo-slot-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.photo-slot-icon {
  font-size: 24px;
  color: var(--text-muted);
  line-height: 1;
}

.photo-slot-label {
  font-size: 12px;
  color: var(--text-muted);
}

.photo-preview {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.graded-badge {
  background: rgba(232, 160, 48, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.detail-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.detail-main-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.detail-main-img {
  width: 100%;
  display: block;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.detail-thumb {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}

.detail-thumb.active,
.detail-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.detail-no-img {
  aspect-ratio: 3/4;
  background: var(--bg-card);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border-radius: var(--radius-lg);
}

.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.graded-badge-lg {
  background: rgba(232, 160, 48, 0.15);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.detail-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.detail-set {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nego-badge {
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
}

.detail-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.detail-grading-box {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.grading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
}

.grading-row:last-child {
  border-bottom: none;
}

.grading-label {
  font-size: 13px;
  color: var(--text-muted);
}
.grading-value {
  font-size: 13px;
  font-weight: 600;
}
.grade-score {
  color: var(--accent);
  font-size: 16px;
  font-family: var(--font-display);
}

.detail-seller-box {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.detail-seller-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-seller-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.detail-seller-name {
  font-weight: 600;
  font-size: 14px;
}
.detail-seller-rating {
  font-size: 12px;
  color: var(--text-muted);
}

.detail-fun-fact {
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 24px;
}

.fun-fact-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.fun-fact-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-actions {
  margin-top: 8px;
}

.own-listing-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .detail-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sell-fields {
    grid-template-columns: 1fr;
  }
  .photo-upload-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-search-manual-btn {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  transition: background 0.15s;
}

.card-search-manual-btn:hover {
  background: var(--bg-input);
}

.manual-entry-section {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 12px;
}

.manual-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  transition: color 0.15s;
}

.detail-back:hover {
  color: var(--text-primary);
}

.btn-delete {
  background: rgba(224, 82, 82, 0.25);
  color: #ff6b6b;
  border: 1px solid rgba(224, 82, 82, 0.6);
  padding: 12px;
  font-size: 15px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  transition:
    background 0.18s,
    border-color 0.18s;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-delete:hover {
  background: rgba(224, 82, 82, 0.25);
  border-color: rgba(224, 82, 82, 0.5);
}

.info-hero {
  padding: 80px 24px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(160deg, var(--accent-bg) 0%, transparent 60%);
}

.info-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.info-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.info-title em {
  font-style: italic;
  color: var(--accent);
}

.info-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
}

.info-section {
  padding: 64px 24px;
}
.info-section--alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.info-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.info-section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s;
}

.step-card:hover {
  border-color: var(--accent-dim);
}

.step-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.escrow-highlight {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.escrow-highlight-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.escrow-highlight-text h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}

.escrow-highlight-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: var(--accent-dim);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 300;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0 20px;
  font-weight: 300;
}

.faq-item.open .faq-answer {
  padding-bottom: 20px;
}

.info-cta-section {
  padding: 80px 24px;
}

.detail-escrow-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}