/* =========================================================
   ÁLBUM MUNDIAL 2026 — CSS
   ========================================================= */

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg:        #07090f;
  --surface:   #0f1420;
  --surface2:  #151c2c;
  --surface3:  #1a2235;
  --gold:      #e8b84b;
  --gold2:     #f5d78e;
  --gold-glow: rgba(232,184,75,0.15);
  --blue:      #3a86ff;
  --text:      #dde3f0;
  --muted:     #848da3;
  --border:    #1e2840;
  --border2:   #243050;
  --green:     #1db954;
  --green-glow:rgba(29,185,84,0.22);
  --red:       #e84b4b;
  --purple:    #a78bfa;

  --font-display: 'Bebas Neue', sans-serif;
  --font:         'Barlow', sans-serif;

  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  18px;

  --transition: 0.2s ease;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* =========================================================
   AUTH SCREEN
   ========================================================= */
.auth-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(232,184,75,0.12), transparent),
    var(--bg);
}

.auth-card {
  background: var(--surface);
  padding: 44px 40px;
  border-radius: 24px;
  width: 360px;
  text-align: center;
  border: 1px solid var(--border2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.auth-card h1 {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.auth-card h1:first-child  { font-size: 2.8rem; margin-bottom: 0; }
.auth-card h1:last-of-type { font-size: 1.6rem; margin-bottom: 28px; }
/* Override for new single-h1 layout */

.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: #fff;
  color: #1f1f1f;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 14px;
}

.google-login-btn span { font-size: 1.1rem; font-weight: 700; color: #4285f4; }
.google-login-btn:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

.google-note { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* =========================================================
   INPUTS / BUTTONS GLOBAL
   ========================================================= */
input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,184,75,0.1);
}

button {
  width: 100%;
  padding: 12px 16px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

button:hover { opacity: 0.88; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}

.brand { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }
.logo  { font-size: 2rem; line-height: 1; }

.brand h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
}

.brand p { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-actions > button {
  width: auto;
  padding: 9px 18px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.header-actions > button:hover { border-color: var(--red); color: var(--red); opacity: 1; }

/* =========================================================
   MAIN LAYOUT
   ========================================================= */
.main-layout {
  display: flex;
  min-height: calc(100vh - 57px);
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0b1220, #090f1c);
  border-right: 1px solid var(--border);
  padding: 28px 14px;
  display: flex;
  flex-direction: column;
}

.sidebar h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 20px;
  padding-left: 8px;
}

.sidebar nav { display: flex; flex-direction: column; gap: 6px; }

.sidebar button {
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.sidebar button::before {
  content: "";
  position: absolute;
  left: 0; top: 20%; height: 60%; width: 3px;
  border-radius: 4px;
  background: transparent;
  transition: 0.18s ease;
}

.sidebar button:hover {
  background: rgba(232,184,75,0.07);
  border-color: rgba(232,184,75,0.2);
  color: var(--gold2);
  transform: translateX(3px);
  opacity: 1;
}

.sidebar button:hover::before,
.sidebar button.active-panel::before { background: var(--gold); }

.sidebar button.active-panel {
  background: linear-gradient(90deg, rgba(232,184,75,0.16), rgba(232,184,75,0.04));
  border-color: rgba(232,184,75,0.35);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(232,184,75,0.08);
  opacity: 1;
}

/* =========================================================
   CONTENT
   ========================================================= */
.content { flex: 1; padding: 28px; overflow-x: hidden; }

/* =========================================================
   DASHBOARD
   ========================================================= */
.dashboard-card {
  background: linear-gradient(120deg, #0f1830, #111d35);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  border: 1px solid var(--border2);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: "⚽";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  opacity: 0.06;
  pointer-events: none;
}

.dashboard-card h2 { color: var(--gold2); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.dashboard-card p  { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* =========================================================
   STATS
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--surface);
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover { border-color: var(--border2); transform: translateY(-2px); }

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.stat-card strong { font-size: 2.2rem; font-weight: 800; color: var(--green); line-height: 1; }

/* =========================================================
   ALBUM LAYOUT
   ========================================================= */
.album-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 18px;
  align-items: start;
}

.album-layout.full-width { grid-template-columns: 1fr; }

/* =========================================================
   TEAMS PANEL
   ========================================================= */
.teams-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  position: sticky;
  top: 0px;
}

#teamSearch {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  margin-bottom: 0;
}

#teamSearch::placeholder { color: var(--muted); }
#teamSearch:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,184,75,0.1); }

#teamList {
  display: none;
  max-height: 340px;
  overflow-y: auto;
  margin-top: 8px;
  border-radius: var(--radius-md);
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}

#teamList.active { display: block; }

#teamList::-webkit-scrollbar       { width: 4px; }
#teamList::-webkit-scrollbar-track { background: transparent; }
#teamList::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

.team-item {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
  color: var(--text);
  border: 1px solid transparent;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-item:last-child { margin-bottom: 0; }

.team-item:hover {
  background: var(--gold-glow);
  border-color: rgba(232,184,75,0.15);
  color: var(--gold2);
}

.team-item.active {
  background: var(--gold-glow);
  border-color: rgba(232,184,75,0.2);
  color: var(--gold);
}

.team-code { font-weight: 700; font-size: 0.85rem; color: var(--gold); min-width: 34px; }

/* =========================================================
   ALBUM CONTENT
   ========================================================= */
.album-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  min-height: 500px;
}

/* =========================================================
   STICKER GRID
   ========================================================= */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

/* =========================================================
   STICKER CARD
   ========================================================= */
.sticker-card {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 8px 8px;
  min-height: 108px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  -webkit-user-select: none;
}

.sticker-card:hover { transform: translateY(-4px) scale(1.02); z-index: 2; }
.sticker-card:active { transform: translateY(-1px) scale(0.99); }

.sticker-card.owned {
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
  background: linear-gradient(145deg, #141f18, #111c17);
}

.sticker-card.owned:hover { box-shadow: 0 4px 20px var(--green-glow); }
.sticker-card.missing { opacity: 0.7; filter: grayscale(0.2); }
.sticker-card.missing:hover { opacity: 0.85; filter: none; }

.sticker-card.repeated {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(232,184,75,0.2);
  background: linear-gradient(145deg, #1c1a10, #171508);
}

.sticker-card.foil {
  border-color: #a78bfa;
  background: linear-gradient(135deg, #13101f, #1a1230);
  box-shadow: 0 0 14px rgba(167,139,250,0.18);
  overflow: hidden;
}

.sticker-card.foil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(167,139,250,0.2) 50%,
    rgba(232,184,75,0.12) 56%,
    transparent 66%
  );
  background-size: 250% 100%;
  animation: foilSheen 2.8s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes foilSheen {
  0%   { background-position: -100% 0; }
  60%  { background-position: 250% 0; }
  100% { background-position: 250% 0; }
}

.sticker-card.foil.owned {
  border-color: #a78bfa;
  box-shadow: 0 0 18px rgba(167,139,250,0.3);
}

.sticker-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  align-self: flex-start;
  letter-spacing: 0.3px;
}

.sticker-card.owned .sticker-num { color: var(--green); }

.sticker-name {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--text);
  word-break: break-word;
  hyphens: auto;
}

.dupe-badge {
  position: absolute;
  top: 5px; right: 5px;
  background: var(--gold);
  color: #000;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 6px;
  line-height: 1.2;
}

.foil-badge {
  font-size: 0.78rem;
  position: absolute;
  top: 4px; right: 4px;
}

.sticker-remove-btn {
  display: none;
  width: 100%;
  padding: 5px 0;
  margin-top: 4px;
  background: rgba(232, 75, 75, 0.15);
  color: var(--red);
  border: 1px solid rgba(232, 75, 75, 0.3);
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-duplicates {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-duplicates h3 { font-size: 1rem; font-weight: 500; }

/* =========================================================
   DUPLICATES
   ========================================================= */
.duplicates-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.duplicate-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  user-select: none;
}

.duplicate-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.duplicate-card.foil { border-color: #a78bfa; background: linear-gradient(135deg,#13101f,#1a1230); }

.duplicate-top {
  font-weight: 800;
  font-size: 1rem;
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.duplicate-team {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.duplicate-name { font-size: 0.85rem; color: var(--text); line-height: 1.3; flex: 1; }

.duplicate-card .dupe-badge {
  position: static;
  align-self: flex-start;
  font-size: 0.68rem;
  padding: 3px 7px;
}

/* =========================================================
   DUPLICATES HEADER ACTIONS
   ========================================================= */
.dupes-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-share-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  width: auto;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.3);
  color: #25d366;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-share-wa:hover { background: rgba(37,211,102,0.2); opacity: 1; }

/* =========================================================
   TEAM NAVIGATION ARROWS
   ========================================================= */
.team-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-title-wrap { flex: 1; text-align: center; }

.team-title-wrap h2 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 2.4rem;
  letter-spacing: 2px;
  line-height: 1;
}

.team-title-wrap p { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

.team-nav { display: flex; align-items: center; flex-shrink: 0; }
.team-nav-right { justify-content: flex-end; }

.team-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  width: auto;
  height: 40px;
  border-radius: 20px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  max-width: 160px;
  overflow: hidden;
}

.arrow-icon { font-size: 1rem; line-height: 1; flex-shrink: 0; }

.arrow-label {
  font-size: 0.72rem;
  align-content: center;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition);
}

.team-arrow:hover:not(.disabled) {
  background: linear-gradient(90deg, rgba(232,184,75,0.15), rgba(232,184,75,0.05));
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232,184,75,0.12);
  opacity: 1;
}

.team-arrow:hover:not(.disabled) .arrow-label { color: var(--gold2); }

.team-arrow.disabled {
  opacity: 0.18;
  cursor: default;
  pointer-events: none;
  min-width: 40px;
  padding: 8px 12px;
}

/* =========================================================
   MODALS — BASE
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-wide  { max-width: 620px; }
.modal-chat  { max-width: 460px; height: 560px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { border-color: var(--red); color: var(--red); opacity: 1; }

.modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

/* =========================================================
   PROFILE MODAL
   ========================================================= */
.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  margin-top: 16px;
}

.field-label:first-child { margin-top: 0; }

.field-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #3a4560;
}

.modal-actions { margin-top: 22px; }

.btn-save {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-save:hover { opacity: 0.88; transform: translateY(-1px); }

.profile-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.profile-msg.success { background: rgba(29,185,84,0.12); color: var(--green); border: 1px solid rgba(29,185,84,0.3); }
.profile-msg.error   { background: rgba(232,75,75,0.12);  color: var(--red);   border: 1px solid rgba(232,75,75,0.3); }
/* =========================================================
   CHAT MODAL
   ========================================================= */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(232,184,75,0.25), rgba(232,184,75,0.12));
  border: 1px solid rgba(232,184,75,0.3);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
  align-self: flex-start;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-bubble-meta {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input-row input {
  flex: 1;
  margin-bottom: 0;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.btn-send {
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: auto;
  padding: 20px;
}

/* =========================================================
   TRADE MODAL (Proponer intercambio 1:1)
   ========================================================= */
.trade-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.trade-col-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.trade-col-label.give { color: var(--blue); }
.trade-col-label.get  { color: var(--green); }

.trade-sticker-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.trade-sticker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.82rem;
}

.trade-sticker-option:hover { border-color: var(--border2); }

.trade-sticker-option.selected {
  border-color: var(--gold);
  background: rgba(232,184,75,0.08);
}

.trade-sticker-id { font-family: var(--font-display); font-size: 0.9rem; color: var(--gold); min-width: 32px; }
.trade-sticker-name { flex: 1; color: var(--text); }
.trade-sticker-team { font-size: 0.7rem; color: var(--muted); }

.btn-propose-trade {
  width: 100%;
  padding: 13px;
  background: linear-gradient(90deg, rgba(232,184,75,0.9), rgba(200,150,40,0.9));
  color: #000;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-propose-trade:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-propose-trade:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* =========================================================
   USERS — EXCHANGE SECTIONS
   ========================================================= */
.user-duplicate-panel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
}

.user-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold2);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.user-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #25d366;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.25);
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
}

.wa-link:hover { background: rgba(37,211,102,0.2); }

.trade-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: linear-gradient(90deg, rgba(232,184,75,0.12), rgba(232,184,75,0.06));
  border: 1px solid rgba(232,184,75,0.35);
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  width: auto;
}

.trade-btn:hover {
  background: linear-gradient(90deg, rgba(232,184,75,0.22), rgba(232,184,75,0.12));
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(232,184,75,0.15);
  transform: translateY(-1px);
  opacity: 1;
}

.btn-chat-user {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(58,134,255,0.1);
  border: 1px solid rgba(58,134,255,0.25);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  width: auto;
  text-decoration: none;
}

.btn-chat-user:hover { background: rgba(58,134,255,0.18); opacity: 1; }

.exchange-section { margin-bottom: 14px; }

.exchange-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.give-title { color: var(--green); }
.want-title { color: var(--blue); }

.foil-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 4px 4px;
}

.foil-group-label.foil-label { color: #a78bfa; }

.user-empty { color: var(--muted); font-size: 0.85rem; padding: 8px 0; }

.user-duplicate-list { display: flex; flex-direction: column; gap: 6px; }

.mini-dupe-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mini-dupe-card:hover { border-color: var(--border2); }

.mini-dupe-card.needed-card {
  border-color: rgba(29,185,84,0.35);
  background: linear-gradient(90deg, rgba(29,185,84,0.06), transparent);
}

.mini-dupe-card.give-card {
  border-color: rgba(58,134,255,0.25);
  background: linear-gradient(90deg, rgba(58,134,255,0.05), transparent);
}

.mini-dupe-card.foil { border-color: rgba(167,139,250,0.3); }

.mini-dupe-team {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--gold);
  min-width: 36px;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.mini-dupe-name { flex: 1; font-size: 0.85rem; color: var(--text); line-height: 1.3; }

.mini-team-name { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 1px; }

.mini-dupe-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 20px;
}

/* =========================================================
   RANKING
   ========================================================= */
.ranking-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.ranking-tab {
  flex: 1;
  padding: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  width: auto;
}

.ranking-tab.active {
  background: rgba(232,184,75,0.12);
  border-color: rgba(232,184,75,0.35);
  color: var(--gold);
}

.ranking-tab:hover:not(.active) { border-color: var(--border2); color: var(--text); opacity: 1; }

.ranking-list { display: flex; flex-direction: column; gap: 8px; }

.ranking-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.ranking-item:hover { border-color: var(--border2); }

.ranking-item.is-me {
  border-color: rgba(232,184,75,0.4);
  background: rgba(232,184,75,0.06);
}

.ranking-pos {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--muted);
  min-width: 32px;
  text-align: center;
  line-height: 1;
}

.ranking-item:nth-child(1) .ranking-pos { color: #FFD700; }
.ranking-item:nth-child(2) .ranking-pos { color: #C0C0C0; }
.ranking-item:nth-child(3) .ranking-pos { color: #CD7F32; }

.ranking-name { flex: 1; font-weight: 700; font-size: 0.9rem; }
.ranking-you  { font-size: 0.65rem; color: var(--gold); font-weight: 600; display: block; }

.ranking-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.ranking-bar-bg {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.ranking-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), #14a045);
  transition: width 0.6s ease;
}

.ranking-pct { font-size: 0.82rem; font-weight: 700; color: var(--green); min-width: 36px; text-align: right; }

/* =========================================================
   ACHIEVEMENTS
   ========================================================= */
.achievements-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin: 24px 0 12px;
}

.achievements-section-title:first-child { margin-top: 0; }

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.achievement-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.achievement-card.unlocked {
  border-color: rgba(232,184,75,0.45);
  background: linear-gradient(135deg, rgba(232,184,75,0.07), var(--surface2));
}

.achievement-card.locked { opacity: 0.55; filter: grayscale(0.4); }

.achievement-card.unlocked::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.achievement-icon { font-size: 2rem; margin-bottom: 8px; display: block; }

.achievement-name {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 4px;
  color: var(--text);
}

.achievement-card.unlocked .achievement-name { color: var(--gold2); }

.achievement-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

.achievement-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: 20px;
}

.achievement-badge.done { background: rgba(29,185,84,0.15); color: var(--green); border: 1px solid rgba(29,185,84,0.3); }
.achievement-badge.lock { background: rgba(132,141,163,0.12); color: var(--muted); border: 1px solid rgba(132,141,163,0.2); }

.achievement-progress {
  margin-top: 10px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.achievement-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), #c98c28);
  transition: width 0.5s ease;
}

.achievement-progress-text {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Challenges section */
.challenges-list { display: flex; flex-direction: column; gap: 10px; }

.challenge-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.challenge-card.completed { border-color: rgba(29,185,84,0.3); background: rgba(29,185,84,0.04); }
.challenge-card.completed .challenge-icon { filter: none; }

.challenge-icon { font-size: 1.6rem; flex-shrink: 0; }

.challenge-info { flex: 1; min-width: 0; }

.challenge-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 2px; }

.challenge-desc { font-size: 0.75rem; color: var(--muted); }

.challenge-reward {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.challenge-reward.claimed { color: var(--green); }

.challenge-progress-wrap { margin-top: 6px; }

.challenge-bar-bg {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.challenge-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), #1a5fd4);
  transition: width 0.5s ease;
}

.challenge-bar-text { font-size: 0.65rem; color: var(--muted); margin-top: 3px; }

.btn-claim-reward {
  padding: 7px 14px;
  width: auto;
  background: linear-gradient(90deg, rgba(232,184,75,0.9), rgba(200,150,40,0.9));
  color: #000;
  border: none;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-claim-reward:hover { opacity: 0.9; transform: translateY(-1px); opacity: 1; }
.btn-claim-reward:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* =========================================================
   NOTIFICATION BADGE (sidebar)
   ========================================================= */
.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1;
  animation: badgePop 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* =========================================================
   CHAT BUBBLE — SENDER NAME
   ========================================================= */
.chat-bubble-sender {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 3px;
  letter-spacing: 0.2px;
}

/* =========================================================
   INBOX PANEL
   ========================================================= */
.inbox-conv-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.inbox-conv-card:hover {
  border-color: rgba(232,184,75,0.3);
  background: rgba(232,184,75,0.04);
  transform: translateX(3px);
}

.inbox-conv-card.unread {
  border-color: rgba(58,134,255,0.35);
  background: rgba(58,134,255,0.05);
}

.inbox-conv-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface3), #1e2840);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
}

.inbox-conv-card.unread .inbox-conv-avatar {
  border-color: var(--blue);
  background: rgba(58,134,255,0.12);
}

.inbox-conv-info { flex: 1; min-width: 0; }

.inbox-conv-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}

.inbox-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(58,134,255,0.5);
}

.inbox-conv-preview {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-conv-card.unread .inbox-conv-preview { color: var(--text); }

.inbox-conv-time {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.inbox-conv-card.unread .inbox-conv-time { color: var(--blue); }

.inbox-loading, .inbox-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 48px 20px;
  line-height: 1.6;
}

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease both;
  pointer-events: auto;
}

.toast.success { border-color: rgba(29,185,84,0.4); color: var(--green); }
.toast.error   { border-color: rgba(232,75,75,0.4);  color: var(--red); }
.toast.info    { border-color: rgba(232,184,75,0.4); color: var(--gold); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =========================================================
   TEAM SEARCH CLEAR BUTTON
   ========================================================= */
.team-search-wrap { position: relative; width: 100%; }
.team-search-wrap input { width: 100%; padding-right: 42px !important; }

.team-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.team-search-clear.visible { opacity: 1; pointer-events: auto; }
.team-search-clear:hover { background: rgba(255,193,7,0.18); color: #ffc107; transform: translateY(-50%) scale(1); }

/* =========================================================
   STICKER POP ANIMATION
   ========================================================= */
@keyframes stickerPop {
  0%   { transform: scale(1); }
  28%  { transform: scale(1.18); box-shadow: 0 0 24px rgba(29,185,84,0.55); }
  55%  { transform: scale(0.96); }
  80%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.sticker-card.sticker-pop {
  animation: stickerPop 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}

/* =========================================================
   TEAM COMPLETE CHECK BADGE
   ========================================================= */
.team-complete-check {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--green);
  background: rgba(29,185,84,0.14);
  border: 1px solid rgba(29,185,84,0.35);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

/* =========================================================
   TEAM PROGRESS BAR
   ========================================================= */
.team-progress-wrap {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px auto 0;
  width: 100%;
  max-width: 220px;
}

.team-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #c98c28);
  border-radius: 3px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}

.team-progress-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 5px;
}

/* =========================================================
   USER AVATAR
   ========================================================= */
.user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
  margin-left: 10px;
  box-shadow: 0 0 10px rgba(232,184,75,0.3);
}

/* =========================================================
   SIDEBAR MINI PROGRESS
   ========================================================= */
.sidebar-progress-wrap {
  padding: 0 8px;
  margin-bottom: 18px;
}

.sidebar-progress-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-progress-bar-bg {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.sidebar-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #c98c28);
  border-radius: 3px;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   CONFIRM OVERLAY
   ========================================================= */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.confirm-overlay.visible { opacity: 1; }

.confirm-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  text-align: center;
  max-width: 300px;
  width: 90%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.confirm-overlay.visible .confirm-card { transform: translateY(0); }

.confirm-card p {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--text);
}

.confirm-actions { display: flex; gap: 10px; }

.confirm-cancel {
  flex: 1;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.confirm-cancel:hover { background: var(--surface3); opacity: 1; }

.confirm-ok {
  flex: 1;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.confirm-ok:hover { opacity: 0.85; }

/* =========================================================
   AUTH SCREEN ENHANCEMENTS
   ========================================================= */
.auth-bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.auth-orb-1 {
  width: 500px; height: 500px;
  background: var(--gold);
  top: -200px; left: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.auth-orb-2 {
  width: 400px; height: 400px;
  background: var(--blue);
  bottom: -150px; right: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(30px); }
}

.auth-screen { position: relative; }
.auth-card   { position: relative; z-index: 1; }

.auth-trophy {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
  animation: trophyPulse 2.5s ease-in-out infinite;
}

@keyframes trophyPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 8px rgba(232,184,75,0.4)); }
  50%       { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(232,184,75,0.7)); }
}

.auth-card h1 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.75rem;
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 26px !important;
}

.auth-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.auth-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.auth-stat-item span { font-size: 0.85rem; }
.auth-stat-sep { color: var(--border2); font-size: 0.8rem; }

/* =========================================================
   PENDING TRADE CARDS
   ========================================================= */
.inbox-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 1.5px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.inbox-section-badge {
  background: var(--gold);
  color: #000;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1.5;
}

.pending-trades-list { display: flex; flex-direction: column; gap: 10px; }

.pending-trade-card {
  background: var(--surface2);
  border: 1px solid rgba(232,184,75,0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: tradeCardIn 0.3s ease both;
}

@keyframes tradeCardIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pending-trade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pending-trade-from {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}

.inbox-conv-avatar.small {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  flex-shrink: 0;
}

.pending-trade-date {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.pending-trade-stickers {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.pending-trade-side { flex: 1; text-align: center; }

.pending-trade-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.give-side .pending-trade-label { color: var(--green); }
.get-side  .pending-trade-label { color: var(--blue); }

.pending-trade-sticker-id {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--gold);
  line-height: 1;
}

.pending-trade-arrow { font-size: 1.4rem; color: var(--muted); flex-shrink: 0; }

.pending-trade-actions { display: flex; gap: 8px; }

.btn-trade-reject {
  flex: 1;
  padding: 9px;
  background: rgba(232,75,75,0.1);
  border: 1px solid rgba(232,75,75,0.3);
  color: var(--red);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-trade-reject:hover { background: rgba(232,75,75,0.2); opacity: 1; }

.btn-trade-accept {
  flex: 2;
  padding: 9px;
  background: rgba(29,185,84,0.12);
  border: 1px solid rgba(29,185,84,0.35);
  color: var(--green);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-trade-accept:hover { background: rgba(29,185,84,0.22); opacity: 1; }

.btn-trade-accept:disabled,
.btn-trade-reject:disabled { opacity: 0.4; cursor: not-allowed; }

::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

/* =========================================================
   MOBILE — ≤ 768px
   ========================================================= */
@media (max-width: 768px) {

  html, body { font-size: 14px; overflow-x: hidden; }

  .header { padding: 10px 14px; position: sticky; top: 0; z-index: 200; gap: 8px; }
  .logo   { font-size: 1.5rem; }
  .brand h1 { font-size: 1.1rem; letter-spacing: 0.5px; }
  .brand p  { font-size: 0.7rem; }
  .header-actions { gap: 6px; }
  .header-actions > button { padding: 8px 10px; font-size: 0.75rem; }
  #dailyPackLabel { display: none; }

  .main-layout { flex-direction: column; min-height: unset; }

  .sidebar { width: 100%; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar h2 { display: none; }
  .sidebar nav { flex-direction: row; gap: 6px; overflow-x: auto; }

  .sidebar button {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    font-size: 0.72rem;
    border-radius: var(--radius-md);
    min-height: 48px;
    transform: none !important;
    white-space: nowrap;
  }

  .sidebar button::before { display: none; }

  .content { padding: 12px; }

  .dashboard-card { padding: 16px; margin-bottom: 12px; }
  .dashboard-card h2 { font-size: 1rem; }
  .dashboard-card::before { font-size: 3rem; opacity: 0.04; }

  .stats-grid { gap: 8px; margin-bottom: 14px; }
  .stat-card { padding: 12px 8px; }
  .stat-card span   { font-size: 0.62rem; }
  .stat-card strong { font-size: 1.6rem; }

  .album-layout { grid-template-columns: 1fr; gap: 12px; }

  .teams-panel { position: relative; padding: 10px; border-radius: var(--radius-md); z-index: 20; margin-bottom: 12px; overflow: visible; }
  #teamSearch { height: 40px; padding: 9px 12px; font-size: 0.88rem; }

  #teamList {
    position: relative !important; top: auto !important; left: auto !important; width: 100% !important;
    max-height: 180px; overflow-y: auto; margin-top: 8px; padding: 6px;
    display: none; background: rgba(10,18,38,0.98);
    border: 1px solid var(--border2); border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  }

  #teamList.active { display: block; }
  .teams-panel.list-open { position: relative; margin-bottom: 0px; }

  .team-item { min-height: 42px; display: flex !important; align-items: center; padding: 10px 12px; }

  .team-arrow { height: 34px; padding: 6px 10px; font-size: 0.7rem; max-width: 110px; }
  .arrow-label { display: none; }
  .team-arrow.disabled { min-width: 34px; }
  .team-title-wrap h2 { font-size: 1.5rem; }

  .album-content { padding: 14px; min-height: unset; border-radius: var(--radius-md); }
  .team-header { gap: 2px; margin-bottom: 14px; padding-bottom: 12px; }

  .sticker-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sticker-card { min-height: 100px; padding: 8px 6px; border-radius: var(--radius-sm); }
  .sticker-num  { font-size: 0.6rem; }
  .sticker-name { font-size: 0.68rem; }
  .dupe-badge   { font-size: 0.55rem; padding: 2px 4px; }
  .sticker-remove-btn { display: block; }
  .sticker-remove-btn:active { background: rgba(232, 75, 75, 0.3); border-color: var(--red); }

  .duplicates-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .duplicate-card  { padding: 10px; }

  .user-duplicate-panel { padding: 14px; }
  .mini-dupe-card       { padding: 9px 10px; }
  .user-panel-actions   { gap: 6px; }
  .trade-btn, .wa-link, .btn-chat-user { font-size: 0.72rem; padding: 4px 10px; }

  .modal-header { padding: 16px 18px 14px; }
  .modal-body   { padding: 16px 18px 20px; }
  .modal-chat   { height: 90vh; }

  .trade-cols { grid-template-columns: 1fr; }

  .achievements-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .ranking-bar-wrap { min-width: 100px; }

  .toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { max-width: 100%; }

  .user-avatar-img { width: 30px; height: 30px; margin-left: 6px; }
  .sidebar-progress-wrap { margin-bottom: 12px; }
  .team-progress-wrap { max-width: 160px; }
  .auth-stats-strip { gap: 6px; }
  .auth-stat-sep { display: none; }
}

/* =========================================================
   EXTRA SMALL — ≤ 400px
   ========================================================= */
@media (max-width: 400px) {
  .brand h1 { font-size: 0.95rem; }
  .sidebar button { font-size: 0.65rem; padding: 9px 4px; }
  .sticker-grid   { gap: 6px; }
  .sticker-card   { min-height: 88px; }
  .duplicates-grid { grid-template-columns: 1fr; }
  .pack-stickers { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   TOUCH — sin hover side-effects en móvil
   ========================================================= */
@media (hover: none) {
  .sticker-card:hover,
  .sidebar button:hover { transform: none; }

  button, .sticker-card, .team-item,
  .duplicate-card, .mini-dupe-card {
    -webkit-tap-highlight-color: transparent;
  }
}
