/* ============ DVD WISHLIST — STYLES ============ */
:root {
  --navy-deep: #050d2e;
  --navy: #0a1845;
  --navy-light: #1b2d6b;
  --chrome-1: #f4f4f4;
  --chrome-2: #c0c0c0;
  --chrome-3: #6e6e7a;
  --chrome-4: #2a2a35;
  --gold: #ffd84d;
  --gold-deep: #c89b1c;
  --red: #ff4d6d;
  --red-deep: #b3243f;
  --teal: #5fd3e0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--chrome-1);
  font-family: "Tahoma", "Geneva", sans-serif;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select { user-select: text; }

/* ============ ROOT FRAME ============ */
.dvd-frame {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, #1f3a8a 0%, var(--navy) 35%, var(--navy-deep) 75%, #000 100%);
  overflow: hidden;
}
.dvd-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none; z-index: 5;
}

/* ============ SCANLINES + CRT ============ */
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
  animation: scanflicker 8s steps(60) infinite;
}
.scanlines::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04) 0%, transparent 50%, rgba(0,0,0,0.15) 100%);
}
.scanlines::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.4) 100%);
}
@keyframes scanflicker { 0%, 96%, 100% { opacity: 1; } 97% { opacity: 0.85; } 98% { opacity: 1; } }
.scanlines .moving-line {
  position: absolute; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.04), transparent);
  animation: moveDown 6s linear infinite;
}
@keyframes moveDown { 0% { top: -80px; } 100% { top: 100%; } }

/* ============ BG ANIMATIONS ============ */
.bg-stars { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.bg-stars .star { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }

.dvd-bouncer { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.dvd-bouncer .logo {
  position: absolute;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 56px; font-weight: 900; font-style: italic; letter-spacing: -2px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
  filter: drop-shadow(0 0 12px currentColor);
  opacity: 0.18;
}

/* ============ SCREEN ============ */
.screen {
  position: relative; z-index: 10;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  animation: screenIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes screenIn { 0% { opacity: 0; transform: translateY(8px) scale(0.98); } 100% { opacity: 1; transform: none; } }

/* ============ TOP CHROME BAR ============ */
.chrome-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(to bottom, #2a3870 0%, #0e1c4a 100%);
  border-bottom: 2px solid #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.5);
  position: relative; z-index: 20;
  flex-shrink: 0;
  gap: 8px;
}
.chrome-logo {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 22px; font-weight: 900; font-style: italic;
  background: linear-gradient(to bottom, #fff 0%, #fff 40%, #888 50%, #ddd 60%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 1px;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.8));
  white-space: nowrap;
}
.chrome-logo .tm { font-size: 10px; vertical-align: super; margin-left: 2px; -webkit-text-fill-color: var(--chrome-2); }
.chrome-clock {
  font-family: "VT323", "Courier New", monospace;
  font-size: 18px; color: var(--gold); letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255, 216, 77, 0.6);
  white-space: nowrap;
}
.chrome-nav { display: flex; gap: 4px; align-items: center; }
.chrome-btn {
  font-family: "VT323", monospace; font-size: 14px; letter-spacing: 1px;
  color: var(--chrome-2);
  background: linear-gradient(to bottom, #4a5a8a, #1a2a5a);
  border: 1px solid #000; border-top-color: #6a7aaa;
  padding: 6px 14px; cursor: pointer; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.4);
  transition: all 0.1s;
  white-space: nowrap;
}
.chrome-btn:hover { color: var(--gold); background: linear-gradient(to bottom, #5a6a9a, #2a3a6a); }
.chrome-btn:active { box-shadow: inset 0 2px 4px rgba(0,0,0,0.6); transform: translateY(1px); }

/* ============ HUB ============ */
.hub {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding: 40px 60px 100px;
  align-items: center;
  min-height: 0;
}
.hub-left { min-width: 0; }
.hub-title {
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 900; font-style: italic;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.9; letter-spacing: -3px;
  background: linear-gradient(to bottom, #fffbe0 0%, #fff 30%, #aaa 50%, #ffd84d 60%, #c89b1c 80%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.6)) drop-shadow(0 0 18px rgba(255,216,77,0.3));
  margin: 0 0 20px;
}
.hub-title .ampersand { font-style: italic; -webkit-text-fill-color: var(--gold); font-size: 0.7em; vertical-align: 0.05em; margin: 0 6px; }
.hub-tagline {
  font-family: "VT323", monospace; font-size: 20px;
  color: var(--teal); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 0 10px rgba(95,211,224,0.5);
}
.hub-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 28px; max-width: 480px;
}
.hub-stat {
  background: linear-gradient(to bottom, rgba(20,30,80,0.7), rgba(5,10,40,0.9));
  border: 1px solid var(--chrome-3); padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 6px rgba(0,0,0,0.4);
}
.hub-stat .num { font-family: "VT323", monospace; font-size: 32px; color: var(--gold); line-height: 1; text-shadow: 0 0 10px rgba(255,216,77,0.5); }
.hub-stat .label { font-family: "VT323", monospace; font-size: 12px; color: var(--chrome-2); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

/* DVD menu items */
.menu-list { display: flex; flex-direction: column; gap: 14px; position: relative; }
.menu-item {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 16px 24px 16px 56px;
  background: linear-gradient(to right, rgba(15,25,70,0.85), rgba(5,10,40,0.5));
  border: 1px solid transparent; border-left: 3px solid transparent;
  cursor: pointer;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 28px; font-weight: 700;
  color: var(--chrome-2); letter-spacing: 1px;
  transition: all 0.18s; text-transform: uppercase;
}
.menu-item .ico { font-family: "VT323", monospace; font-size: 22px; color: var(--chrome-3); width: 26px; text-align: center; }
.menu-item .menu-label { flex: 1; min-width: 0; }
.menu-item .arrow {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%) translateX(-8px); opacity: 0;
  color: var(--gold); font-size: 22px;
  transition: all 0.2s; text-shadow: 0 0 8px var(--gold);
}
.menu-item .sub { font-family: "VT323", monospace; font-size: 13px; color: var(--chrome-3); letter-spacing: 1.5px; text-transform: none; white-space: nowrap; }
.menu-item:hover, .menu-item.active {
  color: var(--gold);
  background: linear-gradient(to right, rgba(40,60,150,0.9), rgba(10,20,80,0.7));
  border-color: var(--gold-deep); border-left-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 24px rgba(255,216,77,0.25);
  text-shadow: 0 0 12px rgba(255,216,77,0.6);
}
.menu-item:hover .arrow, .menu-item.active .arrow {
  opacity: 1; transform: translateY(-50%) translateX(0);
  animation: arrowPulse 0.8s ease-in-out infinite alternate;
}
@keyframes arrowPulse { from { transform: translateY(-50%) translateX(0); } to { transform: translateY(-50%) translateX(4px); } }

/* hub bottom toggles */
.hub-toggles {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  display: flex; justify-content: center;
  gap: 10px;
  z-index: 25;
  padding: 0 12px;
  flex-wrap: wrap;
}
.hub-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(to bottom, rgba(40,55,110,0.85), rgba(10,20,60,0.9));
  border: 1px solid var(--chrome-3);
  font-family: "VT323", monospace;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 6px rgba(0,0,0,0.4);
  transition: all 0.15s;
}
.hub-toggle:hover { border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 14px rgba(255,216,77,0.3); }
.hub-toggle .hl { font-size: 13px; letter-spacing: 2px; color: var(--chrome-2); }
.hub-toggle .hv {
  font-size: 14px; letter-spacing: 2px;
  padding: 2px 8px; border: 1px solid;
  font-weight: 700;
}
.hub-toggle .hv.on { color: var(--navy-deep); background: var(--gold); border-color: #fff; box-shadow: 0 0 8px rgba(255,216,77,0.5); }
.hub-toggle .hv.off { color: var(--chrome-3); background: #000; border-color: var(--chrome-4); }

/* ============ LOADING ============ */
.loading {
  position: fixed; inset: 0; z-index: 9000;
  background: #000;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 28px;
  animation: loadIn 0.2s;
}
@keyframes loadIn { from { opacity: 0; } to { opacity: 1; } }
.loading-disc {
  width: 110px; height: 110px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #000 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #c0c0c0 22%, transparent 23%),
    conic-gradient(from 0deg, #ff4d6d, #ffd84d, #5fd3e0, #ff4d6d, #ffd84d, #5fd3e0, #ff4d6d);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 40px rgba(255,255,255,0.3), inset 0 0 20px rgba(0,0,0,0.5);
  position: relative;
}
.loading-disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 40%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-family: "VT323", monospace; font-size: 22px; letter-spacing: 4px; color: var(--chrome-2); text-transform: uppercase; }
.loading-text::after { content: ""; display: inline-block; width: 1ch; animation: dots 1s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ============ GRID VIEW ============ */
.grid-screen {
  flex: 1; display: flex; flex-direction: column;
  padding: 22px 40px 28px; overflow: hidden; min-height: 0;
}
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--chrome-3); padding-bottom: 10px;
  gap: 12px; flex-wrap: wrap;
}
.section-title {
  font-family: "Cinzel", serif; font-style: italic;
  font-size: 36px; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(to bottom, #fff, #ccc 60%, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.5));
}
.section-meta { font-family: "VT323", monospace; font-size: 16px; color: var(--gold); letter-spacing: 2px; white-space: nowrap; }

/* search + sort */
.search-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.search-box {
  flex: 1; min-width: 200px; position: relative; display: flex; align-items: center;
  background: #000; border: 1px solid var(--chrome-2); border-top-color: var(--chrome-3); border-left-color: var(--chrome-3);
  padding: 0 8px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}
.search-box .sb-pre { font-family: "VT323", monospace; color: var(--gold); padding: 0 6px 0 4px; font-size: 18px; }
.search-box input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: "VT323", monospace; font-size: 18px;
  color: var(--chrome-1); padding: 8px 4px; letter-spacing: 1px;
}
.search-box input::placeholder { color: var(--chrome-3); }
.search-box .sb-clear {
  font-family: "VT323", monospace; color: var(--red); cursor: pointer;
  padding: 4px 8px; font-size: 16px;
}
.search-box .sb-clear:hover { color: #fff; }
.sort-box { display: flex; align-items: center; gap: 8px; }
.sort-box label { font-family: "VT323", monospace; font-size: 13px; letter-spacing: 2px; color: var(--teal); }
.sort-box select {
  font-family: "VT323", monospace; font-size: 16px;
  color: var(--gold); background: #000;
  border: 1px solid var(--chrome-2); border-top-color: var(--chrome-3); border-left-color: var(--chrome-3);
  padding: 7px 8px; outline: none; letter-spacing: 1px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}

.filter-bar { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.chip-sep { width: 12px; height: 1px; }
.chip {
  font-family: "VT323", monospace; font-size: 14px; letter-spacing: 1.5px;
  color: var(--chrome-2);
  background: linear-gradient(to bottom, rgba(40,55,110,0.7), rgba(10,20,60,0.7));
  border: 1px solid var(--chrome-4);
  padding: 5px 12px; cursor: pointer; text-transform: uppercase;
  transition: all 0.15s; white-space: nowrap;
}
.chip:hover { color: var(--gold); border-color: var(--gold-deep); }
.chip.active {
  color: var(--navy-deep);
  background: linear-gradient(to bottom, #ffe680, var(--gold) 60%, var(--gold-deep));
  border-color: #fff;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  box-shadow: 0 0 14px rgba(255,216,77,0.5);
}

.grid {
  flex: 1; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; overflow-y: auto;
  padding-right: 10px; padding-bottom: 8px; min-height: 0;
}
.grid::-webkit-scrollbar { width: 12px; }
.grid::-webkit-scrollbar-track { background: rgba(0,0,0,0.4); }
.grid::-webkit-scrollbar-thumb { background: linear-gradient(to right, var(--chrome-3), var(--chrome-2)); border: 1px solid #000; }

.card {
  position: relative;
  background: linear-gradient(135deg, rgba(30,45,100,0.85), rgba(8,15,50,0.95));
  border: 1px solid var(--chrome-3);
  padding: 14px; cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 200px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 10px rgba(0,0,0,0.4);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
}
.card:hover {
  border-color: var(--gold); transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 20px rgba(255,216,77,0.25), 0 0 30px rgba(255,216,77,0.15);
}
.card .card-thumb {
  height: 90px;
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 6px, transparent 6px, transparent 12px),
    linear-gradient(135deg, var(--navy-light), var(--navy-deep));
  border: 1px solid var(--chrome-4);
  display: flex; align-items: center; justify-content: center;
  font-family: "Cinzel", serif; font-size: 42px; font-weight: 900;
  color: var(--gold); text-shadow: 0 2px 0 rgba(0,0,0,0.6);
  flex-shrink: 0;
  overflow: hidden;
}
/* Cover photo fills the thumb, glyph stays centred as before */
.card-thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(35%) contrast(1.07) brightness(0.85) saturate(0.75) hue-rotate(-3deg);
  display: block;
}
.card-thumb-glyph {
  /* inherits the parent flex centering + font */
}
/* Granted star badge overlaid on thumb */
.card-granted-badge {
  position: absolute; bottom: 4px; right: 6px;
  font-size: 13px; color: var(--gold);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  pointer-events: none;
}
.card .card-cat { font-family: "VT323", monospace; font-size: 11px; letter-spacing: 2px; color: var(--teal); text-transform: uppercase; }
.card .card-title { font-family: "Cinzel", serif; font-size: 17px; font-weight: 700; color: var(--chrome-1); line-height: 1.15; text-wrap: pretty; }
.card .card-meta { font-family: "VT323", monospace; font-size: 14px; color: var(--chrome-2); letter-spacing: 1px; margin-top: auto; }

/* progress bar */
.bar {
  width: 100%; height: 10px;
  background: #000; border: 1px solid var(--chrome-4);
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}
.bar .fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold-deep), var(--gold) 60%, #fff7c2);
  box-shadow: 0 0 8px rgba(255,216,77,0.6);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}
.bar .fill::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.18) 0, rgba(255,255,255,0.18) 4px, transparent 4px, transparent 8px);
  animation: stripes 1.2s linear infinite;
}
@keyframes stripes { 0% { background-position: 0 0; } 100% { background-position: 16px 0; } }
.bar.complete .fill { background: linear-gradient(to right, #4ad07a, #7af09a, #fff); box-shadow: 0 0 12px rgba(122,240,154,0.7); }

.card.complete { border-color: var(--gold); background: linear-gradient(135deg, rgba(60,80,160,0.9), rgba(20,35,90,0.95)); }
.card.complete::after {
  content: "✦ COMPLETE";
  position: absolute; top: 8px; right: 8px;
  font-family: "VT323", monospace; font-size: 12px; letter-spacing: 2px;
  color: var(--navy-deep); background: var(--gold);
  padding: 2px 8px;
  box-shadow: 0 0 10px rgba(255,216,77,0.7);
}

/* ============ DETAIL ============ */
.detail {
  flex: 1; display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 36px; padding: 24px 50px 40px;
  overflow: hidden; min-height: 0;
}
.detail-cover {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 8px, transparent 8px, transparent 16px),
    linear-gradient(135deg, var(--navy-light), var(--navy-deep));
  border: 2px solid var(--chrome-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 12px 30px rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 0;
}
.detail-cover .cover-glyph {
  font-family: "Cinzel", serif; font-style: italic; font-weight: 900;
  font-size: 140px; color: var(--gold);
  text-shadow: 0 6px 0 rgba(0,0,0,0.6), 0 0 30px rgba(255,216,77,0.3);
}
.detail-cover::before { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(255,255,255,0.2); }
.detail-cover .cover-cat {
  position: absolute; top: 22px; left: 22px;
  font-family: "VT323", monospace; font-size: 14px; letter-spacing: 3px;
  color: var(--teal); text-shadow: 0 0 8px rgba(95,211,224,0.6);
}
.detail-cover .cover-id {
  position: absolute; bottom: 22px; right: 22px;
  font-family: "VT323", monospace; font-size: 13px; letter-spacing: 2px; color: var(--chrome-3);
}

.detail-info { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding: 0 10px 8px 0; }
.detail-info::-webkit-scrollbar { width: 8px; }
.detail-info::-webkit-scrollbar-thumb { background: var(--chrome-3); }

.detail-cat { font-family: "VT323", monospace; font-size: 14px; letter-spacing: 4px; color: var(--teal); text-transform: uppercase; }
.detail-title {
  font-family: "Cinzel", serif; font-style: italic;
  font-size: 42px; font-weight: 900; line-height: 0.95; letter-spacing: -1.5px;
  background: linear-gradient(to bottom, #fff, #ccc 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.6));
  margin: 0;
}
.detail-desc { font-family: "Tahoma", sans-serif; font-size: 14px; line-height: 1.55; color: var(--chrome-2); text-wrap: pretty; }
.detail-dates { font-family: "VT323", monospace; font-size: 13px; letter-spacing: 1.5px; color: var(--chrome-3); display: flex; gap: 8px; flex-wrap: wrap; }

.progress-block {
  background: linear-gradient(to bottom, rgba(15,25,70,0.7), rgba(5,10,40,0.9));
  border: 1px solid var(--chrome-3); padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; gap: 10px; flex-wrap: nowrap; white-space: nowrap;
}
.progress-head .label { font-family: "VT323", monospace; font-size: 14px; letter-spacing: 2px; color: var(--chrome-2); text-transform: uppercase; white-space: nowrap; }
.progress-head .pct { font-family: "VT323", monospace; font-size: 22px; color: var(--gold); text-shadow: 0 0 8px rgba(255,216,77,0.5); }
.progress-readout { font-family: "VT323", monospace; font-size: 18px; color: var(--chrome-2); margin-top: 10px; letter-spacing: 1px; }
.progress-readout .dim { color: var(--chrome-3); }
.progress-controls { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.check-list li {
  display: flex; align-items: center; gap: 10px;
  font-family: "VT323", monospace; font-size: 16px;
  color: var(--chrome-2); cursor: pointer;
  padding: 6px 8px; border: 1px solid transparent;
}
.check-list li:hover { border-color: var(--chrome-4); background: rgba(255,255,255,0.04); }
.check-list .box {
  width: 18px; height: 18px;
  border: 1px solid var(--chrome-2); background: #000;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--gold); flex-shrink: 0;
}
.check-list li.done { color: var(--gold); text-decoration: line-through; }
.check-list li.done .box { background: var(--gold); color: var(--navy-deep); border-color: #fff; }

/* ============ ADD/EDIT ============ */
.form-screen {
  flex: 1; padding: 22px 50px 30px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px; min-height: 0;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: "VT323", monospace; font-size: 14px; letter-spacing: 2px; color: var(--teal); text-transform: uppercase; }
.field input, .field textarea, .field select {
  font-family: "VT323", monospace; font-size: 18px; color: var(--gold);
  background: #000;
  border: 1px solid var(--chrome-2); border-top-color: var(--chrome-3); border-left-color: var(--chrome-3);
  padding: 8px 10px; outline: none; letter-spacing: 1px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6), 0 0 10px rgba(255,216,77,0.3);
}
.field textarea { min-height: 70px; resize: vertical; font-family: "Tahoma", sans-serif; font-size: 14px; color: var(--chrome-1); }
.field select option { background: #000; color: var(--gold); }

.cat-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cat-pick .cat-btn {
  font-family: "VT323", monospace; font-size: 13px; letter-spacing: 1.5px;
  color: var(--chrome-2);
  background: linear-gradient(to bottom, rgba(40,55,110,0.6), rgba(10,20,60,0.6));
  border: 1px solid var(--chrome-4);
  padding: 14px 6px; cursor: pointer; text-transform: uppercase;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.cat-pick .cat-btn .ico { font-family: "Cinzel", serif; font-size: 22px; color: var(--gold); font-weight: 900; }
.cat-pick .cat-btn.active {
  color: var(--navy-deep);
  background: linear-gradient(to bottom, #ffe680, var(--gold), var(--gold-deep));
  border-color: #fff; box-shadow: 0 0 14px rgba(255,216,77,0.5);
}
.cat-pick .cat-btn.active .ico { color: var(--navy-deep); }

.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 10px 14px 4px 0; flex-wrap: wrap; }

/* ============ STATS ============ */
.stats {
  flex: 1; display: grid;
  grid-template-columns: 1.1fr 1fr 1.4fr;
  grid-template-rows: 1fr; gap: 16px;
  padding: 20px 36px 30px; overflow: hidden; min-height: 0;
}
.stats .panel { min-height: 0; overflow: hidden; }
.panel {
  background: linear-gradient(to bottom, rgba(15,25,70,0.8), rgba(5,10,40,0.95));
  border: 1px solid var(--chrome-3); padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
}
.panel-title {
  font-family: "Cinzel", serif; font-style: italic;
  font-size: 20px; color: var(--gold); letter-spacing: 1px;
  margin: 0 0 12px;
  text-shadow: 0 0 10px rgba(255,216,77,0.4);
  border-bottom: 1px solid var(--chrome-4); padding-bottom: 8px;
}
.big-num { font-family: "VT323", monospace; font-size: 64px; line-height: 0.9; color: var(--gold); text-shadow: 0 0 20px rgba(255,216,77,0.5); }
.big-num .unit { font-size: 24px; color: var(--chrome-2); margin-left: 4px; }

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.kpi { background: rgba(0,0,0,0.4); border: 1px solid var(--chrome-4); padding: 8px 10px; }
.kpi .v { font-family: "VT323", monospace; font-size: 22px; color: var(--teal); white-space: nowrap; }
.kpi .l { font-family: "VT323", monospace; font-size: 11px; letter-spacing: 1.5px; color: var(--chrome-3); text-transform: uppercase; }

.data-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.cat-row {
  display: grid; grid-template-columns: 1fr auto;
  grid-template-rows: auto auto; column-gap: 10px; row-gap: 4px;
  align-items: center;
  font-family: "VT323", monospace;
  margin-bottom: 12px;
}
.cat-row .cn { font-size: 14px; letter-spacing: 1.5px; color: var(--chrome-2); text-transform: uppercase; white-space: nowrap; grid-column: 1; grid-row: 1; }
.cat-row .cv { font-size: 14px; color: var(--gold); text-align: right; white-space: nowrap; grid-column: 2; grid-row: 1; letter-spacing: 1px; }
.cat-row .bar { grid-column: 1 / -1; grid-row: 2; }

.trophy-list {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  overflow-y: auto; padding-right: 8px; flex: 1;
  align-content: start; min-height: 0;
}
.trophy {
  background: linear-gradient(135deg, rgba(60,75,140,0.6), rgba(15,25,70,0.6));
  border: 1px solid var(--chrome-3);
  padding: 10px;
  display: flex; gap: 10px; align-items: center;
}
.trophy.locked { opacity: 0.4; }
.trophy .icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: "Cinzel", serif; font-weight: 900; font-size: 18px;
  color: var(--navy-deep); flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
.trophy.locked .icon { background: linear-gradient(135deg, var(--chrome-3), var(--chrome-4)); color: #000; }
.trophy .tn { font-family: "VT323", monospace; font-size: 14px; color: var(--gold); letter-spacing: 1px; }
.trophy .td { font-family: "VT323", monospace; font-size: 11px; color: var(--chrome-3); letter-spacing: 1px; }
.trophy.locked .tn { color: var(--chrome-2); }

/* ============ ACHIEVEMENT TOAST ============ */
.achievement {
  position: fixed; top: 80px; right: -420px;
  width: min(380px, calc(100vw - 32px));
  background: linear-gradient(135deg, #2a3a8a, #0a1845);
  border: 2px solid var(--gold);
  padding: 14px 16px; z-index: 8000;
  display: flex; gap: 14px; align-items: center;
  box-shadow: 0 0 40px rgba(255,216,77,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: trophySlide 4s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
@keyframes trophySlide {
  0% { right: -420px; }
  10% { right: 16px; }
  85% { right: 16px; }
  100% { right: -420px; opacity: 0; }
}
.achievement .big-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: "Cinzel", serif; font-weight: 900; font-size: 28px;
  color: var(--navy-deep);
  box-shadow: 0 0 20px rgba(255,216,77,0.8), inset 0 2px 0 rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.achievement .at { font-family: "VT323", monospace; font-size: 12px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.achievement .an { font-family: "Cinzel", serif; font-style: italic; font-size: 17px; font-weight: 900; color: #fff; margin-top: 2px; }
.achievement .ad { font-family: "VT323", monospace; font-size: 13px; color: var(--chrome-2); margin-top: 2px; }

/* ============ BUTTONS ============ */
.btn {
  font-family: "VT323", monospace; font-size: 16px; letter-spacing: 2px;
  color: var(--chrome-1);
  background: linear-gradient(to bottom, #4a5a8a, #1a2a5a);
  border: 1px solid #000; border-top-color: #6a7aaa;
  padding: 8px 18px; cursor: pointer; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.4);
  transition: all 0.1s;
}
.btn:hover { color: var(--gold); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,0.6); }
.btn.primary {
  color: var(--navy-deep);
  background: linear-gradient(to bottom, #ffe680, var(--gold), var(--gold-deep));
  border-color: #fff;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  font-weight: 700;
}
.btn.primary:hover { color: #000; }
.btn.danger { background: linear-gradient(to bottom, #d04a64, #8a1a30); border-color: #ff8aa0; color: #fff; }

/* empty state */
.empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  font-family: "VT323", monospace; color: var(--chrome-3); letter-spacing: 2px;
}
.empty .em-big { font-family: "Cinzel", serif; font-style: italic; font-size: 44px; color: var(--chrome-2); }

/* ============ MOBILE / TABLET ============ */
@media (max-width: 900px) {
  .hub {
    grid-template-columns: 1fr;
    padding: 24px 20px 90px;
    align-content: start;
    gap: 24px;
    overflow-y: auto;
  }
  .hub-title { font-size: clamp(54px, 14vw, 88px); }
  .hub-stats { max-width: none; }
  .menu-item { font-size: 22px; padding: 14px 18px 14px 44px; }
  .menu-item .arrow { left: 14px; font-size: 18px; }

  .chrome-bar { padding: 10px 14px; }
  .chrome-logo { font-size: 18px; }
  .chrome-clock { display: none; }
  .chrome-btn { padding: 6px 10px; font-size: 13px; }

  .grid-screen { padding: 16px 16px 20px; }
  .section-title { font-size: 28px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding-right: 4px; }
  .card { min-height: 180px; padding: 10px; gap: 6px; }
  .card .card-thumb { height: 70px; font-size: 32px; }
  .card .card-title { font-size: 15px; }

  .detail {
    grid-template-columns: 1fr;
    grid-template-rows: 200px 1fr;
    gap: 16px; padding: 16px 16px 24px;
  }
  .detail-cover .cover-glyph { font-size: 90px; }
  .detail-title { font-size: 32px; }

  .form-screen { padding: 16px 16px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .cat-pick { grid-template-columns: repeat(3, 1fr); }
  .field input, .field textarea, .field select { font-size: 16px; }

  .stats {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px; padding: 14px 16px 20px;
    overflow-y: auto;
  }
  .stats .panel { min-height: auto; overflow: visible; }
  .big-num { font-size: 56px; }

  .hub-toggles { flex-wrap: wrap; gap: 6px; bottom: 12px; }
  .hub-toggle { padding: 6px 10px; gap: 6px; }
  .hub-toggle .hl { font-size: 11px; letter-spacing: 1px; }
  .hub-toggle .hv { font-size: 12px; padding: 1px 6px; }
}

@media (max-width: 540px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-meta { font-size: 14px; }
  .search-row { flex-direction: column; align-items: stretch; }
  .sort-box { justify-content: space-between; }
  .filter-bar { gap: 4px; }
  .chip { font-size: 12px; padding: 4px 9px; letter-spacing: 1px; }
  .chip-sep { display: none; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { min-height: 160px; padding: 8px; }
  .card .card-thumb { height: 60px; font-size: 28px; }
  .card .card-title { font-size: 13px; line-height: 1.1; }
  .card .card-cat { font-size: 10px; }
  .card .card-meta { font-size: 12px; }

  .detail { grid-template-rows: 160px 1fr; padding: 12px; gap: 12px; }
  .detail-cover .cover-glyph { font-size: 72px; }
  .detail-title { font-size: 26px; letter-spacing: -1px; }
  .detail-cover .cover-cat { top: 10px; left: 10px; font-size: 11px; }
  .detail-cover .cover-id { bottom: 10px; right: 10px; font-size: 10px; }

  .form-screen { padding: 12px 12px 20px; }
  .cat-pick { grid-template-columns: repeat(2, 1fr); }

  .panel { padding: 12px; }
  .panel-title { font-size: 17px; }
  .big-num { font-size: 48px; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .kpi { padding: 6px 8px; }
  .kpi .v { font-size: 18px; }
  .kpi .l { font-size: 10px; }

  .btn { font-size: 14px; padding: 7px 12px; letter-spacing: 1px; }

  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1 1 auto; min-width: fit-content; }

  .achievement { top: 60px; padding: 10px 12px; }
  .achievement .big-icon { width: 40px; height: 40px; font-size: 22px; }
  .achievement .an { font-size: 14px; }
  .achievement .ad { font-size: 11px; }

  .menu-item { font-size: 18px; padding: 12px 14px 12px 36px; gap: 10px; }
  .menu-item .ico { font-size: 16px; width: 18px; }
  .menu-item .arrow { left: 10px; font-size: 14px; }
  .menu-item .sub { font-size: 11px; letter-spacing: 1px; }

  .hub-stat .num { font-size: 24px; }
  .hub-stat .label { font-size: 10px; }
  .hub-toggles { padding: 0 8px; }
  .hub-toggle { flex: 1; min-width: 0; justify-content: space-between; }

  .scanlines { background-size: 100% 4px; }
  .dvd-bouncer .logo { font-size: 36px; }
}

/* very narrow */
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .chrome-logo .tm { display: none; }
  .hub-toggle .hl { display: none; }
}

/* ============ LOCK BADGE (HUB) ============ */
.lock-badge {
  position: absolute; top: 18px; right: 18px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(to bottom, rgba(40,55,110,0.85), rgba(10,20,60,0.9));
  border: 1px solid var(--chrome-3);
  font-family: "VT323", monospace;
  cursor: pointer; z-index: 30;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 6px rgba(0,0,0,0.4);
  transition: all 0.15s;
}
.lock-badge:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(255,216,77,0.4); }
.lock-badge .lk-ico { font-size: 16px; }
.lock-badge .lk-tx { font-size: 13px; letter-spacing: 2px; color: var(--chrome-2); }
.lock-badge.unlocked { border-color: var(--gold); }
.lock-badge.unlocked .lk-ico { color: var(--gold); text-shadow: 0 0 8px var(--gold); }
.lock-badge.unlocked .lk-tx { color: var(--gold); }

.chrome-mode {
  font-family: "VT323", monospace; font-size: 12px; letter-spacing: 1.5px;
  padding: 4px 8px; margin-left: 6px;
  border: 1px solid var(--chrome-4);
}
.chrome-mode.owner { color: var(--navy-deep); background: var(--gold); border-color: #fff; }
.chrome-mode.visitor { color: var(--chrome-3); background: #000; }

/* ============ MODAL VEIL ============ */
.modal-veil {
  position: fixed; inset: 0; z-index: 7000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s;
  padding: 20px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%; max-width: 500px; max-height: calc(100vh - 40px);
  background: linear-gradient(to bottom, #1a2860 0%, #0a1840 100%);
  border: 2px solid var(--chrome-2);
  box-shadow: 0 0 0 1px #000, 0 20px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.2);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal.donate { max-width: 540px; }
@keyframes modalIn { 0% { opacity: 0; transform: scale(0.94) translateY(10px); } 100% { opacity: 1; transform: none; } }
.modal.shake { animation: shake 0.5s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(to bottom, #2a3870, #0e1c4a);
  border-bottom: 2px solid #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.modal-title {
  font-family: "VT323", monospace; font-size: 16px; letter-spacing: 3px;
  color: var(--gold); text-shadow: 0 0 8px rgba(255,216,77,0.5);
}
.modal-x {
  background: none; border: 1px solid var(--chrome-3); color: var(--chrome-2);
  width: 26px; height: 26px; cursor: pointer;
  font-family: "VT323", monospace; font-size: 14px;
  transition: all 0.15s;
}
.modal-x:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.modal-x:disabled { opacity: 0.3; cursor: not-allowed; }

.modal-body {
  padding: 20px; overflow-y: auto; flex: 1;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 12px 18px; background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--chrome-4);
  flex-shrink: 0;
}

/* ============ FLOPPY DISC ART ============ */
.floppy-art { display: flex; justify-content: center; padding: 8px 0; }
.floppy-disc {
  width: 130px; height: 130px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border: 2px solid #444;
  border-top-color: #666;
  border-left-color: #555;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 12px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.floppy-disc::before {
  content: ""; position: absolute;
  top: 8px; right: 8px; width: 18px; height: 18px;
  background: #1a1a1a; border: 1px solid #000;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.8);
}
.floppy-disc .fl-shut {
  position: absolute; top: 6px; left: 22%; right: 22%; height: 36px;
  background: linear-gradient(to bottom, #c0c0c0, #888 50%, #555);
  border: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.floppy-disc .fl-shut::before {
  content: ""; position: absolute;
  inset: 6px 8px; background: #1a1a1a;
  border: 1px solid #000;
}
.floppy-disc .fl-label {
  position: absolute; left: 8px; right: 8px; bottom: 8px; height: 64px;
  background: #f4f0d8;
  padding: 6px 8px;
  font-family: "VT323", monospace; color: var(--navy-deep);
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,0.5);
}
.floppy-disc .fl-tt { font-size: 16px; font-weight: bold; letter-spacing: 1px; }
.floppy-disc .fl-st { font-size: 10px; letter-spacing: 1px; color: #555; }

.modal-prompt {
  font-family: "VT323", monospace; font-size: 16px;
  color: var(--chrome-2); letter-spacing: 1px; text-align: center;
}
.pin-row { display: flex; gap: 10px; justify-content: center; margin: 4px 0; }
.pin-cell {
  width: 50px; height: 60px;
  background: #000; border: 2px solid var(--chrome-3);
  display: flex; align-items: center; justify-content: center;
  font-family: "VT323", monospace; font-size: 36px;
  color: var(--gold);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
  transition: all 0.15s;
}
.pin-cell.filled { border-color: var(--gold); box-shadow: inset 0 2px 6px rgba(0,0,0,0.8), 0 0 12px rgba(255,216,77,0.3); }
.pin-input {
  position: absolute; left: -9999px; opacity: 0;
}
.pin-err {
  font-family: "VT323", monospace; font-size: 14px;
  color: var(--red); letter-spacing: 2px; text-align: center;
  background: rgba(255,77,109,0.1); border: 1px solid var(--red);
  padding: 6px 10px;
}
.pin-hint {
  font-family: "VT323", monospace; font-size: 12px;
  color: var(--chrome-3); letter-spacing: 1px; text-align: center;
}
.pin-hint b { color: var(--gold); }

/* ============ DONATE MODAL ============ */
.donate-body { gap: 14px; }
.don-summary {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--chrome-4);
}
.don-summary .ds-glyph {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-deep));
  border: 1px solid var(--chrome-3);
  display: flex; align-items: center; justify-content: center;
  font-family: "Cinzel", serif; font-size: 28px; color: var(--gold);
  flex-shrink: 0;
}
.don-summary .ds-cat { font-family: "VT323", monospace; font-size: 12px; letter-spacing: 2px; color: var(--teal); }
.don-summary .ds-progress { font-family: "VT323", monospace; font-size: 14px; color: var(--chrome-2); margin-top: 2px; }

.amount-row { display: flex; gap: 6px; flex-wrap: wrap; }
.amount-btn {
  font-family: "VT323", monospace; font-size: 16px; letter-spacing: 1px;
  color: var(--chrome-2);
  background: linear-gradient(to bottom, rgba(40,55,110,0.7), rgba(10,20,60,0.7));
  border: 1px solid var(--chrome-4);
  padding: 8px 14px; cursor: pointer;
  transition: all 0.15s;
}
.amount-btn:hover { color: var(--gold); border-color: var(--gold-deep); }
.amount-btn.active {
  color: var(--navy-deep);
  background: linear-gradient(to bottom, #ffe680, var(--gold), var(--gold-deep));
  border-color: #fff;
  box-shadow: 0 0 12px rgba(255,216,77,0.5);
}
.amount-custom {
  flex: 1; min-width: 100px;
  font-family: "VT323", monospace; font-size: 16px;
  background: #000; color: var(--gold);
  border: 1px solid var(--chrome-2); border-top-color: var(--chrome-3); border-left-color: var(--chrome-3);
  padding: 7px 10px; outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}

.char-count { font-family: "VT323", monospace; font-size: 11px; color: var(--chrome-3); text-align: right; letter-spacing: 1px; }
.pay-foot {
  font-family: "VT323", monospace; font-size: 12px;
  color: var(--chrome-3); letter-spacing: 1.5px; text-align: center;
  padding: 8px;
  border: 1px dashed var(--chrome-4);
}

.processing {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 20px;
}
.proc-detail { font-family: "VT323", monospace; font-size: 13px; color: var(--chrome-3); letter-spacing: 1px; }

.success-card {
  background: linear-gradient(135deg, #fffce0, #f4f0d0);
  color: var(--navy-deep);
  padding: 24px;
  border: 2px dashed #2a3870;
  position: relative;
  font-family: "VT323", monospace;
}
.success-card::before {
  content: ""; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
  border: 1px solid rgba(0,0,0,0.2);
  pointer-events: none;
}
.success-card .sc-stamp {
  position: absolute; top: 14px; right: 14px;
  font-family: "VT323", monospace;
  color: #2a8a4a; font-size: 18px; letter-spacing: 3px; font-weight: bold;
  border: 2px solid #2a8a4a; padding: 4px 10px;
  transform: rotate(-6deg);
  background: rgba(255,255,255,0.4);
}
.success-card .sc-amt { font-size: 48px; line-height: 1; color: #2a3870; font-weight: bold; margin-bottom: 14px; letter-spacing: -1px; }
.success-card .sc-row {
  display: flex; gap: 10px; padding: 4px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.2);
  font-size: 15px;
}
.success-card .sc-row span { color: #555; letter-spacing: 2px; min-width: 70px; }
.success-card .sc-row b { flex: 1; }
.success-card .sc-row .mono { font-family: "Courier New", monospace; font-size: 13px; }
.success-card .sc-msg {
  margin-top: 12px; padding: 10px;
  background: rgba(255,255,255,0.5); border-left: 3px solid #2a3870;
  font-size: 14px; color: #2a3870; font-style: italic;
}
.success-card .sc-foot { margin-top: 12px; font-size: 13px; color: #555; letter-spacing: 1px; text-align: center; }

/* ============ DONATE CTA + DONOR LEDGER ============ */
.donate-cta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; flex-wrap: wrap;
}
.btn.donate {
  background: linear-gradient(to bottom, #ff8aa8, var(--red) 50%, var(--red-deep));
  border-color: #ffc4d4;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.4), 0 0 14px rgba(255,77,109,0.3);
}
.btn.donate:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 0 22px rgba(255,77,109,0.6); }
.donate-note { font-family: "VT323", monospace; font-size: 12px; color: var(--chrome-3); letter-spacing: 1px; }

.donor-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 220px; overflow-y: auto;
}
.donor-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px; align-items: center;
  background: rgba(0,0,0,0.3);
  border-left: 2px solid var(--gold);
  padding: 8px 10px;
}
.donor-row .dn-amt {
  font-family: "VT323", monospace; font-size: 20px; color: var(--gold);
  letter-spacing: 1px; text-shadow: 0 0 6px rgba(255,216,77,0.4);
}
.donor-row .dn-mid { min-width: 0; }
.donor-row .dn-name { font-family: "Cinzel", serif; font-size: 14px; color: var(--chrome-1); font-weight: 700; }
.donor-row .dn-msg { font-family: "Tahoma", sans-serif; font-size: 12px; color: var(--chrome-2); font-style: italic; line-height: 1.3; margin-top: 2px; text-wrap: pretty; }
.donor-row .dn-meta { font-family: "VT323", monospace; font-size: 11px; color: var(--chrome-3); text-align: right; letter-spacing: 1px; }
.donor-row .dn-txn { font-size: 9px; opacity: 0.7; margin-top: 2px; }

.bk-tag { color: var(--red); }

.hub-backed {
  margin-top: 18px;
  font-family: "VT323", monospace; font-size: 14px; letter-spacing: 2px;
  color: var(--red);
  padding: 6px 10px;
  background: rgba(255,77,109,0.1);
  border-left: 2px solid var(--red);
  display: inline-block;
}

.check-list li.readonly { cursor: default; opacity: 0.85; }
.check-list li.readonly:hover { border-color: transparent; background: transparent; }

/* mobile tweaks */
@media (max-width: 540px) {
  .lock-badge { top: 12px; right: 12px; padding: 6px 10px; }
  .lock-badge .lk-tx { font-size: 11px; }
  .modal { max-width: 100%; max-height: calc(100vh - 24px); }
  .modal-body { padding: 14px; }
  .modal-actions { padding: 10px 14px; }
  .modal-actions .btn { flex: 1; }
  .pin-cell { width: 42px; height: 50px; font-size: 28px; }
  .floppy-disc { width: 100px; height: 100px; }
  .floppy-disc .fl-label { height: 50px; }
  .success-card { padding: 16px; }
  .success-card .sc-amt { font-size: 36px; }
  .donor-row { grid-template-columns: 60px 1fr; gap: 8px; }
  .donor-row .dn-meta { grid-column: 1 / -1; text-align: left; }
  .chrome-mode { display: none; }
  .donate-cta { flex-direction: column; align-items: stretch; gap: 6px; }
  .btn.donate { width: 100%; }
}

/* ── Stripe Elements — styled to match .field input exactly ── */
.stripe-el {
  background: #000;
  border: 1px solid var(--chrome-2);
  border-top-color: var(--chrome-3);
  border-left-color: var(--chrome-3);
  padding: 10px 10px 9px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
  width: 100%;
  box-sizing: border-box;
  /* Stripe injects an iframe; give it room */
  min-height: 40px;
}
.stripe-el.StripeElement--focus {
  border-color: var(--gold);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6), 0 0 10px rgba(255,216,77,0.3);
}
.stripe-el.StripeElement--invalid {
  border-color: var(--red);
}

/* ── Post-donation animations ── */
@keyframes fillPulse {
  0%   { box-shadow: 0 0 0px rgba(255,216,77,0); }
  40%  { box-shadow: 0 0 18px rgba(255,216,77,0.85), 0 0 40px rgba(255,216,77,0.4); }
  100% { box-shadow: 0 0 0px rgba(255,216,77,0); }
}
.bar .fill.fill-pulse {
  animation: fillPulse 0.85s ease-out forwards;
}

@keyframes flashDelta {
  0%   { opacity: 0; transform: translateY(4px); }
  15%  { opacity: 1; transform: translateY(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px); }
}
.flash-delta {
  display: inline-block;
  margin-left: 10px;
  color: #7af09a;
  font-family: "VT323", monospace;
  font-size: 1em;
  letter-spacing: 1px;
  animation: flashDelta 2.4s ease-out forwards;
  pointer-events: none;
}

/* ── Sign-in number pad ── */
.pin-numpad {
  display: flex; flex-direction: column; gap: 6px;
  margin: 14px auto 0; width: fit-content;
}
.np-row { display: flex; gap: 6px; }
.np-btn {
  font-family: "VT323", monospace; font-size: 22px;
  width: 58px; height: 52px;
  background: #000;
  border: 1px solid var(--chrome-2); border-top-color: var(--chrome-3); border-left-color: var(--chrome-3);
  color: var(--gold);
  cursor: pointer; letter-spacing: 1px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
  transition: all 0.08s;
  display: flex; align-items: center; justify-content: center;
}
.np-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: #fff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6), 0 0 8px rgba(255,216,77,0.35);
}
.np-btn:active:not(:disabled) {
  background: var(--navy);
  transform: scale(0.94);
}
.np-btn:disabled { opacity: 0.35; cursor: default; }
.np-btn.np-submit {
  background: var(--navy); color: var(--gold);
  border-color: var(--gold);
}
.np-btn.np-submit:not(:disabled):hover {
  background: var(--gold); color: var(--navy-deep);
}
.np-btn.np-del { color: var(--chrome-1); font-size: 18px; }
.pin-numpad-disabled { opacity: 0.4; pointer-events: none; }
.pin-cell.locked { border-color: var(--red) !important; box-shadow: none !important; }
.pin-err-lock {
  background: rgba(255,77,109,0.2) !important;
  animation: none;
}

/* ── Vintage cover photo (detail view) ── */
.cover-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Vintage film look: sepia + faded contrast + grain-like brightness */
  filter:
    sepia(50%)
    contrast(1.08)
    brightness(0.88)
    saturate(0.72)
    hue-rotate(-4deg);
  display: block;
}
/* Vignette overlay on top of the photo */
.detail-cover:has(.cover-photo)::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%,
    transparent 45%,
    rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Keep cover-cat / cover-id text above the vignette */
.detail-cover .cover-cat,
.detail-cover .cover-id { z-index: 2; }
/* Dashed border looks nice over photos too — keep it */
.detail-cover:has(.cover-photo)::before { border-color: rgba(255,255,255,0.15); z-index: 2; }

/* ── Photo upload — AddScreen ── */
.photo-upload-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  font-family: "VT323", monospace; letter-spacing: 2px; text-transform: uppercase;
  color: var(--chrome-1);
  background: linear-gradient(to bottom, #4a5a8a, #1a2a5a);
  border: 1px dashed var(--chrome-2);
  /* min 60px ensures comfortable tap target on mobile */
  min-height: 60px; padding: 14px 24px;
  cursor: pointer; width: 100%; box-sizing: border-box;
  transition: all 0.12s;
  /* Prevent tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
}
.photo-upload-btn:hover  { border-color: var(--gold); color: var(--gold); }
.photo-upload-btn:active { background: linear-gradient(to bottom, #3a4a7a, #0e1c4a); }
.pub-icon { font-size: 28px; line-height: 1; }
.pub-hint {
  font-size: 11px; letter-spacing: 1px; color: var(--chrome-3);
  text-transform: none;
}

.photo-processing {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; width: 100%;
  border: 1px dashed var(--chrome-3);
  font-family: "VT323", monospace; font-size: 14px;
  letter-spacing: 2px; color: var(--chrome-2);
}

/* Preview container — height follows the image's natural aspect ratio,
   capped so very tall portraits don't dominate the form */
.cover-upload-preview {
  position: relative; width: 100%;
  overflow: hidden;
  border: 1px solid var(--chrome-2);
  touch-action: manipulation;
  background: #000;   /* fills any letterbox gap for ultra-wide images */
  line-height: 0;     /* collapse inline gap under <img> */
}
.cup-img {
  width: 100%;
  height: auto;          /* scale to natural aspect ratio, no cropping */
  max-height: 340px;     /* cap tall portraits so the form stays usable */
  display: block;
  filter: sepia(50%) contrast(1.08) brightness(0.88) saturate(0.72) hue-rotate(-4deg);
}
.cup-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.65) 100%);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 10px 12px; gap: 8px;
}
.cup-badge {
  font-family: "VT323", monospace; font-size: 11px; letter-spacing: 2px;
  color: var(--teal); text-shadow: 0 0 6px rgba(95,211,224,0.8);
  /* Hide on very narrow screens to give room for buttons */
  flex: 1; min-width: 0; overflow: hidden; white-space: nowrap;
}
.cup-actions { display: flex; gap: 6px; flex-shrink: 0; }
/* Ensure both overlay buttons meet 44px tap-target height */
.cup-change,
.cup-remove {
  font-size: 13px !important;
  padding: 0 14px !important;
  letter-spacing: 1px !important;
  min-height: 44px !important;
  display: inline-flex !important; align-items: center !important;
  cursor: pointer;
}
.cup-change { font-family: "VT323", monospace !important; }

/* ── Photo upload — mobile overrides ── */
@media (max-width: 540px) {
  /* Tighter height cap on small screens so the form stays scrollable */
  .cup-img { max-height: 260px; }

  /* Hide the badge text on narrow screens; buttons get full bottom bar */
  .cup-badge { display: none; }
  .cup-overlay { justify-content: flex-end; }

  /* Full-width stack for the two overlay action buttons */
  .cup-actions { width: 100%; justify-content: flex-end; }

  /* Upload button — slightly larger text + more vertical space */
  .photo-upload-btn { min-height: 70px; font-size: 18px; }
  .pub-icon { font-size: 32px; }
}

/* ── Detail source link ── */
.detail-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.detail-source-label {
  font-family: "VT323", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--chrome-3);
}
.detail-source-link {
  font-family: "VT323", monospace;
  font-size: 14px;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: .5px;
  opacity: .85;
}
.detail-source-link:hover { opacity: 1; text-decoration: underline; }

/* ============ IMPORT FROM WEB ============ */

/* ── Screen wrapper ── */
.import-screen {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Step indicator ── */
.import-steps {
  display: flex;
  gap: 0;
  align-items: center;
  margin-bottom: 4px;
}
.import-step {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  opacity: .35;
}
.import-step.active { opacity: 1; }
.import-step.done   { opacity: .65; }
.is-dot {
  width: 22px; height: 22px;
  border: 1.5px solid var(--chrome-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "VT323", monospace;
  font-size: 13px;
  color: var(--chrome-1);
  flex-shrink: 0;
}
.import-step.active .is-dot { border-color: var(--gold); color: var(--gold); }
.import-step.done   .is-dot { border-color: var(--teal); color: var(--teal); background: rgba(95,211,224,.08); }
.is-label {
  font-family: "VT323", monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--chrome-2);
}
.import-step.active .is-label { color: var(--gold); }
/* Connecting line between steps */
.import-step:not(:last-child)::after {
  content: "";
  display: block;
  flex: 1;
  height: 1px;
  background: var(--chrome-4);
  margin: 0 8px;
}

/* ── Section head (shared) ── */
.import-section-head { margin-bottom: 4px; }
.import-section-title {
  font-family: "VT323", monospace;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--chrome-1);
}
.import-section-meta {
  font-family: "VT323", monospace;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--chrome-3);
  margin-top: 2px;
}

/* ── Retailer tabs ── */
.ret-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ret-tab {
  padding: 6px 12px;
  border: 1px solid var(--chrome-4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s, background .15s;
  border-radius: 2px;
}
.ret-tab:hover { border-color: var(--chrome-2); }
.ret-tab.active {
  border-color: var(--ret-color, var(--gold));
  background: color-mix(in srgb, var(--ret-color, var(--gold)) 8%, transparent);
}
.ret-mono {
  font-family: "VT323", monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--ret-color, var(--gold));
  letter-spacing: 1px;
}
.ret-name {
  font-family: "VT323", monospace;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--chrome-2);
}
.ret-tab.active .ret-name { color: var(--ret-color, var(--gold)); }

/* ── Retailer info bar ── */
.ret-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--chrome-4);
  border-left-width: 3px;
  background: rgba(255,255,255,.02);
  border-radius: 2px;
}
.ret-glyph {
  font-family: "VT323", monospace;
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.ret-info-name {
  font-family: "VT323", monospace;
  font-size: 16px;
  letter-spacing: 2px;
}
.ret-info-desc {
  font-family: "VT323", monospace;
  font-size: 12px;
  color: var(--chrome-3);
  letter-spacing: 1px;
  margin-top: 2px;
}
.ret-example-btn {
  margin-left: auto;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--chrome-4);
  color: var(--chrome-2);
  font-family: "VT323", monospace;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.ret-example-btn:hover { border-color: var(--chrome-2); color: var(--chrome-1); }

/* ── URL textarea ── */
.ret-field { display: flex; flex-direction: column; gap: 5px; }
.ret-label {
  font-family: "VT323", monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--chrome-3);
}
.ret-textarea {
  width: 100%;
  min-height: 110px;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--chrome-4);
  color: var(--chrome-1);
  font-family: "VT323", monospace;
  font-size: 15px;
  padding: 10px 12px;
  resize: vertical;
  letter-spacing: .5px;
  line-height: 1.5;
  border-radius: 2px;
  transition: border-color .15s;
}
.ret-textarea:focus { outline: none; border-color: var(--chrome-2); }
.ret-textarea::placeholder { color: var(--chrome-4); }
.ret-url-count {
  font-family: "VT323", monospace;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 1px;
}

/* ── Import actions row ── */
.import-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.import-scan-btn {
  font-size: 16px;
  letter-spacing: 2px;
  padding: 10px 24px;
}
.import-scan-btn.disabled { opacity: .4; cursor: default; }
.import-empty {
  font-family: "VT323", monospace;
  color: var(--chrome-3);
  font-size: 16px;
  letter-spacing: 1px;
  padding: 20px 0;
  text-align: center;
}

/* ── Scanning stage ── */
.scan-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0 10px;
}
.scan-disc-wrap {
  position: relative;
  width: 130px; height: 130px;
}
.scan-disc {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(255,216,77,.25);
}
.scan-disc-inner {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--chrome-4);
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
}
.scan-disc-label { text-align: center; }
.sdl-top {
  font-family: "VT323", monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--chrome-3);
}
.sdl-num {
  font-family: "VT323", monospace;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 1px;
}
.scan-hex {
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--teal);
  opacity: .7;
}
.scan-host {
  font-family: "VT323", monospace;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--chrome-2);
}
.scan-bar-wrap {
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scan-bar {
  flex: 1;
  height: 6px;
  background: var(--chrome-4);
  border-radius: 3px;
  overflow: hidden;
}
.scan-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width .4s ease;
}
.scan-pct {
  font-family: "VT323", monospace;
  font-size: 14px;
  color: var(--gold);
  min-width: 36px;
  text-align: right;
}
.scan-log {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 140px;
  overflow-y: auto;
}
.scan-log-line {
  font-family: "VT323", monospace;
  font-size: 13px;
  letter-spacing: .5px;
  padding: 2px 4px;
}
.scan-log-line.ok   { color: var(--teal); }
.scan-log-line.fail { color: var(--red); }

/* ── Review cards ── */
.import-review {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rv-card {
  border: 1px solid var(--ret-color, var(--chrome-4));
  background: rgba(255,255,255,.02);
  padding: 14px 16px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rv-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rv-badge {
  font-family: "VT323", monospace;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 2px 7px;
  border-radius: 2px;
}
.rv-fuzzy-badge {
  font-family: "VT323", monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: #f59e0b;
  border: 1px solid #f59e0b;
  padding: 1px 6px;
  border-radius: 2px;
  opacity: .8;
}
.rv-photo-badge {
  font-family: "VT323", monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--teal);
  border: 1px solid var(--teal);
  padding: 1px 6px;
  border-radius: 2px;
  opacity: .85;
}

/* ── Review photo preview ── */
.rv-photo-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  line-height: 0;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rv-photo {
  display: block;
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.rv-photo.real {
  filter: sepia(30%) contrast(1.06) brightness(0.9) saturate(0.8) hue-rotate(-3deg);
}
.rv-photo.placeholder {
  opacity: .7;
  max-height: 140px;
}
.rv-remove {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--chrome-4);
  color: var(--chrome-3);
  font-family: "VT323", monospace;
  font-size: 14px;
  padding: 2px 8px;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color .15s, color .15s;
}
.rv-remove:hover { border-color: var(--red); color: var(--red); }
.rv-form { margin-top: 2px; }
.rv-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.rv-source-label {
  font-family: "VT323", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--chrome-3);
}
.rv-source-link {
  font-family: "VT323", monospace;
  font-size: 13px;
  letter-spacing: .5px;
  text-decoration: none;
  opacity: .85;
}
.rv-source-link:hover { opacity: 1; text-decoration: underline; }

/* ── Review error card ── */
.rv-error-card {
  border: 1px solid var(--red);
  background: rgba(255,77,109,.04);
  padding: 12px 14px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rv-error-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rv-error-icon {
  color: var(--red);
  font-family: "VT323", monospace;
  font-size: 18px;
}
.rv-error-url {
  font-family: "VT323", monospace;
  font-size: 14px;
  color: var(--chrome-2);
  letter-spacing: 1px;
}
.rv-error-msg {
  font-family: "VT323", monospace;
  font-size: 13px;
  color: var(--red);
  letter-spacing: .5px;
}
.rv-error-url-full {
  font-family: "VT323", monospace;
  font-size: 11px;
  color: var(--chrome-4);
  letter-spacing: .5px;
  word-break: break-all;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .import-screen { padding: 14px 14px 32px; gap: 14px; }
  .ret-tabs { gap: 5px; }
  .ret-tab  { padding: 5px 9px; }
  .ret-mono { font-size: 14px; }
  .ret-name { display: none; }
  .ret-tab.active .ret-name { display: inline; font-size: 13px; }
  .import-steps { gap: 0; }
  .is-label { display: none; }
  .import-step.active .is-label { display: block; font-size: 11px; }
}
