/* ============================================================
   BioStack Auction — Styles
   Matches intactis.bio dark theme with #8075FF accent
   ============================================================ */

:root {
  --bg-body: #0d0d0d;
  --bg-section: #1a1a1a;
  --bg-card: #1c2128;
  --bg-input: #0d1117;
  --accent: #8075FF;
  --accent-hover: #9589FF;
  --accent-glow: rgba(128, 117, 255, 0.3);
  --accent-bg: rgba(128, 117, 255, 0.12);
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --border: #30363d;
  --border-light: #21262d;
  --success: #3fb950;
  --danger: #f85149;
  --warning: #d29922;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --transition: 0.25s ease;
  --nav-h: 96px;
  --container-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-bg);
  color: var(--accent-hover);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}

.nav-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo sized to the intactis.bio marketing header's MEASURED logo height (54px). */
.nav-logo img { height: 54px; }

/* Nav links right-aligned into a cluster like the marketing header:
   margin-left:auto pushes the links (and the button cluster that follows) to the
   right; margin-right is the measured 38px gap between the last link and the CTA;
   gap is the measured 58px spacing between marketing nav links. */
.nav-links {
  display: flex;
  gap: 58px;
  margin-left: auto;
  margin-right: 38px;
}
/* Nav link type matched to marketing's MEASURED values: 19.46px (~1.2rem),
   weight 500, letter-spacing ~0.19px (0.01em), color rgb(202,213,202). */
.nav-links a {
  color: #cad5ca;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav-links a:hover { color: #ffffff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  /* No min-height:100vh / flex-centering — that gave the hero its "own" height
     and the huge empty gap before the next section. Now it's content-height and
     its bottom padding matches .section (32px) so the rhythm is consistent. */
  padding: calc(var(--nav-h) + 40px) 0 32px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.7) 0%,
    rgba(13, 13, 13, 0.5) 40%,
    rgba(13, 13, 13, 0.85) 80%,
    #0d0d0d 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  /* Same box as .container so the hero lines up with every section below. */
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(128, 117, 255, 0.15);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 32px;
}

.hero-cta {
  margin-bottom: 60px;
}

.hero-screenshots {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
  perspective: 800px;
}

/* Hero video — lite YouTube embed (facade). On load we show only a local
   poster + play button (no YouTube iframe, no YouTube JS) so the page stays
   fast. The wrap reserves an explicit 16:9 box, so injecting the player on
   click causes NO layout shift (CLS). Accent styling matches the featured card. */
.hero-video-wrap {
  margin-top: 48px;
}
.hero-video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  background: #000;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}
.hero-video-facade:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.hero-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* subtle dim so the play button reads over any thumbnail */
.hero-video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease;
}
.hero-video-facade:hover::after,
.hero-video-facade:focus-visible::after {
  background: rgba(0, 0, 0, 0.12);
}
.hero-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid #fff;
  z-index: 1;
  transition: transform 0.15s ease, background 0.2s ease;
}
.hero-video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff;
}
.hero-video-facade:hover .hero-video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent);
}
/* injected player fills the reserved 16:9 box → no layout shift */
.hero-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}
.hero-video-facade.is-playing::after,
.hero-video-facade.is-playing .hero-video-play {
  display: none;
}

.screenshot-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  flex: 1 1 0;
  min-width: 0;
  transform: rotateY(-3deg);
}
.screenshot-card.featured {
  flex: 1.2 1 0;
  transform: rotateY(0deg) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}
.screenshot-card:last-child {
  transform: rotateY(3deg);
}
.screenshot-card:hover {
  transform: scale(1.03);
  border-color: var(--accent);
}
.screenshot-card img {
  display: block;
  width: 100%;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 32px 0;
}

.section-dark {
  background: var(--bg-section);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 0.03em;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   AUCTION WIDGET
   ============================================================ */

.auction-widget {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.auction-empty {
  text-align: center;
}
.auction-empty-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.auction-schedule {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Available slots calendar (limited alpha run) */
.slots-calendar {
  margin-top: 22px;
}
.slots-heading {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.slots-list {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.slot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 118px;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
}
.slot-dow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.slot-date {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 3px 0 2px;
}
.slot-time {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.slots-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.auction-lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: 1.02rem;
  line-height: 1.6;
}
.slots-list .slot-card {
  min-width: 152px;
}
.slot-card.is-open {
  border-top-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-bg);
}
.slot-card.is-upcoming {
  opacity: 0.8;
  border-top-color: var(--border);
}
.slot-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 8px;
}
.slot-lock {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.slot-bid-btn {
  margin-top: 14px;
  padding: 8px 22px;
  font-size: 0.9rem;
}

/* Wider slot cards with labeled rows (Bid Ends / Play Session / Bid-to-win) */
.slots-list { gap: 20px; }
.slots-list .slot-card {
  /* basis 240px so up to 3 sit side by side on desktop and wrap to stacked on
     mobile (rather than shrinking to unreadable slivers). */
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 420px;
  align-items: stretch;
  text-align: left;
  padding: 24px 28px;
}
.slot-badge {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.slot-card.is-upcoming .slot-badge { color: var(--text-muted); }
.slot-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--border-light);
}
.slot-row:first-of-type { border-top: none; }
.slot-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.slot-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}
.slot-bid {
  color: var(--accent);
  font-size: 1.2rem;
}
.slot-countdown {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.slot-card .slot-bid-btn { margin-top: 16px; width: 100%; }

/* Per-auction cell: stacks the (unchanged) card and, directly beneath it, the
   personal "winning bid" flag. The cell becomes the flex item in .slots-list so
   the flag always drops in under ITS card without disturbing neighbouring cards.
   Overrides the row-flex sizing that .slots-list .slot-card sets, so the card is
   full-width inside the column and keeps its natural height. */
.slots-list .slot-cell {
  display: flex;
  flex-direction: column;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 420px;
}
.slots-list .slot-cell > .slot-card {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
}

/* The pop-down flag itself. Hidden (display:none) until a logged-in bidder has a
   standing on the auction — so the logged-out / no-bid public view is unchanged. */
.bid-flag {
  margin-top: 10px;
  padding: 11px 16px;
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.3;
  border: 1px solid transparent;
  transform-origin: top center;
}
.bid-flag-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}
.bid-flag-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.82;
}
/* OPEN + top bidder: positive, but PROVISIONAL (the subtext says it isn't final). */
.bid-flag--leading {
  color: var(--success);
  background: rgba(63, 185, 80, 0.12);
  border-color: rgba(63, 185, 80, 0.4);
}
/* OPEN + not top: act-now amber. */
.bid-flag--outbid {
  color: var(--warning);
  background: rgba(210, 153, 34, 0.13);
  border-color: rgba(210, 153, 34, 0.4);
}
/* CLOSED + won: FINAL, celebratory — the only state that says "set for tonight". */
.bid-flag--won {
  color: var(--success);
  background: rgba(63, 185, 80, 0.18);
  border-color: rgba(63, 185, 80, 0.6);
  box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.25), 0 6px 22px rgba(63, 185, 80, 0.28);
}
/* Subtle drop-in when the flag first appears. */
.bid-flag.is-shown {
  animation: bidFlagDrop 0.32s ease-out both;
}
@keyframes bidFlagDrop {
  from { opacity: 0; transform: translateY(-8px) scaleY(0.92); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .bid-flag.is-shown { animation: none; }
}

.auction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.auction-date {
  font-size: 1.1rem;
  font-weight: 600;
}

.auction-badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auction-badge.open {
  background: rgba(63, 185, 80, 0.15);
  color: var(--success);
  border: 1px solid rgba(63, 185, 80, 0.3);
}
.auction-badge.closed {
  background: rgba(248, 81, 73, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 81, 73, 0.3);
}
.auction-badge.scheduled {
  background: rgba(210, 153, 34, 0.15);
  color: var(--warning);
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.auction-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.auction-stat {
  text-align: center;
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.auction-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.auction-stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.auction-stat-value.accent {
  color: var(--accent);
}

/* Bid Form */

.bid-form {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.bid-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bid-currency {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.bid-input {
  width: 160px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-align: center;
  outline: none;
  transition: border-color var(--transition);
}
.bid-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.bid-input::-webkit-inner-spin-button,
.bid-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bid-input { -moz-appearance: textfield; }

.bid-min-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.bid-submit {
  margin-bottom: 12px;
}

.bid-message {
  font-size: 0.9rem;
  min-height: 1.4em;
}
.bid-message.success { color: var(--success); }
.bid-message.error { color: var(--danger); }

.bid-signin,
.bid-payment,
.auction-closed-msg {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.bid-signin p,
.bid-payment p,
.auction-closed-msg p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ============================================================
   GAME FEATURES
   ============================================================ */

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}

.features-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.level-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.level-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.level-row:hover {
  background: var(--accent-bg);
}

.level-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  min-width: 24px;
}

.level-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.features-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.features-image img {
  display: block;
  width: 100%;
}
.features-image-caption {
  padding: 12px 16px;
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-accent, var(--accent));
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--card-accent, var(--accent));
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.about-logo {
  width: 200px;
  opacity: 0.8;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-body);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-secondary); }
/* Discreet admin/dev link — routes to the auth-gated /admin dashboard where
   auctions/gameplay sessions are created. Deliberately dim so it's unobtrusive
   to public visitors; the route itself requires an admin login to do anything. */
.footer-admin-link { opacity: 0.5; }

.footer-info {
  text-align: right;
}
.footer-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-info a {
  color: var(--text-secondary);
}

/* ============================================================
   MODALS
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Beta modal: keep the navbar visible and usable — the overlay starts below
   it, so someone without the password can just click away to another tab. */
#betaModal {
  top: var(--nav-h);
  z-index: 900; /* under the navbar (1000) so nav stays clickable */
  align-items: flex-start;
  padding-top: 96px;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }

.modal-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.modal-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.modal-tab:hover { color: var(--text-primary); }

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-form input[type="email"],
.modal-form input[type="password"],
.modal-form input[type="text"],
.modal-form textarea {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.modal-form textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}
.modal-form input:focus,
.modal-form textarea:focus {
  border-color: var(--accent);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
}

.modal-error {
  font-size: 0.85rem;
  color: var(--danger);
  min-height: 1.2em;
  text-align: center;
}

.modal-success {
  font-size: 0.9rem;
  color: var(--accent);
  text-align: center;
  margin: 0;
}

.stripe-card-element {
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* ============================================================
   USER MENU
   ============================================================ */

.user-menu {
  position: fixed;
  /* centered in the taller --nav-h:96px bar: (96 - 36 avatar) / 2 */
  top: 30px;
  right: 24px;
  z-index: 1001;
}

.user-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.user-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.user-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.user-dropdown button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font);
}
.user-dropdown button:hover {
  background: var(--bg-input);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Shorter bar on phones so the taller desktop nav doesn't eat the viewport. */
  :root { --nav-h: 72px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Scale the logo + nav buttons down for the narrow bar. */
  .nav-logo img { height: 38px; }
  .nav-actions .btn { padding: 9px 20px; font-size: 0.85rem; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .hero-title { font-size: 3.5rem; }

  .hero-screenshots {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .screenshot-card,
  .screenshot-card.featured {
    flex: 0 1 auto;
    max-width: 320px;
    transform: none;
  }

  .steps-grid { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }

  .features-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .features-image { position: static; }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-text .section-title { text-align: center; }
  .about-logo { margin: 0 auto; }

  .auction-stats { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-info { text-align: center; }

  .user-menu { top: 18px; right: 68px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .section { padding: 60px 0; }
  .auction-widget { padding: 24px 16px; }
  .modal { padding: 24px; }
}

/* ============================================================
   HERO NOTE + SECTION LEAD (hardware/donate additions)
   ============================================================ */
.hero-note {
  max-width: 1040px;
  margin: 10px auto 20px;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: normal;
}
.section-lead {
  max-width: 760px;
  margin: -8px auto 48px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-secondary);
}
.section-lead strong { color: var(--text-primary); }

/* ============================================================
   HARDWARE SHOWCASE ("Meet Your Opponent")
   ============================================================ */
.hardware-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.hardware-feature-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.hardware-feature-media img { display: block; width: 100%; border-radius: var(--radius-xl); }
.hardware-glow {
  position: absolute; inset: -2px; border-radius: var(--radius-xl);
  box-shadow: inset 0 0 80px var(--accent-glow); pointer-events: none;
}
.hardware-eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.hardware-feature-text h3 { font-size: 1.8rem; margin-bottom: 14px; }
.hardware-feature-text p { color: var(--text-secondary); margin-bottom: 20px; }
.hardware-points { list-style: none; display: grid; gap: 12px; }
.hardware-points li { position: relative; padding-left: 28px; color: var(--text-primary); }
.hardware-points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
.hardware-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hardware-shot {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
}
.hardware-shot img {
  display: block; width: 100%; height: 360px; object-fit: cover; object-position: center;
  transition: transform var(--transition);
}
.hardware-shot:hover img { transform: scale(1.04); }
.hardware-shot figcaption {
  padding: 14px 18px; font-size: 0.9rem; color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   DONATE / SUPPORT
   ============================================================ */
.donate-card {
  position: relative; max-width: var(--container-w); margin: 0 auto; text-align: center;
  padding: 56px 40px; border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(128,117,255,0.10), rgba(28,33,40,0.6));
  border: 1px solid var(--accent); box-shadow: 0 0 60px var(--accent-glow); overflow: hidden;
}
.donate-pulse {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none; animation: donatePulse 4s ease-in-out infinite;
}
@keyframes donatePulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.donate-title { position: relative; font-size: 2rem; margin-bottom: 18px; }
.donate-body { position: relative; color: var(--text-secondary); margin-bottom: 16px; }
.donate-body strong { color: var(--text-primary); }
.donate-btn { position: relative; margin: 14px 0 22px; }
.donate-disclaimer {
  position: relative; font-size: 0.82rem; color: var(--text-muted);
  max-width: 540px; margin: 0 auto;
}

@media (max-width: 820px) {
  .hardware-feature { grid-template-columns: 1fr; gap: 28px; }
  .hardware-gallery { grid-template-columns: 1fr; }
  .donate-card { padding: 40px 24px; }
  .donate-title { font-size: 1.6rem; }
}

/* Graceful placeholder for hardware photos until image files are added */
.img-pending { position: relative; min-height: 240px; background: var(--bg-card); }
.img-pending img { visibility: hidden; }
.img-pending::after {
  content: "Photo coming soon"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.04em;
}
.hardware-shot.img-pending figcaption { opacity: 0.5; }
