/* ----------------------------
   General Styles
---------------------------- */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #111827;
  color: #E5E5E5;
}

/* ----------------------------
   Header
---------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #1F2937;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

header img.logo {
  height: 100px;
  width: auto;
}

header nav a {
  color: #FFFFFF;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: #3B82F6;
  transition: background-color 0.3s;
}

header nav a:hover {
  background-color: #2563EB;
}

/* ----------------------------
   Hero
---------------------------- */
#hero {
  background: linear-gradient(160deg, #1a2a3a 0%, #111827 100%);
  border-bottom: 1px solid #1F2937;
  padding: 3rem 1rem 2.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #F9FAFB;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.hero-sub {
  font-size: 1rem;
  color: #9CA3AF;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: #3B82F6;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.97rem;
  transition: background 0.2s;
}

.hero-btn-primary:hover { background: #2563EB; }

.hero-btn-secondary {
  background: transparent;
  color: #60A5FA;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.97rem;
  border: 1px solid #374151;
  transition: background 0.2s, border-color 0.2s;
}

.hero-btn-secondary:hover {
  background: #1F2937;
  border-color: #3B82F6;
}

/* ----------------------------
   Stats Bar
---------------------------- */
#statsBar {
  background: #1F2937;
  border-bottom: 1px solid #374151;
}

.stats-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #F9FAFB;
}

.stat-label {
  font-size: 0.72rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: #374151;
  flex-shrink: 0;
}

/* ----------------------------
   Footer
---------------------------- */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #1F2937;
  color: #FFFFFF;
  margin-top: 2rem;
}

/* ----------------------------
   Search Section
---------------------------- */
#search {
  text-align: center;
  margin: 2rem 0;
}

#search input {
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  width: 200px;
  background-color: #1E293B;
  color: #E5E5E5;
}

#search input:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(59,130,246,0.5);
}

#search button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #3B82F6;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.3s;
}

#search button:hover {
  background-color: #2563EB;
}

/* ----------------------------
   Submit Form — Redesigned
---------------------------- */
#submitForm {
  padding: 3.5rem 1rem 2rem;
  text-align: center;
}

.sp-section-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: #3B82F6;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.sp-heading {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #F9FAFB;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  text-align: center;
}

.sp-sub {
  color: #6B7280;
  font-size: 0.92rem;
  margin: 0 auto 2.5rem;
  max-width: 440px;
  line-height: 1.55;
}

.sp-card {
  max-width: 520px;
  margin: 0 auto;
  background: #1F2937;
  border: 1px solid #2D3B4E;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.07), 0 24px 48px rgba(0,0,0,0.45);
  text-align: left;
}

.sp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.sp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
}

.sp-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #374151;
  border: 1.5px solid #4B5563;
  color: #9CA3AF;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1;
}

.sp-step.active .sp-step-num {
  background: #3B82F6;
  border-color: #3B82F6;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
}

.sp-step.done .sp-step-num {
  background: #10B981;
  border-color: #10B981;
  color: #fff;
}

.sp-step-label {
  font-size: 0.68rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sp-step.active .sp-step-label { color: #93C5FD; }
.sp-step.done .sp-step-label { color: #6EE7B7; }

.sp-step-line {
  flex: 1;
  height: 1px;
  background: #374151;
  margin-bottom: 18px;
  align-self: center;
}

.sp-field {
  margin-bottom: 1.1rem;
}

.sp-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.45rem;
}

.sp-select-wrap {
  position: relative;
}

.sp-item-preview {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 5px;
  image-rendering: pixelated;
  pointer-events: none;
  background: #0F172A;
  padding: 2px;
  border: 1px solid #334155;
}

.sp-select-arrow {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6B7280;
  font-size: 0.75rem;
}

.sp-select, .sp-input {
  width: 100%;
  box-sizing: border-box;
  background: #111827;
  border: 1.5px solid #374151;
  border-radius: 0.65rem;
  color: #F9FAFB;
  font-size: 0.97rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  padding: 0.72rem 1rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.sp-select { padding-left: 3.2rem; padding-right: 2rem; }

.sp-select:focus, .sp-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.sp-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.sp-input-wrap {
  position: relative;
}

.sp-input-suffix {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: #6B7280;
  font-weight: 600;
  pointer-events: none;
}

.sp-divider {
  height: 1px;
  background: #2D3B4E;
  margin: 1.5rem 0;
}

.sp-captcha {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.sp-confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  background: #111827;
  border: 1px solid #1E3A5F;
  border-radius: 0.65rem;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
}

.sp-confirm-check {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: #3B82F6;
}

.sp-confirm-text {
  font-size: 0.83rem;
  color: #9CA3AF;
  line-height: 1.45;
}

.sp-confirm-text strong {
  color: #D1D5DB;
  font-weight: 600;
}

.sp-submit-btn {
  width: 100%;
  background: #3B82F6;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  padding: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.18s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sp-submit-btn:hover { background: #2563EB; transform: translateY(-1px); }
.sp-submit-btn:active { transform: translateY(0); }
.sp-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.sp-submit-arrow {
  font-size: 1.1rem;
  transition: transform 0.18s;
  display: inline-block;
}

.sp-submit-btn:hover .sp-submit-arrow { transform: translateX(3px); }

#submitMessage {
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2rem;
}

.sp-rule-note {
  text-align: center;
  font-size: 0.77rem;
  color: #4B5563;
  margin-top: 1rem;
  line-height: 1.5;
}

.sp-rule-note a { color: #6B7280; text-decoration: underline; }
.sp-rule-note a:hover { color: #9CA3AF; }

.sp-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.sp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #4B5563;
}

.sp-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .sp-card { padding: 1.25rem; }
  .sp-price-row { grid-template-columns: 1fr; }
}

/* ----------------------------
   Sort Bar
---------------------------- */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 1rem;
}

.sort-label {
  font-size: 0.8rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}

.sort-btn {
  background: #1F2937;
  color: #9CA3AF;
  border: 1px solid #374151;
  border-radius: 2rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: 'Inter', sans-serif;
}

.sort-btn:hover {
  background: #273244;
  color: #E5E5E5;
  border-color: #4B5563;
}

.sort-btn.active {
  background: #1e3a5f;
  color: #60A5FA;
  border-color: #3B82F6;
}

/* ----------------------------
   Item Cards
---------------------------- */
#itemList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.item-card {
  background-color: #1F2937;
  border-radius: 0.75rem;
  width: 200px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.item-card img.item-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  image-rendering: pixelated;
}

.item-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.item-price {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FBBF24;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.item-price img {
  width: 20px;
  height: 20px;
  margin-left: 0.3rem;
}

.item-submissions {
  font-size: 0.75rem;
  color: #6B7280;
  margin-bottom: 0.5rem;
}

.item-card a {
  margin-top: auto;
  text-decoration: none;
  color: #3B82F6;
  font-weight: bold;
}

.item-card a:hover {
  text-decoration: underline;
}

/* ----------------------------
   Section Headings
---------------------------- */
h2 {
  text-align: center;
  color: #3B82F6;
  margin-bottom: 1rem;
}

/* ----------------------------
   Legal Section
---------------------------- */
#legal {
  max-width: 900px;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
}

.legal-card {
  background-color: #1F2937;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.legal-card p {
  color: #D1D5DB;
  line-height: 1.5;
}

.legal-card details {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  margin-top: 0.65rem;
}

.legal-card summary {
  cursor: pointer;
  color: #93C5FD;
  font-weight: 600;
}

.legal-card summary:hover { color: #BFDBFE; }

.legal-contact {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

.footer-legal-links {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
}

.footer-legal-links a {
  color: #93C5FD;
  text-decoration: none;
}

.footer-legal-links a:hover { text-decoration: underline; }

/* ----------------------------
   Currency Toggle Button
---------------------------- */
.currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #111827;
  border: 1.5px solid #374151;
  border-radius: 2rem;
  padding: 0.38rem 0.75rem 0.38rem 0.5rem;
  cursor: pointer;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #FBBF24;
  margin-right: 0.5rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
  user-select: none;
  letter-spacing: 0.04em;
}

.currency-toggle:hover {
  border-color: #FBBF24;
  background: #1a1f2e;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.currency-toggle--wl {
  color: #34D399;
  border-color: #374151;
}

.currency-toggle--wl:hover {
  border-color: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.currency-toggle-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 4px;
  flex-shrink: 0;
}

.currency-toggle-switch {
  display: inline-flex;
  align-items: center;
  width: 28px;
  height: 16px;
  background: #374151;
  border-radius: 999px;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
  margin-left: 0.1rem;
}

.currency-toggle--wl .currency-toggle-switch {
  background: #065F46;
}

.currency-toggle-knob {
  position: absolute;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FBBF24;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.currency-toggle--wl .currency-toggle-knob {
  transform: translateX(12px);
  background: #34D399;
}

@keyframes currencyPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.93); }
  70%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.currency-toggle--pop {
  animation: currencyPop 0.3s ease-out;
}

.currency-toggle-item {
  margin-right: 0;
}

@keyframes currencyToast {
  0%   { opacity: 0; transform: translateY(6px) scale(0.9); }
  15%  { opacity: 1; transform: translateY(0) scale(1); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-4px); }
}

.currency-toast {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  background: #1F2937;
  border: 1px solid #374151;
  border-radius: 0.65rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #F9FAFB;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 9999;
  pointer-events: none;
  animation: currencyToast 2s ease forwards;
}

.currency-toast img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
}
