/* ══════════════════════════════════════════════════════
   World Cup 2026 Simulator — style.css
   Refined, elegant — no emojis — flagcdn flags
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* World Cup palette */
  --wc-red:    #C8102E;   /* FIFA 2026 official red */
  --wc-green:  #00563F;   /* FIFA 2026 official green */
  --wc-gold:   #B8962E;   /* warm gold */
  --wc-navy:   #002147;

  /* Backgrounds */
  --bg:       #F4F5F7;
  --surface:  #FFFFFF;
  --surface2: #F0F2F6;
  --border:   #E0E4EE;
  --border2:  #CDD3E0;

  /* Text */
  --text:     #0E1320;
  --text2:    #4A5270;
  --muted:    #8A93B0;

  /* Semantic aliases */
  --red:       var(--wc-red);
  --red-bg:    #FDF2F4;
  --green:     var(--wc-green);
  --green-bg:  #F0F7F4;
  --gold:      var(--wc-gold);
  --gold-bg:   #FDFAF0;
  --blue-bg:   #EEF2FA;

  /* Bracket round palette */
  --r32-c:    var(--wc-green);
  --r16-c:    var(--wc-navy);
  --qf-c:     var(--wc-red);
  --sf-c:     #5B3FB5;
  --f-c:      var(--wc-gold);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(14,19,32,.06), 0 1px 2px rgba(14,19,32,.04);
  --shadow:    0 4px 14px rgba(14,19,32,.08), 0 1px 3px rgba(14,19,32,.04);
  --shadow-lg: 0 10px 32px rgba(14,19,32,.10);

  --radius:   10px;
  --radius-lg: 14px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Flag images from flagcdn ── */
.flag-img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  flex-shrink: 0;
}
.flag-fallback {
  display: inline-block;
  width: 20px; height: 15px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 2px;
  font-size: 8px; font-weight: 700;
  color: var(--muted);
  text-align: center; line-height: 15px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ════════════════════════════════
   ANNOUNCE BAR
════════════════════════════════ */
.announce-bar {
  background: var(--wc-navy);
  color: rgba(255,255,255,.8);
  text-align: center;
  padding: .4rem 1rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.announce-sep { opacity: .35; }

/* ════════════════════════════════
   HEADER
════════════════════════════════ */
header {
  background: var(--surface);
  border-bottom: 3px solid var(--wc-red);
  padding: 1rem 2.5rem;
  position: sticky;
  top: 0; z-index: 200;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1600px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.header-left { display: flex; align-items: center; gap: .9rem; }

.logo-icon {
  width: 40px; height: 40px;
  background: var(--wc-red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.header-text h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  letter-spacing: .07em; color: var(--text); line-height: 1;
}

.year-accent { color: var(--wc-red); }
.h1-light { color: var(--muted); font-size: .85em; letter-spacing: .05em; }

.header-sub {
  font-size: .63rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}

.header-right { display: flex; gap: 1.2rem; }

.header-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: .3rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  min-width: 60px;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; letter-spacing: .04em;
  color: var(--wc-red); line-height: 1;
}
.stat-label {
  font-size: .58rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}

/* ════════════════════════════════
   NAV TABS
════════════════════════════════ */
.nav-tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 67px; z-index: 190;
  box-shadow: 0 1px 6px rgba(14,19,32,.04);
}

.nav-inner {
  max-width: 1600px; margin: 0 auto;
  display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none; padding: 0 2.5rem;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-divider {
  width: 1px; height: 20px;
  background: var(--border2);
  margin: 0 .5rem;
  flex-shrink: 0;
}

.nav-tab {
  display: flex; align-items: center; gap: 6px;
  padding: .8rem 1.1rem;
  font-weight: 600; font-size: .82rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  color: var(--text2);
  transition: color .15s, border-color .15s;
  letter-spacing: .01em;
}
.nav-tab:hover { color: var(--text); }
.nav-tab.active {
  color: var(--wc-red);
  border-bottom-color: var(--wc-red);
}

.nav-tab-sec { color: var(--muted); font-size: .78rem; font-weight: 500; }
.nav-tab-sec.active { color: var(--wc-green); border-bottom-color: var(--wc-green); }
.nav-tab-sec:hover { color: var(--text2); }

/* ════════════════════════════════
   PAGES
════════════════════════════════ */
.page {
  display: none;
  padding: 2rem 2.5rem;
  max-width: 1600px;
  margin: 0 auto;
}
.page.active { display: block; animation: fadeUp .25s ease; }
.page-knockout-wide { max-width: 100%; padding: 2rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page Hero ── */
.page-hero {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1.5rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.page-eyebrow {
  font-size: .65rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--wc-red); margin-bottom: .3rem;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: .05em; color: var(--text); line-height: 1.05;
  margin-bottom: .4rem;
}

.page-subtitle {
  font-size: .83rem; color: var(--text2); max-width: 560px; line-height: 1.65;
}

/* ── Buttons ── */
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .58rem 1.4rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .81rem; font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer; transition: all .15s;
  border: 1.5px solid; border-radius: 8px;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--wc-red);
  border-color: var(--wc-red); color: #fff;
  box-shadow: 0 2px 8px rgba(200,16,46,.2);
}
.btn-primary:hover { background: #a80e27; box-shadow: 0 4px 14px rgba(200,16,46,.3); transform: translateY(-1px); }
.btn-primary:disabled {
  background: var(--border2); border-color: var(--border2); color: var(--muted);
  cursor: not-allowed; transform: none; box-shadow: none;
}

.btn-ghost {
  background: transparent; border-color: var(--border2); color: var(--text2);
}
.btn-ghost:hover { border-color: var(--text2); color: var(--text); background: var(--surface2); }

.btn-gold {
  background: transparent; border-color: var(--gold); color: var(--gold);
}
.btn-gold:hover { background: var(--gold-bg); }

.btn-sim {
  background: #5B3FB5;
  border-color: #5B3FB5; color: #fff;
  box-shadow: 0 2px 8px rgba(91,63,181,.2);
}
.btn-sim:hover { background: #4d35a0; box-shadow: 0 4px 14px rgba(91,63,181,.3); transform: translateY(-1px); }

.btn-export {
  background: var(--surface2); border-color: var(--border2); color: var(--text2);
}
.btn-export:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }

/* ════════════════════════════════
   GUIDE PILLS
════════════════════════════════ */
.guide-pills {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.guide-pill {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem;
  border-radius: 100px;
  font-size: .72rem; font-weight: 600;
  border: 1.5px solid;
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.guide-pill-gold   { background: var(--gold-bg); border-color: var(--gold); color: #7a5a00; }
.pill-gold-dot     { background: var(--gold); }
.guide-pill-silver { background: var(--surface2); border-color: var(--border2); color: var(--text2); }
.pill-silver-dot   { background: var(--muted); }
.guide-pill-bronze { background: #FFF7F0; border-color: #D4956A; color: #7A3F00; }
.pill-bronze-dot   { background: #D4956A; }
.guide-pill-out    { background: var(--red-bg); border-color: var(--wc-red); color: var(--wc-red); }
.pill-out-dot      { background: var(--wc-red); }

/* ════════════════════════════════
   GROUPS PAGE
════════════════════════════════ */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 14px;
}

.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.group-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.group-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--wc-red);
  padding: .8rem 1.2rem;
  display: flex; align-items: center; gap: .8rem;
}

.group-letter {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; line-height: 1;
  color: var(--wc-red);
  width: 28px; text-align: center;
}

.group-info strong {
  display: block; font-size: .86rem; font-weight: 700; color: var(--text);
}
.group-info span { font-size: .66rem; color: var(--muted); font-weight: 500; }

.team-list { padding: 0; }

.team-row {
  display: flex; align-items: center; gap: 9px;
  padding: .6rem 1.1rem;
  border-bottom: 1px solid var(--border);
  cursor: grab; user-select: none;
  transition: background .1s;
}
.team-row:last-child { border-bottom: none; }
.team-row:hover { background: var(--surface2); }
.team-row.dragging { opacity: .2; }
.team-row.drag-over {
  background: var(--green-bg);
  border-top: 2px solid rgba(0,86,63,.3);
}

.pos-badge {
  width: 20px; height: 20px; border-radius: 5px;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1.5px solid;
}
.pos-1 { background: var(--gold-bg); color: #7a5a00; border-color: var(--gold); }
.pos-2 { background: var(--surface2); color: var(--text2); border-color: var(--border2); }
.pos-3 { background: #FFF7F0; color: #7A3F00; border-color: #D4956A; }
.pos-4 { background: var(--red-bg); color: var(--wc-red); border-color: var(--wc-red); }

.team-name { font-size: .83rem; font-weight: 600; flex: 1; color: var(--text); }
.drag-handle { color: var(--border2); font-size: 16px; cursor: grab; line-height: 1; }

.group-status {
  padding: .5rem 1.1rem;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.group-status .adv   { font-size: .67rem; font-weight: 700; color: var(--wc-green); }
.group-status .third { font-size: .67rem; font-weight: 600; color: var(--muted); }

/* ════════════════════════════════
   INLINE BLOG TEASER
════════════════════════════════ */
.inline-blog-teaser {
  margin-top: 2rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.blog-teaser-label {
  font-size: .68rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .9rem;
}

.blog-teaser-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.blog-teaser-card {
  display: block; text-decoration: none;
  padding: .9rem 1.1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .15s; cursor: pointer;
}
.blog-teaser-card:hover {
  border-color: var(--wc-red);
  background: var(--red-bg);
  transform: translateY(-2px);
}

.btc-cat {
  font-size: .6rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--wc-red); margin-bottom: .35rem;
}
.btc-title {
  font-size: .81rem; font-weight: 600; color: var(--text); line-height: 1.4;
}

/* ════════════════════════════════
   THIRDS PAGE
════════════════════════════════ */
.thirds-rules-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--wc-green);
  border-radius: var(--radius-lg);
  margin-bottom: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.thirds-rules-header {
  background: var(--green-bg);
  border-bottom: 1px solid var(--border);
  padding: .8rem 1.3rem;
  font-size: .8rem; font-weight: 700; color: var(--wc-green);
  letter-spacing: .02em;
}

.thirds-rules-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
}

.thirds-rule-item {
  padding: 1rem 1.3rem;
  display: flex; gap: .8rem; align-items: flex-start;
  font-size: .79rem; color: var(--text2); line-height: 1.55;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.thirds-rule-item:nth-child(even) { border-right: none; }
.thirds-rule-item:nth-last-child(-n+2) { border-bottom: none; }
.thirds-rule-item strong { color: var(--text); }
.thirds-rule-item em { color: var(--wc-green); font-style: normal; font-weight: 700; }

.rule-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .95rem; letter-spacing: .04em;
  color: var(--wc-green); opacity: .45;
  flex-shrink: 0; width: 22px; text-align: right; padding-top: 1px;
}

.thirds-progress-wrap {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.2rem;
  padding: .85rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.thirds-progress-bar {
  flex: 1; height: 5px;
  background: var(--border);
  border-radius: 3px; overflow: hidden;
}
.thirds-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wc-green), var(--gold));
  border-radius: 3px; width: 0%;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

.thirds-count {
  font-size: .8rem; font-weight: 700;
  color: var(--gold); white-space: nowrap;
}

.thirds-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 9px;
}

.third-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  display: flex; align-items: center; gap: .85rem;
  cursor: pointer; transition: all .15s;
  box-shadow: var(--shadow-sm);
}
.third-card:hover {
  border-color: var(--wc-green);
  box-shadow: 0 2px 12px rgba(0,86,63,.1);
  transform: translateY(-1px);
}
.third-card.selected {
  border-color: var(--gold);
  background: var(--gold-bg);
  box-shadow: 0 2px 12px rgba(184,150,46,.12);
}

.third-card-info { flex: 1; min-width: 0; }
.third-card-name { font-size: .85rem; font-weight: 700; color: var(--text); }
.third-rank { font-size: .67rem; color: var(--muted); margin-top: 2px; font-weight: 500; }

.checkmark {
  width: 20px; height: 20px; border: 1.5px solid var(--border2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; flex-shrink: 0;
  color: transparent; transition: all .15s;
}
.third-card.selected .checkmark {
  background: var(--gold); border-color: var(--gold); color: #fff;
}

/* ════════════════════════════════
   KNOCKOUT BRACKET
════════════════════════════════ */
.ko-page-toolbar {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.bracket-scroll {
  overflow-x: auto; padding-bottom: 1.5rem;
  scrollbar-width: thin; scrollbar-color: var(--border2) transparent;
}
.bracket-scroll::-webkit-scrollbar { height: 4px; }
.bracket-scroll::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

.bracket-dual-layout {
  display: inline-flex;
  gap: 4px;
  min-width: max-content;
  align-items: stretch;
  padding: 4px;
}

.bracket-half { display: flex; gap: 2px; align-items: stretch; }
.bracket-half-right { flex-direction: row-reverse; }

.bracket-final-col {
  background: var(--surface);
  border: 1.5px solid rgba(184,150,46,.4);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.bracket-col {
  display: flex; flex-direction: column;
  min-width: 150px; max-width: 172px;
  flex: 1;
}

.bracket-col-title {
  font-size: .65rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  text-align: center; padding: .6rem .5rem;
  border-bottom: 2px solid;
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
  white-space: nowrap;
}

.bracket-col-r32 .bracket-col-title { color: var(--r32-c); border-color: var(--r32-c); background: var(--green-bg); }
.bracket-col-r16 .bracket-col-title { color: var(--r16-c); border-color: var(--r16-c); background: var(--blue-bg); }
.bracket-col-qf  .bracket-col-title { color: var(--qf-c);  border-color: var(--qf-c);  background: var(--red-bg); }
.bracket-col-sf  .bracket-col-title { color: var(--sf-c);  border-color: var(--sf-c);  background: #F4F0FF; }
.bracket-col-f   .bracket-col-title { color: var(--f-c);   border-color: var(--f-c);   background: var(--gold-bg); font-size: .72rem; }

.bracket-matches {
  display: flex; flex-direction: column;
  flex: 1; gap: 3px;
  padding: 3px;
  background: var(--surface2);
}

.bracket-match {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 68px;
  overflow: hidden;
  transition: box-shadow .12s;
  box-shadow: var(--shadow-sm);
}
.bracket-match:hover { box-shadow: var(--shadow); }

.bm-label {
  font-size: .56rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 3px 7px 2px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.bm-team {
  display: flex; align-items: center; gap: 6px;
  padding: .48rem .7rem; cursor: pointer;
  transition: background .1s;
  flex: 1; min-height: 26px;
}
.bm-team:hover:not(.bm-tbd):not(.bm-loser) { background: var(--red-bg); }

.bm-flag { width: 16px; flex-shrink: 0; display: flex; align-items: center; }
.bm-name {
  font-size: .75rem; font-weight: 600; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.bm-tick { font-size: .62rem; color: var(--wc-red); font-weight: 900; margin-left: auto; flex-shrink: 0; }

.bm-winner {
  background: var(--red-bg) !important;
  border-left: 3px solid var(--wc-red);
}
.bm-winner .bm-name { color: var(--wc-red); font-weight: 700; }

.bm-loser { opacity: .25; cursor: default; }
.bm-loser:hover { background: transparent !important; }
.bm-tbd { cursor: default; }
.bm-tbd .bm-name { color: var(--muted); font-style: italic; font-weight: 400; }

.bm-divider { height: 1px; background: var(--border); }

.bracket-final-col .bracket-col-title {
  background: var(--gold-bg);
  border-bottom: 2px solid var(--gold);
  color: var(--gold);
  font-size: .72rem; letter-spacing: .12em;
  padding: .8rem .8rem;
}
.bracket-final-col .bracket-matches {
  background: var(--gold-bg);
  flex: 1; justify-content: center;
}
.bracket-final-col .bracket-match {
  flex: 0 0 auto; min-height: 88px;
  border-color: rgba(184,150,46,.25);
  box-shadow: 0 2px 12px rgba(184,150,46,.1);
}
.bracket-final-col .bm-winner {
  background: var(--gold-bg) !important;
  border-left: 3px solid var(--gold);
}
.bracket-final-col .bm-winner .bm-name { color: var(--gold); }
.bracket-final-col .bm-name { font-size: .82rem; font-weight: 700; }
.bracket-final-col .bm-flag .flag-img { width: 20px; height: 15px; }
.bracket-final-col .bm-team:hover:not(.bm-tbd):not(.bm-loser) { background: var(--gold-bg); }
.bracket-final-col .bm-tick { color: var(--gold); }

.bracket-col-r32 .bracket-match { border-left: 2px solid rgba(0,86,63,.15); }
.bracket-col-r16 .bracket-match { border-left: 2px solid rgba(0,33,71,.15); }
.bracket-col-qf  .bracket-match { border-left: 2px solid rgba(200,16,46,.15); }
.bracket-col-sf  .bracket-match { border-left: 2px solid rgba(91,63,181,.15); }

#export-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.94);
  z-index: 999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
#export-overlay .export-spinner {
  width: 38px; height: 38px;
  border: 2.5px solid var(--border);
  border-top-color: var(--wc-red); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#export-overlay p {
  color: var(--text2); font-size: .76rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}

/* ════════════════════════════════
   CHAMPION PAGE
════════════════════════════════ */
.champion-placeholder {
  text-align: center; padding: 6rem 1rem; color: var(--muted);
}
.placeholder-icon {
  display: inline-flex; margin-bottom: 1.2rem; opacity: .2;
  color: var(--text2);
}
.champion-placeholder p { font-size: .84rem; letter-spacing: .04em; font-weight: 500; }

.champion-wrapper { max-width: 560px; margin: 0 auto; }

.champion-banner {
  background: linear-gradient(135deg, var(--surface) 0%, var(--gold-bg) 100%);
  border: 1.5px solid rgba(184,150,46,.3);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center; margin-bottom: 1.2rem;
  box-shadow: 0 8px 32px rgba(184,150,46,.1);
}

.champ-trophy-icon {
  display: inline-flex; color: var(--gold); margin-bottom: .6rem;
  opacity: .7;
}

.champ-flag-wrap {
  margin: 1rem 0 .8rem;
  display: flex; justify-content: center;
}
.champ-flag-wrap .flag-img {
  box-shadow: var(--shadow);
}

.champion-banner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem; letter-spacing: .08em;
  color: var(--gold); line-height: 1; margin-bottom: .4rem;
}
.champ-subtitle {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}

.champion-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════
   ARTICLE MODAL
════════════════════════════════ */
.article-modal {
  display: none;
  position: fixed; inset: 0; z-index: 500;
}
.article-modal.open { display: block; }

.article-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(14,19,32,.5);
  backdrop-filter: blur(4px);
}

.article-modal-inner {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: min(840px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 2.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}

.article-close-btn {
  display: inline-flex; align-items: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 7px; padding: .42rem .9rem;
  font-size: .76rem; font-weight: 700; color: var(--text2);
  cursor: pointer; transition: all .12s;
  margin-bottom: 1.6rem;
}
.article-close-btn:hover { background: var(--red-bg); border-color: var(--wc-red); color: var(--wc-red); }

.article-content { line-height: 1.8; }

.article-content .article-header {
  margin-bottom: 1.8rem; padding-bottom: 1.4rem; border-bottom: 1.5px solid var(--border);
}
.article-content .article-kicker {
  font-size: .65rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--wc-red); margin-bottom: .5rem;
  display: block;
}
.article-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  letter-spacing: .04em; line-height: 1.1;
  color: var(--text); margin-bottom: .7rem;
}
.article-content .article-meta {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  font-size: .73rem; color: var(--muted); font-weight: 500;
}
.article-content .article-meta span {
  display: flex; align-items: center; gap: .3rem;
}
.article-content .article-meta span + span::before {
  content: '·'; opacity: .4; margin-right: .3rem;
}

.article-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; letter-spacing: .04em;
  color: var(--text); margin: 1.8rem 0 .7rem;
  padding-bottom: .35rem; border-bottom: 1px solid var(--border);
}
.article-content h3 { font-size: .98rem; font-weight: 800; color: var(--text); margin: 1.4rem 0 .5rem; }
.article-content p { font-size: .9rem; color: var(--text2); margin-bottom: 1rem; }
.article-content p strong { color: var(--text); }
.article-content ul, .article-content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.article-content li { font-size: .9rem; color: var(--text2); margin-bottom: .45rem; }

.article-callout {
  background: var(--green-bg);
  border: 1px solid rgba(0,86,63,.15);
  border-left: 3px solid var(--wc-green);
  border-radius: 8px;
  padding: 1rem 1.3rem; margin: 1.2rem 0;
}
.article-callout p { margin: 0; color: var(--text); font-weight: 500; }

.article-data-table {
  width: 100%; border-collapse: collapse;
  margin: 1.2rem 0; font-size: .84rem;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.article-data-table th {
  background: var(--wc-red); color: #fff;
  padding: .65rem 1rem; font-size: .73rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-align: left;
}
.article-data-table td {
  padding: .6rem 1rem; border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.article-data-table tr:last-child td { border-bottom: none; }
.article-data-table tr:nth-child(even) td { background: var(--surface2); }
.article-data-table td strong { color: var(--text); }

.article-verdict {
  background: var(--gold-bg);
  border: 1.5px solid rgba(184,150,46,.25);
  border-radius: 9px; padding: 1.2rem 1.5rem; margin: 1.6rem 0;
}
.article-verdict-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .5rem;
}
.article-verdict p { color: var(--text); font-weight: 600; margin: 0; }

/* ════════════════════════════════
   BLOG PAGE
════════════════════════════════ */
.page-blog { max-width: 1200px; }

.blog-featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--wc-red);
  border-radius: var(--radius-lg);
  margin-bottom: 1.8rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-featured-badge {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: .55rem 1.4rem;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

.blog-featured-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
}

.blog-featured-content {
  padding: 1.8rem 2rem;
  border-right: 1px solid var(--border);
}

.blog-meta { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.blog-date { font-size: .7rem; color: var(--muted); font-weight: 500; }

.blog-cat {
  font-size: .6rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 100px;
}
.blog-cat-analysis { background: var(--red-bg); color: var(--wc-red); }
.blog-cat-history  { background: var(--blue-bg); color: var(--wc-navy); }
.blog-cat-guide    { background: var(--green-bg); color: var(--wc-green); }

.blog-featured-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem; letter-spacing: .04em;
  color: var(--text); line-height: 1.15; margin-bottom: .9rem;
}

.blog-featured-excerpt {
  font-size: .86rem; color: var(--text2); line-height: 1.7; margin-bottom: 1.4rem;
}

.blog-featured-points {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 9px; overflow: hidden;
}

.bfp-item { background: var(--surface2); padding: .85rem .9rem; text-align: center; }
.bfp-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem; letter-spacing: .04em;
  color: var(--wc-red); display: block; line-height: 1;
}
.bfp-label { font-size: .63rem; font-weight: 600; color: var(--muted); line-height: 1.3; margin-top: 3px; }

.blog-featured-sidebar {
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: .9rem;
  background: var(--surface2);
}

.blog-key-fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: .9rem 1.1rem;
}
.bkf-title {
  font-size: .67rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--wc-green); margin-bottom: .4rem;
}
.bkf-text { font-size: .78rem; color: var(--text2); line-height: 1.6; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 14px;
  margin-bottom: 1.8rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: .7rem;
  box-shadow: var(--shadow-sm);
  transition: all .15s; cursor: pointer;
}
.blog-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--wc-red);
  transform: translateY(-2px);
}

.blog-card-top { display: flex; align-items: center; gap: .55rem; }

.blog-card-title {
  font-size: .93rem; font-weight: 700;
  color: var(--text); line-height: 1.4; flex: 1;
}

.blog-card-excerpt { font-size: .78rem; color: var(--text2); line-height: 1.65; flex: 1; }

.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .7rem; border-top: 1px solid var(--border); margin-top: auto;
}

.blog-card-cta {
  font-size: .76rem; font-weight: 700; color: var(--wc-red); margin-top: .2rem;
}

.blog-tags { display: flex; gap: .4rem; flex-wrap: wrap; }

.btag {
  font-size: .6rem; font-weight: 700; letter-spacing: .05em;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); padding: .18rem .55rem; border-radius: 100px;
}

.blog-read-time { font-size: .67rem; color: var(--muted); font-weight: 500; white-space: nowrap; }

.blog-newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.blog-newsletter h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: .06em;
  color: var(--text); margin-bottom: .5rem;
}
.blog-newsletter p {
  font-size: .86rem; color: var(--text2); max-width: 520px; margin: 0 auto 1.1rem; line-height: 1.65;
}
.blog-newsletter-tags { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.btag-lg {
  font-size: .74rem; font-weight: 700;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); padding: .38rem .9rem; border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.blog-faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--wc-red);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.faq-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; letter-spacing: .06em;
  color: var(--text); margin-bottom: 1.2rem;
}
.faq-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.faq-a { font-size: .8rem; color: var(--text2); line-height: 1.65; }

/* ════════════════════════════════
   INFO PAGES
════════════════════════════════ */
.page-info { max-width: 980px; }

.info-page-header {
  margin-bottom: 1.8rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--border);
}

.info-sections {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-section {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.info-section:last-child { border-bottom: none; }
.info-section:hover { background: var(--surface2); }

.info-section-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; letter-spacing: .06em;
  color: var(--border2);
  min-width: 60px; padding: 1.5rem 1.1rem;
  display: flex; align-items: flex-start; justify-content: center;
  border-right: 1px solid var(--border);
  background: var(--surface2);
  transition: color .15s;
}
.info-section:hover .info-section-num { color: var(--wc-red); }

.info-section-content { flex: 1; padding: 1.5rem 1.8rem; background: var(--surface); }
.info-section-content h3 { font-size: .98rem; font-weight: 700; color: var(--text); margin-bottom: .55rem; }
.info-section-content p { font-size: .83rem; color: var(--text2); margin-bottom: .65rem; line-height: 1.7; }
.info-section-content p:last-child { margin-bottom: 0; }
.info-section-content strong { color: var(--text); }
.info-section-content code {
  font-family: monospace; font-size: .8em;
  background: var(--surface2); padding: .1em .4em; border-radius: 4px;
  border: 1px solid var(--border);
}

.algo-box { margin-top: .7rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.algo-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem .9rem; border-bottom: 1px solid var(--border); font-size: .77rem;
}
.algo-row:last-child { border-bottom: none; }
.algo-key { color: var(--text2); }
.algo-val { color: var(--text); font-weight: 700; }
.algo-total { background: var(--green-bg); }
.algo-total .algo-key, .algo-total .algo-val { color: var(--wc-green); }

.disclaimer-inline {
  margin-top: .7rem; padding: .7rem .9rem;
  background: #FFFBF0; border: 1px solid #E8C860;
  border-radius: 7px; font-size: .75rem; color: var(--text2); line-height: 1.6;
}

/* Legal */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 11px; margin-bottom: 1.3rem;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.legal-card:hover { box-shadow: var(--shadow); }
.legal-card-primary { border-top: 3px solid var(--wc-red); }
.legal-card-icon {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; color: var(--wc-red); margin-bottom: .6rem;
}
.legal-card h3 { font-size: .93rem; font-weight: 700; color: var(--text); margin-bottom: .55rem; }
.legal-card p { font-size: .79rem; color: var(--text2); line-height: 1.65; margin-bottom: .35rem; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card strong { color: var(--text); }
.legal-card a { color: var(--wc-red); font-weight: 600; text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }

.legal-footer-notice {
  background: var(--gold-bg);
  border: 1px solid rgba(184,150,46,.2);
  border-radius: 9px;
  padding: 1.1rem 1.4rem;
  font-size: .82rem; color: var(--text2); line-height: 1.65;
}
.legal-footer-notice strong { color: var(--gold); }

.legal-prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2.2rem;
  box-shadow: var(--shadow-sm);
}

.legal-prose-section { padding: 1.3rem 0; border-bottom: 1px solid var(--border); }
.legal-prose-section:last-child { border-bottom: none; }

.legal-prose-section h3 {
  font-size: .97rem; font-weight: 800; color: var(--text);
  margin-bottom: .65rem;
  display: flex; align-items: center; gap: .5rem;
}
.legal-prose-section h3::before {
  content: '';
  width: 3px; height: 16px;
  background: var(--wc-red);
  border-radius: 2px; flex-shrink: 0;
}

.legal-prose-section p { font-size: .86rem; color: var(--text2); line-height: 1.75; margin-bottom: .7rem; }
.legal-prose-section p:last-child { margin-bottom: 0; }
.legal-prose-section ul, .legal-prose-section ol { padding-left: 1.4rem; margin: .4rem 0 .7rem; }
.legal-prose-section li { font-size: .86rem; color: var(--text2); line-height: 1.65; margin-bottom: .35rem; }
.legal-prose-section strong { color: var(--text); }
.legal-prose-section a { color: var(--wc-red); font-weight: 600; text-decoration: none; }
.legal-prose-section a:hover { text-decoration: underline; }

/* ════════════════════════════════
   TOOLBAR INFO
════════════════════════════════ */
.toolbar-info { position: relative; padding-left: .9rem; }
.toolbar-info::before {
  content: ''; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 3px; background: var(--wc-red);
  border-radius: 2px;
}

/* ════════════════════════════════
   TOAST
════════════════════════════════ */
.toast {
  position: fixed; bottom: 1.4rem; right: 1.4rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--wc-red);
  color: var(--text); padding: .7rem 1.2rem;
  font-size: .78rem; font-weight: 600;
  border-radius: 9px;
  opacity: 0; transition: opacity .25s, transform .25s;
  transform: translateY(8px); pointer-events: none; z-index: 9999;
  max-width: 280px; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════
   SITE FOOTER
════════════════════════════════ */
.site-footer {
  margin-top: 4rem;
  background: var(--surface);
  border-top: 3px solid var(--wc-red);
  padding: 1.8rem 2.5rem;
}
.site-footer-inner {
  max-width: 1600px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  flex-wrap: wrap; justify-content: space-between;
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: .1em; color: var(--text2);
}
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { font-size: .8rem; font-weight: 600; color: var(--text2); text-decoration: none; }
.footer-links a:hover { color: var(--wc-red); }
.footer-disclaimer { font-size: .69rem; color: var(--muted); }

/* ════════════════════════════════
   SCROLLBAR
════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--wc-red); }
::selection { background: rgba(200,16,46,.12); color: var(--text); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .blog-featured-inner { grid-template-columns: 1fr; }
  .blog-featured-sidebar { border-right: none; border-top: 1px solid var(--border); flex-direction: row; }
  .blog-featured-points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  header { padding: .9rem 1.2rem; }
  .header-right { display: none; }
  .page { padding: 1.3rem 1.2rem; }
  .nav-inner { padding: 0 .8rem; }
  .nav-tab-sec { display: none; }
  .nav-divider { display: none; }
  .groups-grid { grid-template-columns: 1fr; gap: 9px; }
  .thirds-list { grid-template-columns: 1fr 1fr; }
  .thirds-rules-body { grid-template-columns: 1fr; }
  .bracket-col { min-width: 125px; }
  .bm-name { font-size: .7rem; }
  .legal-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 1.6rem; }
  .info-section { flex-direction: column; }
  .info-section-num { min-width: unset; border-right: none; border-bottom: 1px solid var(--border); padding: .7rem 1.1rem; }
  .blog-featured-sidebar { flex-direction: column; }
  .article-modal-inner { padding: 1.3rem; }
  .legal-prose { padding: 1.1rem 1.3rem; }
}

@media (max-width: 480px) {
  .thirds-list { grid-template-columns: 1fr; }
  .page { padding: 1rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .guide-pills { gap: .35rem; }
}
/* ── Step progress banner ── */
.steps-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.steps-banner-label {
  font-size: .65rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .75rem;
}
.steps-banner-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.step-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .5rem .85rem;
  flex: 1; min-width: 130px;
  transition: border-color .15s;
}
.step-pill.step-active {
  border-color: var(--wc-red);
  background: var(--red-bg);
}
.step-pill.step-done { opacity: .45; }
.step-pill-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--border2); color: var(--text2);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-pill.step-active .step-pill-num {
  background: var(--wc-red); color: #fff;
}
.step-pill-text { font-size: .81rem; font-weight: 700; color: var(--text); }
.step-pill-sub  { font-size: .65rem; color: var(--muted); margin-top: 1px; }

/* ── Mobile tap-to-reorder arrows ── */
.team-row-arrows {
  display: none; /* shown only on touch devices via JS class */
  flex-direction: column; gap: 2px; flex-shrink: 0;
}
.arr-btn {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  width: 24px; height: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--text2);
  transition: all .12s;
}
.arr-btn:hover  { border-color: var(--wc-red); color: var(--wc-red); background: var(--red-bg); }
.arr-btn:disabled { opacity: .2; cursor: default; }
.is-touch .team-row-arrows { display: flex; }
.is-touch .drag-handle      { display: none; }

/* ── Mobile hint box ── */
.mobile-reorder-hint {
  display: none;
  background: var(--blue-bg);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--wc-navy);
  border-radius: 8px;
  padding: .55rem 1rem;
  font-size: .75rem; color: var(--text2);
  margin-bottom: 1.1rem;
}
.is-touch .mobile-reorder-hint { display: block; }
/* ════════════════════════════════════════════
   BUY ME A COFFEE — Beautiful, non-intrusive
   Paste into style.css  (before the closing line)
════════════════════════════════════════════ */

/* ── Floating coffee button (bottom-left) ── */
.bmac-float {
  position: fixed;
  bottom: 1.6rem;
  left: 1.6rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none; /* children re-enable */
}

.bmac-btn {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #FFDD00;
  color: #1a1200;
  border: none;
  border-radius: 100px;
  padding: .58rem 1.25rem .58rem .85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,221,0,.45), 0 1px 4px rgba(0,0,0,.12);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
  animation: bmac-pop .6s cubic-bezier(.34,1.56,.64,1) 2.5s both;
}
.bmac-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(255,221,0,.55), 0 2px 6px rgba(0,0,0,.12);
}
.bmac-btn:active { transform: scale(.97); }

.bmac-icon {
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,.08);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Tooltip that appears after a delay */
.bmac-tooltip {
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid #FFDD00;
  border-radius: 9px;
  padding: .6rem .9rem;
  font-size: .72rem;
  color: var(--text2);
  font-weight: 600;
  box-shadow: var(--shadow);
  max-width: 200px;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s;
  animation: bmac-tip-in .4s ease 6s both;
}
.bmac-tooltip strong { color: var(--text); display: block; margin-bottom: 2px; }

@keyframes bmac-pop {
  from { opacity: 0; transform: translateY(16px) scale(.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bmac-tip-in {
  from { opacity: 0; transform: translateX(-8px); }
  60%  { opacity: 1; transform: translateX(0); }
  90%  { opacity: 1; }
  to   { opacity: 0; } /* fades after 4 s */
}

/* ── Footer strip — inside .site-footer-inner ── */
.bmac-footer-strip {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 1.2rem;
  background: linear-gradient(135deg, #FFFDE8 0%, #FFF9C0 100%);
  border: 1.5px solid rgba(255,221,0,.5);
  border-radius: 10px;
  margin-top: 1.2rem;
  width: 100%;
  box-shadow: 0 2px 12px rgba(255,221,0,.15);
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.bmac-footer-strip:hover {
  box-shadow: 0 4px 20px rgba(255,221,0,.3);
  transform: translateY(-1px);
}

.bmac-footer-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: #FFDD00;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(255,221,0,.4);
}

.bmac-footer-text { flex: 1; }
.bmac-footer-text strong {
  display: block;
  font-size: .82rem; font-weight: 800;
  color: #1a1200;
  margin-bottom: 1px;
}
.bmac-footer-text span {
  font-size: .71rem;
  color: #7a6200;
  font-weight: 500;
}

.bmac-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFDD00;
  color: #1a1200;
  border-radius: 100px;
  padding: .38rem .95rem;
  font-size: .74rem; font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255,221,0,.3);
  transition: background .15s;
}
.bmac-footer-strip:hover .bmac-footer-cta {
  background: #f5d300;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .bmac-float { bottom: 1rem; left: 1rem; }
  .bmac-btn { font-size: .76rem; padding: .5rem 1rem .5rem .75rem; }
  .bmac-footer-strip { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .bmac-btn span.bmac-label { display: none; } /* icon-only on tiny screens */
  .bmac-btn { padding: .55rem; border-radius: 50%; }
  .bmac-icon { width: 30px; height: 30px; background: none; font-size: 1.3rem; }
}/* ════════════════════════════════
   STEP PROGRESS BANNER
════════════════════════════════ */
.steps-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.steps-banner-label {
  font-size: .65rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .75rem;
}
.steps-banner-row { display: flex; gap: 8px; flex-wrap: wrap; }

.step-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .5rem .85rem;
  flex: 1; min-width: 130px;
  transition: border-color .15s, background .15s;
}
.step-pill.step-active {
  border-color: var(--wc-red);
  background: var(--red-bg);
}
.step-pill.step-done { opacity: .45; }
.step-pill-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--border2); color: var(--text2);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-pill.step-active .step-pill-num { background: var(--wc-red); color: #fff; }
.step-pill.step-done  .step-pill-num { background: var(--wc-green); color: #fff; }
.step-pill-text { font-size: .81rem; font-weight: 700; color: var(--text); }
.step-pill-sub  { font-size: .65rem; color: var(--muted); margin-top: 1px; }

/* ════════════════════════════════
   MOBILE ARROW BUTTONS
════════════════════════════════ */
.team-row-arrows {
  display: none;
  flex-direction: column; gap: 2px; flex-shrink: 0;
}
.arr-btn {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  width: 26px; height: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--text2);
  transition: all .12s;
}
.arr-btn:hover  { border-color: var(--wc-red); color: var(--wc-red); background: var(--red-bg); }
.arr-btn:disabled { opacity: .2; cursor: default; }
.is-touch .team-row-arrows { display: flex; }
.is-touch .drag-handle      { display: none; }

.mobile-reorder-hint {
  display: none;
  background: var(--blue-bg);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--wc-navy);
  border-radius: 8px;
  padding: .55rem 1rem;
  font-size: .75rem; color: var(--text2);
  margin-bottom: 1.1rem;
}
.is-touch .mobile-reorder-hint { display: block; }