/* Hub pages — Drop design parity (loads after drops.css) v13 */

.site-header .wrap {
  position: relative;
  flex-wrap: nowrap;
  row-gap: 0;
}

.site-nav-toggle {
  display: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

.site-nav-toggle:hover {
  border-color: var(--border);
}

.site-nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

.site-nav-toggle .icon-close {
  display: none;
}

.site-nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.site-nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav-panel {
  display: contents;
}

.nav--hub {
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.nav--hub a {
  transition: color 0.15s ease;
}

.nav--hub a:hover {
  color: var(--accent-teal);
}

.nav--hub a[aria-current="page"] {
  color: #f9fafb;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.12);
  color: #99f6e4;
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.header-signin:hover {
  background: rgba(45, 212, 191, 0.22);
  border-color: rgba(45, 212, 191, 0.75);
  color: #fff;
}

.header-signin[hidden] {
  display: none;
}

button.header-signin {
  cursor: pointer;
}

.play-store-cta--sm {
  font-size: 0.82rem;
  padding: 8px 14px;
}

@media (max-width: 767px) {
  .site-header .wrap {
    justify-content: space-between;
    gap: 10px;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    padding: 8px 20px 20px;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 20;
  }

  .site-nav-panel[data-open="true"] {
    display: flex;
  }

  .nav--hub {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    overflow: visible;
    font-size: 1rem;
  }

  .nav--hub a {
    padding: 12px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
  }

  .header-actions > * {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .site-header:not(.vk-home-header) .wrap {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .site-header:not(.vk-home-header) .nav--hub {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}

.hub-main {
  padding-bottom: 64px;
}

.hub-catalog-note {
  max-width: 42rem;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.hub-catalog-note a {
  color: var(--accent-teal);
}

.hub-catalog-note a:hover {
  color: #5eead4;
}

.hero-live-pill--static {
  padding-left: 14px;
}

.hero-live-pill--static .hero-live-dot {
  display: none;
}

.mp-payout-row {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

button.mp-payout-pill {
  cursor: pointer;
  font: inherit;
  margin-bottom: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.mp-payout-pill:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.15);
}

button.mp-payout-pill:disabled {
  cursor: default;
  opacity: 0.85;
}

button.mp-payout-pill.is-pending {
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.12);
  color: #fef9c3;
}

button.mp-payout-pill.is-pending .hero-live-dot {
  background: #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.55);
  animation: none;
}

#grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.listing {
  border-radius: 20px;
  border: 2px solid transparent;
  padding: 14px;
  background:
    linear-gradient(165deg, rgba(12, 16, 28, 0.98), rgba(17, 24, 39, 0.92)) padding-box,
    linear-gradient(135deg, rgba(168, 85, 247, 0.55), rgba(45, 212, 191, 0.35)) border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.listing:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(168, 85, 247, 0.18);
}

.listing .market-card-link {
  display: block;
  margin: 0 0 12px;
  text-decoration: none;
  color: inherit;
}

.listing .market-vkcard.store-card--card {
  width: 100%;
  flex-basis: auto;
  margin: 0;
  border-radius: 20px;
}

.listing .market-vkcard .store-card-inner {
  border-radius: 18px;
}

.listing .market-vkcard .store-card-preview--art {
  aspect-ratio: 778 / 1024;
  width: 100%;
}

.listing .listing-art-placeholder {
  width: 100%;
  aspect-ratio: 778 / 1024;
  background: #0a0a0f;
}

.listing h2,
.listing .listing-title {
  font-size: 1.02rem;
  margin: 0.35rem 0 0;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.listing-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.35rem;
}

.listing-badge--official {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.45);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.listing-badge--creator {
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(192, 132, 252, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.listing .price {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.35rem 0 0;
  color: #e9d5ff;
}

.listing-meta {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e9d5ff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.listing-edition {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fda4af;
}

.listing-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.listing-hint a {
  color: var(--accent-teal);
}

.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.75rem;
  align-items: stretch;
}

.listing-actions .play-store-cta {
  flex: 1 1 10rem;
  margin: 0 !important;
}

.listing-actions .market-share-btn {
  flex: 0 0 auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.12);
  color: #99f6e4;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.listing-actions .market-share-btn:hover {
  background: rgba(45, 212, 191, 0.22);
  border-color: rgba(45, 212, 191, 0.65);
}

.listing-actions .market-share-btn--copied {
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(124, 58, 237, 0.25);
  color: #e9d5ff;
}

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

.listing-actions .market-share-btn {
  position: relative;
}

.listing .dim {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
  flex: 1;
  line-height: 1.45;
}

.listing .mint-opt {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.35;
  margin: 0.5rem 0 0;
}

.listing .play-store-cta,
.listing button.play-store-cta {
  cursor: pointer;
  font: inherit;
  box-sizing: border-box;
}

.listing button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

#status {
  text-align: center;
  color: var(--muted);
  margin: 0 0 1rem;
  min-height: 1.25rem;
  font-size: 0.92rem;
}

.site-hub {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.site-hub-title {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5eead4;
  font-weight: 600;
  margin: 0 0 20px;
}

.site-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .site-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-hub-card {
  display: block;
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.12), rgba(17, 24, 39, 0.85));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.45);
  color: var(--text);
  box-shadow: 0 14px 36px rgba(45, 212, 191, 0.08);
}

.site-hub-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c084fc;
  margin: 0 0 0.5rem;
}

.site-hub-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-hub-card p:not(.site-hub-card-label) {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.site-hub-card .site-hub-card-label {
  margin: 0 0 0.5rem;
}

.mp-stack {
  max-width: 640px;
  margin: 0 auto;
}

.mp-stack > h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.mp-panel {
  border-radius: 20px;
  padding: 1.35rem 1.4rem;
  margin-top: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(3, 7, 18, 0.95));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.mp-panel h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.mp-panel label {
  display: block;
  font-size: 0.85rem;
  color: #c4b5fd;
  font-weight: 600;
  margin: 0.75rem 0 0.25rem;
}

.mp-panel input:not([type="file"]),
.mp-panel textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.mp-panel input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 0.88rem;
  color: var(--muted);
}

.mp-panel textarea {
  border-radius: 14px;
  min-height: 4rem;
  resize: vertical;
}

.mp-panel input:focus,
.mp-panel textarea:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.mp-panel button:not(.secondary):not(.ghost):not(.danger) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 85, 247, 0.5);
  background: linear-gradient(90deg, #7c3aed, #0d9488);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  margin: 0.75rem 0.35rem 0 0;
}

.mp-panel button:not(.secondary):not(.ghost):not(.danger):hover {
  filter: brightness(1.08);
  color: #fff;
}

.mp-panel button.secondary,
.mp-panel button.ghost {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.12);
  color: #99f6e4;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  margin: 0.75rem 0.35rem 0 0;
}

.mp-panel button[hidden] {
  display: none !important;
}

.mp-panel button.secondary:hover,
.mp-panel button.ghost:hover {
  background: rgba(45, 212, 191, 0.22);
  border-color: rgba(45, 212, 191, 0.75);
  color: #fff;
}

.mp-panel button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mp-dim,
.dim {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.mp-err,
.err {
  color: #fda4af;
  margin-top: 1rem;
  font-weight: 600;
}

.mp-ok,
.ok {
  color: #4ade80;
  font-weight: 600;
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

ul.mp-listings {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.mp-listings li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #e9d5ff;
  margin-left: 0.35rem;
}

.pair-code {
  display: block;
  font-size: 2rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  text-align: center;
  margin: 1rem 0;
  font-variant-numeric: tabular-nums;
  color: #e9d5ff;
  text-shadow: 0 0 24px rgba(168, 85, 247, 0.25);
}

.mp-panel button.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin: 0.75rem 0.35rem 0 0;
  background: transparent;
  color: #fda4af;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 999px;
  padding: 10px 18px;
}

.mp-panel a,
.legal-main a {
  color: var(--accent-teal);
}

.mp-panel a:hover,
.legal-main a:hover {
  color: #5eead4;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--accent-teal);
}

.legal-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  text-align: left;
}

.legal-main h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.legal-main h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: #f3f4f6;
  letter-spacing: -0.02em;
}

.legal-main h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  color: #d1d5db;
}

.legal-main p,
.legal-main li {
  color: #cbd5e1;
}

.legal-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.legal-main th,
.legal-main td {
  border: 1px solid rgba(168, 85, 247, 0.22);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-main th {
  background: rgba(17, 24, 39, 0.9);
}

.legal-main code {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-main hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

@media (prefers-reduced-motion: reduce) {
  .listing:hover,
  .site-hub-card:hover {
    transform: none;
  }
}
