/* ============================================================
   Robin Fennis · Motorsport Photography
   MotoGP-stijl · rood / wit / zwart · italic display · sharp edges
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;0,900;1,700;1,800;1,900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:        #0a0a0a;
  --bg-1:      #111111;
  --bg-2:      #161616;
  --bg-3:      #1c1c1c;
  --bg-elev:   #232323;
  --line:      #262626;
  --line-soft: #1a1a1a;

  --text:        #ffffff;
  --text-dim:    #d2d2d2;
  --muted:       #8a8a8a;
  --muted-soft:  #5a5a5a;

  --red:        #e10600;
  --red-bright: #ff1a1a;
  --red-deep:   #a00000;
  --red-dark:   #5a0000;

  --white:      #ffffff;
  --white-soft: #f0f0f0;

  /* nauwelijks gebruikte secundaire accenten — alleen voor status-context */
  --green:      #20c060;
  --orange:     #ff8a3c;
  --blue:       #2a78ff;
  --gold:       #d4b500;

  --shadow-1:   0 1px 0 rgba(255,255,255,0.04) inset, 0 2px 6px rgba(0,0,0,0.45);
  --shadow-2:   0 14px 36px rgba(0,0,0,0.6);
  --glow-red:   0 0 28px rgba(225,6,0,0.35);

  --radius-sm:  3px;
  --radius:     6px;
  --radius-lg:  10px;

  --font-display: 'Barlow Condensed', 'Oswald', 'Impact', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Subtiele diagonale bg-textuur — net waarneembare scanlijnen */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent 0 60px,
      rgba(255,255,255,0.012) 60px 61px),
    radial-gradient(900px 500px at 90% -10%, rgba(225,6,0,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: var(--white); text-decoration: none; transition: color .12s ease; }
a:hover { color: var(--red); }

code, .mono {
  background: rgba(225,6,0,0.10);
  color: var(--white);
  padding: 2px 7px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  border-left: 2px solid var(--red);
}

::selection { background: var(--red); color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 32px;
  background: linear-gradient(180deg, #0e0e0e, #050505);
  border-bottom: 1px solid #1a1a1a;
}
.topbar::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red);
  box-shadow: 0 0 14px rgba(225,6,0,0.6);
}

.topbar .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 700;
}
.topbar .logo:hover { color: var(--text); }
.topbar .logo .rf {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  padding-right: 4px;
}
.topbar .logo .t {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1.05;
}
.topbar .logo .t small {
  display: block;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 2px;
  align-items: center;
}
.topbar nav a {
  position: relative;
  color: var(--text-dim);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.topbar nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}
.topbar nav a.active {
  color: var(--white);
  background: var(--red);
}

/* ---------- Container ---------- */
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 40px 32px 100px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-style: italic;
}
h1 { font-size: 42px; letter-spacing: 1px; line-height: 1; font-weight: 900; }
h2 { font-size: 24px; letter-spacing: 1px; margin-bottom: 14px; font-weight: 800; }
h3 { font-size: 16px; letter-spacing: 1px; color: var(--text-dim); font-weight: 700; }

.muted { color: var(--muted); }
.crumb {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-style: italic;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  padding-right: 16px;
}
.pill.muted { background: #2a2a2a; color: var(--text-dim); }
.pill.green { background: var(--green); color: #003317; }

/* ---------- Hero (MotoGP-stijl: zwart met diagonale rode slag) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #060606;
  border: 1px solid #1a1a1a;
  padding: 70px 48px 60px;
  margin-bottom: 40px;
}
/* Diagonale rode balk rechts */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -40px; bottom: 0;
  width: 320px;
  background: var(--red);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.95;
  pointer-events: none;
}
/* Zwarte slash erover voor diepte */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: -10px; bottom: 0;
  width: 280px;
  background: linear-gradient(180deg, #050505 0%, #1a0000 100%);
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.7;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 2; }

.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red-bright);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero .tag::before {
  content: '';
  width: 32px; height: 3px; background: var(--red);
}
.hero h1 {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 0.93;
  margin-bottom: 18px;
  font-style: italic;
  text-transform: uppercase;
  max-width: 740px;
}
.hero h1 em {
  font-style: italic;
  color: var(--red);
  display: inline-block;
}
.hero p.lead {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.55;
  max-width: 580px;
  margin: 0;
}

.search-row {
  display: flex;
  gap: 0;
  margin-top: 32px;
  max-width: 760px;
}
.search-row input {
  flex: 1;
  background: #000;
  border: 2px solid #2a2a2a;
  color: var(--white);
  padding: 18px 22px;
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  transition: border-color .12s ease, background .12s ease;
  border-right: none;
}
.search-row input::placeholder { color: var(--muted); }
.search-row input:focus {
  outline: none;
  border-color: var(--red);
  background: #050505;
}
.search-row .btn {
  border-radius: 0;
  border-left: none;
  padding: 18px 28px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid #333;
  padding: 7px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .12s ease;
  user-select: none;
}
.chip:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  transition: background .12s ease, transform .08s ease, color .12s ease;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.btn:hover { background: var(--red-bright); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn.ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid #fff;
}
.btn.ghost:hover {
  background: #fff;
  color: #000;
}
.btn.red {
  background: var(--red);
  color: #fff;
}
.btn.red:hover { background: var(--red-bright); color: #fff; }
.btn.big { padding: 18px 28px; font-size: 15px; }

/* ---------- Folder cards ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

/* ---------- Event grid (homepage) ---------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.event-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid #1c1c1c;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
  text-decoration: none !important;
  color: var(--text);
  display: block;
  animation: fadeUp .26s ease both;
}
.event-card::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.event-card:hover { transform: translateY(-3px); border-color: var(--red); color: var(--text); }
.event-card:hover::after { transform: scaleX(1); }

.event-card .event-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.event-card .event-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.event-card:hover .event-cover img { transform: scale(1.05); }
.event-card .event-cover::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 70%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.95));
  pointer-events: none;
}
.event-card .event-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--muted-soft); font-family: var(--font-display);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}

.event-card .event-meta {
  position: relative;
  padding: 18px 20px 22px;
}
.event-card .event-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 6px;
}
.event-card .event-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
}
.event-card .event-loc {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.event-card .event-stats {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #1a1a1a;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.event-card .event-stats strong {
  color: var(--white);
  font-weight: 800;
  font-style: italic;
  font-size: 18px;
  margin-right: 4px;
}

/* Hero op event-pagina: iets compacter dan home */
.hero-event { padding: 50px 48px 44px; }
.hero-event h1 { font-size: 52px; }
.hero-event .lead { max-width: 640px; }

.folder-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid #1c1c1c;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
  text-decoration: none !important;
  color: var(--text);
  display: block;
}
.folder-card::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.folder-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  color: var(--text);
}
.folder-card:hover::after { transform: scaleX(1); }
.folder-card .cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}
.folder-card .cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.folder-card:hover .cover img { transform: scale(1.06); }
.folder-card .cover::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.94));
  pointer-events: none;
}

.folder-card .meta {
  position: relative;
  padding: 14px 18px 18px;
}
.folder-card .meta .name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 22px;
  text-transform: uppercase;
  font-style: italic;
  color: var(--text);
}
.folder-card .meta .sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Race-style number plate */
.folder-card .badge-num {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: #fff;
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  font-style: italic;
  padding: 4px 14px 2px;
  border: 2.5px solid #000;
  box-shadow: 0 3px 0 rgba(0,0,0,0.55), 0 8px 16px rgba(0,0,0,0.5);
  line-height: 1;
  letter-spacing: 0;
}
.folder-card .badge-unknown {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 2.5px;
  padding: 5px 11px;
  font-size: 11px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(225,6,0,0.5);
}
.folder-card .badge-count {
  position: absolute;
  bottom: 88px; right: 14px;
  z-index: 2;
  background: rgba(0,0,0,0.85);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-left: 2px solid var(--red);
}

/* ---------- Gallery ---------- */
.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 18px;
  flex-wrap: wrap;
}
.gallery-header .crumb { margin-bottom: 8px; }
.gallery-header .title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  font-size: 42px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1;
}
.gallery-header .sub {
  color: var(--muted);
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
}
.gallery-header .rider-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  background: #fff;
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  padding: 4px 18px 2px;
  border: 3px solid #000;
  box-shadow: 0 4px 0 rgba(0,0,0,0.55), 0 8px 20px rgba(0,0,0,0.5);
}

/* Notice block */
.notice {
  background: rgba(225,6,0,0.06);
  border: 1px solid rgba(225,6,0,0.4);
  border-left: 4px solid var(--red);
  color: #fff;
  padding: 14px 18px;
  font-size: 13px;
  max-width: 400px;
  line-height: 1.55;
}
.notice strong { color: var(--red-bright); font-family: var(--font-display); font-weight: 800; letter-spacing: 0.5px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}

.photo-card {
  position: relative;
  background: #000;
  border: 2px solid #1c1c1c;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.photo-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.photo-card.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,6,0,0.35), 0 12px 30px rgba(0,0,0,0.55);
}
.photo-card.selected::after {
  content: '';
  position: absolute; inset: 0;
  border: 3px solid var(--red);
  pointer-events: none;
}
.photo-card .img-wrap {
  aspect-ratio: 16 / 10;
  background: #000;
  display: block;
  overflow: hidden;
  position: relative;
}
.photo-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-user-drag: none; user-select: none;
  transition: transform .4s ease;
}
.photo-card:hover img { transform: scale(1.04); }

.photo-card .check {
  position: absolute;
  top: 12px; left: 12px;
  width: 30px; height: 30px;
  background: rgba(0,0,0,0.85);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-weight: 800;
  font-size: 16px;
  transition: all .12s ease;
}
.photo-card.selected .check {
  background: var(--red);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(225,6,0,0.3);
}
.photo-card .photo-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.92));
  color: #fff;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
}
.photo-card .photo-meta .id { color: var(--red-bright); font-weight: 600; }

/* ---------- Upsell banner ---------- */
.upsell-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  border-left: 5px solid #fff;
  padding: 18px 24px;
  margin: 20px 0 14px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  color: #fff;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.upsell-banner:hover { transform: translateX(3px); box-shadow: var(--shadow-2); }
.upsell-banner::before {
  content: '';
  position: absolute;
  top: 0; right: -20px; bottom: 0;
  width: 120px;
  background: rgba(255,255,255,0.06);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
}
.upsell-banner .lbl {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  background: #fff;
  color: var(--red);
  padding: 4px 10px;
  line-height: 1;
}
.upsell-banner .msg {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.15;
}
.upsell-banner .msg strong { font-weight: 900; font-style: italic; font-size: 22px; }
.upsell-banner .msg .save {
  display: inline-block;
  margin-left: 6px;
  background: #000;
  color: var(--white);
  font-size: 12px;
  padding: 2px 7px;
}
.upsell-banner .act {
  background: #000;
  color: #fff;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.upsell-banner .act::after { content: ' →'; }

/* Sticky select bar */
.select-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin: 26px -32px -100px;
  padding: 18px 32px;
  background: linear-gradient(180deg, rgba(11,11,11,0.92), rgba(5,5,5,0.98));
  border-top: 2px solid var(--red);
  display: flex;
  align-items: center;
  gap: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: wrap;
}
.select-bar .summary { display: flex; gap: 22px; align-items: center; }
.select-bar .summary .count {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--white);
}
.select-bar .summary .price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 30px;
  color: var(--red-bright);
  letter-spacing: 1px;
  line-height: 1;
}
.select-bar .summary .basis {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.select-bar label.pro {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2a;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: border-color .12s ease, color .12s ease;
}
.select-bar label.pro:hover { border-color: var(--red); color: var(--white); }
.select-bar label.pro input { accent-color: var(--red); width: 16px; height: 16px; }
.select-bar .spacer { flex: 1; }

/* ---------- Cart / Checkout ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}
@media (max-width: 880px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.cart-photos .ph {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  border: 1px solid #1c1c1c;
  overflow: hidden;
  transition: border-color .12s ease;
}
.cart-photos .ph:hover { border-color: var(--red); }
.cart-photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-photos .ph .rm {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  border: none;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
  cursor: pointer;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-display);
  transition: background .12s ease;
}
.cart-photos .ph .rm:hover { background: var(--red); }

.checkout-panel {
  background: var(--bg-1);
  border: 1px solid #1c1c1c;
  border-top: 3px solid var(--red);
  padding: 28px;
  box-shadow: var(--shadow-2);
  position: relative;
}
.checkout-panel h2 { margin-top: 4px; }
.checkout-panel .row { margin-bottom: 14px; }
.checkout-panel label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700;
}
.checkout-panel input[type=text],
.checkout-panel input[type=email] {
  width: 100%;
  padding: 12px 14px;
  background: #000;
  color: var(--text);
  border: 1px solid #2a2a2a;
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color .12s ease;
}
.checkout-panel input:focus {
  outline: none;
  border-color: var(--red);
  background: #050505;
}

.payment-options { display: flex; gap: 10px; }
.payment-options label {
  flex: 1;
  background: #000;
  border: 2px solid #1c1c1c;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text);
  transition: all .12s ease;
  font-style: italic;
}
.payment-options label:hover { border-color: #3a3a3a; }
.payment-options label.sel {
  border-color: var(--red);
  background: rgba(225,6,0,0.10);
  color: #fff;
}
.payment-options input { display: none; }

.totals {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed #2a2a2a;
  font-size: 14px;
}
.totals .line {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  color: var(--text-dim);
}
.totals .line.muted { color: var(--muted); }
.totals .line.total {
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--red);
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.totals .line.total .v {
  color: var(--red-bright);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}

/* ---------- Confirmation ---------- */
.confirm-box {
  background: var(--bg-1);
  border: 1px solid #1c1c1c;
  border-top: 4px solid var(--red);
  padding: 56px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 640px;
  margin: 20px auto;
  box-shadow: var(--shadow-2);
}
.confirm-box .mark {
  width: 78px; height: 78px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 900;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.confirm-box h1 { margin: 22px 0 10px; }
.confirm-box .links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ---------- Inbox / Deliveries lists ---------- */
.inbox-list, .delivery-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.inbox-list li, .delivery-list li {
  background: var(--bg-1);
  border: 1px solid #1c1c1c;
  border-left: 3px solid #1c1c1c;
  padding: 16px 22px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-left-color .12s ease, transform .12s ease, border-color .12s ease;
}
.inbox-list li:hover, .delivery-list li:hover {
  border-color: var(--red);
  border-left-color: var(--red);
  transform: translateX(3px);
}
.inbox-list li a {
  font-family: var(--font-mono);
  color: var(--red-bright);
  font-size: 14px;
  font-weight: 700;
}
.inbox-list li .m {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 12px;
}
.inbox-list li .m .t { margin-left: auto; font-family: var(--font-mono); font-size: 12px; }
.inbox-list li.empty { color: var(--muted); text-align: center; padding: 40px; }

.delivery-list .badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  margin-left: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-style: italic;
}

/* ---------- Admin ---------- */
.page-admin .topbar {
  background: linear-gradient(180deg, #150505, #080000);
  border-bottom-color: #2a0a0a;
}
.page-admin .topbar::after { background: var(--red); }

.admin-stats {
  display: flex;
  gap: 14px;
  margin: 22px 0 30px;
  flex-wrap: wrap;
}
.admin-stats .stat {
  background: var(--bg-1);
  border: 1px solid #1c1c1c;
  border-left: 3px solid var(--red);
  padding: 14px 22px;
  min-width: 150px;
}
.admin-stats .stat .v {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 32px;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1.1;
}
.admin-stats .stat .l {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 700;
}

.admin-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-filter select,
.admin-filter input {
  background: #000;
  border: 1px solid #2a2a2a;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
}
.admin-filter select:focus,
.admin-filter input:focus {
  outline: none;
  border-color: var(--red);
}
.admin-filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.admin-filter input[type=checkbox] { accent-color: var(--red); }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}
.admin-card {
  background: var(--bg-1);
  border: 1px solid #1c1c1c;
  overflow: hidden;
  position: relative;
  transition: transform .12s ease, border-color .12s ease;
}
.admin-card:hover { transform: translateY(-2px); border-color: #3a3a3a; }
.admin-card.keep      { border-left: 4px solid var(--green); }
.admin-card.soft      { border-left: 4px solid var(--orange); opacity: 0.94; }
.admin-card.duplicate { border-left: 4px solid #5a5a5a; opacity: 0.88; }
.admin-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #000;
}
.admin-card .meta { padding: 12px 14px; font-size: 12px; line-height: 1.45; }
.admin-card .meta .top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}
.admin-card .meta .top .status {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-style: italic;
}
.admin-card .meta .top .status.keep { color: var(--green); }
.admin-card .meta .top .status.soft { color: var(--orange); }
.admin-card .meta .top .status.duplicate { color: var(--muted); }
.admin-card .meta .folder { color: var(--text-dim); }
.admin-card .meta .scores { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  border: 2px dashed #2a2a2a;
  background: rgba(255,255,255,0.01);
}
.empty-state a { color: var(--red); }

/* ---------- Subtle helpers ---------- */
.subtle-link { color: var(--muted); font-size: 13px; }
.subtle-link:hover { color: var(--red); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.folder-card, .photo-card, .admin-card, .inbox-list li, .delivery-list li {
  animation: fadeUp .26s ease both;
}
@keyframes slideRed {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.upsell-banner { animation: slideRed .35s ease both; }

/* ---------- Footer ---------- */
.foot {
  position: relative;
  margin-top: 100px;
  padding: 30px 32px 40px;
  border-top: 1px solid #1c1c1c;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #000;
}
.foot::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -2px;
  height: 2px;
  background: var(--red);
}
.foot .left { color: var(--red-bright); font-weight: 800; font-style: italic; }
.foot .middle { color: var(--text-dim); }
.foot .middle a, .foot .right a { color: var(--muted); }
.foot .middle a:hover, .foot .right a:hover { color: var(--red-bright); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .container { padding: 24px 18px 80px; }
  .hero { padding: 44px 24px; }
  .hero h1 { font-size: 44px; }
  .hero::before, .hero::after { width: 200px; }
  .topbar { padding: 12px 18px; }
  .topbar .logo .t { font-size: 15px; }
  .topbar nav a { padding: 8px 10px; font-size: 11px; }
  .select-bar { margin: 18px -18px -80px; padding: 14px 18px; gap: 12px; }
  .gallery-header { flex-direction: column; align-items: stretch; }
  .gallery-header .title { font-size: 32px; }
  .gallery-header .rider-number { font-size: 26px; min-width: 56px; padding: 2px 12px; }
  .upsell-banner { padding: 14px 16px; }
  .upsell-banner .msg { font-size: 15px; }
  .upsell-banner .msg strong { font-size: 18px; }
}
