/* ============================
   RateMySetup — Styles
   ============================ */

:root {
  --bg: #07080f;
  --bg-2: #0c0f1c;
  --panel: rgba(16, 20, 36, 0.6);
  --panel-2: rgba(20, 25, 45, 0.85);
  --border: rgba(120, 140, 220, 0.18);
  --border-strong: rgba(120, 140, 220, 0.35);
  --text: #e7eaff;
  --muted: #8b94c2;
  --neon-1: #00f0ff;
  --neon-2: #b400ff;
  --neon-3: #ff2bd6;
  --accent: #7c5cff;
  --green: #00ff9d;
  --gold: #ffd700;
  --radius: 14px;
  --radius-lg: 22px;
  --transition: 0.3s cubic-bezier(.2,.7,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Heebo", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: "Orbitron", "Heebo", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--neon-1); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ===== Background ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(rgba(124, 92, 255, 0.04) 1px, transparent 1px) 0 0 / 50px 50px,
    linear-gradient(90deg, rgba(124, 92, 255, 0.04) 1px, transparent 1px) 0 0 / 50px 50px,
    radial-gradient(ellipse at center, #0c1024 0%, #05060d 70%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
}
.bg-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.glow-1 { top: -200px; left: -150px; background: var(--neon-2); }
.glow-2 { top: 40%; right: -200px; background: var(--neon-1); animation-delay: -6s; }
.glow-3 { bottom: -200px; left: 30%; background: var(--neon-3); animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -50px) scale(1.1); }
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(7, 8, 15, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 28px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark {
  color: var(--gold);
  font-size: 22px;
  text-shadow: 0 0 12px var(--gold);
}
.logo-text {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.1em;
}
.logo-text span {
  background: linear-gradient(90deg, var(--neon-1), var(--neon-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex; gap: 26px;
  margin-right: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute;
  bottom: -6px; right: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-3));
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--neon-2), var(--accent), var(--neon-1));
  color: white;
  background-size: 200% 100%;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.6);
}
.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(180, 0, 255, 0.7);
  color: white;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(124, 92, 255, 0.15);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }
.btn-icon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  transition: all var(--transition);
}
.btn-icon:hover { background: rgba(124, 92, 255, 0.15); border-color: var(--accent); }
.btn-toggle {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--gold);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-toggle:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold);
}
.btn-toggle.active {
  background: linear-gradient(120deg, var(--gold), #ffaa00);
  color: #1a1100;
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.45);
}
.btn-text {
  background: none; border: none;
  color: var(--muted); font-size: 13px;
  padding: 6px 10px; border-radius: 8px;
  transition: all var(--transition);
}
.btn-text:hover { color: var(--neon-3); background: rgba(255, 43, 214, 0.08); }

/* ===== Hero ===== */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 28px 60px;
  text-align: center;
}
.tag {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  margin-bottom: 24px;
}
.grad {
  background: linear-gradient(120deg, var(--neon-1), var(--neon-3) 60%, var(--neon-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(180, 0, 255, 0.3));
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero-stats {
  display: flex; gap: 50px;
  justify-content: center; flex-wrap: wrap;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: "Orbitron", sans-serif;
  font-size: 36px;
  background: linear-gradient(120deg, var(--neon-1), var(--neon-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ===== Sections ===== */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 28px;
}
.section-alt::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.04), transparent);
  z-index: -1;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.kicker {
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--neon-1);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 16px; }

/* ===== Upload Card ===== */
.upload-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
}
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Dropzone */
.dropzone {
  position: relative;
  background: rgba(7, 8, 15, 0.6);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--neon-1);
  background: rgba(0, 240, 255, 0.04);
  box-shadow: inset 0 0 60px rgba(0, 240, 255, 0.08);
}
.dz-empty {
  text-align: center;
  padding: 20px;
}
.dz-icon {
  font-size: 56px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.4));
}
.dz-empty h3 { font-size: 18px; margin-bottom: 6px; }
.dz-empty p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.dz-formats {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 999px;
}
#dzPreview {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  object-fit: cover;
}
.dz-remove {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(7, 8, 15, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  z-index: 2;
  backdrop-filter: blur(10px);
}
.dz-remove:hover { color: var(--neon-3); border-color: var(--neon-3); }

/* Form fields */
.upload-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.upload-fields label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  position: relative;
}
.upload-fields input,
.upload-fields textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: rgba(7, 8, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all var(--transition);
}
.upload-fields input:focus,
.upload-fields textarea:focus {
  outline: none;
  border-color: var(--neon-1);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}
.upload-fields textarea { resize: vertical; }
.counter {
  position: absolute;
  bottom: 8px; left: 12px;
  font-size: 11px;
  color: var(--muted);
}

.tag-picker {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
}
.picker-label {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}
.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active {
  background: linear-gradient(120deg, var(--neon-2), var(--accent));
  border-color: transparent;
  color: white;
}

.btn-submit { margin-top: 4px; padding: 14px 24px; font-size: 15px; }

/* ===== Leaderboard ===== */
.leaderboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lb-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  gap: 16px;
  align-items: center;
}
.lb-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.lb-rank {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  font-weight: 900;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.lb-card.gold .lb-rank {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  border-color: #ffd700;
  color: #1a1100;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.5);
}
.lb-card.silver .lb-rank {
  background: linear-gradient(135deg, #d0d0d0, #888);
  border-color: #d0d0d0;
  color: #111;
}
.lb-card.bronze .lb-rank {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  border-color: #cd7f32;
  color: #fff;
}
.lb-thumb {
  width: 70px; height: 70px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.lb-info { flex: 1; min-width: 0; }
.lb-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-info .lb-owner { font-size: 12px; color: var(--muted); }
.lb-stars {
  display: flex; align-items: center; gap: 4px;
  margin-top: 6px;
  font-size: 13px;
}
.lb-stars .stars { color: var(--gold); letter-spacing: 1px; }

/* ===== Gallery filters ===== */
.gallery-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 40px;
  max-width: none;
}
.gallery-head h2 { font-size: clamp(28px, 4vw, 40px); }
.filters {
  display: flex; gap: 12px;
  align-items: center; flex-wrap: wrap;
}
.filter-group {
  display: flex; align-items: center; gap: 8px;
}
.filter-group label { font-size: 13px; color: var(--muted); }
.filter-group select {
  background: rgba(7, 8, 15, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-group select:hover { border-color: var(--accent); }
.filter-group select:focus { outline: none; border-color: var(--neon-1); }

/* ===== Gallery Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.setup-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.setup-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 20px 60px -20px rgba(124, 92, 255, 0.4);
}
.setup-img-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1f3a, #0a0e1a);
}
.setup-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.setup-card:hover .setup-img { transform: scale(1.05); }
.setup-rating-overlay {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
}
.setup-tag-overlay {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; gap: 4px; flex-wrap: wrap;
  max-width: 60%;
}
.setup-tag-overlay span {
  background: rgba(124, 92, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}
.setup-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.setup-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: "Heebo", sans-serif;
  letter-spacing: 0;
}
.setup-owner {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.setup-owner::before { content: "👤 "; }
.setup-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.setup-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.setup-stars-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.setup-stars-row .stars { color: var(--gold); letter-spacing: 1px; font-size: 14px; }
.setup-stars-row .count { color: var(--muted); font-size: 12px; }
.setup-foot .btn-rate {
  background: linear-gradient(120deg, var(--neon-2), var(--accent));
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition);
}
.setup-foot .btn-rate:hover { transform: scale(1.05); }

/* ===== Empty state ===== */
.empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--panel);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty-icon { font-size: 64px; margin-bottom: 14px; }
.empty h3 { margin-bottom: 8px; font-family: "Heebo", sans-serif; font-size: 18px; }
.empty p { color: var(--muted); font-size: 14px; }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  backdrop-filter: blur(20px);
}
.step-num {
  position: absolute;
  top: 20px; left: 24px;
  font-family: "Orbitron", sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  line-height: 1;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; }

/* ===== Shop ===== */
.shop-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.shop-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.shop-tab:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.1);
}
.shop-tab.active {
  background: linear-gradient(120deg, var(--neon-2), var(--accent), var(--neon-1));
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all var(--transition);
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.product:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 20px 60px -20px rgba(124, 92, 255, 0.4);
  color: inherit;
}
.product-go {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 3;
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--neon-1);
  color: var(--neon-1);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}
.product:hover .product-go {
  opacity: 1;
  transform: translateY(0);
}
.product-visual {
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #0a0e1a;
}
.product-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.product:hover .product-photo {
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.15);
}
.product-icon-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.product-icon-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--vgrad, linear-gradient(135deg, #1a1f3a, #0a0e1a));
  opacity: 0.85;
}
.product-icon-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 60%);
}
.product-icon {
  position: relative;
  z-index: 2;
  font-size: 72px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
  animation: prodFloat 4s ease-in-out infinite;
}
@keyframes prodFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}
.product-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  background: linear-gradient(120deg, var(--neon-3), var(--neon-2));
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(255, 43, 214, 0.4);
}
.product-badge.gold {
  background: linear-gradient(120deg, var(--gold), #ffaa00);
  color: #1a1100;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}
.product-cat-label {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  background: rgba(7, 8, 15, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--neon-1);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.product-body {
  padding: 18px;
  flex: 1;
  display: flex; flex-direction: column;
  gap: 8px;
}
.product-name {
  font-family: "Heebo", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.product-desc {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}
.product-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.product-price {
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.product-price .now {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--neon-1), var(--neon-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.product-price .old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.btn-buy {
  background: linear-gradient(120deg, var(--neon-2), var(--accent));
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-buy:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}
.btn-buy {
  display: inline-flex; align-items: center; gap: 4px;
}

.shop-note {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

/* Cart bar */
.cart-bar {
  position: sticky;
  bottom: 20px;
  margin-top: 32px;
  background: rgba(12, 15, 28, 0.95);
  border: 1px solid var(--neon-1);
  border-radius: 999px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.25);
  animation: cartIn 0.4s cubic-bezier(.2,.7,.2,1);
  z-index: 50;
}
@keyframes cartIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cart-bar-info, .cart-bar-total {
  font-size: 14px;
  color: var(--muted);
}
.cart-bar-info strong, .cart-bar-total strong {
  color: var(--neon-1);
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  margin-right: 4px;
}

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: modalIn 0.25s ease;
}
.modal[hidden] { display: none; }
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-bg {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  z-index: 2;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: cardIn 0.35s cubic-bezier(.2,.7,.2,1);
}
@keyframes cardIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  max-height: 600px;
}
.modal-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-close {
  position: absolute;
  top: 14px; left: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(7, 8, 15, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  z-index: 3;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.modal-close:hover { color: var(--neon-3); border-color: var(--neon-3); }
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.modal-head h3 {
  font-size: 22px;
  font-family: "Heebo", sans-serif;
  letter-spacing: 0;
  flex: 1;
}
.modal-rating {
  text-align: left;
  white-space: nowrap;
}
.big-stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
  display: block;
}
.modal-rating-num {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  color: var(--muted);
}
.modal-owner { color: var(--muted); font-size: 14px; }
.modal-owner::before { content: "👤 "; }
.modal-desc {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-tags span {
  background: rgba(124, 92, 255, 0.2);
  border: 1px solid rgba(124, 92, 255, 0.4);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.rate-block {
  margin-top: 8px;
  padding: 16px;
  background: rgba(7, 8, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.rate-block h4 {
  font-size: 14px;
  font-family: "Heebo", sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
}
.rate-stars {
  display: flex;
  gap: 6px;
  direction: ltr;
  justify-content: flex-start;
}
.rate-stars button {
  background: none;
  border: none;
  font-size: 34px;
  color: rgba(255, 255, 255, 0.15);
  transition: all 0.15s ease;
  padding: 4px;
  line-height: 1;
}
.rate-stars button:hover,
.rate-stars button.hover {
  color: var(--gold);
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px var(--gold));
}
.rate-stars button.active {
  color: var(--gold);
  filter: drop-shadow(0 0 6px var(--gold));
}
.rate-info {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.modal-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* ===== Improvement Tips ===== */
.tips-block {
  margin-top: 8px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.06), rgba(124, 92, 255, 0.04));
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
}
.tips-block h4 {
  font-size: 16px;
  font-family: "Heebo", sans-serif;
  font-weight: 800;
  margin-bottom: 4px;
}
.tips-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.tip-form {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.tip-form input,
.tip-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(7, 8, 15, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  transition: all var(--transition);
}
.tip-form input:focus,
.tip-form textarea:focus {
  outline: none;
  border-color: var(--neon-1);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}
.tip-form textarea { resize: vertical; min-height: 56px; }
.tip-form button {
  align-self: flex-end;
  padding: 9px 18px;
  font-size: 13px;
}

.tips-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-left: 4px;
}
.tips-list::-webkit-scrollbar { width: 6px; }
.tips-list::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.4);
  border-radius: 3px;
}
.tips-list li {
  background: rgba(7, 8, 15, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  position: relative;
  animation: tipIn 0.3s ease;
}
@keyframes tipIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.tip-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.tip-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-1);
}
.tip-author::before { content: "💬 "; }
.tip-time {
  font-size: 11px;
  color: var(--muted);
}
.tip-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.tip-delete {
  position: absolute;
  top: 6px; left: 8px;
  background: none; border: none;
  color: var(--muted);
  font-size: 13px;
  opacity: 0;
  transition: all var(--transition);
}
.tips-list li:hover .tip-delete { opacity: 1; }
.tip-delete:hover { color: var(--neon-3); }
.tips-empty {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 14px;
  font-style: italic;
}
.tips-empty[hidden] { display: none; }

/* Card overlay: tip count */
.setup-tips-overlay {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--neon-1);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}

/* "Mine" badge + delete button on card */
.setup-mine-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  background: linear-gradient(120deg, var(--gold), #ffaa00);
  color: #1a1100;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.35);
}
.card-delete {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 43, 214, 0.18);
  border: 1px solid rgba(255, 43, 214, 0.55);
  backdrop-filter: blur(10px);
  color: #ff6bdb;
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition);
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.setup-card:hover .card-delete {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.card-delete:hover {
  background: var(--neon-3);
  color: white;
  box-shadow: 0 0 16px var(--neon-3);
  transform: translateX(-50%) translateY(0) scale(1.1);
}
.setup-card.is-mine {
  border-color: rgba(255, 215, 0, 0.35);
}
.setup-card.is-mine:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 60px -20px rgba(255, 215, 0, 0.35);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(7, 8, 15, 0.95);
  border: 1px solid var(--neon-1);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 300;
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.3);
  backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: var(--green); box-shadow: 0 10px 40px rgba(0, 255, 157, 0.3); }
.toast.error { border-color: var(--neon-3); box-shadow: 0 10px 40px rgba(255, 43, 214, 0.3); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 13, 0.5);
  backdrop-filter: blur(20px);
  margin-top: 60px;
  padding: 30px 28px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .upload-grid { grid-template-columns: 1fr; }
  .leaderboard { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .modal-card { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-card img { max-height: 280px; }
  .gallery-head { flex-direction: column; align-items: stretch; }
  .filters { justify-content: stretch; }
  .filter-group { flex: 1; }
  .filter-group select { flex: 1; width: 100%; }
}
@media (max-width: 560px) {
  .section, .hero { padding-left: 18px; padding-right: 18px; }
  .nav-inner { padding: 14px 18px; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 26px; }
  .grid { grid-template-columns: 1fr; }
  .upload-card { padding: 18px; }
}
