/* The Bolts page (#/bolts, pages.bolts in app.js): your wallet, Bolts packs and Boltworks Club.
   Red and white like the rest of the site. Uses the colour and shadow tokens from polish.css. */
.bw { display: flex; flex-direction: column; gap: 26px; }
.bw h2 { margin: 0; }

/* Notes at the top (thanks for paying, Bitcoin on its way). */
.bw-note { margin: 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--panel2); border: 1px solid var(--line); }
.bw-note-ok { background: #ecfdf3; border-color: #a6e9c0; color: #0f6b35; }

/* The wallet: a big red card with your balance. */
.bolts-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 28px; align-items: center;
  padding: 32px; border-radius: var(--r-lg); color: #fff; box-shadow: var(--sh-lg);
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(135deg, #ef2b37 0%, var(--gb-red-2) 62%, #7d0b13 100%); }
.bolts-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; opacity: .1; pointer-events: none;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%); background: radial-gradient(circle, transparent 28%, #fff 29%); }
.bolts-hero-copy { position: relative; z-index: 1; min-width: 0; }
.bolts-eyebrow, .bw-label, .boltworks-kicker { font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.bolts-eyebrow { color: #ffd2d5; }
.bolts-hero h1 { color: #fff; font-size: 44px; margin: 4px 0 6px; }
.bolts-hero-copy > p { margin: 0; max-width: 460px; font-size: 14px; color: #ffe4e6; }
.bw-earn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.bw-earn > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.bw-earn span { font-size: 18px; line-height: 1.2; }
.bw-earn b { font-size: 13px; }
.bw-earn small { font-size: 11px; color: #ffdfe1; line-height: 1.35; }
.bolts-balance { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-md);
  background: var(--panel); color: var(--text); box-shadow: var(--sh-lg); }
.bw-label { color: var(--muted); }
.bw-balance { display: flex; align-items: center; gap: 10px; font-family: var(--gb-display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.bw-balance .bolt { width: 34px; height: 34px; flex: none; }
.bw-claim { width: 100%; padding: 11px 14px !important; font-size: 14px !important; }
.bw-claimed { color: var(--green); font-weight: 600; }

/* Section headings with the payment options on the right. */
.bw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.bw-head p { margin: 4px 0 0; }
.bw-payways { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--muted); }
.bw-chip { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 11px; }
.bw-chip-btc { color: #b45f06; border-color: #f7c27a; background: #fff8ee; }
.bw-fine { margin: 12px 0 0; }

/* Bolts packs: cards with a coin pile, the price button and Bitcoin under it. */
.bw-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.bw-pack { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 26px 14px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); box-shadow: var(--sh-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.bw-pack:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.bw-pack-hot { border: 2px solid var(--gb-red); box-shadow: var(--sh-md), var(--ring); }
.bw-pack-best { border-color: #f2b705; }
.bw-ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 11px; border-radius: 999px;
  background: var(--gb-red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; box-shadow: var(--sh-sm); }
.bw-pack-best .bw-ribbon { background: #f2b705; color: #3d2a00; }
.bw-pile { position: relative; display: block; width: 52px; height: 74px; margin-bottom: 8px; }
.bw-pile svg { position: absolute; left: 4px; width: 44px; height: 44px; bottom: calc(var(--i) * 7px); filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .18)); }
.bw-pack-n { font-family: var(--gb-display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.bw-pack-unit { font-size: 12px; color: var(--muted); font-weight: 600; }
.bw-bonus { margin: 8px 0 12px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #0f6b35; background: #e3f7eb; }
.bw-bonus-none { color: var(--muted); background: var(--panel2); }
.bw-buy, .bw-price { display: block; width: 100%; padding: 11px 12px; border-radius: 999px; text-align: center; font-size: 15px; font-weight: 800; }
.bw-buy { background: linear-gradient(180deg, #ef2b37, var(--gb-red-2)); color: #fff !important; text-decoration: none !important;
  box-shadow: 0 2px 0 #7d0b13, var(--sh-sm); transition: filter .15s, transform .15s; }
.bw-buy:hover { filter: brightness(1.07); transform: translateY(-1px); }
.bw-buy:active { transform: translateY(1px); box-shadow: 0 1px 0 #7d0b13; }
.bw-buy:focus-visible, .bolts-btc:focus-visible, .club-year:focus-visible { outline: none; box-shadow: var(--ring); }
.bw-price { background: var(--panel2); color: var(--text); }
.bolts-btc { margin-top: 8px; width: 100%; padding: 8px 10px; border-radius: 999px; border: 1px solid #f7c27a; background: #fff8ee; color: #9a4d00;
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.bolts-btc:hover { background: #ffedd2; border-color: #f7931a; }

/* Boltworks Club: three plan cards. */
.club-member { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--gb-red-soft); border: 1px solid rgba(225, 29, 42, .25); font-size: 14px; }
.club-member > div { flex: 1; min-width: 180px; }
.club-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; align-items: stretch; }
.club-tier { --tier: #2478e6; --tier-soft: rgba(36, 120, 230, .1); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--tier-soft), transparent 120px), var(--panel); box-shadow: var(--sh-sm); }
.club-tier::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--tier); }
.club-tier-tbc { --tier: #f2a900; --tier-soft: rgba(242, 169, 0, .13); }
.club-tier-obc { --tier: #e11d2a; --tier-soft: rgba(225, 29, 42, .1); }
.club-tier-hot { border: 2px solid var(--gb-red); box-shadow: var(--sh-md), var(--ring); }
.club-tier-mine { border: 2px solid var(--green); }
.club-tier-mine .bw-ribbon { background: var(--green); }
.club-tier-head { display: flex; align-items: center; gap: 12px; }
.club-tier-head strong { display: block; font-family: var(--gb-display); font-size: 16px; line-height: 1.2; }
.club-tier-head small { color: var(--muted); font-weight: 800; letter-spacing: 1px; font-size: 11px; }
.club-price { display: flex; align-items: baseline; gap: 6px; }
.club-price strong { font-family: var(--gb-display); font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.club-price span { color: var(--muted); font-weight: 600; }
.club-perks { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.club-perks li { position: relative; padding-left: 26px; font-size: 13px; }
.club-perks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff; background: var(--tier); }
.club-tier-tbc .club-perks li::before { color: #3d2a00; }
.club-tier-buy { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.club-year { display: block; text-align: center; padding: 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--text) !important; font-weight: 600; font-size: 12px; }
.club-year:hover { border-color: var(--line-strong); background: var(--panel2); text-decoration: none !important; }
.club-year b { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #e3f7eb; color: #0f6b35; font-size: 11px; }

/* Redeem a code and your history, side by side. */
.bw-lower { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.bw-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--sh-xs); min-width: 0; }
.bw-card h2 { margin-bottom: 6px; }
.bw-redeem-form { display: flex; gap: 8px; margin-top: 10px; }
.bw-redeem-form input { flex: 1; min-width: 0; text-transform: uppercase; }
.bw-redeem-form input::placeholder { text-transform: none; }
.bolts-history { max-height: 420px; overflow: auto; margin-top: 8px; }
.bolts-history > div { align-items: center; gap: 10px; }
.bw-amt { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Phones and small windows. */
@media (max-width: 860px) {
  .club-tiers { grid-template-columns: 1fr; }
  .bw-lower { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .bw { gap: 20px; }
  .bolts-hero { grid-template-columns: 1fr; padding: 22px 18px; gap: 18px; border-radius: var(--r-md); }
  .bolts-hero h1 { font-size: 34px; }
  .bw-earn { grid-template-columns: 1fr; gap: 6px; margin-top: 16px; }
  .bw-earn > div { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 9px 11px; }
  .bw-earn span { grid-row: span 2; align-self: center; }
  .bw-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .bw-pack:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .bw-pack { padding: 22px 10px 12px; }
  .bw-pack-n { font-size: 24px; }
  .bw-pile { transform: scale(.85); margin-bottom: 2px; }
  .bw-buy { font-size: 14px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bw-note-ok { background: #0f2a1b; border-color: #1f5a37; color: #9be8b8; }
  :root:not([data-theme="light"]) .bw-bonus, :root:not([data-theme="light"]) .club-year b { background: #12301f; color: #8fe2ae; }
  :root:not([data-theme="light"]) .bw-chip-btc, :root:not([data-theme="light"]) .bolts-btc { background: #2b1d0b; border-color: #7a4a10; color: #ffc174; }
  :root:not([data-theme="light"]) .bolts-btc:hover { background: #3a260c; border-color: #f7931a; }
  :root:not([data-theme="light"]) .bolts-hero { box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .7); }
}
