
:root {
  --bg: #070707;
  --panel: #111214;
  --panel-2: #17191d;
  --border: rgba(212,175,55,0.28);
  --gold: #d4af37;
  --gold-soft: #f1dc95;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.68);
  --danger: #bb4444;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(212,175,55,0.11), transparent 25%), linear-gradient(180deg, #050505, #111214 40%, #191b20);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
a { color: var(--gold-soft); text-decoration: none; }
.container { width: min(1100px, calc(100% - 28px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(7,7,7,0.88);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
.site-title { margin: 0; font-size: 1.7rem; color: var(--gold-soft); letter-spacing: -0.03em; }
.site-title-xl { font-size: clamp(2rem, 5vw, 3.4rem); }
.site-subtitle { margin: 4px 0 0; color: var(--muted); }
.page-shell { padding: 22px 0 46px; display: grid; gap: 18px; }
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.22);
}
.compact-top { margin-top: 6px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-head p, .panel-note, .results-meta, .inline-message { color: var(--muted); margin: 0; }
.panel-label { display:block; margin-bottom: 10px; color: var(--gold-soft); font-weight: 700; }
.search-row, .bottom-login-row, .gate-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
input, button {
  font: inherit;
}
input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
}
.btn-primary { background: linear-gradient(135deg, #8a6816, #d4af37, #f0dc96); color: #111; }
.btn-secondary { background: #1f2228; color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: white; }
.cards-grid, .admin-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.registry-card, .mini-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 18px;
  padding: 16px;
}
.registry-card { display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
.registry-media-wrap {
  min-height: 190px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.16);
}
.card-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.registry-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cert-number { color: var(--gold-soft); font-weight: 700; }
.card-grade-badge { background: rgba(212,175,55,0.16); border: 1px solid rgba(212,175,55,0.28); border-radius: 999px; padding: 8px 12px; font-weight: 800; }
.player-name { margin: 12px 0 6px; font-size: 1.45rem; font-weight: 800; }
.parallel-line { color: var(--gold-soft); font-weight: 700; margin-bottom: 6px; }
.card-set { color: var(--muted); }
.admin-bottom-head { align-items: center; }
.admin-link-row { margin-top: 12px; }
.hidden { display: none !important; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid label { display: grid; gap: 8px; font-weight: 700; color: var(--gold-soft); }
.full-width { grid-column: 1 / -1; }
.action-row, .mini-action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-card-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mini-card-sub { color: var(--muted); margin-bottom: 6px; }
.deleted-card { opacity: 0.92; }
.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(212,175,55,0.28);
  border-radius: 16px;
  padding: 20px;
  color: var(--muted);
}
.text-link { color: var(--gold-soft); }
@media (max-width: 860px) {
  .cards-grid, .admin-cards-grid, .registry-card, .form-grid, .search-row, .bottom-login-row, .gate-form, .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }
  .topbar { align-items: start; }
}


.registry-actions-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: nowrap;
}
.registry-actions-row .btn {
  min-width: 92px;
  padding: 0.72rem 0.9rem;
}
#searchResultsPanel {
  margin-top: 1.1rem;
}


.submission-card .registry-content {
  width: 100%;
}
.submission-media-wrap {
  min-height: 180px;
}
.submission-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
}
.submission-no-image-text {
  opacity: 0.72;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.submission-time-ago {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  opacity: 0.78;
}
