/* TOPMIX Connect & Win Microsite Styles */
:root {
  --ink: #141815;
  --muted: #667069;
  --line: #e2e6e3;
  --line-strong: #c8d0ca;
  --soft: #f6f8f6;
  --surface: #ffffff;
  --blue: #234c30;
  --blue-hover: #1b3d26;
  --blue-dark: #173220;
  --lime: #84cb3a;
  --lime-soft: #f0f8e9;
  --lime-dark: #1f3a14;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --max: 1180px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(23, 50, 32, 0.12);
  --shadow-lg: 0 20px 40px -8px rgba(23, 50, 32, 0.18);

  /* Semantic Form tokens */
  --form-page-bg: #f6f8f6;
  --form-card-bg: #ffffff;
  --form-field-border: #e2e6e3;
  --form-field-border-focus: #234c30;
  --form-heading-color: #141815;
  --form-body-text: #667069;
  --form-input-text: #141815;
  --form-label-color: #667069;
  --form-mandatory-empty: #dc2626;
  --form-mandatory-filled: #667069;
  --form-error-text: #dc2626;
  --form-remove-icon: #dc2626;
  --form-toast-text: #2f5fa8;
  --form-link-color: #234c30;
  --form-link-hover: #1b3d26;
  --form-button-enabled-bg: #84cb3a;
  --form-button-enabled-text: #173220;
  --form-button-disabled-bg: #c8d0ca;
  --form-button-disabled-text: #667069;
  --form-button-disabled-opacity: 0.5;
  --radius-pill: 999px;

  /* Mode selector and tile tokens */
  --mode-border: #E4E6E3;
  --mode-active-border: #1F4D2B;
  --mode-active-bg: #F1F8EB;
  --icon-tile-bg: #F1F3F0;
  --icon-tile-border: #7AC943;
  --icon-tile-color: #1F4D2B;
  --badge-rec-color: #173220;
  --shadow-toast: 0 4px 12px rgba(220, 38, 38, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Site Header */
.site-header {
  height: 74px;
  background: #fff;
  border-bottom: 1px solid #ececec;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .inner {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.header-cta {
  justify-self: end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.campaign-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--lime-soft);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(132, 203, 58, 0.3);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

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

.header-cta {
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}

.header-cta:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  background: radial-gradient(120% 90% at 80% 20%, #285a36 0%, #1f4a2c 55%, #1a3f25 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
}

.hero:before {
  content: "";
  position: absolute;
  right: -180px;
  top: -60px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero:after {
  content: "";
  position: absolute;
  right: -60px;
  top: 260px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.inner {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

.hero .inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #e4efe6;
  margin-bottom: 22px;
}

.eyebrow i {
  display: inline-block;
  width: 28px;
  height: 3px;
  background: #7fcf3f;
  border-radius: 2px;
}

.eyebrow .year {
  font-weight: 400;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero h1 span {
  display: inline-block;
  color: #7fcf3f;
}

/* CJK glyphs fill the full em box, so the tight Latin leading makes lines touch */
html[lang="zh-Hans"] .hero h1 {
  line-height: 1.12;
}

.hero .lead {
  max-width: 540px;
  font-size: 18px;
  color: #e4efe6;
  margin: 28px 0 0;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero .lead b,
.hero .lead strong {
  color: #b5f085;
  font-weight: 700;
}

.campaign-period-badge {
  margin-top: 36px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.period-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(127, 207, 63, 0.14);
  border: 1px solid rgba(127, 207, 63, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.period-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.period-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #b5f085;
}

.period-date {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  padding: 14px 26px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--lime);
  color: #162a10;
  box-shadow: 0 4px 14px rgba(132, 203, 58, 0.4);
}

.btn.primary:hover {
  background: #95dc48;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 203, 58, 0.5);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Reward card on hero */
.hero-prize {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.reward-card {
  width: 360px;
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.reward-card .small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 800;
}

.reward-card .amount {
  font-size: 54px;
  line-height: 1;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.05em;
  margin: 8px 0;
}

.reward-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 800;
}

.reward-card .prize-list {
  border-top: 1px solid #e3e6e2;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
}

.reward-card .prize-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}

.reward-card .prize-row span {
  color: #5c645e;
}

.reward-card .prize-row strong {
  font-weight: 700;
  color: #5c645e;
  text-align: right;
  white-space: nowrap;
}

.ticket {
  position: absolute;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  line-height: 1.2;
  z-index: 3;
}

.ticket.one {
  left: 0;
  top: 0;
  transform: rotate(-8deg);
  border-left: 4px solid var(--blue);
}

.ticket.two {
  right: 0;
  bottom: 0;
  transform: rotate(6deg);
  background: var(--lime);
  color: #173220;
  border-left: 4px solid #173220;
}

/* Quickfacts */
.quickfacts {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.quickfacts .inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  text-align: left;
}

.fact:first-child {
  border-left: 1px solid var(--line);
}

.fact b {
  display: block;
  font-size: 24px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--blue);
}

.fact span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Section commons */
.section {
  padding: 84px 0;
}

.section.soft {
  background: var(--soft);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 20px 72px;
  align-items: start;
  margin-bottom: 44px;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #224a2f;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(40px, 5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
  font-weight: 800;
  color: #141414;
}

.section-head p {
  margin: 0;
  color: #4a524c;
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* How to participate */
.steps-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.step-card {
  background: #fff;
  border: 1px solid #e3e6e2;
  border-radius: 10px;
  padding: 26px 22px 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.step-card .num {
  font-size: 14px;
  font-weight: 800;
  color: #224a2f;
  background: #eef7e6;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-bottom: 22px;
}

.step-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #141414;
}

.step-card p {
  font-size: 13px;
  color: #5c645e;
  margin: 0;
  line-height: 1.55;
}

/* Token Calculator */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.calc {
  background: #1d3a27;
  color: #fff;
  padding: 34px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.calc h3 {
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 800;
}

.calc p.calc-desc,
.calc p {
  color: #b7d1be;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
}

.calc-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  flex: 1;
}

.calc-input-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.calc-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8eb397;
  margin-bottom: 8px;
}

.input-wrap {
  display: flex;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.22);
  align-items: baseline;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.input-wrap span {
  font-size: clamp(24px, 5.5vw, 36px);
  font-weight: 900;
  color: var(--lime);
  margin-right: 10px;
  line-height: 1;
}

.input-wrap input {
  flex: 1;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--lime);
  font-size: clamp(24px, 5.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  caret-color: var(--lime);
}

.calc-hint {
  font-size: 13.5px;
  color: #b7d1be;
  margin: 0;
  line-height: 1.4;
}

.calc-hint-val {
  color: var(--lime);
  font-weight: 800;
}

.calc-token-card {
  width: 200px;
  min-width: 170px;
  background: rgba(48, 81, 56, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  text-align: center;
  flex-shrink: 0;
  padding: 30px;
}

.calc-token-num {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--lime);
  margin-bottom: 4px;
}

.calc-token-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .calc-body {
    flex-direction: column;
    gap: 00px;
  }

  .calc-token-card {
    width: 100%;
    padding: 18px 16px;
  }
}


.rule-card {
  border: 1px solid var(--line);
  padding: 34px;
  background: #fff;
  border-radius: var(--radius);
}

.rule-card h3 {
  font-size: 22px;
  margin: 0 0 20px;
  font-weight: 800;
}

.dual-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.role {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
  background: var(--soft);
}

.role strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
}

.role span {
  font-size: 12px;
  color: var(--muted);
}

.connector {
  font-weight: 800;
  font-size: 22px;
  color: var(--lime);
  text-align: center;
}

.dual-note {
  background: var(--lime-soft);
  border-left: 3px solid var(--lime);
  padding: 14px 16px;
  margin-top: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Rewards Schedule Showcase */
.rewards-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 72px;
  margin-top: 40px;
  align-items: stretch;
}

/* Left: Monthly Draw Column */
.rewards-monthly-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.monthly-draw-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 0 0 0 20px;
}

.monthly-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #5c645e;
  margin-bottom: 4px;
}

.monthly-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #224a2f;
  margin: 0;
}

.monthly-summary-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #2a302c;
  padding-left: 20px;
  border-left: 1px solid #d5dad4;
}

.monthly-summary-list b {
  font-weight: 700;
}

.monthly-summary-total {
  font-weight: 700;
  color: #224a2f;
  font-size: 14px;
}

/* 2x2 Monthly Grid */
.monthly-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  flex: 1;
}

.monthly-card {
  background: #fff;
  border: 1px solid #e3e6e2;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.monthly-card:has(.badge-running)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #7fcf3f;
}

.monthly-card-top {
  padding: 20px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.monthly-card-month {
  font-size: 16px;
  font-weight: 700;
  color: #141414;
}

.badge-running {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #14331d;
  padding: 4px 8px;
  border-radius: 999px;
  background: #7fcf3f;
  line-height: 1;
}

.badge-ended,
.badge-upcoming {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4a524c;
  border: 1px solid #d5dad4;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1;
}

.monthly-card-desc {
  padding: 14px 20px 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4a524c;
  text-wrap: pretty;
  flex: 1;
}

.monthly-card-footer {
  margin: 20px 20px 20px;
  padding-top: 20px;
  border-top: 1px solid #e3e6e2;
  font-size: 13px;
  color: #5c645e;
}

.monthly-card-footer .draw-label {
  color: #5c645e;
}

.monthly-card-footer strong {
  color: rgb(20, 20, 20);
  font-weight: 700;
}

/* Right: Campaign Finale Grand Prize Card */
.rewards-finale-card {
  background: #224a2f;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 28px -14px rgba(34, 74, 47, 0.5);
  align-self: center;
  box-sizing: border-box;
}

.finale-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.finale-badge {
  background: #7fcf3f;
  color: #14331d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border-radius: 3px;
  line-height: 1.2;
}

.finale-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  position: relative;
  background: #fbeeee;
  text-decoration: none;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.finale-image-wrap:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.finale-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.finale-image-wrap:hover .finale-img {
  transform: scale(1.015);
}

.finale-zoom-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 42, 22, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.finale-image-wrap:hover .finale-zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Image Lightbox Modal */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 15, 0.84);
  backdrop-filter: blur(8px);
  animation: lbFadeIn 0.2s ease;
}

.image-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lbScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox-img {
  max-width: min(100%, 960px);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  object-fit: contain;
  display: block;
}

.image-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #141414;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.image-lightbox-close:hover {
  background: #f4f6f3;
  transform: scale(1.08);
}

.image-lightbox-toolbar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.image-lightbox-raw-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.image-lightbox-raw-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lbScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.finale-amount {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

.finale-desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #dbe9df;
  max-width: 420px;
  text-wrap: pretty;
}

.finale-prizes-box {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 6px 20px;
}

.finale-prize-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 14px;
}

.finale-prize-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.finale-prize-row strong {
  font-weight: 700;
  color: #ffffff;
}

.finale-prize-row.highlight span {
  font-size: 14px;
  font-weight: 700;
  color: #a8e27a;
}

.finale-prize-row.highlight strong {
  font-size: 14px;
  font-weight: 700;
  color: #a8e27a;
}

/* Bottom Bar */
.rewards-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  gap: 16px;
}

.rewards-bottom-text {
  font-size: 13.5px;
  color: #4b5563;
  margin: 0;
  font-weight: 500;
}

.btn-rewards-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #7fcf3f;
  color: #14331d;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(127, 207, 63, 0.4);
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-rewards-submit:hover {
  background: #72bd37;
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .rewards-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .monthly-draw-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

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

  .rewards-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .btn-rewards-submit {
    width: 100%;
    text-align: center;
  }
}

/* Legacy prize-grid classes for fallback */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.month {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.month-top {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--soft);
}

.month-top b {
  font-size: 16px;
  font-weight: 800;
}

.month-top span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.month-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.big-number {
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.04em;
}

.month p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 20px;
}

.mini-prizes {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.mini {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.mini strong {
  font-weight: 800;
  color: var(--ink);
}

.grand {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-md);
}

.grand .month-top {
  background: var(--blue);
  color: #fff;
  border: 0;
}

.grand .month-top span {
  color: #d6e8d2;
}

.grand-badge {
  display: inline-block;
  background: var(--lime);
  color: #173220;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

/* Next draws countdown */
.next-draws-section { padding: 80px 0; }
.next-draws-countdown {
  background: #ffffff;
  padding: 56px 24px;
}

.next-draws-countdown {
  background: #ffffff;
  border: 1px solid #e3e6e2;
  border-radius: 12px;
  padding: 34px 24px 30px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-variant-numeric: tabular-nums;
}

.next-draws-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: #141414;
  margin: 8px 0 20px;
}

.next-draws-subtitle .nowrap { white-space: nowrap; }

.next-draws-announcement {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.countdown-digits-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.countdown-unit-box {
  background: #f4f6f3;
  border: 1px solid #e3e6e2;
  border-radius: 6px;
  padding: 12px 10px 10px;
  min-width: 72px;
  text-align: center;
}

.countdown-val {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: #224a2f;
  display: block;
}

.countdown-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5c645e;
  margin-top: 8px;
  display: block;
}

.countdown-colon {
  font-size: 22px;
  font-weight: 700;
  color: #c7cdc8;
}

.countdown-announcement {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #224a2f;
  margin-top: 24px;
}

.countdown-offline-notice {
  font-size: 12px;
  color: var(--danger);
  margin-top: 12px;
}

.next-draws-dock { display: none; }
.countdown-auto-close { display: none; }

/* Desktop: countdown card floats top-right, just below the site header.
   The close button adds html.countdown-docked, which returns it to its place in the page. */
@media (min-width: 951px) {
  html:not(.countdown-docked) { scroll-padding-top: 300px; }
  html:not(.countdown-docked) .next-draws-section { padding: 0; }
  html:not(.countdown-docked) .next-draws-countdown {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 35;
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 14px 18px;
    border-color: rgba(23, 33, 26, 0.08);
    box-shadow:
      0 28px 60px -10px rgba(23, 33, 26, 0.42),
      0 10px 24px rgba(23, 33, 26, 0.2),
      0 0 0 1px rgba(23, 33, 26, 0.06);
  }
  html:not(.countdown-docked) .next-draws-subtitle { margin-bottom: 16px; }
  html:not(.countdown-docked) .next-draws-dock {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  html:not(.countdown-docked) .next-draws-dock svg { display: block; }
  html:not(.countdown-docked) .next-draws-dock:hover { background: var(--soft); color: var(--ink); }
  html:not(.countdown-docked) .next-draws-dock:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
  html:not(.countdown-docked) .countdown-auto-close {
    display: block;
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
  }
}

/* ================================================================ */
/* 5-STEP GUIDED SUBMISSION FORM WIZARD                             */
/* ================================================================ */
.wizard-section {
  padding: 80px 0;
  background: var(--form-page-bg);
}

.wizard-container {
  background: var(--form-card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 980px;
  margin: auto;
  position: relative;
}

/* Wizard Header / Step Progress */
.wizard-header {
  position: sticky;
  top: 74px;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  border-top-left-radius: calc(var(--radius-lg) - 1px);
  border-top-right-radius: calc(var(--radius-lg) - 1px);
  padding: 24px 32px 20px;
}

.wizard-header-top {
  margin-bottom: 20px;
}

.wizard-title-group {
  width: 100%;
}

.wizard-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.wizard-title-group h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.wizard-title-group p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.mode-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-badge.returning {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

/* Step tracker */
.step-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.step-tracker:before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 18px;
  height: 2px;
  background: var(--line);
  z-index: 1;
}

.step-tracker-bar {
  position: absolute;
  left: 24px;
  top: 18px;
  height: 2px;
  background: var(--lime);
  z-index: 2;
  transition: width 0.3s ease;
  width: 0%;
}

.step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}

.step-node:hover .step-dot {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(35, 76, 48, 0.18);
}

.step-node.active {
  cursor: default;
}

.step-node.active:hover .step-dot {
  transform: none;
  box-shadow: 0 0 0 4px var(--lime-soft);
}

.step-node.completed:hover .step-dot {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(122, 201, 67, 0.4);
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  transition: all 0.25s ease;
}

.step-node.active .step-dot {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 4px var(--lime-soft);
}

.step-node.completed .step-dot {
  background: var(--lime);
  border-color: var(--lime);
  color: #173220;
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.step-node.active .step-label {
  color: var(--blue);
  font-weight: 800;
}

.step-node.completed .step-label {
  color: var(--ink);
}

/* Step Card Content */
.step-content-body {
  padding: 36px 36px 40px;
  min-height: 460px;
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
}

.step-intro {
  margin-bottom: 28px;
}

.step-intro h4 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.step-intro p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Forms and fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.col-span-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2b332d;
}

.form-control {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--line);
  background: #ffffff;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  transition: all 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 76, 48, 0.12);
}

.form-control.disabled,
.form-control:disabled {
  background: #f4f6f4;
  color: #717d74;
  cursor: not-allowed;
}

.input-with-prefix {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  transition: all 0.2s;
}

.input-with-prefix:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 76, 48, 0.12);
}

.input-prefix {
  background: #f0f4f0;
  padding: 13px 14px;
  font-weight: 700;
  font-size: 14px;
  color: #334437;
  border-right: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 4px;
}

.input-with-prefix input {
  border: 0;
  padding: 13px 16px;
  font-size: 16px;
  flex: 1;
  outline: none;
}

/* Step 1 Phone Input Row & Inline Continue Button */
.phone-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.phone-input-row .input-with-prefix {
  flex: 0 1 320px;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border: 1px solid #e3e6e2;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-row .input-with-prefix:focus-within {
  border-color: #224a2f;
  box-shadow: 0 0 0 3px rgba(34, 74, 47, 0.12);
}

.phone-input-row .input-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #f4f6f3;
  border-right: 1px solid #e3e6e2;
  font-size: 13px;
  font-weight: 700;
  color: #2a302c;
  flex-shrink: 0;
}

.phone-input-row .input-with-prefix input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  outline: none;
  padding: 0 12px;
  font-family: inherit;
  font-size: 15px;
  color: #141414;
  background: transparent;
}

.btn-step1-continue {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: #224a2f;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(34, 74, 47, 0.7);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-step1-continue:hover {
  background: #1a3a25;
}

.btn-step1-continue:active {
  transform: translateY(1px);
}

/* Info Alert */
.info-box {
  background: #f8faf7;
  border: 1px solid #dde2dc;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

#newMemberBox.info-box {
  background: #F0F5EE;
  border: 1px solid #C8DEC6;
  border-radius: 12px;
  padding: 18px 20px;
}

#newMemberBox .info-box-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: #1F4D2B;
}

#newMemberBox h5 {
  font-size: 14px;
  font-weight: 800;
  color: #1F4D2B;
}

#newMemberBox p {
  font-size: 13px;
  line-height: 1.55;
  color: #334237;
}

.info-box-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F4D2B;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 20px;
  line-height: 1;
}

.info-box-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.info-box h5 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #1F4D2B;
}

.info-box p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

/* Step 1 Returning card */
.returning-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 20px;
  display: none;
}

.returning-card.show {
  display: block;
}

.returning-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.returning-badge-icon {
  width: 32px;
  height: 32px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
}

.returning-card h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #14532d;
}

.returning-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #166534;
  line-height: 1.5;
}

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

/* Step 2 OCR Switcher */
.entry-choice-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.choice-tab {
  border: 2px solid var(--line);
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  text-align: left;
}

.choice-tab:hover {
  border-color: var(--line-strong);
}

.choice-tab.active {
  border-color: var(--blue);
  background: var(--lime-soft);
}

.choice-tab-icon {
  font-size: 26px;
}

.choice-tab-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

.choice-tab-desc {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* Name card upload box */
.card-upload-box {
  border: 1.5px dashed #7AC943;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.card-upload-box:hover {
  border-color: #7AC943;
  background: #FBFDF9;
}

.card-upload-box.drag-over {
  border: 2px solid #234C30;
  background: #f0fdf4;
  box-shadow: inset 0 0 0 2px rgba(122, 201, 67, 0.35);
}

.card-upload-box.drag-over .icon-tile-round {
  transform: scale(1.1);
  border-color: #234C30;
  background: #dcfce7;
  color: #234C30;
}

.card-upload-box .icon {
  margin-bottom: 8px;
}

.card-upload-box strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 4px;
}

.card-upload-box span {
  font-size: 13px;
  color: var(--muted);
}

@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

.card-upload-box.shimmer-effect {
  background: #f8fbf8 linear-gradient(to right, #f8fbf8 8%, #e0ece2 18%, #f8fbf8 33%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-color: #9bc6a4;
  pointer-events: none;
}

.card-upload-box img.preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: none;
}

.card-previews-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.card-preview-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid #7AC943;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.card-preview-thumb img {
  max-height: 110px;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.card-preview-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(31, 77, 43, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.15s, background 0.15s;
}

.card-preview-remove:hover {
  background: #b91c1c;
  transform: scale(1.1);
}

.card-add-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px dashed var(--primary);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.card-add-more-btn:hover {
  background: #f0fdf4;
  border-color: #166534;
}

.ocr-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lime);
  color: #173220;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  margin-top: 12px;
}

/* Step 3: Network Trades Card (Point 4) */
.network-trades-card {
  background: #fafbf9;
  border: 1px solid #dde2dc;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 32px;
  box-sizing: border-box;
}

.network-trades-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.network-trades-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.network-trades-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.network-trades-grid,
.trade-pills {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
  row-gap: 16px;
  align-items: center;
}

.network-trade-item,
.trade-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  user-select: none;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  transition: color 0.15s ease;
}

.network-trade-item:hover,
.trade-pill-label:hover {
  color: var(--blue);
}

.network-trade-item input[type="checkbox"],
.trade-pill-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  margin: 0;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.network-trade-item input[type="checkbox"]::before,
.trade-pill-label input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.15s ease-in-out;
}

.network-trade-item input[type="checkbox"]:checked,
.trade-pill-label input[type="checkbox"]:checked {
  background-color: #1F4D2B;
  border-color: #1F4D2B;
}

.network-trade-item input[type="checkbox"]:checked::before,
.trade-pill-label input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.network-trade-item:has(input:checked),
.trade-pill-label:has(input:checked) {
  color: var(--ink);
  font-weight: 600;
  background: transparent;
}

/* Step 3: Other Trade Input (Point 6) */
.network-other-trade-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  width: 100%;
  box-sizing: border-box;
  animation: fadeInOtherTrade 0.2s ease-in-out;
}

.network-other-trade-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.network-other-trade-wrap .form-control {
  width: 100%;
  font-size: 13.5px;
  padding: 9px 13px;
  background-color: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.network-other-trade-wrap .form-control:focus {
  border-color: #1F4D2B;
  box-shadow: 0 0 0 3px rgba(31, 77, 43, 0.12);
  outline: none;
}

@keyframes fadeInOtherTrade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Partner Section Header & Tips */
.partner-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.partner-tips-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  max-width: 280px;
  flex-shrink: 0;
}

.partner-row select.form-control,
.partner-row input.form-control,
.project-card select.form-control,
.project-card input.form-control {
  width: 100%;
  box-sizing: border-box;
}

/* Partner Rows */
.partners-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.partner-row {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: #fff;
  display: grid;
  grid-template-columns: 36px 1.2fr 1.6fr 1.2fr 36px;
  gap: 14px;
  align-items: center;
  transition: all 0.2s;
}

.partner-row:hover {
  border-color: #b7c7bb;
  box-shadow: var(--shadow-sm);
}

.partner-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.partner-delete-btn {
  background: transparent;
  border: 0;
  color: #999;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: all 0.2s;
}

.partner-delete-btn:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.partner-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

/* Step 4: Projects & Invoices */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.project-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 36px 2fr 1.4fr 36px;
  gap: 14px;
  align-items: center;
}

.project-card .num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--lime-soft);
  color: #173220;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 13px;
}

/* Total Token Live Banner */
.live-token-banner {
  background: linear-gradient(135deg, #1f422b 0%, #152d1d 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.live-token-amount {
  font-size: 36px;
  font-weight: 900;
  color: var(--lime);
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
}

.live-token-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
}

.live-token-badge .count {
  font-size: 42px;
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
}

.live-token-badge small {
  color: #d1e5d6;
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

/* Upload */
.upload-group {
  border: 1.5px dashed var(--form-field-border);
  border-radius: var(--radius-sm);
  background: var(--form-card-bg);
  transition: border-color .15s;
  overflow: hidden;
}

.upload-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.upload-trigger input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-trigger .cta {
  background: var(--blue);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.uploaded-heading {
  padding: 8px 16px 0;
  border-top: 1.5px solid var(--form-field-border);
  font-size: 12px;
  font-style: italic;
  color: var(--form-body-text);
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--form-input-text);
  border-bottom: 1px solid var(--line);
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row .remove {
  cursor: pointer;
  color: var(--form-remove-icon);
  font-style: normal;
  font-weight: 700;
  background: none;
  border: none;
  padding: 4px;
  font-size: 14px;
}

/* Step 5 Review Card */
.review-summary-box {
  background: var(--soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 24px;
}

.review-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.review-section:first-child {
  padding-top: 0;
}

.review-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.review-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-section-title .edit-link {
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  text-transform: none;
  font-size: 12px;
  font-weight: 700;
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
  padding: 5px 0;
}

.review-row span {
  color: var(--muted);
  flex-shrink: 0;
}

.review-row strong {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

/* Declarations Card Component */
.declarations-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  margin: 24px 0 28px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.declarations-header {
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  row-gap: 4px;
  column-gap: 16px;
  border-bottom: 1px solid #eef0ee;
  background: #fbfbf9;
}

.declarations-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
}

.declarations-subtitle {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 13.5px;
  color: #6b7280;
  font-weight: 500;
  display: block;
}

.declarations-agree-all-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  background: #ffffff;
  border: 1.5px solid #b8d4ba;
  color: #1c492c;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.declarations-agree-all-btn:hover {
  background: #f0f7f1;
  border-color: #1c492c;
  color: #1c492c;
}

.declarations-agree-all-btn:active {
  transform: scale(0.98);
}

.declarations-list {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.declaration-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f3f2;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.declaration-item:last-child {
  border-bottom: 0;
}

.declaration-item:hover {
  background: #fafbfa;
}

.declaration-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #a4a4a4;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease-in-out;
}

.declaration-item input[type="checkbox"]:hover {
  border-color: #6b7280;
}

.declaration-item input[type="checkbox"]:checked {
  background-color: #1c492c;
  border-color: #1c492c;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

.declaration-item input[type="checkbox"]:focus-visible {
  outline: 2px solid #84cb3a;
  outline-offset: 2px;
}

.declaration-item span {
  font-size: 14px;
  line-height: 1.55;
  color: #1f2937;
}

.declaration-item a {
  color: #1c492c;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.declaration-item a:hover {
  color: #143821;
}

/* Turnstile Box */
.turnstile-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  margin-bottom: 20px;
}

.turnstile-hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--form-error-text);
  text-align: center;
  margin: 6px 0 0;
}

/* Wizard Footer Navigation */
.wizard-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 20px 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.wizard-footer .prev {
  margin-right: auto;
}

.wizard-btn {
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  transition: all 0.2s;
}

.wizard-btn.prev {
  background: var(--soft);
  color: #333;
  border: 1.5px solid var(--line);
}

.wizard-btn.prev:hover {
  background: #e9edea;
}

.wizard-btn.next {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(35, 76, 48, 0.25);
}

.wizard-btn.next:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.wizard-btn.skip {
  background: transparent;
  color: var(--muted);
  border: 0;
  text-decoration: underline;
  padding: 8px 14px;
}

.wizard-btn.skip:hover {
  color: var(--ink);
}

/* Success Card */
.success-screen {
  text-align: center;
  padding: 60px 30px;
}

.success-circle {
  width: 76px;
  height: 76px;
  background: var(--lime);
  color: #173220;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(132, 203, 58, 0.35);
}

.success-screen h2 {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--ink);
}

.success-ref {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.success-tokens {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 8px;
}

.success-next {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

/* FAQ Accordion */
.faqs {
  max-width: 900px;
  margin: auto;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq:last-child {
  border-bottom: 1px solid var(--line);
}

.faq button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
}

.faq button span {
  font-size: 22px;
  color: var(--blue);
}

.faq .answer {
  display: none;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq.open .answer {
  display: block;
}

/* Modal backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px 24px;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: -0.01em;
}

.modal-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 auto 24px;
  text-align: center;
  max-width: 380px;
}

.modal-text a {
  color: #1c492c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-text a:hover {
  color: #143821;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.modal-actions #ackConfirmBtn {
  margin: 0 auto;
  padding: 13px 32px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 9999px;
  min-width: 200px;
  justify-content: center;
  text-align: center;
}

.modal-actions #ackCancelBtn,
.modal-actions .modal-cancel {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.modal-actions #ackCancelBtn:hover,
.modal-actions .modal-cancel:hover {
  color: #111827;
  background: #f3f4f6;
}

.modal-submitting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
}

.modal-submitting[hidden] {
  display: none !important;
}

.submit-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid #e6f2d5;
  border-top-color: #1c492c;
  border-right-color: #84cc16;
  animation: submit-spin 0.8s linear infinite;
  margin: 0 auto 18px;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(23, 50, 32, 0.25);
  border-top-color: #173220;
  animation: submit-spin 0.75s linear infinite;
  vertical-align: -3px;
  margin-right: 6px;
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
.footer {
  background: #17211a;
  color: #fff;
  padding: 60px 0 40px;
}

.footer .top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.footer h3 {
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 900;
}

.footer p {
  font-size: 13px;
  color: #a4b3a8;
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d1e2d6;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-wa-link .wa-icon {
  width: 18px;
  height: 18px;
  fill: #25d366;
  flex-shrink: 0;
}

.footer-wa-link:hover {
  color: var(--lime);
  transform: translateY(-1px);
}

.footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  color: #cfded3;
}

.footer .links a {
  white-space: nowrap;
}

.footer .links a:hover {
  color: var(--lime);
}

.footer-privacy ul {
  list-style: disc;
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
  font-weight: 400;
  color: #a4b3a8;
}

.footer-privacy li {
  margin-bottom: 6px;
}

.footer-privacy li::marker {
  color: var(--lime);
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 11px;
  color: #88998d;
  display: flex;
  justify-content: space-between;
}

[hidden] {
  display: none !important;
}

.error-text {
  font-size: 12px;
  color: var(--danger);
  margin: 4px 0 0;
}

.asterisk {
  color: var(--form-mandatory-empty);
}

.asterisk.filled {
  color: var(--form-mandatory-filled);
}

/* Responsive */
@media (max-width: 950px) {
  .hero .inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 20px 0;
  }

  .reward-card {
    width: min(360px, 92%);
  }

  .quickfacts .inner,
  .prize-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calc-wrap {
    grid-template-columns: 1fr;
  }

  .partner-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .partner-num {
    display: none;
  }

  .partner-delete-btn {
    grid-column: span 2;
    justify-self: end;
  }

  .project-card {
    grid-template-columns: 1fr 1fr;
  }

  .project-card .num {
    display: none;
  }

  .project-card .del-proj-btn {
    grid-column: span 2;
    justify-self: end;
  }

  .live-token-banner {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .col-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  .site-header .inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .nav {
    display: none;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-logo {
    height: 34px;
  }

  .campaign-tag,
  .header-cta {
    height: 32px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .campaign-tag {
    font-size: 11px;
    padding: 0 10px;
  }

  .header-cta {
    padding: 0 14px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-prize {
    display: none;
  }

  .quickfacts .inner,
  .steps-overview,
  .prize-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fact:first-child {
    border-left: 0;
  }

  .fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .wizard-header-top {
    margin-bottom: 16px;
  }

  .wizard-title-row {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .wizard-title-group h3 {
    font-size: clamp(17px, 4.6vw, 20px);
    line-height: 1.25;
    margin: 0;
  }

  .mode-badge {
    font-size: 11px;
    padding: 4px 10px;
    white-space: nowrap;
    align-self: flex-end;
  }

  .wizard-title-group p {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .step-tracker {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    position: relative;
    padding-bottom: 4px;
    overflow-x: visible;
  }

  .step-tracker:before {
    display: block;
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    height: 2px;
    background: var(--line);
    z-index: 1;
  }

  .step-tracker-bar {
    display: block;
    position: absolute;
    left: 14px;
    top: 14px;
    height: 2px;
    background: var(--lime);
    z-index: 2;
    max-width: calc(100% - 28px);
    transition: width 0.3s ease;
  }

  .step-node {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .step-dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-label {
    font-size: 11px;
    text-align: center;
  }

  .wizard-header {
    padding: 16px 18px;
  }

  .step-content-body {
    padding: 24px 20px;
  }

  .wizard-footer {
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .wizard-footer .prev {
    order: 1;
    margin-right: 0;
    padding: 11px 16px;
    font-size: 13.5px;
    flex-shrink: 0;
  }

  .wizard-footer .next {
    order: 2;
    margin-left: auto;
    padding: 11px 18px;
    font-size: 13.5px;
    white-space: nowrap;
    justify-content: center;
  }

  .wizard-footer .skip {
    order: 3;
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: 4px;
    font-size: 13px;
    padding: 6px 10px;
    white-space: normal;
  }

  .returning-card .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .returning-card .actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    font-size: 13.5px;
  }

  .partner-section-header {
    flex-direction: column;
    gap: 10px;
  }

  .partner-tips-box {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .network-trades-card {
    padding: 16px;
    margin-bottom: 24px;
  }

  .network-trades-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
  }

  .network-trades-grid,
  .trade-pills {
    column-gap: 20px;
    row-gap: 12px;
  }

  .entry-choice-tabs {
    grid-template-columns: 1fr;
  }

  .partner-row,
  .project-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px;
  }

  .partner-row .partner-num,
  .project-card .num {
    display: none;
  }

  .partner-delete-btn,
  .project-card .del-proj-btn {
    grid-column: span 1;
    justify-self: end;
    font-size: 16px;
    padding: 4px 8px;
  }

  .partner-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
  }

  .partner-actions-bar .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    font-size: 13.5px;
    box-sizing: border-box;
  }

  .partner-actions-bar #partnerCountLabel {
    text-align: center;
    display: block;
  }

  .calc,
  .rule-card {
    padding: 24px 20px;
  }

  .dual-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .connector {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  .next-draws-section,
  .wizard-section {
    padding: 48px 0;
  }

  .next-draws-countdown {
    padding: 20px 14px;
  }

  .countdown-digits-row {
    gap: 6px;
  }

  .countdown-unit-box {
    min-width: 56px;
    padding: 10px 6px;
  }

  .countdown-val {
    font-size: 24px;
  }
  .review-summary-box {
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 14px;
  }

  .review-section {
    padding: 12px 0;
  }

  .review-section:first-child {
    padding-top: 0;
  }

  .review-section:last-child {
    padding-bottom: 0;
  }

  .review-section-title {
    margin-bottom: 8px;
    font-size: 11.5px;
  }

  .review-row {
    padding: 5px 0;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .review-row span {
    font-size: 13.5px;
    color: #4b5563;
  }

  .review-row strong {
    font-size: 13.5px;
  }

  .declarations-card {
    border-radius: 14px;
    margin: 20px 0;
  }

  .declarations-header {
    padding: 14px 16px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 6px;
    column-gap: 12px;
    align-items: center;
  }

  .declarations-title {
    grid-column: 1;
    grid-row: 1;
    font-size: 16px;
    margin: 0;
  }

  .declarations-agree-all-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    padding: 6px 14px;
    font-size: 12.5px;
  }

  .declarations-subtitle {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 12.5px;
    margin: 0;
    white-space: nowrap;
  }

  .declaration-item {
    padding: 14px 16px;
    gap: 12px;
  }

  .declaration-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .declaration-item span {
    font-size: 13px;
  }

  .footer .top,
  .legal {
    flex-direction: column;
    gap: 20px;
  }

  .footer .links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 12px 16px;
  }
}

@media (max-width: 359px) {
  .campaign-tag { display: none; }
}

@media (max-width: 360px) {
  .wizard-footer {
    padding: 12px;
    gap: 8px;
  }

  .wizard-footer .prev,
  .wizard-footer .next {
    padding: 10px 12px;
    font-size: 12.5px;
  }

  .declarations-subtitle {
    white-space: normal;
  }

  .review-summary-box {
    padding: 12px 14px;
  }

  .review-row {
    font-size: 12.5px;
    gap: 8px;
  }

  .review-row span,
  .review-row strong {
    font-size: 12.5px;
  }
}

/* ==========================================================================
   Connect & Win additions — blocks the prototype did not have.
   Tokens only: every colour, font and radius below is a var(). A raw hex here
   is a bug; add a semantic token to form-tokens.css instead.
   ========================================================================== */
.notice {
  font-size: 13px;
  line-height: 1.45;
  color: var(--form-error-text);
  border: 1.5px solid var(--form-error-text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 0 0 16px;
}

.notice.info {
  color: var(--form-toast-text);
  border-color: var(--form-toast-text);
}

.wizard-footer {
  border-bottom-left-radius: calc(var(--radius-lg) - 1px);
  border-bottom-right-radius: calc(var(--radius-lg) - 1px);
}

/* Custom Additions */
.entry-modes-container {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 24px;
}

.entry-mode-box {
  cursor: pointer;
  transition: all 0.2s;
}

.entry-mode-primary {
  flex: 1.5;
  border: 2px solid var(--mode-border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  box-sizing: border-box;
}

.entry-mode-primary.active {
  border: 2px solid var(--mode-active-border);
  background: var(--mode-active-bg);
}

.mode-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.mode-header-text {
  flex: 1;
  min-width: 0;
}

.mode-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.icon-tile-square {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--icon-tile-bg);
  border: 1.5px solid var(--icon-tile-border);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-tile-color);
  flex-shrink: 0;
}

.icon-tile-round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--icon-tile-bg);
  border: 1.5px solid var(--icon-tile-border);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-tile-color);
  margin: 0 auto 12px;
  flex-shrink: 0;
}

.info-box-icon.notice-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-tile-color);
  flex-shrink: 0;
  margin-top: 1px;
}

.mode-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}

.mode-badge-rec {
  background: var(--lime);
  color: var(--badge-rec-color);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.mode-desc {
  font-size: 13px;
  color: var(--muted);
}

.entry-mode-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  width: 24px;
}

.entry-mode-divider::before,
.entry-mode-divider::after {
  content: "";
  width: 1px;
  flex: 1;
  background-color: var(--line);
}

.entry-mode-secondary {
  flex: 1;
  border: 2px solid var(--mode-border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entry-mode-secondary:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.entry-mode-secondary.active {
  border: 2px solid var(--mode-active-border);
  background: var(--mode-active-bg);
}

@media (max-width: 680px) {
  .entry-modes-container {
    flex-direction: column;
  }

  .entry-mode-divider {
    flex-direction: row;
    width: 100%;
  }

  .entry-mode-divider::before,
  .entry-mode-divider::after {
    width: auto;
    height: 1px;
  }
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.toast {
  background: var(--surface);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-toast);
}

.toast-message {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: pre-line;
}

.error-text {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.35;
  font-weight: 500;
}

.error-text[hidden] {
  display: none !important;
}

.form-control.error,
input.form-control.error,
select.form-control.error,
.partner-comp.error,
.partner-type.error,
.proj-name.error,
.proj-amount.error {
  border-color: var(--danger) !important;
}

.form-control.error:focus,
input.form-control.error:focus,
select.form-control.error:focus,
.partner-comp.error:focus,
.partner-type.error:focus,
.proj-name.error:focus,
.proj-amount.error:focus {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
  outline: none !important;
}

.input-with-prefix.error,
.phone-input-row .input-with-prefix.error {
  border-color: var(--danger) !important;
}

.input-with-prefix.error:focus-within,
.phone-input-row .input-with-prefix.error:focus-within {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.card-upload-box.error {
  border-color: var(--danger) !important;
  background: #fef2f2 !important;
}

.declarations-card.error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

/* Terms & Conditions Section */
.tnc-section {
  background: #fff;
  border-top: 1px solid #e3e6e2;
  padding: 72px 0 88px;
}

.tnc-card {
  max-width: 900px;
  margin: 32px auto 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #F0F5EE;
  border: 1px solid #C8DEC6;
  border-radius: 12px;
  padding: 18px 20px;
  box-sizing: border-box;
}

.tnc-card-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: #1F4D2B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.tnc-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #141414;
}

.tnc-card-body {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #2a302c;
  text-wrap: pretty;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tnc-card-body .tnc-subhead {
  font-style: italic;
}

.tnc-card-body b,
.tnc-card-body strong {
  font-weight: 700;
}

.tnc-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.btn-tnc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: #7fcf3f;
  color: #14331d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(127, 207, 63, 0.4);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-tnc:hover {
  background: #72bd37;
}

.btn-tnc:active {
  transform: translateY(1px);
}

.tnc-period-note {
  font-size: 12px;
  color: #5c645e;
}

/* Terms & Conditions Section */
.tnc-section {
  background: #fff;
  border-top: 1px solid #e3e6e2;
  padding: 72px 0 88px;
}

.tnc-card {
  max-width: 900px;
  margin: 32px auto 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #F0F5EE;
  border: 1px solid #C8DEC6;
  border-radius: 12px;
  padding: 18px 20px;
  box-sizing: border-box;
}

.tnc-card-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: #1F4D2B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.tnc-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #141414;
}

.tnc-card-body {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #2a302c;
  text-wrap: pretty;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tnc-card-body .tnc-subhead {
  font-style: italic;
}

.tnc-card-body b,
.tnc-card-body strong {
  font-weight: 700;
}

.tnc-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.btn-tnc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: #7fcf3f;
  color: #14331d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(127, 207, 63, 0.4);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-tnc:hover {
  background: #72bd37;
}

.btn-tnc:active {
  transform: translateY(1px);
}

.tnc-period-note {
  font-size: 12px;
  color: #5c645e;
}

/* ==========================================================================
   Standalone Terms & Conditions page (win-and-connect-tnc.html)
   Styled to match the PDF document — white background, forest-green headings.
   ========================================================================== */

/* Forest green from the PDF document (~#1A5C32). Scoped to avoid polluting
   the main site palette. */
.legal-page { --tnc-green: #1A5C32; background: #ffffff; }

/* ── Masthead ── */
.legal-masthead {
  background: #ffffff;
  border-top: 4px solid var(--tnc-green);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 20px 28px;
  text-align: center;
}
.legal-masthead-inner { max-width: 760px; margin: 0 auto; }
.legal-logo {
  height: 48px; object-fit: contain;
  background: none; padding: 0; border-radius: 0; margin-bottom: 20px;
}
.legal-eyebrow {
  font-family: var(--font-label); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
  color: var(--tnc-green); margin: 0 0 6px;
}
.legal-title {
  font-family: var(--font-body); font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800; color: var(--tnc-green); margin: 0; letter-spacing: -0.01em;
}
.legal-back {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-label); font-size: 13px; font-weight: 700;
  color: var(--tnc-green); text-decoration: none; opacity: 0.7;
}
.legal-back:hover { opacity: 1; }

/* ── Body wrapper ── */
.legal-body { max-width: 760px; margin: 0 auto; padding: 36px 20px 56px; }

/* ── Summary facts table (Campaign Period / Organiser / Campaign) ── */
.legal-facts {
  border: 1px solid #c8d8cc; border-radius: 4px;
  overflow: hidden; margin: 0 0 28px;
}
.legal-fact {
  display: grid; grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #ddeade;
}
.legal-fact:last-child { border-bottom: none; }
.legal-fact dt {
  background: #eef6f0;
  padding: 11px 16px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700;
  color: var(--tnc-green);
  border-right: 1px solid #c8d8cc;
}
.legal-fact dd {
  margin: 0; padding: 11px 16px;
  font-family: var(--font-body); font-size: 14px;
  font-weight: 500; color: var(--neutral-800);
  background: #ffffff;
}

/* ── Intro paragraphs (outside any .legal-clause) ── */
.legal-lede {
  font-family: var(--font-body); font-size: 14px; line-height: var(--lh-relaxed);
  font-weight: 700; color: var(--neutral-800); margin: 0 0 6px;
}
.legal-body > p {
  font-family: var(--font-body); font-size: 14px; line-height: var(--lh-relaxed);
  color: var(--neutral-700); margin: 0 0 32px;
}

/* ── Clause sections ── */
.legal-clause { margin-bottom: 28px; }
.legal-clause h2 {
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  color: var(--tnc-green); margin: 0 0 10px;
  padding-bottom: 6px;
}
.legal-clause h3 {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700;
  color: var(--neutral-800); margin: 20px 0 8px; letter-spacing: 0;
}
.legal-clause p, .legal-clause li {
  font-family: var(--font-body); font-size: 14px; line-height: var(--lh-relaxed);
  color: var(--neutral-700);
}
.legal-clause p { margin: 0 0 12px; }
.legal-clause ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.legal-clause li { margin-bottom: 5px; }
.legal-clause li::marker { color: var(--tnc-green); }
.legal-clause strong { color: var(--neutral-900); font-weight: 700; }

/* ── Callout boxes ── */
.legal-callout {
  background: #eef6f0; border: 1px solid #a3c8ae;
  border-radius: 4px; padding: 14px 16px; margin: 0 0 14px;
}
.legal-callout.warning {
  background: #fff5f5; border-color: #e57373;
}
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout p {
  font-family: var(--font-body); font-size: 13.5px;
  line-height: var(--lh-relaxed); color: var(--neutral-700);
  margin: 0 0 8px;
}
.legal-callout-title {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  color: var(--tnc-green); margin: 0 0 8px; letter-spacing: 0;
  text-transform: none;
}
.legal-callout.warning .legal-callout-title {
  color: #b71c1c;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ── Lucky Draw Tokens table ── */
.legal-table {
  width: 100%; border-collapse: collapse; margin: 0 0 16px;
  font-family: var(--font-body); font-size: 14px;
  border: 1px solid #c8d8cc;
}
.legal-table th {
  background: var(--tnc-green); color: #ffffff;
  font-weight: 700; font-size: 13px;
  padding: 11px 20px; text-align: center;
  border: 1px solid var(--tnc-green);
}
.legal-table td {
  padding: 10px 20px; text-align: center;
  color: var(--neutral-700); font-weight: 500;
  border: 1px solid #ddeade;
}
.legal-table tbody tr:nth-child(odd)  { background: #f7fbf8; }
.legal-table tbody tr:nth-child(even) { background: #ffffff; }

/* ── Back button ── */
.legal-return { text-align: center; padding: 32px 0 16px; }
.legal-return .hero-btn { display: inline-flex; }

.tnc-cta { text-align: center; }
.tnc-cta .hero-btn { display: inline-flex; }
.tnc-cta-note {
  font-family: var(--font-body); font-size: 12.5px; font-style: italic;
  color: var(--neutral-500); margin: 14px 0 0;
}

@media (max-width: 480px) {
  .legal-body { padding: 24px 16px 40px; }
  .legal-fact { grid-template-columns: 1fr; }
  .legal-fact dt { border-right: none; border-bottom: 1px solid #c8d8cc; }
}

@media print {
  .legal-page { background: #ffffff; }
  .legal-masthead { border-top: none; border-bottom: 1px solid #c8d8cc; padding-bottom: 16px; }
  .legal-back, .legal-return { display: none; }
  .legal-clause { page-break-inside: avoid; }
}

/* Language switcher (issue-75). Sits left of the header CTA on every width. */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch[hidden] {
  display: none;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

/* Chinese wraps between any two characters, so keep the header pills on one line. */
.header-cta {
  white-space: nowrap;
}

.lang-switch button:not(.active):hover {
  color: var(--blue);
}

.lang-switch button.active {
  background: var(--blue);
  color: var(--surface);
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}

@media (max-width: 680px) {
  .header-actions {
    gap: 8px;
  }

  .lang-switch button {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* Below ~460px the logo, campaign pill, switcher and CTA cannot share one row.
   The pill repeats the hero eyebrow directly beneath it, so it is the one to go. */
@media (max-width: 459px) {
  .campaign-tag {
    display: none;
  }
}
