/* =============================================
   THE PEOPLE'S UNION — Global Styles
   Protest editorial: high-contrast, bold, urgent
   ============================================= */

:root {
  --red:   #e8001e;
  --black: #0a0a0a;
  --white: #f5f5f0;
  --gray:  #1a1a1a;
  --mid:   #333;
  --accent:#ffcc00;
  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== UTILITY ===== */
.hidden { display: none !important; }

/* ===== NAV ===== */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: var(--black);
  border-bottom: 3px solid var(--red);
}
.nav-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.btn-kiosk-nav {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.btn-kiosk-nav:hover { background: #ff1a35; }

/* ===== HERO ===== */
#hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(232,0,30,0.04) 40px,
      rgba(232,0,30,0.04) 42px
    ),
    var(--black);
  border-bottom: 6px solid var(--red);
}
.hero-inner { max-width: 800px; }
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 1rem;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #ccc;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn-primary:hover { background: #ff1a35; text-decoration: none; transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--white); color: var(--black); }

/* ===== COUNTERS ===== */
#counters {
  background: var(--gray);
  padding: 3rem 2rem;
  border-bottom: 4px solid var(--red);
}
.counter-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.counter-card {
  text-align: center;
  min-width: 220px;
}
.counter-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #aaa;
  margin-bottom: 0.5rem;
}
.counter-goal {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.25rem;
  letter-spacing: 0.1em;
}
.odometer {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.05em;
  min-width: 300px;
  display: inline-block;
}
.counter-num {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
}
.live-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Milestone bar */
.milestone-bar-wrap { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.milestone-bar-track {
  position: relative;
  background: #333;
  height: 18px;
  border-radius: 9px;
  overflow: visible;
  margin-bottom: 2.5rem;
}
.milestone-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--accent));
  border-radius: 9px;
  width: 0%;
  transition: width 1s ease;
}
.milestone-markers {
  position: absolute;
  top: 26px;
  left: 0;
  width: 100%;
}
.mm {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: #aaa;
  text-align: center;
  white-space: nowrap;
}

/* ===== PLEDGE FORM ===== */
#pledge {
  padding: 4rem 2rem;
  background: var(--black);
  border-bottom: 4px solid var(--red);
}
.section-inner { max-width: 640px; margin: 0 auto; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.section-sub { color: #aaa; margin-bottom: 2.5rem; }

.form-row { margin-bottom: 1rem; }
.input-wrap { display: flex; gap: 0.5rem; }
.input-wrap input { flex: 1; }

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  background: #111;
  border: 2px solid #444;
  color: var(--white);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: border-color 0.2s;
  outline: none;
}
input:focus { border-color: var(--red); }

#btn-alias {
  background: #222;
  color: #aaa;
  border: 2px solid #444;
  padding: 0 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all 0.2s;
}
#btn-alias:hover { border-color: var(--accent); color: var(--accent); }

.btn-submit { width: 100%; padding: 1.1rem; font-size: 1.1rem; }

.form-msg {
  font-size: 0.9rem;
  margin-top: 0.75rem;
  min-height: 1.4em;
}
.form-msg.error { color: var(--red); }
.form-msg.success { color: #4caf50; }

/* ===== STRIKE PASS ===== */
#strike-pass-section {
  padding: 3rem 2rem;
  background: var(--gray);
  border-bottom: 4px solid var(--accent);
  text-align: center;
}
.strike-pass {
  max-width: 500px;
  margin: 0 auto;
  border: 4px solid var(--accent);
  padding: 2.5rem;
  border-radius: 8px;
}
.pass-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.pass-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.pass-alias { color: #aaa; font-size: 1.1rem; margin-bottom: 0.5rem; }
.pass-msg { color: #ccc; margin-bottom: 1.5rem; }
.pass-share { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== STRATEGY ===== */
#strategy {
  padding: 4rem 2rem;
  background: var(--black);
  border-bottom: 4px solid var(--red);
}
#strategy .section-inner { max-width: 900px; }

.tier-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.tier-card {
  flex: 1;
  min-width: 260px;
  border: 3px solid;
  padding: 2rem;
  border-radius: var(--radius);
}
.tier1 { border-color: #555; background: #111; }
.tier2 { border-color: var(--red); background: #180008; }
.tier-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.tier-card ul { list-style: none; padding: 0; }
.tier-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #333;
  font-size: 0.9rem;
}
.tier-card li.highlight {
  color: var(--accent);
  font-weight: 700;
  border-color: #444;
}
.tier-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 2rem;
  color: #555;
}

.leaderless-box {
  border: 3px solid var(--accent);
  padding: 2rem;
  border-radius: var(--radius);
  background: #0d0d00;
}
.leaderless-box h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 1rem;
}
blockquote {
  font-style: italic;
  font-size: 1.05rem;
  color: #ddd;
  border-left: 4px solid var(--red);
  padding-left: 1.25rem;
  margin: 0 0 1rem;
  line-height: 1.7;
}

/* ===== MOBILIZER ===== */
#mobilizer {
  padding: 4rem 2rem;
  background: var(--gray);
}
#mobilizer .section-inner { max-width: 1000px; }

.mob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.mob-card {
  background: #111;
  border: 2px solid #333;
  padding: 1.75rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mob-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 900;
  font-style: italic;
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.5rem;
}
.mob-card input[type="text"] { font-size: 0.9rem; padding: 0.65rem 0.85rem; }
.mob-card label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: #aaa; }
.mob-card p { color: #aaa; font-size: 0.9rem; }

#qr-wrap { display: flex; justify-content: center; }
#qr-img { width: 160px; height: 160px; border: 4px solid var(--white); border-radius: 4px; }

/* ===== KIOSK OVERLAY ===== */
.kiosk-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.kiosk-overlay.hidden { display: none !important; }

.kiosk-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #333;
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
}
.kiosk-inner { max-width: 560px; width: 100%; }
.kiosk-headline {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.kiosk-sub { color: #aaa; margin-bottom: 1.5rem; font-size: 1.1rem; }
.kiosk-count {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

#kiosk-form { display: flex; flex-direction: column; gap: 0.85rem; }
#kiosk-form input { font-size: 1.2rem; padding: 1rem; }
.btn-kiosk-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 1.2rem;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.btn-kiosk-submit:hover { background: #ff1a35; }
.kiosk-msg { font-size: 1rem; min-height: 1.4em; }
.kiosk-msg.error { color: var(--red); }
.kiosk-msg.success { color: #4caf50; }

.kiosk-celebrate { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.kiosk-boom {
  font-family: var(--font-head);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  color: var(--accent);
  animation: boomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes boomIn {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.kiosk-pass-num {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
}
.kiosk-qr-img { width: 150px; height: 150px; border: 4px solid var(--white); border-radius: 4px; }

/* ===== CONFETTI CANVAS ===== */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 8888;
}

/* ===== DONATE BUTTON (nav) ===== */
.btn-donate-nav {
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
}
.btn-donate-nav:hover { background: #ffe033; transform: translateY(-1px); }

/* ===== DONATE MODAL ===== */
.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.88);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.donate-modal.hidden { display: none !important; }

.donate-modal-inner {
  background: #111;
  border: 3px solid var(--accent);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 640px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.donate-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #333;
  color: var(--white);
  border: none;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
}
.donate-close:hover { background: #555; }

.donate-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.donate-sub {
  color: #bbb;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.wallet-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }

.wallet-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
}

.wallet-chain {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
}

.wallet-addr {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  color: #ddd;
  word-break: break-all;
  background: none;
  border: none;
  padding: 0;
}

.btn-copy-addr {
  background: #333;
  color: var(--white);
  border: 1px solid #555;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all 0.15s;
}
.btn-copy-addr:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }
.btn-copy-addr.copied { background: #4caf50; border-color: #4caf50; color: #fff; }

.donate-note {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 560px) {
  .wallet-item { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .wallet-chain { grid-column: 1; grid-row: 1; }
  .wallet-addr  { grid-column: 1 / -1; grid-row: 2; font-size: 0.65rem; }
  .btn-copy-addr { grid-column: 2; grid-row: 1; }
}

/* ===== FOOTER ===== */
#main-footer {
  background: #050505;
  border-top: 3px solid #222;
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.8;
}
#main-footer strong { color: var(--white); }
.footer-legal { max-width: 700px; margin: 0.5rem auto 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  #main-nav { padding: 0.6rem 1rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links a { display: none; }
  .section-inner { max-width: 100%; }
  .tier-grid { flex-direction: column; }
  .tier-divider { display: none; }
  .pass-share { flex-direction: column; align-items: center; }
}
