:root {
  --font-display: 'Orbitron', sans-serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Exo 2', sans-serif;
  --font-ui: 'Rajdhani', sans-serif;

  --space-black: #030712;
  --deep-navy: #07111f;
  --cosmic-blue: #0b1f3a;
  --electric-blue: #38bdf8;
  --bright-blue: #60a5fa;
  --metallic-gold: #f5c542;
  --deep-gold: #b7791f;
  --amber: #f59e0b;
  --silver: #d1d5db;
  --bright-silver: #f8fafc;
  --steel: #64748b;
  --cream: #fff7e6;
  --soft-white: #f8fafc;
  --burgundy: #5a1f1f;
  
  --primary-color: var(--metallic-gold);
  --primary-hover: var(--deep-gold);
  --bg-color: transparent;
  --dark-bg: var(--deep-navy);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  background: #030712;
  color: var(--cream);
  overflow-x: hidden;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Fixed global space background */
.fixed-space-background {
  position: fixed;
  inset: 0;
  z-index: -9999;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(56, 189, 248, 0.16), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(245, 197, 66, 0.10), transparent 22%),
    radial-gradient(circle at 48% 78%, rgba(96, 165, 250, 0.11), transparent 30%),
    radial-gradient(circle at 72% 86%, rgba(30, 64, 175, 0.16), transparent 28%),
    linear-gradient(180deg, #020617 0%, #030712 48%, #07111f 100%);
}

/* Soft cosmic glow that stays fixed */
.space-glow-layer {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 35% 28%, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at 70% 58%, rgba(245, 197, 66, 0.07), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.25), transparent 45%);
  opacity: 0.95;
}

/* Star container stays fixed */
.fixed-starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Random stars */
.random-star {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 5px rgba(255, 255, 255, 0.45),
    0 0 12px rgba(96, 165, 250, 0.16);
  animation-name: fixedStarTwinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.random-star.blue-star {
  background: rgba(125, 211, 252, 0.95);
  box-shadow:
    0 0 6px rgba(56, 189, 248, 0.55),
    0 0 14px rgba(56, 189, 248, 0.25);
}

.random-star.gold-star {
  background: rgba(245, 197, 66, 0.9);
  box-shadow:
    0 0 6px rgba(245, 197, 66, 0.45),
    0 0 16px rgba(245, 197, 66, 0.18);
}

@keyframes fixedStarTwinkle {
  0% {
    opacity: 0.25;
    transform: scale(0.85);
  }

  50% {
    opacity: 0.65;
  }

  100% {
    opacity: 1;
    transform: scale(1.18);
  }
}

/* Make sure content appears above the fixed background */
.site-header,
header,
main,
section,
footer,
.page,
.page-wrapper,
.app,
#root {
  position: relative;
  z-index: 1;
}

/* Sections should not cover the cosmic background with solid colors */
section,
main,
.page,
.page-wrapper {
  background: transparent;
}

/* Main layout sections */
section,
.page-section {
  position: relative;
  z-index: 1;
}

.cosmic-card,
.card,
.feature-card,
.form-card,
.dashboard-card {
  background: linear-gradient(145deg, rgba(7, 17, 31, 0.92), rgba(3, 7, 18, 0.94));
  border: 1px solid rgba(245, 197, 66, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 50px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(56, 189, 248, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}

.site-header,
.header,
nav {
  background: rgba(3, 7, 18, 0.78);
  border-bottom: 1px solid rgba(245, 197, 66, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.logo,
.site-logo {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(245, 197, 66, 0.25));
}

.header-logo {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(245, 197, 66, 0.25));
  transition: max-height 0.3s ease;
}

@media (min-width: 1536px) {
  .header-logo {
    max-height: 120px;
  }
}

.mobile-logo,
.favicon-logo,
.icon-logo {
  max-height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.28));
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.18), transparent 26%),
    radial-gradient(circle at 50% 45%, rgba(245, 197, 66, 0.12), transparent 34%);
  pointer-events: none;
}

.hero-logo,
.hero-emblem {
  max-width: 420px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(245, 197, 66, 0.25))
    drop-shadow(0 0 28px rgba(56, 189, 248, 0.18));
}

/* Main hero titles */
h1,
.hero-title,
.main-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.05;
  color: var(--bright-silver);
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.12);
}

/* Section titles */
h2,
h3,
h4,
h5,
h6,
.section-title,
.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.15;
  color: var(--bright-silver);
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.12);
}

/* Body copy */
p,
li,
.body-text,
.form-description,
.faq-answer {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
  color: rgba(255, 247, 230, 0.84);
}

/* Navigation, buttons, forms, labels, badges */
nav,
.nav-link,
button,
.btn,
.button,
.cta-button,
label,
.form-label,
.badge,
.pill,
.category-pill,
.dashboard-status,
.subtitle,
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* Small labels and microcopy */
small,
.caption,
.helper-text,
.form-helper,
.meta-text {
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Hero subtitle should stay readable, not too futuristic */
.hero-subtitle,
.hero-description {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.65;
}

/* Premium gold text treatment */
.gold-text,
.highlight-text {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: linear-gradient(180deg, #fff2a8 0%, #f5c542 42%, #b7791f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Silver text treatment */
.silver-text {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: linear-gradient(180deg, #ffffff 0%, #d1d5db 45%, #64748b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Form inputs should stay readable */
input,
textarea,
select {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Dashboard tables and admin content */
table,
.dashboard-table,
.submission-card,
.admin-dashboard {
  font-family: var(--font-body);
}

.dashboard-table th,
.admin-dashboard th,
.table-header {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

a {
  color: var(--metallic-gold);
}

a:hover {
  color: var(--electric-blue);
}

.btn,
.button,
.cta-button,
.btn-primary {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(245, 197, 66, 0.7);
  background: linear-gradient(180deg, #ffe28a 0%, #f5c542 42%, #b7791f 100%);
  color: #09090b !important;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  box-shadow:
    0 12px 28px rgba(245, 197, 66, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  display: inline-block;
  text-align: center;
}

.btn:hover,
.button:hover,
.cta-button:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 38px rgba(245, 197, 66, 0.24),
    0 0 24px rgba(56, 189, 248, 0.15);
}

.btn-secondary,
.secondary-button {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(7, 17, 31, 0.78);
  color: var(--cream) !important;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.08);
  display: inline-block;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.18);
  color: var(--electric-blue) !important;
}

.cosmic-input {
  background: rgba(3, 7, 18, 0.78);
  color: var(--cream);
  border: 1px solid rgba(209, 213, 219, 0.26);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  outline: none;
  width: 100%;
}

.cosmic-input:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.badge,
.pill,
.category-pill {
  background: rgba(245, 197, 66, 0.10);
  border: 1px solid rgba(245, 197, 66, 0.32);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

.footer,
.site-footer {
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.96));
  border-top: 1px solid rgba(245, 197, 66, 0.22);
}

.footer-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(245, 197, 66, 0.22));
}

.twinkle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.twinkle-layer span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--bright-silver);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.75);
  animation: sparklePulse 3.5s ease-in-out infinite;
}

@keyframes sparklePulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.85);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.35);
  }
}

@media (max-width: 768px) {
  .logo,
  .site-logo,
  .header-logo {
    max-height: 48px;
  }

  .hero {
    min-height: auto;
    padding: 4rem 1rem;
    text-align: center;
  }

  .hero-logo,
  .hero-emblem {
    max-width: 280px;
    margin: 0 auto;
  }

  h1,
  .hero-title,
  .main-title {
    font-size: clamp(2.2rem, 12vw, 4rem);
    letter-spacing: 0.045em;
    line-height: 1.1;
  }

  h2,
  h3,
  .section-title {
    letter-spacing: 0.035em;
  }

  nav,
  .nav-link,
  button,
  .btn,
  .button,
  .cta-button,
  label,
  .form-label,
  .badge,
  .pill {
    letter-spacing: 0.065em;
  }

  .cosmic-card,
  .card,
  .feature-card,
  .form-card {
    border-radius: 18px;
  }
}

/* Smooth motion defaults */
* {
  transition-property: background-color, border-color, box-shadow, transform, opacity, color;
  transition-duration: 220ms;
  transition-timing-function: ease;
}



/* Hero logo glow pulse */
.hero-logo-wrapper,
.hero-emblem-wrapper {
  position: relative;
}

.hero-logo-wrapper::before,
.hero-emblem-wrapper::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 48%),
    radial-gradient(circle, rgba(245, 197, 66, 0.16), transparent 58%);
  filter: blur(22px);
  animation: heroGlowPulse 5.5s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
  0% {
    opacity: 0.45;
    transform: scale(0.96);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

/* Gold shimmer CTA buttons */
.btn,
.btn-primary,
.cta-button,
button[type="submit"],
.sell-collection-button,
.submit-collection-button {
  position: relative;
  overflow: hidden;
}

.btn::after,
.btn-primary::after,
.cta-button::after,
button[type="submit"]::after,
.sell-collection-button::after,
.submit-collection-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 45%,
    rgba(255, 255, 255, 0.52) 50%,
    rgba(255, 255, 255, 0.22) 55%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: goldButtonShimmer 4.8s ease-in-out infinite;
}

@keyframes goldButtonShimmer {
  0%, 55% {
    left: -120%;
  }
  100% {
    left: 140%;
  }
}

/* Card hover effects */
.card,
.cosmic-card,
.feature-card,
.category-card,
.process-card,
.faq-card,
.dashboard-card,
.submission-card {
  transform: translateY(0);
  border: 1px solid rgba(245, 197, 66, 0.22);
}

.card:hover,
.cosmic-card:hover,
.feature-card:hover,
.category-card:hover,
.process-card:hover,
.faq-card:hover,
.dashboard-card:hover,
.submission-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 197, 66, 0.55);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(245, 197, 66, 0.16),
    0 0 34px rgba(56, 189, 248, 0.10);
}

/* Scroll reveal base */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Upload zone */
.upload-zone,
.photo-upload-zone,
.file-upload-area {
  position: relative;
  border: 2px dashed rgba(245, 197, 66, 0.42);
  background:
    radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.08), transparent 36%),
    rgba(7, 17, 31, 0.84);
  border-radius: 22px;
  padding: 2rem;
  text-align: center;
  box-shadow: inset 0 0 24px rgba(56, 189, 248, 0.04);
}

.upload-zone:hover,
.photo-upload-zone:hover,
.file-upload-area:hover,
.upload-zone.drag-over,
.photo-upload-zone.drag-over,
.file-upload-area.drag-over {
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow:
    inset 0 0 28px rgba(56, 189, 248, 0.10),
    0 0 28px rgba(56, 189, 248, 0.14),
    0 0 22px rgba(245, 197, 66, 0.08);
}

/* Mission-style form steps */
.form-step-indicator,
.step-progress {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.form-step,
.progress-step {
  border: 1px solid rgba(209, 213, 219, 0.25);
  color: rgba(255, 247, 230, 0.62);
  background: rgba(3, 7, 18, 0.72);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.form-step.active,
.progress-step.active {
  color: #fff7e6;
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}

.form-step.complete,
.progress-step.complete {
  color: #030712;
  background: linear-gradient(180deg, #fff2a8 0%, #f5c542 45%, #b7791f 100%);
  border-color: rgba(245, 197, 66, 0.9);
}

/* Hero floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.85);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
  animation: floatParticle 10s ease-in-out infinite alternate;
}

.hero-particle.gold {
  background: rgba(245, 197, 66, 0.85);
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.45);
}

@keyframes floatParticle {
  0% {
    opacity: 0.25;
    transform: translate3d(0, 10px, 0) scale(0.85);
  }
  100% {
    opacity: 0.8;
    transform: translate3d(12px, -18px, 0) scale(1.2);
  }
}

/* Dashboard status badges */
.status-new {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.16) !important;
  border-color: rgba(96, 165, 250, 0.55) !important;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.14);
}

.status-reviewing {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 197, 66, 0.55) !important;
}

.status-need-more-photos {
  color: #e0f2fe;
  background: rgba(100, 116, 139, 0.20) !important;
  border-color: rgba(125, 211, 252, 0.45) !important;
}

.status-good-fit {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.14) !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
}

.status-not-a-fit,
.status-archived {
  color: #cbd5e1;
  background: rgba(100, 116, 139, 0.16) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.status-offer-sent,
.status-purchased {
  color: #fff7e6;
  background: rgba(245, 197, 66, 0.16) !important;
  border-color: rgba(245, 197, 66, 0.60) !important;
  box-shadow: 0 0 16px rgba(245, 197, 66, 0.16);
}

.status-pickup-scheduled {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(245, 197, 66, 0.40) !important;
}

/* ==========================================================================
   SELL FORM TYPOGRAPHY & LAYOUT
   ========================================================================== */
.sell-form-page,
.sell-collection-page,
.submission-form-page,
.sell-form-container,
.sell-form-card,
.form-section-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Text should wrap by words gracefully, restoring native input/textarea readability */
.sell-form-page h1,
.sell-form-page h2,
.sell-form-page h3,
.sell-form-page p,
.sell-form-page label,
.sell-form-page span,
.sell-form-page small,
.sell-form-page .form-label,
.sell-form-page .form-helper,
.sell-form-page .form-description {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

/* Ensure textareas preserve line breaks and scroll nicely */
.sell-form-page textarea {
  white-space: pre-wrap !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* Buttons should keep text together */
.sell-form-page button,
.sell-form-page .btn {
  white-space: normal;
  word-break: normal;
}

/* Main form container */
.sell-form-container {
  width: min(100% - 2rem, 920px);
  margin-inline: auto;
}

/* Form cards */
.sell-form-card,
.form-section-card {
  background: linear-gradient(145deg, rgba(7, 17, 31, 0.9), rgba(3, 7, 18, 0.94));
  border: 1px solid rgba(245, 197, 66, 0.28);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(56, 189, 248, 0.08);
}

/* Normal form grid */
.sell-form-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}

/* Full-width fields */
.sell-form-page .form-field.full-width,
.sell-form-page .full-width {
  grid-column: 1 / -1;
}

/* Form fields */
.sell-form-page .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
}

/* Inputs */
.sell-form-page input,
.sell-form-page textarea,
.sell-form-page select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.45;
}

/* Labels */
.sell-form-page label,
.sell-form-page .form-label {
  display: block;
  width: 100%;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

/* Helper text */
.sell-form-page .form-helper,
.sell-form-page .form-description {
  font-family: var(--font-body);
  line-height: 1.6;
  max-width: 70ch;
}

/* Checkbox and radio grids */
.sell-form-page .checkbox-grid,
.sell-form-page .category-checkbox-grid,
.sell-form-page .radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.75rem;
  width: 100%;
}

/* Checkbox/radio rows */
.sell-form-page .checkbox-row,
.sell-form-page .radio-row,
.sell-form-page .checkbox-option,
.sell-form-page .radio-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

/* Checkbox/radio inputs */
.sell-form-page .checkbox-row input,
.sell-form-page .radio-row input,
.sell-form-page .checkbox-option input,
.sell-form-page .radio-option input {
  width: auto;
  min-width: auto;
  margin-top: 0.2rem;
}

/* Checkbox/radio label text should be readable */
.sell-form-page .checkbox-row label,
.sell-form-page .radio-row label,
.sell-form-page .checkbox-option label,
.sell-form-page .radio-option label,
.sell-form-page .checkbox-label,
.sell-form-page .radio-label {
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.35;
  font-family: var(--font-body);
  font-weight: 500;
}

/* Buttons */
.sell-form-page button,
.sell-form-page .btn,
.sell-form-page .cta-button,
.sell-form-page .submit-button {
  white-space: normal;
  min-width: 0;
  width: auto;
}

/* Text photo box */
.text-photos-box {
  width: 100%;
  max-width: 100%;
}

.text-photos-box p,
.text-photos-box li,
.text-photos-box strong {
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

@media (max-width: 768px) {
  .sell-form-container {
    width: min(100% - 1rem, 100%);
  }

  .sell-form-card,
  .form-section-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .sell-form-page .form-grid,
  .sell-form-page .checkbox-grid,
  .sell-form-page .category-checkbox-grid,
  .sell-form-page .radio-grid {
    grid-template-columns: 1fr !important;
  }

  .sell-form-page h1,
  .form-hero-title {
    font-size: clamp(1.75rem, 8vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: 0.035em;
  }

  .sell-form-page h2,
  .sell-form-page h3,
  .form-section-title,
  .form-card-title {
    font-size: clamp(1.3rem, 5.8vw, 1.85rem);
    line-height: 1.18;
    letter-spacing: 0.03em;
  }

  .sell-form-page p,
  .sell-form-page li,
  .form-helper,
  .form-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .sell-form-page label,
  .sell-form-page .form-label {
    font-size: 0.92rem;
    letter-spacing: 0.045em;
  }

  .sell-form-page .checkbox-row label,
  .sell-form-page .radio-row label,
  .sell-form-page .checkbox-option label,
  .sell-form-page .radio-option label,
  .sell-form-page .checkbox-label,
  .sell-form-page .radio-label {
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.4;
  }

  .sell-form-page button,
  .sell-form-page .btn,
  .sell-form-page .cta-button,
  .sell-form-page .submit-button,
  .sell-form-page .sms-button {
    width: 100%;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .sell-form-card,
  .form-section-card {
    padding: 0.85rem;
  }

  .sell-form-page h1,
  .form-hero-title {
    font-size: clamp(1.55rem, 9vw, 2.35rem);
  }

  .sell-form-page label,
  .sell-form-page .form-label {
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   SCROLLBAR & OVERFLOW FIXES
   ========================================================================== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

/* Prevent layout layers from causing side cut-off */
main,
section,
header,
footer,
nav,
.page,
.page-wrapper,
.app,
#root,
.container,
.page-container,
.content-wrapper,
.hero,
.fixed-space-background,
.space-glow-layer,
.fixed-starfield,
.starfield,
.cosmic-background,
.hero-particles,
.twinkle-layer {
  max-width: 100%;
  overflow-x: clip;
}

/* Avoid 100vw horizontal overflow bugs */
.hero,
.site-section,
.full-width,
.page-section {
  width: 100%;
  max-width: 100%;
}

/* Main containers */
.container,
.page-container,
.content-wrapper {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

/* Text and links should wrap instead of forcing overflow */
p,
li {
  overflow-wrap: break-word;
}

a {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
label,
button,
.btn,
.card,
.cosmic-card,
.feature-card,
.category-card,
.process-card,
.faq-card,
.form-card,
.dashboard-card,
.submission-card {
  overflow-wrap: normal;
  word-break: normal;
}

/* Logo safety */
.logo,
.site-logo,
.header-logo,
.mobile-logo,
.hero-logo,
.hero-emblem,
.footer-logo,
.brand-logo,
.logo img,
.site-logo img,
.header-logo img,
.mobile-logo img,
.hero-logo img,
.hero-emblem img,
.footer-logo img,
.brand-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Tables should scroll inside their own wrapper, not break the page */
.table-wrapper,
.dashboard-table-wrapper,
.admin-table-wrapper,
.submission-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Forms should never overflow */
form,
.form-card,
.form-section,
.form-grid,
.form-row,
input,
textarea,
select,
button {
  max-width: 100%;
}

input,
textarea,
select {
  width: 100%;
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 197, 66, 0.75) rgba(3, 7, 18, 0.95);
}

/* Chrome, Edge, Safari scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #020617 0%, #07111f 100%);
  border-left: 1px solid rgba(245, 197, 66, 0.12);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fff2a8 0%, #f5c542 45%, #b7791f 100%);
  border-radius: 999px;
  border: 2px solid #030712;
  box-shadow:
    0 0 10px rgba(245, 197, 66, 0.22),
    0 0 14px rgba(56, 189, 248, 0.10);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d1d5db 45%, #f5c542 100%);
}

::-webkit-scrollbar-corner {
  background: #030712;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  .container,
  .page-container,
  .content-wrapper {
    width: min(100% - 1.5rem, 100%);
  }

  .hero,
  .hero-section {
    min-height: auto;
    padding: 5rem 1rem 3rem;
  }

  .hero-content,
  .hero-layout,
  .split-layout,
  .two-column,
  .content-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 2rem;
    text-align: center;
  }

  .hero-logo,
  .hero-emblem,
  .hero-logo-wrapper img,
  .hero-emblem-wrapper img {
    max-width: min(360px, 86vw);
    margin-inline: auto;
  }

  .cards-grid,
  .category-grid,
  .feature-grid,
  .process-grid,
  .faq-grid,
  .contact-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .container,
  .page-container,
  .content-wrapper {
    width: min(100% - 1.25rem, 100%);
  }

  header,
  .site-header,
  .header,
  nav {
    max-width: 100%;
    padding-inline: 0.75rem;
  }

  .header-logo,
  .site-logo,
  .nav-logo img,
  .navbar-logo img {
    max-height: 44px;
    max-width: min(190px, 56vw);
    object-fit: contain;
  }

  .mobile-menu,
  .mobile-nav,
  .nav-menu {
    max-width: 100vw;
    overflow-x: hidden;
  }

  #mobile-menu.mobile-menu {
    display: none;
  }

  #mobile-menu.mobile-menu.open {
    display: flex;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  h1,
  .hero-title,
  .main-title {
    font-size: clamp(1.8rem, 9vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: 0.035em;
  }

  h2,
  .section-title {
    font-size: clamp(1.45rem, 7vw, 2.25rem);
    line-height: 1.15;
  }

  h3,
  .card-title {
    font-size: clamp(1.15rem, 5vw, 1.55rem);
  }

  p,
  li,
  .body-text,
  .hero-subtitle,
  .hero-description {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero,
  .hero-section {
    padding: 4rem 0.75rem 2.5rem;
    text-align: center;
  }

  .hero-logo,
  .hero-emblem,
  .hero-logo-wrapper img,
  .hero-emblem-wrapper img {
    max-width: min(300px, 84vw);
    width: 100%;
    height: auto;
  }

  .hero-buttons,
  .cta-buttons,
  .button-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-buttons .btn,
  .cta-buttons .btn,
  .button-group .btn,
  .hero-buttons button,
  .cta-buttons button,
  .button-group button,
  .btn,
  .button,
  .cta-button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .cards-grid,
  .category-grid,
  .feature-grid,
  .process-grid,
  .faq-grid,
  .contact-grid,
  .dashboard-grid,
  .form-grid,
  .form-row,
  .two-column,
  .split-layout {
    grid-template-columns: 1fr !important;
  }

  .card,
  .cosmic-card,
  .feature-card,
  .category-card,
  .process-card,
  .faq-card,
  .form-card,
  .dashboard-card,
  .submission-card {
    width: 100%;
    max-width: 100%;
    padding: 1.1rem;
    border-radius: 18px;
  }

  .upload-zone,
  .photo-upload-zone,
  .file-upload-area {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
    border-radius: 18px;
  }

  .form-step-indicator,
  .step-progress {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .form-step,
  .progress-step {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .footer,
  .site-footer {
    text-align: center;
    padding-inline: 0.75rem;
  }

  .footer-logo,
  .footer-logo-wrapper img {
    max-width: min(260px, 80vw);
    margin-inline: auto;
  }
}

@media (max-width: 430px) {
  .container,
  .page-container,
  .content-wrapper {
    width: min(100% - 1rem, 100%);
  }

  .hero-logo,
  .hero-emblem,
  .hero-logo-wrapper img,
  .hero-emblem-wrapper img {
    max-width: min(260px, 82vw);
  }

  .card,
  .cosmic-card,
  .feature-card,
  .category-card,
  .process-card,
  .faq-card,
  .form-card,
  .dashboard-card,
  .submission-card {
    padding: 1rem;
  }

  .upload-zone,
  .photo-upload-zone,
  .file-upload-area {
    padding: 1rem;
  }
}

@media (max-width: 360px) {
  h1,
  .hero-title,
  .main-title {
    font-size: clamp(1.55rem, 10vw, 2.4rem);
  }

  .header-logo,
  .site-logo,
  .nav-logo img,
  .navbar-logo img {
    max-width: 145px;
  }

  .hero-logo,
  .hero-emblem,
  .hero-logo-wrapper img,
  .hero-emblem-wrapper img {
    max-width: min(230px, 80vw);
  }

  .btn,
  .button,
  .cta-button,
  button {
    padding-inline: 0.9rem;
    font-size: 0.95rem;
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .random-star {
    animation: none !important;
  }
}

/* Submission Photos & Admin Dashboard Images */
.submission-photos {
  margin-top: 1rem;
}

.submission-photos h4 {
  color: var(--metallic-gold);
  margin-bottom: 0.75rem;
}

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

.photo-thumb-button {
  appearance: none;
  border: 1px solid rgba(245, 197, 66, 0.35);
  background: rgba(3, 7, 18, 0.65);
  border-radius: 14px;
  padding: 0.35rem;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.08);
  width: 100%;
}

.photo-thumb-button:hover {
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.18),
    0 0 16px rgba(245, 197, 66, 0.10);
  transform: translateY(-2px);
}

.submission-photo-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.no-photos-message {
  color: rgba(255, 247, 230, 0.68);
  font-style: italic;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
}

.photo-modal-image {
  max-width: min(96vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(245, 197, 66, 0.45);
  box-shadow:
    0 0 34px rgba(56, 189, 248, 0.18),
    0 0 28px rgba(245, 197, 66, 0.12);
}

.photo-modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: auto;
  border: 1px solid rgba(245, 197, 66, 0.65);
  background: linear-gradient(180deg, #fff2a8 0%, #f5c542 45%, #b7791f 100%);
  color: #030712;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 800;
  cursor: pointer;
}
