/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PSNA Store â€” Version 2.0 Stylesheet
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Reset & Variables â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #08080c;
  --bg-raised:    #0e0e18;
  --bg-card:      rgba(16, 16, 28, 0.55);
  --bg-surface:   rgba(22, 22, 38, 0.6);
  --border:       rgba(255, 107, 107, 0.1);
  --border-light: rgba(255, 107, 107, 0.18);
  --fg:           #e8e8f0;
  --fg-dim:       #9d9db8;
  --fg-muted:     #6b6b88;

  /* Accent: warm coral â†’ pink gradient */
  --accent:       #ff6b6b;
  --accent-end:   #ee3a8c;
  --accent-grad:  linear-gradient(135deg, var(--accent), var(--accent-end));

  /* Glass effect tokens */
  --glass-bg:     rgba(14, 14, 24, 0.6);
  --glass-blur:   blur(12px);
  --glass-border: rgba(255, 255, 255, 0.06);

  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    14px;

  --font:         'Outfit', -apple-system, sans-serif;
  --mono:         'JetBrains Mono', monospace;

  --sidebar-w:    220px;
  --bottombar-h:  64px;

  --safe-bottom:  env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* â”€â”€ PS3 XMB Animated Wave Background â”€â”€ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 60% at 20% 80%, rgba(26, 35, 126, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 100% 50% at 80% 70%, rgba(74, 20, 140, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 140% 40% at 50% 90%, rgba(13, 71, 161, 0.18) 0%, transparent 50%);
  animation: xmbWaveDrift 12s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 45% at 70% 85%, rgba(26, 35, 126, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 80% 35% at 30% 75%, rgba(92, 107, 192, 0.12) 0%, transparent 50%);
  animation: xmbWaveDrift2 16s ease-in-out infinite alternate;
}

@keyframes xmbWaveDrift {
  0%   { transform: translateX(-3%) translateY(0) scale(1); opacity: 0.8; }
  50%  { transform: translateX(2%) translateY(-2%) scale(1.03); opacity: 1; }
  100% { transform: translateX(-1%) translateY(1%) scale(0.98); opacity: 0.85; }
}

@keyframes xmbWaveDrift2 {
  0%   { transform: translateX(3%) translateY(1%) scale(1.02); opacity: 0.7; }
  50%  { transform: translateX(-2%) translateY(-1%) scale(0.97); opacity: 0.9; }
  100% { transform: translateX(1%) translateY(2%) scale(1.01); opacity: 0.75; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* â”€â”€ App Shell â”€â”€ */
.app {
  display: flex;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* â”€â”€ Sidebar (desktop) â”€â”€ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.75rem;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar .logo {
  display: block;
  width: 70%;
  max-height: 52px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
}

.nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-tabs .tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: none;
  border: none;
  color: var(--fg-dim);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-tabs .tab:hover {
  background: var(--bg-surface);
  color: var(--fg);
}

.nav-tabs .tab.active {
  background: var(--accent-grad);
  color: #fff;
}

.nav-tabs .tab svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  text-align: center;
}

.stats-line {
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* Account box (sidebar footer) */
.account-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.account-line {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

.account-btn {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: var(--accent-grad);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.account-btn:hover {
  transform: translateY(-1px);
}

.account-btn.hidden {
  display: none;
}

.account-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-menu.hidden {
  display: none;
}

.account-menu-item {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: var(--bg-surface);
  color: var(--fg);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.account-menu-item:hover {
  background: var(--bg-card);
}

.account-menu-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* â”€â”€ Main Content Area â”€â”€ */
.main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.section {
  display: none;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.section.active-section {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ Bottom Tab Bar (mobile) â”€â”€ */
.bottom-bar {
  display: none; /* shown on mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottombar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(8, 8, 14, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  z-index: 9000;
}

.bottom-bar .btab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0.3rem 0;
}

.bottom-bar .btab.active {
  color: var(--accent);
}

.bottom-bar .btab svg {
  transition: transform 0.15s;
}

.bottom-bar .btab.active svg {
  transform: scale(1.1);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HOME
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.home-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.hero-logo {
  width: 90px;
  height: auto;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-title .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--fg-dim);
  font-size: 1rem;
  max-width: 480px;
  margin: 0.5rem auto 0;
}

/* Info cards */
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.info-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}

.info-card:hover {
  border-color: rgba(255, 107, 107, 0.18);
  transform: translateY(-2px);
}

.info-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.info-card p {
  font-size: 0.88rem;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* Recently Added */
.recently-added-section {
  margin: 1rem 0 1.5rem;
}

.section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.recent-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.recent-scroll::-webkit-scrollbar {
  height: 4px;
}
.recent-scroll::-webkit-scrollbar-track { background: transparent; }
.recent-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.recent-scroll .card {
  flex-shrink: 0;
  width: 140px;
  scroll-snap-align: start;
}

/* Requests */
.page-subtitle {
  font-size: 0.9rem;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

/* Favorites Section */
.favorites-header {
  margin-bottom: 1.5rem;
}

.favorites-auth-notice {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
}

.favorites-auth-notice p {
  margin: 0 0 1rem;
  color: var(--fg-dim);
}

.favorites-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.favorites-lists-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.list-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.list-tab {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--fg-dim);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.list-tab:hover {
  background: var(--bg-card);
  color: var(--fg);
}

.list-tab.active {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
}

.list-create-btn {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.list-create-btn:hover {
  background: var(--bg-card);
  border-color: var(--accent);
}

/* Favorites Section */
.favorites-header {
  margin-bottom: 1.5rem;
}

.favorites-auth-notice {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
}

.favorites-auth-notice p {
  margin: 0 0 1rem;
  color: var(--fg-dim);
}

.favorites-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.favorites-lists-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.list-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.list-tab {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--fg-dim);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.list-tab:hover {
  background: var(--bg-card);
  color: var(--fg);
}

.list-tab.active {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
}

.list-create-btn {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.list-create-btn:hover {
  background: var(--bg-card);
  border-color: var(--accent);
}

.request-auth-notice {
  margin-bottom: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.request-auth-notice p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fg-dim);
}

.request-form-wrap {
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem 1.25rem;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.request-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
}

.request-label span {
  color: var(--fg-dim);
}

.request-label input,
.request-label select,
.request-label textarea {
  background: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  color: var(--fg);
  font-size: 0.82rem;
  font-family: var(--font);
}

.request-label textarea {
  resize: vertical;
  min-height: 80px;
}

.request-lists {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
}

.request-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem 1.25rem;
}

.request-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.request-item {
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.request-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.request-status-badge {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  text-transform: capitalize;
}

.status-open {
  background: rgba(100, 181, 246, 0.18);
  color: #64b5f6;
}

.status-in_progress {
  background: rgba(255, 214, 102, 0.18);
  color: #ffd666;
}

.status-fulfilled {
  background: rgba(102, 187, 106, 0.18);
  color: #66bb6a;
}

.status-rejected {
  background: rgba(244, 67, 54, 0.18);
  color: #ef9a9a;
}

.request-meta {
  color: var(--fg-muted);
  font-size: 0.74rem;
  margin-bottom: 0.25rem;
}

.request-details {
  font-size: 0.8rem;
  color: var(--fg);
}

.request-admin-controls {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.request-admin-controls select {
  font-size: 0.72rem;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
}

.request-admin-controls button {
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .request-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .request-lists {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* CTA */
.home-cta {
  text-align: center;
  margin: 1rem 0 2rem;
}

.cta-btn {
  display: inline-block;
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 107, 0.3);
  text-decoration: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GALLERY
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.filters {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(8, 8, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
  margin: -1.5rem -1.5rem 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.search-wrap {
  position: relative;
  margin-bottom: 0.5rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  pointer-events: none;
}

.search {
  width: 100%;
  background: rgba(14, 14, 24, 0.5);
  color: var(--fg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.6rem 2.2rem 0.6rem 2.4rem;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.search:focus {
  border-color: var(--accent);
}

.search::placeholder {
  color: var(--fg-muted);
}

.search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 14, 24, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--fg-dim);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-row select {
  flex: 1;
  min-width: 120px;
  background: rgba(14, 14, 24, 0.5);
  color: var(--fg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  font-family: var(--font);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: auto;
}

.filter-row select:focus {
  border-color: var(--accent);
}

.filter-summary {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.4rem;
}

/* â”€â”€ Grid & Cards â”€â”€ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-top-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 107, 0.22);
  box-shadow: 0 8px 28px rgba(238, 58, 140, 0.2), 0 0 0 1px rgba(255, 107, 107, 0.08);
}

.card > img,
.card-img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: rgba(10, 10, 18, 0.6);
  display: block;
}

.card .info {
  padding: 0.5rem 0.6rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card .psna {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .title {
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card .title-en {
  font-size: 0.72rem;
  color: var(--fg-dim);
  font-weight: 400;
}

.card .publisher {
  font-size: 0.68rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card .card-meta-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.card .system,
.card .region {
  font-size: 0.68rem;
  color: var(--fg-muted);
}

.card .score-pill {
  display: none;
}

.card .actions {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem 0.65rem;
}

.card .actions button,
.card .actions .buy-btn {
  flex: 1;
  font-size: 0.7rem;
}

.fav-btn {
  background: rgba(255, 215, 0, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-family: var(--font);
  padding: 0.25rem 0.4rem;
  cursor: pointer;
}

.fav-btn:hover {
  background: rgba(255, 215, 0, 0.18);
}

/* Card image wrapper â€” for overlaid badges */
.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.card .popularity {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: wrap;
}

.card .rank {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--fg-dim);
}

/* Rare Badge (overlaid on image) */
.rare-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a1a;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  z-index: 2;
}

.rare-badge-lg {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
}

/* Popular badge (overlaid on image) */
.pop-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  z-index: 2;
}

/* New badge (overlaid on image) */
.new-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: linear-gradient(135deg, #4a9eff, #8a63d2);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  z-index: 2;
}

.new-badge-lg {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
}

/* Rare card glow */
.card-rare {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.08);
}

.card-rare:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.12);
}

/* Admin mode: rare toggle star button */
.rare-toggle {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,215,0,0.4);
  color: #ffd700;
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.15s;
  padding: 0;
  line-height: 1;
}

.rare-toggle:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.15);
}

/* Show rare toggle only in admin mode */
.admin-mode .rare-toggle {
  display: flex;
}

/* Admin rare button on detail page */
.admin-rare-btn {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.admin-rare-btn:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* Rare tag in detail meta */
.rare-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.new-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Detail image wrapper */
.detail-img-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Admin bar */
.admin-bar {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.admin-bar .admin-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd700;
}

.admin-bar button {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,215,0,0.3);
  background: rgba(255,215,0,0.08);
  color: #ffd700;
  cursor: pointer;
  transition: all 0.15s;
}

.admin-bar button:hover {
  background: rgba(255,215,0,0.18);
}

.admin-bar .admin-count {
  font-size: 0.68rem;
  color: var(--fg-dim);
  margin-left: auto;
  font-family: var(--mono);
}

.card .badge,
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
}

/* Card Actions */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem 0.5rem;
  margin-top: auto;
}

.copy-btn,
.buy-btn,
.dl-btn {
  flex: 1;
  text-align: center;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.buy-btn {
  background: var(--accent-grad);
  color: #fff;
}

.buy-btn:hover {
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
  text-decoration: none;
}

.copy-btn {
  background: var(--bg-surface);
  color: var(--fg);
  border: 1px solid var(--border);
}

.copy-btn:hover {
  border-color: var(--border-light);
  background: var(--border);
}

.dl-btn {
  background: var(--bg-surface);
  color: var(--fg);
  border: 1px solid var(--border);
}

.dl-btn:hover {
  border-color: var(--border-light);
  background: var(--border);
}

/* Infinite scroll status */
.infinite-status {
  text-align: center;
  padding: 1rem;
  color: var(--fg-muted);
  font-size: 0.82rem;
}

.infinite-sentinel {
  height: 2px;
}

.hidden { display: none !important; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   AVATAR DETAIL
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: background 0.15s;
}

.back-btn:hover {
  background: var(--border);
}

.avatar-page {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.avatar-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.avatar-header img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--border);
}

.avatar-meta h1 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.avatar-meta .meta-row {
  color: var(--fg-dim);
  font-size: 0.88rem;
  margin: 0.2rem 0;
}

.avatar-meta .meta-row b {
  color: var(--fg);
}

.mono {
  font-family: var(--mono);
}

.avatar-cta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.avatar-cta .copy-btn,
.avatar-cta .buy-btn,
.avatar-cta .dl-btn {
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  flex: unset;
}

.related-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-dim);
  margin-bottom: 0.75rem;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TROPHY PAGE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.trophy-pane {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.trophy-img {
  width: 160px;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.trophy-pane h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.trophy-sub {
  font-size: 0.88rem;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.trophy-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.trophy-row {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-tag {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  min-width: 36px;
}

.tier-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tier-btn {
  display: inline-block;
  background: var(--accent-grad);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.tier-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.25);
  text-decoration: none;
}

/* Discount box */
.discount-box {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.discount-toggle {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s;
}

.discount-toggle:hover {
  background: var(--border);
}

.discount-content {
  margin-top: 0.75rem;
  padding: 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.55;
}

.discount-content p {
  color: var(--fg-dim);
  margin-bottom: 0.6rem;
}

.discount-content ul {
  padding-left: 1.2rem;
  margin-bottom: 0.8rem;
}

.discount-content li {
  color: var(--fg-dim);
  margin-bottom: 0.3rem;
}

.example-box {
  background: var(--bg-raised);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--fg);
}

.trophy-cta {
  margin-top: 1.25rem;
  width: 100%;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FAQ
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.faq-list {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--border-light);
}

.faq-item summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

.faq-item summary:hover {
  background: var(--bg-surface);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--fg-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: 'âˆ’';
  color: var(--accent);
}

.faq-item p,
.faq-item ul {
  padding: 0 1rem 0.85rem;
  font-size: 0.88rem;
  color: var(--fg-dim);
  line-height: 1.55;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ACCOUNT SETUP
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.setup-steps {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.setup-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.setup-block h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.setup-block ol {
  padding-left: 1.4rem;
}

.setup-block li {
  font-size: 0.9rem;
  color: var(--fg-dim);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.setup-block li em {
  color: var(--fg);
}

.purchase-history {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.purchase-item {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}

.purchase-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.purchase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purchase-body {
  flex: 1;
  font-size: 0.8rem;
}

.purchase-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.purchase-meta {
  font-size: 0.74rem;
  color: var(--fg-muted);
  margin-bottom: 0.25rem;
}

.purchase-notes {
  font-size: 0.78rem;
  color: var(--fg-dim);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOAST
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--accent-grad);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 10000;
  white-space: nowrap;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE â€” MOBILE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .bottom-bar {
    display: flex;
  }

  .main {
    padding-bottom: calc(var(--bottombar-h) + var(--safe-bottom) + 8px);
  }

  .section {
    padding: 1rem;
  }

  .filters {
    margin: -1rem -1rem 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
  }

  .filters.filters-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }

  .hero-logo {
    width: 70px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .home-cards {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .filter-row {
    flex-wrap: wrap;
  }

  .filter-row select {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    font-size: 0.78rem;
  }

  .avatar-header {
    grid-template-columns: 1fr;
  }

  .avatar-header img {
    max-width: 260px;
    margin: 0 auto;
  }

  .trophy-img {
    width: 120px;
  }

  .recent-scroll .card {
    width: 120px;
  }

  /* Stack card actions vertically on small cards */
  .actions {
    flex-direction: column;
    gap: 0.25rem;
  }

  /* Hide overflow tabs from main bar on mobile */
  .bottom-bar .btab[data-more] {
    display: none;
  }

  /* Show the More button on mobile */
  .btab-more {
    display: flex !important;
  }
}

@media (max-width: 420px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .card .info {
    padding: 0.35rem 0.45rem;
  }

  .card .title {
    font-size: 0.75rem;
  }

  .card .psna {
    font-size: 0.58rem;
  }

  .actions {
    padding: 0.3rem 0.45rem 0.4rem;
  }

  .copy-btn, .buy-btn, .dl-btn {
    font-size: 0.65rem;
    padding: 0.25rem 0.3rem;
  }
}

/* Very tall phones - single col would waste space, keep 2 */
@media (max-width: 360px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   ROADMAP & CHANGELOG STYLES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.roadmap-container {
  max-width: 900px;
  margin: 0 auto;
}

.changelog-group {
  margin-bottom: 3rem;
}

.changelog-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.changelog-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.changelog-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.changelog-entry:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.changelog-entry.current {
  border-color: var(--accent);
  background: linear-gradient(135deg, 
    rgba(255, 107, 107, 0.05) 0%, 
    rgba(238, 58, 140, 0.05) 100%
  );
}

.changelog-entry.planned {
  border-color: #4a9eff;
  background: linear-gradient(135deg, 
    rgba(74, 158, 255, 0.03) 0%, 
    rgba(138, 99, 210, 0.03) 100%
  );
}

.version-badge {
  display: inline-block;
  background: var(--accent-grad);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  font-family: var(--mono);
  letter-spacing: 0.5px;
}

.version-badge.upcoming {
  background: linear-gradient(135deg, #4a9eff, #8a63d2);
}

.version-badge.old {
  background: linear-gradient(135deg, #555, #777);
}

.changelog-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.changelog-date {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.changelog-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-category {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.feature-category h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-category li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--fg-dim);
  line-height: 1.6;
}

.feature-category li::before {
  content: "â†’";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.feature-category li strong {
  color: var(--fg);
  font-weight: 600;
}

/* Responsive adjustments for roadmap */
@media (max-width: 768px) {
  .roadmap-container {
    padding: 0 0.5rem;
  }

  .changelog-entry {
    padding: 1.25rem;
  }

  .changelog-content h3 {
    font-size: 1.2rem;
  }

  .feature-category {
    padding: 1rem;
  }

  .feature-category h4 {
    font-size: 0.95rem;
  }

  .feature-category li {
    font-size: 0.9rem;
    padding: 0.4rem 0;
    padding-left: 1.25rem;
  }
}

@media (max-width: 480px) {
  .changelog-header h2 {
    font-size: 1.3rem;
  }

  .changelog-content h3 {
    font-size: 1.1rem;
  }

  .version-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   CONTACT PAGE STYLES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-intro p {
  font-size: 1.1rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.1);
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 50%;
  color: var(--accent);
}

.contact-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contact-link {
  display: inline-block;
  background: var(--accent-grad);
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  text-decoration: none;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.contact-info p {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info strong {
  color: var(--fg);
  font-weight: 600;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
  .contact-container {
    padding: 0 0.5rem;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-icon {
    width: 56px;
    height: 56px;
  }

  .contact-card h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .contact-intro p {
    font-size: 1rem;
  }

  .contact-link {
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Vouches
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.vouches-header {
  margin: 10px 0 18px;
}

.vouches-sub {
  color: var(--fg-dim);
  margin-top: 6px;
}

.vouch-upload {
  display: none; /* shown in admin mode */
  margin: 14px 0 20px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.vouch-upload-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.4fr auto;
  gap: 10px;
  align-items: center;
}

.vouch-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: var(--fg);
  outline: none;
}

.vouch-file {
  width: 100%;
}

.vouch-hint {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--fg-dim);
}

.vouches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.vouch-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.vouch-shot img {
  width: 100%;
  display: block;
  height: auto;
}

.vouch-meta {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.vouch-date {
  font-size: 0.95rem;
  color: var(--fg);
}


.vouch-avatar {
  padding: 12px;
}

.vouch-avatar .card {
  flex-direction: row;
}

.vouch-avatar .card-img-wrap {
  width: 80px;
  flex-shrink: 0;
}

.vouch-avatar .card-img-wrap img {
  width: 80px;
  height: 80px;
  aspect-ratio: 1;
  object-fit: cover;
}

.vouch-avatar .card .info {
  padding: 0.4rem 0.6rem;
  justify-content: center;
  min-width: 0;
}

.card-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.card-badges-row .rare-badge,
.card-badges-row .pop-badge,
.card-badges-row .new-badge {
  position: static;
  font-size: 0.7rem;
}

.vouch-missing {
  color: var(--fg-dim);
  font-size: 0.9rem;
  padding: 8px 0;
}

.vouches-loading,
.vouches-empty {
  color: var(--fg-dim);
  padding: 14px 0;
}

@media (max-width: 640px) {
  .vouch-upload-row {
    grid-template-columns: 1fr;
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   TOOLS PAGE STYLES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.tools-intro {
  color: var(--fg-dim);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.tools-container {
  max-width: 800px;
  margin: 0 auto;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

.tool-card:hover {
  border-color: var(--border-light);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.tool-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: contain;
  flex-shrink: 0;
}

.tool-title-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.tool-version {
  display: inline-block;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-family: var(--mono);
  margin-top: 0.25rem;
}

.tool-desc {
  color: var(--fg-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tool-screenshot-wrap {
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tool-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.tool-features {
  margin-bottom: 1.25rem;
}

.tool-features h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tool-features ul {
  list-style: none;
  padding: 0;
}

.tool-features li {
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--fg-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tool-features li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.tool-actions {
  text-align: center;
  margin-top: 1rem;
}

.tool-download-btn {
  width: 100%;
}

.tool-dl-count {
  font-weight: 400;
  font-size: 0.82rem;
  opacity: 0.8;
  margin-left: 0.25rem;
}

.tool-credit {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FAVORITES â€” ENHANCED
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Count badge on Favorites nav tab */
.fav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  line-height: 1;
  margin-left: 3px;
  vertical-align: middle;
}

/* List tab group: tab + edit/delete icons */
.list-tab-group {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.list-tab-edit,
.list-tab-del {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--fg-dim);
  font-size: 0.75rem;
  padding: 0.2rem 0.3rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
  line-height: 1;
}

.list-tab-group:hover .list-tab-edit,
.list-tab-group:hover .list-tab-del {
  opacity: 1;
}

.list-tab-edit:hover { color: var(--fg); }
.list-tab-del:hover  { color: var(--accent); }

/* Nav actions row (New List + Select buttons) */
.favorites-nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* Select mode toggle button */
.select-toggle-btn {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--fg-dim);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.select-toggle-btn:hover,
.select-toggle-btn.active {
  background: var(--bg-card);
  color: var(--fg);
  border-color: var(--accent);
}

/* Select mode action bar */
.select-mode-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

#selectModeCount {
  font-size: 0.82rem;
  color: var(--fg-dim);
  flex: 1;
}

.select-action-btn {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--fg);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.select-action-btn:hover {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
}

.select-cancel-btn {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-dim);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s;
}

.select-cancel-btn:hover { color: var(--fg); }

/* Selected card state */
.card.card-selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card.card-selected .card-img-wrap::after {
  content: '\2713';
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--accent);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Favorites card wrapper with remove button */
.fav-card-wrap {
  position: relative;
}

.fav-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  z-index: 2;
  padding: 0;
}

.fav-card-wrap:hover .fav-remove-btn {
  opacity: 1;
}

.fav-remove-btn:hover {
  background: rgba(220, 50, 50, 0.85);
}

/* List picker modal */
.list-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}

.list-picker-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 41;
  pointer-events: none;
}

.list-picker-modal:not(.hidden) {
  pointer-events: auto;
}

.list-picker-inner {
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  padding: 16px;
  width: 100%;
  max-width: 300px;
  margin: 16px;
}

.list-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.list-picker-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.list-picker-lists {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.list-picker-item {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--fg);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.list-picker-item:hover {
  background: var(--bg-card);
  border-color: var(--accent);
}

.list-picker-item.in-list {
  background: color-mix(in srgb, var(--accent) 15%, var(--bg-surface));
  border-color: var(--accent);
  color: var(--fg);
}

.list-picker-item.in-list:hover {
  background: color-mix(in srgb, var(--accent) 25%, var(--bg-surface));
}

.list-picker-new {
  border-style: dashed;
  color: var(--fg-dim);
}

.list-picker-new:hover { color: var(--fg); }

/* Add to list button (avatar detail page) */
.list-add-btn {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}

.list-add-btn:hover {
  background: var(--bg-card);
  border-color: var(--accent);
}

.list-add-btn.in-list {
  background: color-mix(in srgb, var(--accent) 15%, var(--bg-surface));
  border-color: var(--accent);
  color: var(--fg);
}

/* Fav button sizing on avatar detail page */
.avatar-cta .fav-btn {
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
}

.tool-credit a {
  color: var(--fg-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tool-credit a:hover {
  color: var(--accent);
}

/* Auth modal */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 41;
}

.auth-modal.open,
.auth-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-inner {
  width: 100%;
  max-width: 380px;
  margin: 16px;
  background: rgba(14, 14, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  padding: 18px 18px 14px;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.auth-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.auth-close-btn {
  border: none;
  background: transparent;
  color: var(--fg-dim);
  cursor: pointer;
  font-size: 1rem;
}

.auth-tabs {
  display: inline-flex;
  background: var(--bg-surface);
  padding: 2px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.auth-tab {
  border: none;
  background: transparent;
  color: var(--fg-dim);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.auth-tab-active {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form.hidden {
  display: none;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
}

.auth-label span {
  color: var(--fg-dim);
}

.auth-label input {
  background: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 7px 9px;
  color: var(--fg);
  font-size: 0.8rem;
}

.auth-label input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-submit-btn {
  width: 100%;
  margin-top: 4px;
}

.auth-hint {
  font-size: 0.72rem;
  color: var(--fg-dim);
  margin: 0;
}

.auth-footnote {
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--fg-dim);
}

/* Responsive */
@media (max-width: 768px) {
  .tools-container {
    padding: 0 0.5rem;
  }

  .tool-logo {
    width: 56px;
    height: 56px;
  }

  .tool-title-block h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .tool-header {
    gap: 0.75rem;
  }

  .tool-logo {
    width: 48px;
    height: 48px;
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   MORE MENU (mobile overflow navigation)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Hide More button on desktop (bottom-bar is hidden anyway, but be explicit) */
.btab-more {
  display: none;
}

/* Backdrop overlay */
.more-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 8998;
}

.more-backdrop.open {
  display: block;
}

/* Menu panel */
.more-menu {
  display: none;
  position: fixed;
  bottom: calc(var(--bottombar-h) + var(--safe-bottom));
  right: 0.75rem;
  background: rgba(14, 14, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.4rem;
  z-index: 8999;
  min-width: 180px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

.more-menu.open {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.15s ease;
}

.more-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: none;
  border: none;
  color: var(--fg-dim);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.more-item:hover,
.more-item:active {
  background: var(--bg-surface);
  color: var(--fg);
}

.more-item.active {
  color: var(--accent);
}

.more-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* â”€â”€ View Toggle â”€â”€ */
.view-toggle-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.view-toggle {
  display: flex;
  gap: 2px;
  background: rgba(14, 14, 24, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: all 0.15s;
}

.view-btn:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.05);
}

.view-btn.active {
  background: var(--accent);
  color: #fff;
}

/* â”€â”€ List View â”€â”€ */
.list-view {
  display: flex !important;
  flex-direction: column;
  gap: 0.5rem;
}

.list-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.list-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.2);
  border-color: rgba(255, 107, 107, 0.18);
}

.list-card.card-rare {
  border-color: rgba(255,215,0,0.3);
  box-shadow: 0 0 8px rgba(255,215,0,0.1);
}

.list-card-img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}

.list-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-card-top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.list-card-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-card-en {
  font-size: 0.72rem;
  color: var(--fg-dim);
}

.list-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.list-card-meta .psna {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.list-card-meta .rare-badge,
.list-card-meta .pop-badge,
.list-card-meta .new-badge {
  position: static;
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 3px;
}

.list-card-bottom {
  display: flex;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--fg-muted);
}

.list-card-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.list-card-actions button,
.list-card-actions a {
  font-size: 0.68rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(14, 14, 24, 0.5);
  color: var(--fg-dim);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
}

.list-card-actions button:hover,
.list-card-actions a:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.list-card-actions .buy-btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* â”€â”€ Games View â”€â”€ */
.games-view {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.games-header {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.game-row {
  border-bottom: 1px solid var(--border);
}

.game-row:first-of-type {
  border-top: 1px solid var(--border);
}

.game-row-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}

.game-row-head:hover {
  background: rgba(255, 107, 107, 0.04);
}

.game-row-arrow {
  font-size: 0.65rem;
  color: var(--fg-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  width: 12px;
  text-align: center;
}

.game-row-head.open .game-row-arrow {
  transform: rotate(90deg);
}

.game-row-title {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-row-en {
  font-size: 0.75rem;
  color: var(--fg-dim);
  font-weight: 400;
}

.game-row-count {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 28px;
  text-align: center;
}

.game-row-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.75rem 1.8rem;
  background: rgba(13, 13, 30, 0.3);
}

.game-row-body.hidden {
  display: none;
}

.game-thumb {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.15s, border-color 0.15s;
}

.game-thumb:hover {
  transform: scale(1.08);
  border-color: var(--accent);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* â”€â”€ Mobile responsive for list/games â”€â”€ */
@media (max-width: 768px) {
  .list-card {
    flex-wrap: wrap;
  }
  .list-card-actions {
    width: 100%;
    justify-content: stretch;
  }
  .list-card-actions button,
  .list-card-actions a {
    flex: 1;
    text-align: center;
  }
  .game-row-body {
    padding-left: 0.5rem;
  }
  .game-thumb {
    width: 56px;
    height: 56px;
  }
}

