.giveaway-hero { padding-top: 3rem; padding-bottom: 1rem; }
.hero-sub-wide { max-width: 640px; }
.hidden { display: none !important; }

.entry-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.entry-section h2 { text-align: center; margin-bottom: 0.5rem; }

/* Tighten the gap between the "Connect Discord" bar and the order-log
   list right below it — they read as one connected flow, not two
   separate page sections. */
#logged-out-state { padding-bottom: 1rem; }
#logged-out-state + section { padding-top: 1.25rem; }

.panel-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.center-panel { text-align: center; }
.panel-heading { margin-bottom: 0.5rem; }
.dev-login-link {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-align: center;
}
.dev-login-link:hover { color: var(--accent-gold); }

/* ---- How to enter: numbered step flow ---- */
.steps-flow {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 760px;
  margin: 2rem auto 0;
}
.steps-label {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  gap: 0.5rem;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  text-align: center;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  flex: none;
}
.step-label {
  font-size: 0.8rem;
  color: var(--text-primary);
  background: var(--bg-panel-raised);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  line-height: 1.3;
}
.step-label b { color: #fff; }

/* ---- Connect Discord bar (login gate) ---- */
.connect-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}
.connect-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.connect-bar-icon svg { width: 22px; height: 22px; color: var(--bg); }
.connect-bar-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.connect-bar-text strong { color: var(--text-primary); }

/* ---- Social checklist ---- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.check-icon {
  color: var(--text-muted);
  font-weight: 700;
  width: 1.2rem;
}
.check-item.verified .check-icon { color: var(--accent-green); }
.check-label { flex: 1; font-weight: 500; }
a.check-label:hover { color: var(--accent-gold); }
.check-status {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.check-item.verified .check-status,
.check-item.verified button {
  color: var(--accent-green);
  border-color: var(--accent-green);
  background: transparent;
  cursor: default;
}
.check-item.verified button:hover { transform: none; }

.status-banner {
  margin-top: 1.5rem;
  text-align: center;
  background: rgba(53, 196, 138, 0.12);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  border-radius: var(--radius);
  padding: 0.85rem;
  font-weight: 600;
}

/* ---- Order submission rows ("log a purchase to enter" list) ----
   Each firm is a collapsed row (logo + name + chevron) that expands
   in place to reveal the order-number field on click. */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.order-row {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.order-row-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.order-row-header img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.order-row-header .pick-name {
  font-weight: 600;
  flex: 1;
}
.order-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex: none;
  transition: transform 0.2s ease;
}
.order-row.expanded .order-chevron { transform: rotate(90deg); }
.order-expand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-height: 0;
  opacity: 0;
  padding: 0 1.1rem;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}
/* Always show .order-expand when it's directly in a center-panel (e.g., referral link box) */
.center-panel .order-expand {
  max-height: 100px;
  opacity: 1;
  padding: 0.75rem 0;
}
.order-row.expanded .order-expand {
  max-height: 90px;
  opacity: 1;
  padding: 0 1.1rem 1rem;
}
.order-expand .order-input { flex: 1; min-width: 140px; }
.order-expand .order-status { flex: none; }
.order-input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.order-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2em;
}
.order-status.pending { color: var(--accent-gold); }
.order-status.approved { color: var(--accent-green); }
.order-status.error { color: var(--accent-red); }

/* ---- Status table ---- */
.status-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.status-table th, .status-table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.status-table th {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.muted { color: var(--text-muted); }

@media (max-width: 700px) {
  .order-expand { flex-wrap: wrap; }
  .steps-row { flex-direction: column; gap: 1.25rem; }
  .steps-row::before { display: none; }
}
