@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Zen+Kaku+Gothic+New:wght@500;700&family=Cormorant+Garamond:wght@600;700&display=swap');

:root {
  /* AkibaTrade-like — blanco limpio, japonés premium, marca Pegasus */
  --cream: #fafafa;
  --cream-deep: #f3f3f4;
  --washi: #ffffff;
  --navy: #1a2744;
  --navy-soft: #2a3d66;
  --gold: #c9a227;
  --gold-bright: #e0bc4a;
  --gold-dim: #8a7020;
  --vermilion: #c23b22;
  --vermilion-soft: #e04a30;
  --ink: #1a1a1f;
  --muted: #6b6a70;
  --line: rgba(26,39,68,.10);
  --card: #ffffff;
  --shadow: 0 6px 20px rgba(26,39,68,.06);
  --radius: 12px;
  --font: 'Outfit', system-ui, sans-serif;
  --font-jp: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-brand: 'Cormorant Garamond', 'Zen Kaku Gothic New', serif;
  --header-bg: rgba(255,255,255,.94);
  --input-bg: #ffffff;
  --surface: #f7f7f8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--washi);
  min-height: 100vh; line-height: 1.55;
  position: relative;
}
/* Watermark muy sutil / casi ausente — limpio como AkibaTrade */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 0%, rgba(201,162,39,.035), transparent 55%),
              radial-gradient(ellipse at 10% 100%, rgba(194,59,34,.02), transparent 50%);
  opacity: 1;
}
@supports not (background-attachment: fixed) {
  body::before { position: absolute; min-height: 100%; }
}
@media (max-width: 900px) {
  body::before { opacity: .85; }
}
.container, .site-header, .footer, main {
  position: relative;
  z-index: 1;
}
a { color: var(--navy-soft); text-decoration: none; font-weight: 600; }
a:hover { color: var(--vermilion); }
img { max-width: 100%; display: block; }
.container { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 1; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.8), 0 4px 16px rgba(26,39,68,.04);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .85rem 1.15rem;
  padding: .6rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.site-header .brand { flex: 0 0 auto; gap: .4rem; }
.site-header .brand img { display: block; border-radius: 0; box-shadow: none; object-fit: contain; }
.site-header .brand .brand-dragon { width: 66px; height: auto; }
.site-header .brand .brand-wordmark { width: 145px; height: auto; }
.site-header .brand-text { align-items: center; gap: .15rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-brand); letter-spacing: .05em; color: var(--navy); font-size: 1.05rem; }
.brand-text span { font-family: var(--font); font-size: .72rem; font-weight: 700; color: var(--vermilion); letter-spacing: .04em; }

.header-search {
  display: flex; align-items: stretch; min-width: 0; width: 100%;
  border: 1.5px solid rgba(26,39,68,.16); border-radius: 999px;
  background: var(--surface); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(26,39,68,.03);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 46px;
}
.header-search:focus-within {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,162,39,.18);
}
.header-search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: .78rem 1.15rem; font: inherit; color: var(--ink); outline: none;
  font-size: .95rem;
}
.header-search input::placeholder { color: #9a99a0; font-weight: 500; }
.header-search button {
  border: 0; background: var(--navy); color: #fff;
  padding: 0 1.25rem; font-weight: 700; cursor: pointer; font-size: .88rem;
  letter-spacing: .02em;
}
.header-search button:hover { background: var(--navy-soft); }

.header-tools {
  display: flex; align-items: center; gap: .35rem .55rem; flex-wrap: wrap; justify-content: flex-end;
}
.header-tools .tool-link {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .4rem .55rem; border-radius: 999px;
  border: 1px solid transparent; color: var(--navy-soft); font-size: .82rem; font-weight: 600;
}
.header-tools .tool-link:hover {
  border-color: var(--line); background: var(--surface); color: var(--vermilion);
}
.header-tools .tool-cart {
  border-color: var(--line); background: var(--card);
}
.header-tools .tool-cart span.muted-tag {
  font-size: .68rem; color: var(--muted); font-weight: 600;
}

.nav-row {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: .15rem 1.05rem;
  align-items: center; padding-top: .35rem;
  border-top: 1px solid rgba(26,39,68,.06);
}
.nav { display: flex; flex-wrap: wrap; gap: .15rem 1.05rem; margin-left: 0; align-items: center; }
.nav a { color: var(--navy-soft); font-size: .88rem; font-weight: 500; letter-spacing: .01em; }
.nav a:hover, .nav a.active { color: var(--vermilion); }
.nav > a:not(.btn), #auth-slot > a:not(.btn) {
  display: inline-block; padding: .32rem .48rem; border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.nav > a:not(.btn):hover, #auth-slot > a:not(.btn):hover {
  background: rgba(201,162,39,.08);
  border-color: rgba(201,162,39,.22);
  color: var(--navy);
}
.nav > a.nav-current, #auth-slot > a.nav-current {
  border-color: rgba(201,162,39,.45);
  background: rgba(201,162,39,.08);
  color: var(--navy);
  font-weight: 600;
}
.nav > a.ig-link:hover { color: var(--vermilion-soft) !important; }
#auth-slot { display: inline-flex; align-items: center; gap: .2rem .35rem; flex-wrap: wrap; margin-left: auto; }
.ig-link { color: var(--vermilion) !important; }

@media (min-width: 1100px) {
  .site-header .brand .brand-dragon { width: 66px; }
  .site-header .brand .brand-wordmark { width: 145px; }
}
@media (min-width: 901px) and (max-width: 1099px) {
  .site-header .brand .brand-dragon { width: 52px; }
  .site-header .brand .brand-wordmark { width: 120px; }
  .header-search input { padding: .65rem .9rem; font-size: .9rem; }
  .nav a { font-size: .8rem; }
}
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-search { grid-column: 1 / -1; order: 3; min-height: 44px; }
  .nav-row { order: 4; }
  .site-header .brand .brand-dragon { width: 56px; }
  .site-header .brand .brand-wordmark { width: 128px; }
  .header-tools .tool-link span.hide-sm { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  padding: .55rem 1.05rem; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .9rem;
  transition: .2s ease;
}
.btn:hover { background: var(--navy-soft); color: #fff; transform: translateY(-1px); }
.btn-primary { background: var(--vermilion); border-color: #9a2e1a; color: #fff; }
.btn-primary:hover { background: var(--vermilion-soft); color: #fff; }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color: var(--gold-dim); color: var(--navy); }
.btn-wa { background: #128C7E; border-color: #0e6b60; color: #fff; }
.btn-tg { background: #229ED9; border-color: #1a7eae; color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--surface); color: var(--navy); }
.btn-sm { padding: .4rem .85rem; font-size: .82rem; }

.hero { padding: 1.5rem 0 1.1rem; }
.hero-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #ffffff 0%, #fafafa 48%, #f6f5f2 100%);
  box-shadow: var(--shadow);
  position: relative;
}
.hero-panel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(201,162,39,.10), transparent 42%),
    radial-gradient(circle at 12% 80%, rgba(194,59,34,.05), transparent 40%);
  pointer-events: none;
}
.hero-panel::after {
  content: '';
  position: absolute; inset: auto -10% -40% 45%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(201,162,39,.10), transparent 65%);
  pointer-events: none;
}
.hero-top {
  display: grid; gap: 1.2rem; grid-template-columns: 1.35fr .65fr; align-items: center;
  padding: 2rem 1.9rem 1.7rem; position: relative; z-index: 1;
}
.hero h1 {
  font-family: var(--font-brand); font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 .35rem; color: var(--navy); letter-spacing: .03em; font-weight: 700;
}
.hero .jp { font-family: var(--font-jp); color: var(--vermilion); font-size: 1.05rem; margin-bottom: .4rem; }
.hero .slogan { color: var(--muted); margin: 0 0 .35rem; font-weight: 600; }
.hero .tagline-jp { font-family: var(--font-jp); color: var(--navy-soft); margin: 0 0 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-visual { justify-self: center; }
.hero-visual img {
  width: min(220px, 62vw); margin: 0 auto; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(201,162,39,.85), 0 14px 34px rgba(26,39,68,.12);
  background: #fff;
}
.hero-strip { display: none !important; }

.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: 1.2rem 0;
}
.feature {
  background: transparent; border: 0; border-radius: 0;
  padding: .5rem .25rem; text-align: center; box-shadow: none;
}
.feature strong { display: block; color: var(--navy); font-size: .92rem; margin-bottom: .2rem; }
.feature span { color: var(--muted); font-size: .78rem; }
.feature .ico { font-size: 1.4rem; margin-bottom: .25rem; }

.cat-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.2rem 0; }
.cat-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem;
  background: #fff; text-align: left; color: var(--ink);
  transition: .18s ease; box-shadow: var(--shadow);
  text-decoration: none;
}
.cat-card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--navy); box-shadow: 0 10px 28px rgba(26,39,68,.08); }
.cat-card strong { display: block; font-family: var(--font-jp); color: var(--navy); margin-bottom: .25rem; font-size: 1.02rem; }
.cat-card:hover strong { color: var(--vermilion); }
.cat-card span { color: var(--muted); font-size: .85rem; font-weight: 500; }
.home-cats { margin: .4rem 0 1rem; }

.section { margin: 2rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 {
  margin: 0; font-family: var(--font-jp); font-size: 1.35rem; color: var(--navy);
  display: flex; align-items: center; gap: .5rem;
}
.section-head h2::before { content: '◆'; color: var(--vermilion); font-size: .7rem; }
.divider-ink {
  height: 20px; margin: 1.4rem auto; max-width: 420px;
  background: none; border: 0; position: relative;
}
.divider-ink::before {
  content: '';
  display: block; height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--vermilion), var(--gold), var(--navy), transparent);
  border-radius: 2px;
}
.divider-ink::after {
  content: '◆';
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%);
  background: #fff; color: var(--vermilion); padding: 0 .45rem;
  font-size: .7rem; line-height: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .9rem;
}
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
}
.grid.grid-sellers {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s ease; position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.card:hover { border-color: rgba(201,162,39,.55); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(26,39,68,.09); }
.card-media { aspect-ratio: 63/88; background: var(--surface); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: .6rem .65rem .7rem; display: flex; flex-direction: column; gap: .18rem; flex: 1; min-height: 0; }
.card-title { font-weight: 700; font-size: .88rem; color: var(--navy); line-height: 1.25; }
.card-meta { color: var(--muted); font-size: .72rem; }
.card-price { color: var(--vermilion); font-weight: 800; font-size: .98rem; }
.card-meter-slot { margin-top: auto; padding-top: .3rem; min-height: 4rem; }
.card-actions {
  display: flex; gap: .35rem; margin-top: .3rem;
}
.card-actions .btn { flex: 1; padding: .36rem .4rem; font-size: .74rem; border-radius: 10px; }
.badge {
  display: inline-flex; align-items: center; padding: .15rem .45rem; border-radius: 6px;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.badge-nm, .badge-mint { background: #e5f6ea; color: #1d6b38; }
.badge-ex { background: #fff3d6; color: #8a6410; }
.badge-gd, .badge-good { background: #ffe8d6; color: #9a4a12; }
.badge-pl, .badge-played { background: #ffe0e0; color: #a12222; }
.badge-grade { background: #1a2744; color: var(--gold-bright); }
.badge-ganga { background: var(--vermilion); color: #fff; position: absolute; top: .5rem; left: .5rem; z-index: 2; }
.badge-auction { background: var(--navy); color: #9ec5ff; position: absolute; top: .5rem; right: .5rem; z-index: 2; }
.fav-btn {
  position: absolute; top: .45rem; right: .45rem; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.94); color: var(--ink); cursor: pointer; font-size: 1rem;
}
.fav-btn.on { color: var(--vermilion); border-color: var(--vermilion); }
.countdown { font-variant-numeric: tabular-nums; color: var(--vermilion); font-weight: 700; font-size: .85rem; }

.seller-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.05rem; box-shadow: var(--shadow);
}
.seller-card strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: .25rem; }
.seller-card p { margin: 0 0 .7rem; color: var(--muted); font-size: .85rem; }
.catalog-preview {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.25rem 1.4rem; box-shadow: var(--shadow);
}
.catalog-preview h3 { margin: 0 0 .35rem; color: var(--navy); font-family: var(--font-jp); }
.catalog-preview p { margin: 0 0 .85rem; color: var(--muted); }
.catalog-preview .preview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem;
}
.catalog-preview .preview-grid a {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 63/88; background: var(--surface);
}
.catalog-preview .preview-grid img { width: 100%; height: 100%; object-fit: cover; }

.filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem;
  background: transparent; border: 0; border-radius: 0;
  padding: .4rem 0 1rem; margin-bottom: 1rem; box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.filters label, .form label { display: flex; flex-direction: column; gap: .25rem; font-size: .75rem; color: var(--muted); font-weight: 600; }
.filters input, .filters select, .form input, .form textarea, .form select {
  background: var(--input-bg); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: .55rem .7rem; font: inherit;
}
.filters input:focus, .form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid rgba(194,59,34,.22); border-color: var(--vermilion);
}

.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; margin: 1.5rem 0 3rem; }
.detail-gallery {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; position: relative; box-shadow: var(--shadow);
}
.zoom-wrap { position: relative; overflow: hidden; border-radius: 10px; background: var(--surface); cursor: crosshair; }
.zoom-wrap img.main { width: 100%; display: block; }
.zoom-lens {
  position: absolute; width: 140px; height: 140px; border: 2px solid var(--gold);
  border-radius: 50%; pointer-events: none; display: none;
  box-shadow: 0 0 0 9999px rgba(26,39,68,.14); background-repeat: no-repeat;
}
.zoom-pane {
  display: none; position: absolute; top: 1rem; left: calc(100% + 12px); width: 320px; height: 320px;
  border: 1px solid var(--gold); border-radius: 12px; background: #fff no-repeat;
  z-index: 5; box-shadow: var(--shadow);
}
.thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.thumbs button { border: 1px solid var(--line); padding: 0; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; width: 64px; height: 88px; }
.thumbs button.active { border-color: var(--vermilion); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { margin: 0 0 .4rem; font-size: 1.7rem; color: var(--navy); }
.seller-box {
  margin-top: 1.2rem; padding: 1rem 0 0; border-radius: 0;
  border: 0; border-top: 1px solid var(--line); background: transparent;
}
.contact-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.price-lg { font-size: 1.8rem; color: var(--vermilion); font-weight: 800; }

.form { display: grid; gap: .8rem; max-width: 480px; }
.form-wide { max-width: 720px; }
.panel {
  background: transparent; border: 0; border-radius: 0;
  padding: 1rem 0; margin: 1rem 0; box-shadow: none;
  border-top: 1px solid var(--line);
}
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .55rem .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.muted { color: var(--muted); }
.flash { padding: .5rem 0; border-radius: 0; margin: .8rem 0; background: transparent !important; border-left: 3px solid transparent; padding-left: .7rem; }
.flash-ok { color: #1d6b38; border-left-color: #1d6b38; }
.flash-err { color: #a12222; border-left-color: #a12222; }
.flash-info { color: var(--navy); border-left-color: var(--navy); }

.trust {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0;
}
.trust span {
  background: transparent; color: var(--navy); padding: .2rem .5rem; border-radius: 0;
  font-size: .8rem; font-weight: 600; border: 0;
}
.trust span + span::before { content: '·'; margin-right: .55rem; color: var(--muted); }

.footer {
  margin-top: 3rem; border-top: 1px solid var(--line); padding: 1.6rem 0 2.5rem;
  color: var(--muted); font-size: .85rem; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(26,39,68,.03));
}
.footer .jp { font-family: var(--font-jp); color: var(--vermilion); font-size: 1rem; }
.footer .brandline { color: var(--navy); font-weight: 700; margin: .3rem 0; }

.sakura { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.petal {
  position: absolute; top: -20px; width: 8px; height: 8px; border-radius: 10px 0;
  background: radial-gradient(circle at 30% 30%, #ffc4d0, #e87a9c);
  opacity: .11; animation: fall linear infinite;
}
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }

.lightbox {
  position: fixed; inset: 0; background: rgba(26,39,68,.68); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 92vw; border-radius: 8px; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .hero-top, .detail, .features, .catalog-preview { grid-template-columns: 1fr; }
  .cat-nav { grid-template-columns: 1fr; }
  .zoom-pane { display: none !important; }
}

.social-row {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: flex-start;
  margin: 1.1rem 0 .6rem;
}
.social-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: .35rem;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .82rem;
  min-width: 110px;
}
.social-btn .social-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold-dim); background: #fff;
  box-shadow: var(--shadow); transition: .2s ease;
}
.social-btn .social-icon svg { width: 22px; height: 22px; fill: currentColor; }
.social-btn.ig .social-icon { color: #E1306C; border-color: #E1306C; }
.social-btn.tg .social-icon { color: #229ED9; border-color: #229ED9; }
.social-btn:hover .social-icon {
  transform: translateY(-2px) scale(1.05);
  background: var(--navy); color: #fff !important; border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(26,39,68,.16);
}
.social-btn:hover { color: var(--vermilion); }
.social-btn .social-label { color: var(--muted); font-weight: 600; }
.social-btn:hover .social-label { color: var(--navy); }

.price-meter {
  display: flex; flex-direction: column; gap: .28rem;
  text-align: left; color: var(--ink);
}
.price-meter.compact { font-size: .76rem; }
.price-meter.detail { font-size: .95rem; gap: .4rem; margin: .75rem 0 1rem; max-width: 320px; }
.pm-head { display: flex; align-items: center; gap: .35rem; }
.pm-tier { font-weight: 700; color: var(--navy); line-height: 1.2; }
.price-meter.detail .pm-tier { font-size: 1.05rem; }
.pm-info {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #9a9da8; color: #6a6d78; background: transparent;
  font-size: 10px; font-weight: 700; font-style: italic; font-family: Georgia, serif;
  line-height: 1; padding: 0; cursor: help; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.price-meter.detail .pm-info { width: 18px; height: 18px; font-size: 11px; }
.pm-info:hover { border-color: var(--navy); color: var(--navy); }
.pm-bar {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  height: 10px;
}
.price-meter.detail .pm-bar { height: 14px; gap: 5px; }
.pm-seg {
  display: block; height: 100%; background: #eceaef;
  border-radius: 3px;
}
.pm-seg:first-child { border-radius: 999px 3px 3px 999px; }
.pm-seg:last-child { border-radius: 3px 999px 999px 3px; }
.price-meter.tier-inflated .pm-seg.on { background: #c23b22; }
.price-meter.tier-pricey .pm-seg.on { background: #e07a2f; }
.price-meter.tier-fair .pm-seg.on { background: #c4b23a; }
.price-meter.tier-good .pm-seg.on { background: #4caf50; }
.price-meter.tier-steal .pm-seg.on { background: #1b7a3a; }
.price-meter.tier-none .pm-seg.on { background: #cfc8b8; }
.pm-market-label { color: var(--muted); font-size: .72rem; font-weight: 500; margin-top: .05rem; }
.price-meter.detail .pm-market-label { font-size: .85rem; }
.pm-market-value { color: var(--navy); font-weight: 600; font-size: .82rem; line-height: 1.2; }
.price-meter.detail .pm-market-value { font-size: 1rem; }

.grid.carousel { display: block; overflow: hidden; padding: .4rem 0 .8rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.carousel-track { display: flex; gap: 1rem; width: max-content; animation: ptcg-marquee var(--carousel-dur, 40s) linear infinite; }
.carousel-clone { display: contents; }
.carousel-track .card { width: 180px; flex: 0 0 180px; }
.grid.carousel:hover .carousel-track, .grid.carousel:focus-within .carousel-track { animation-play-state: paused; }
@keyframes ptcg-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - .5rem)); } }
@media (max-width: 600px) { .carousel-track .card { width: 148px; flex-basis: 148px; } }
@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation-duration: calc(var(--carousel-dur, 40s) * 2); }
  .petal { animation: none; opacity: .06; }
}

.nav .btn-login, #auth-slot .btn-login {
  background: var(--vermilion); border-color: #9a2e1a; color: #fff !important;
  padding: .42rem .95rem; border-radius: 999px; font-weight: 700; font-size: .82rem;
  letter-spacing: .02em;
}
.nav .btn-login:hover, #auth-slot .btn-login:hover {
  background: var(--vermilion-soft); color: #fff !important;
  border-color: var(--gold); box-shadow: 0 0 14px rgba(194,59,34,.18);
}
.section-carousel-main .section-head { margin-bottom: .75rem; }
.section-carousel-main .section-head h2 { font-size: 1.45rem; }
h1, h2, h3 { font-family: var(--font-jp); font-weight: 700; letter-spacing: .01em; }
.hero h1 { font-family: var(--font-brand); font-weight: 700; }

.empty-ja-note {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.4rem;
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
  box-shadow: var(--shadow);
  line-height: 1.6;
  max-width: 560px;
  margin: .5rem auto;
}
.empty-ja-note::before {
  content: '◇';
  display: block;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: .55rem;
  letter-spacing: .2em;
}

/* ——— Cuenta discreta (sin nombre personal ni Admin ruidoso) ——— */
.account-menu { position: relative; display: inline-flex; align-items: center; }
.account-trigger {
  display: inline-flex !important; align-items: center; gap: .35rem;
  padding: .28rem .55rem !important; border-radius: 999px !important;
  border: 1px solid rgba(26,39,68,.10) !important;
  background: #fff !important;
  color: var(--navy-soft) !important; font-weight: 600; font-size: .85rem;
}
.account-trigger:hover { border-color: rgba(201,162,39,.45) !important; color: var(--navy) !important; }
.account-icon { display: block; flex-shrink: 0; }
.account-dropdown {
  position: absolute; right: 0; top: calc(100% + .35rem); z-index: 40;
  min-width: 11.5rem; padding: .35rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 28px rgba(26,39,68,.10);
  display: flex; flex-direction: column; gap: .1rem;
}
.account-dropdown[hidden] { display: none !important; }
.account-dropdown a, .account-dropdown .account-menu-item {
  display: block; width: 100%; text-align: left;
  padding: .55rem .7rem; border-radius: 8px; border: 0; background: transparent;
  color: var(--navy-soft); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: none;
}
.account-dropdown a:hover, .account-dropdown .account-menu-item:hover {
  background: rgba(201,162,39,.10); color: var(--navy);
}
.btn-link { appearance: none; }

/* ——— Publicación estilo Wallapop ——— */
.pub-form { display: grid; gap: 1rem; }
.pub-photos {
  background: #fff; border: 1px dashed rgba(194,59,42,.28);
  border-radius: 14px; padding: .9rem 1rem 1rem;
}
.pub-photos-head { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: baseline; margin-bottom: .65rem; }
.pub-drop {
  border: 1px dashed rgba(26,39,68,.18); border-radius: 12px; padding: 1.1rem;
  text-align: center; background: var(--surface); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.pub-drop.over { border-color: var(--vermilion); background: rgba(194,59,42,.04); }
.pub-drop-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .65rem; }
.pub-file-btn { position: relative; overflow: hidden; cursor: pointer; }
.pub-file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pub-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: .65rem; margin-top: .85rem;
}
.pub-thumb {
  position: relative; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; background: #fff; display: flex; flex-direction: column;
}
.pub-thumb.is-primary { outline: 2px solid var(--gold); outline-offset: 1px; }
.pub-thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: var(--surface); }
.pub-thumb-actions { display: flex; flex-wrap: wrap; gap: .15rem; padding: .3rem; }
.pub-thumb-actions .btn { padding: .15rem .35rem; font-size: .72rem; }
.pub-thumb-status { font-size: .72rem; padding: .2rem .4rem .4rem; color: var(--muted); }
.pub-thumb-status.err { color: var(--vermilion); }
.pub-fields { display: grid; gap: .65rem; grid-template-columns: 1fr 1fr; }
.pub-fields label { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; }
.pub-fields label input, .pub-fields label select, .pub-fields label textarea {
  font: inherit; padding: .55rem .65rem; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
}
.pub-fields label:has(textarea), .pub-fields .pub-check,
.pub-fields p.muted { grid-column: 1 / -1; }
.pub-check { flex-direction: row !important; align-items: center; gap: .5rem !important; }
.pub-submit { justify-self: start; margin-top: .25rem; min-width: 12rem; }
@media (max-width: 700px) {
  .pub-fields { grid-template-columns: 1fr; }
}

/* ——— Portal vendedor profesional ——— */
.seller-dashboard .sp-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.sp-nav {
  position: sticky; top: 1rem;
  background: #fffef8;
  border: 1px solid var(--line, #d4c4a8);
  border-radius: 16px;
  padding: .75rem;
  display: flex; flex-direction: column; gap: .15rem;
  box-shadow: 0 8px 24px rgba(26,39,68,.06);
}
.sp-nav-head {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .55rem .65rem .85rem; margin-bottom: .25rem;
  border-bottom: 1px solid rgba(26,39,68,.08);
}
.sp-nav a {
  display: block; padding: .55rem .7rem; border-radius: 10px;
  color: var(--navy-soft); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.sp-nav a:hover { background: rgba(201,162,39,.12); color: var(--navy); }
.sp-nav a.active { background: rgba(194,59,42,.1); color: var(--torii, #c23b2a); }
.sp-main { min-width: 0; }
.sp-kpis {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem; margin-bottom: 1rem;
}
.sp-kpi {
  background: #fffef8; border: 1px solid var(--line, #d4c4a8);
  border-radius: 14px; padding: .85rem 1rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.sp-kpi-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sp-kpi strong { font-size: 1.25rem; color: var(--navy); }
.sp-kpi small { color: var(--muted); font-size: .78rem; }
.sp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.sp-chart { min-height: 140px; }
.sp-bars {
  display: flex; align-items: flex-end; gap: .35rem;
  height: 140px; padding: .5rem .25rem 0;
}
.sp-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: .25rem; }
.sp-bar {
  width: 100%; max-width: 28px; background: linear-gradient(180deg, var(--torii,#c23b2a), #8b2a1e);
  border-radius: 6px 6px 2px 2px; min-height: 4px;
}
.sp-bar-label { font-size: .65rem; color: var(--muted); }
.sp-filters {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem;
}
.sp-filters input, .sp-filters select {
  font: inherit; padding: .45rem .6rem; border-radius: 10px;
  border: 1px solid var(--line, #d4c4a8); background: #fff; min-width: 8rem;
}
.sp-thumb { width: 42px; height: 56px; object-fit: cover; border-radius: 6px; background: #f3efe4; }
.sp-price { width: 5.5rem; font: inherit; padding: .3rem .4rem; border-radius: 8px; border: 1px solid var(--line); }
.sp-actions { display: flex; flex-wrap: wrap; gap: .25rem; }
.sp-badge {
  display: inline-block; padding: .15rem .45rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; background: rgba(26,39,68,.08);
}
.sp-badge-active { background: rgba(46,125,50,.12); color: #1b5e20; }
.sp-badge-sold { background: rgba(194,59,42,.12); color: var(--torii); }
.sp-badge-hidden { background: rgba(26,39,68,.1); color: var(--navy-soft); }
.sp-badge-reserved { background: rgba(201,162,39,.18); color: #8a7010; }
.sp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.sp-list li { padding: .35rem 0; border-bottom: 1px solid rgba(26,39,68,.06); }
.sp-share-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.sp-preview {
  width: 100%; height: 420px; margin-top: 1rem; border: 1px solid var(--line);
  border-radius: 12px; background: #fff;
}
.sp-avatar-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.sp-avatar, .shop-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold, #c9a227); background: #f3efe4;
}
.sp-avatar-empty, .shop-avatar-empty {
  display: grid; place-items: center; font-weight: 800; color: var(--navy); font-size: 1.4rem;
}
.shop-hero-inner { display: flex; gap: 1.1rem; align-items: flex-start; }
.shop-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .35rem; font-size: .9rem; color: var(--navy-soft); }
@media (max-width: 900px) {
  .seller-dashboard .sp-shell { grid-template-columns: 1fr; }
  .sp-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .sp-nav-head { width: 100%; }
  .sp-grid-2 { grid-template-columns: 1fr; }
  .shop-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .shop-meta, .contact-row { justify-content: center; }
}
