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

:root {
  --bg:        #06101f;
  --bg2:       #0c1a30;
  --bg3:       #111f38;
  --border:    #1a2e4a;
  --gold:      #f0c040;
  --gold2:     #e08820;
  --green:     #00d166;
  --green-dim: #004d28;
  --red:       #e61c23;
  --silver:    #9ab4c8;
  --text:      #dde6f4;
  --muted:     #6a80a0;
  --foil-a:    #1a3050;
  --foil-b:    #4a7898;
  --foil-c:    #a8cce0;
  --radius:    10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background texture ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0,120,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(240,192,64,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Auth screen ── */
#auth-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}

.auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold2), var(--gold), var(--gold2));
}

.auth-trophy {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(240,192,64,0.4));
}

.auth-card h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 6px;
}

.auth-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btn-google img { width: 20px; height: 20px; }

/* ── Main app ── */
#app { position: relative; z-index: 1; }

/* ── Header ── */
.app-header {
  background: linear-gradient(180deg, #0a1828 0%, var(--bg2) 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.header-left { display: flex; align-items: center; gap: 14px; }

.app-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  line-height: 1;
  white-space: nowrap;
}

.app-logo span { color: var(--text); font-size: 1rem; }

.header-progress {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 160px;
}

.header-progress-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-bar-wrap {
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.user-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px 5px 6px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.user-pill:hover { border-color: var(--gold); }

.user-pill #user-name { min-width: 0; }

.user-menu-caret {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1;
}

.user-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  padding: 6px;
  z-index: 100;
}

.user-menu button {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 0.84rem;
  padding: 9px 10px;
  text-align: left;
}

.user-menu button:hover {
  background: var(--bg3);
  color: var(--gold);
}

.btn-icon {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-icon:hover { color: var(--text); border-color: var(--gold); }

/* ── Tab nav ── */
.tab-nav {
  display: flex;
  gap: 2px;
  padding: 12px 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Content area ── */
.tab-content { display: none; padding: 20px; max-width: 1500px; margin: 0 auto; }
.tab-content.active { display: block; }

/* ── Filter bar ── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
  align-items: center;
}

.filter-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 700;
}

.settings-btn {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
}

.settings-btn:hover {
  color: var(--text);
  border-color: var(--gold);
}

/* ── Sticker grid ── */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.team-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.team-card:hover { box-shadow: 0 4px 24px rgba(0,180,100,0.15); }

.wide-card { grid-column: 1 / -1; }

/* Intro card */
.intro-card .team-header { background: linear-gradient(135deg, #0c1e3a, #162848); }
.intro-card .team-label { color: #c0b0f0; }
.intro-card:hover { box-shadow: 0 4px 20px rgba(160,140,220,0.25) !important; }

/* Coke card */
.coke-card .team-header { background: linear-gradient(135deg, #6b0000, #aa0000); }
.coke-card .team-label { color: #fff; }
.coke-card:hover { box-shadow: 0 4px 20px rgba(200,0,0,0.3) !important; }

/* Complete card */
@keyframes gold-pulse {
  0%,100% { box-shadow: 0 0 8px 2px rgba(212,175,55,0.3); }
  50%      { box-shadow: 0 0 16px 4px rgba(212,175,55,0.55); }
}
.team-complete { animation: gold-pulse 4s ease-in-out infinite; }
.team-complete .team-header { background: linear-gradient(135deg, #9a7010, #d4af37, #b08820) !important; }
.team-complete .team-label { color: #0a1628 !important; font-weight: 800; }
.team-complete .team-count { color: #0a1628 !important; }

.team-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.team-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.team-count { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

.team-progress { height: 3px; background: var(--bg); }
.team-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #64dd17);
  transition: width 0.3s;
}

.stickers-wrap {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  padding: 10px;
}

/* ── Sticker box ── */
.sticker-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
  padding: 3px 2px;
  border-radius: 6px;
  transition: background 0.12s;
  user-select: none;
  position: relative;
}

.sticker-item:hover { background: rgba(255,255,255,0.05); }

.sticker-item input[type="checkbox"] { display: none; }

.s-box {
  width: 26px; height: 26px;
  border-radius: 5px;
  border: 1.5px solid #253545;
  background: #0a1828;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s;
  position: relative;
}

/* Normal owned */
.sticker-item input:checked ~ .s-box {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 8px rgba(0,209,102,0.4);
}
.sticker-item input:checked ~ .s-box::after { content: '✓'; color: #fff; }

/* Foil unchecked */
@keyframes foil-sweep {
  0%   { background-position: 250% center; }
  100% { background-position: -250% center; }
}
.foil .s-box {
  background: linear-gradient(110deg, var(--foil-a) 15%, var(--foil-b) 38%, var(--foil-c) 50%, var(--foil-b) 62%, var(--foil-a) 85%);
  background-size: 300% auto;
  border-color: #4a6a8a;
}
.foil .s-box:hover {
  animation: foil-sweep 2s linear infinite;
}
.foil input:checked ~ .s-box {
  background: linear-gradient(110deg, #5a6878 15%, #9ab4c8 38%, #dceaf6 50%, #9ab4c8 62%, #5a6878 85%);
  background-size: 300% auto;
  border-color: #88a8c4;
  box-shadow: 0 0 10px rgba(136,168,200,0.5);
}
.foil input:checked ~ .s-box:hover {
  animation: foil-sweep 2s linear infinite;
}
.foil input:checked ~ .s-box::after { color: #0a1628; }

/* Coke unchecked */
.coke .s-box { border-color: #4a0808; background: #100407; }
.coke input:checked ~ .s-box { background: var(--red); border-color: var(--red); box-shadow: 0 0 8px rgba(230,28,35,0.5); }
.coke input:checked ~ .s-box::after { content: '✓'; color: #fff; }

.s-num {
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.03em;
  text-align: center;
  max-width: 58px;
  line-height: 1.05;
}

.sticker-item input:checked ~ .s-num { color: var(--green); font-weight: 600; }
.foil input:checked ~ .s-num { color: var(--silver) !important; }
.coke input:checked ~ .s-num { color: var(--red) !important; }

.s-code,
.s-player {
  display: block;
}

.s-code {
  font-weight: 700;
}

.s-player {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.54rem;
  line-height: 1.05;
}

.coke input:checked ~ .s-num .s-player { color: var(--red); }

/* ── Duplicate badge (corner of s-box) ── */
.dup-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 13px; height: 13px;
  background: var(--gold2);
  color: var(--bg);
  border-radius: 7px;
  font-size: 0.48rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  display: none;
  align-items: center; justify-content: center;
  padding: 0 2px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  border: 1px solid rgba(0,0,0,0.2);
  user-select: none;
}
.dup-badge.visible { display: flex; }

/* ── Duplicate popover ── */
#dup-popover {
  position: fixed;
  background: var(--bg2);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 5px 8px;
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transform: translate(-50%, calc(-100% - 8px));
}
#dup-popover.show { display: flex; }

.dup-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--silver);
  border-radius: 4px;
  width: 24px; height: 24px;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
  line-height: 1;
}
.dup-btn:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.dup-btn:disabled { opacity: 0.3; cursor: default; }
.dup-btn:disabled:hover { background: var(--bg3); color: var(--silver); border-color: var(--border); }

.dup-count {
  font-size: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--gold);
  min-width: 20px;
  text-align: center;
  line-height: 1;
}

/* ── Collections tab ── */
.collectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.collector-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}

.collector-header { display: flex; align-items: center; gap: 10px; }

.collector-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.collector-avatar img { width: 100%; height: 100%; object-fit: cover; }

.collector-name { font-weight: 600; font-size: 0.95rem; }
.collector-stat { font-size: 0.78rem; color: var(--muted); }

.collector-bar-wrap { height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.collector-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  border-radius: 3px;
}

/* ── Trade Finder tab ── */
.trade-controls {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.trade-select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
}

.trade-select:focus { border-color: var(--gold); }

.trade-results { display: flex; flex-direction: column; gap: 10px; }

.trade-row {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}

.trade-row-team { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; }
.trade-row-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.trade-chips { display: flex; flex-wrap: wrap; gap: 4px; }

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.chip-give { background: rgba(0,209,102,0.15); color: var(--green); border: 1px solid rgba(0,209,102,0.3); }
.chip-need { background: rgba(240,192,64,0.12); color: var(--gold); border: 1px solid rgba(240,192,64,0.3); }

/* ── Trade summary banner ── */
.trade-summary {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.trade-summary-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  color: var(--text);
}
.trade-summary-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.trade-summary-dot--give    { background: var(--green); }
.trade-summary-dot--receive { background: var(--gold); }
.trade-summary-dot--mutual  { background: conic-gradient(var(--green) 50%, var(--gold) 50%); }

/* ── Mutual trade row ── */
.trade-row--mutual {
  border-color: rgba(240,192,64,0.45);
  background: linear-gradient(135deg, var(--bg2) 80%, rgba(240,192,64,0.05));
}
.trade-row-team-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.trade-mutual-badge {
  font-size: 0.62rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(240,192,64,0.15);
  color: var(--gold);
  border: 1px solid rgba(240,192,64,0.35);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ── Trade chat ── */
.trade-chat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.chat-header:hover { background: #141f32; }
.chat-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.chat-toggle-icon {
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.2s;
}
.trade-chat.collapsed .chat-toggle-icon { transform: rotate(-90deg); }
.trade-chat.collapsed .chat-body { display: none; }
.chat-messages {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-msg { display: flex; flex-direction: column; max-width: 78%; }
.chat-msg--mine   { align-self: flex-end;   align-items: flex-end; }
.chat-msg--theirs { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-word;
}
.chat-msg--mine   .chat-bubble { background: var(--gold2); color: var(--bg); border-bottom-right-radius: 3px; }
.chat-msg--theirs .chat-bubble { background: var(--bg3);   color: var(--text); border-bottom-left-radius: 3px; }
.chat-msg-meta {
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 2px;
  font-family: 'Barlow Condensed', sans-serif;
}
.chat-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 12px 0;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  outline: none;
}
.chat-input:focus { border-color: var(--gold); }
.chat-send {
  background: var(--gold2);
  border: none;
  color: var(--bg);
  border-radius: 6px;
  padding: 7px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.chat-send:hover { background: var(--gold); }

/* ── Collection switcher ── */
.collection-switcher {
  background: var(--bg3);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  max-width: 180px;
}

/* ── Collaborators modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.modal-close:hover { color: var(--text); background: var(--bg); }
.modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.modal-section-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Barlow Condensed', sans-serif;
  margin-bottom: 8px;
}
.collab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.collab-row:last-child { border-bottom: none; }
.collab-name { font-size: 0.88rem; color: var(--text); }
.collab-btn {
  border: none;
  border-radius: 6px;
  padding: 4px 13px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.collab-btn--add    { background: var(--green); color: #fff; }
.collab-btn--remove { background: rgba(230,28,35,0.15); color: #e66; border: 1px solid rgba(230,28,35,0.3); }
.collab-btn:disabled { opacity: 0.45; cursor: default; }
.collab-empty, .collab-loading { font-size: 0.82rem; color: var(--muted); padding: 8px 0; }

.settings-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}
.settings-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.settings-save {
  margin-top: 18px;
  width: 100%;
  padding: 8px 13px;
}

/* ── Empty / loading states ── */
.state-msg {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.state-msg .icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s ease;
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .app-header { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .header-left { width: 100%; justify-content: space-between; }
  .header-right { width: 100%; flex-wrap: wrap; gap: 8px; }
  .header-progress { min-width: 120px; }
  .app-logo span { display: none; }
  .collection-switcher { flex: 1 1 170px; min-width: 0; max-width: none; }
  #btn-share { flex: 0 0 auto; }
  .user-pill { margin-left: auto; max-width: 180px; }
  .user-pill #user-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tab-btn { padding: 8px 10px; font-size: 0.8rem; }
  .tab-content { padding: 12px; }
  .settings-btn { width: 100%; margin-left: 0; justify-content: center; }
  .teams-grid { grid-template-columns: 1fr; }
  .stickers-wrap { grid-template-columns: repeat(10, 1fr); gap: 2px; padding: 8px; }
  .coke-card .stickers-wrap { grid-template-columns: repeat(3, 1fr); gap: 8px 4px; }
  .s-box { width: 22px; height: 22px; }
}
