:root {
  --bg: #070706;
  --panel: #12100e;
  --panel-light: #1c1915;
  --ink: #eee7dc;
  --muted: #9c9184;
  --soft: #62584e;
  --line: #282119;
  --accent: #c69a65;
  --accent2: #e5bf82;
  --accent-glow: rgba(198, 154, 101, 0.25);
  --success: #68b684;
  --error: #df685c;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: linear-gradient(180deg, rgba(72, 45, 24, 0.22), rgba(7, 7, 6, 0) 380px), var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent2); }

.shell {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 64px;
  flex: 1;
}

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent2);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 154, 101, 0.6);
  color: var(--accent2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a { color: var(--muted); font-size: 12px; }
.nav a.active, .nav a:hover { color: var(--accent2); }

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--panel-light);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--accent2);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.credits-badge:hover { border-color: var(--accent); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #070706;
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent2);
}

.btn-large {
  padding: 16px 36px;
  font-size: 15px;
}

/* BEFORE / AFTER SLIDER */
.image-compare-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 640px;
  background: #000;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: none;
}

.compare-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.compare-after { z-index: 1; }
.compare-before {
  z-index: 2;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #ffffff;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: rgba(255, 255, 255, 0.85);
  margin-left: -2px;
  z-index: 10;
  cursor: ew-resize;
}

.compare-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.75);
  display: grid;
  place-items: center;
}

.compare-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  z-index: 8;
}

.label-original { left: 16px; }
.label-restored { right: 16px; }

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1000;
}

.modal-card {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

/* CARDS */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.pack-card {
  background: var(--panel-light);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.pack-card:hover, .pack-card.selected {
  border-color: var(--accent2);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-2px);
}

.pack-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--accent);
  color: #070706;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 1px;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--soft);
  font-size: 12px;
  text-align: center;
}
