/* ===========================
   RESET E VARIÁVEIS
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:        #0a1a0f;
  --bg2:       #0f2318;
  --bg3:       #122b1a;
  --card:      #163320;
  --border:    #1f4a2a;
  --text:      #e8f5e9;
  --text2:     #7aab85;
  --accent:    #2e7d32;
  --accent2:   #4caf50;
  --nav-height:70px;
  --kiwi:      #8bc34a;
  --radius:    14px;
  --sidebar-w: 220px;
  --font-game: 'Orbitron', sans-serif;
  --font-ui:   'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body.theme-rosa {
  --bg:     #1a0a14; --bg2:    #2e1a26; --bg3:    #3e162e;
  --card:   #351e30; --border: #4a2a40; --text:   #fce4ec;
  --text2:  #c994b0; --accent: #c2185b; --accent2:#e91e63;
}
body.theme-azul {
  --bg:     #0a0f1a; --bg2:    #1a2e3e; --bg3:    #163e4e;
  --card:   #1e3045; --border: #2a4060; --text:   #e3f2fd;
  --text2:  #7eb8d4; --accent: #0277bd; --accent2:#0ea5e9;
}
body.theme-roxo {
  --bg:     #0f0f1a; --bg2:    #1a1a2e; --bg3:    #16213e;
  --card:   #1e1e35; --border: #2a2a4a; --text:   #ede7f6;
  --text2:  #9999bb; --accent: #6a1b9a; --accent2:#a855f7;
}
body.theme-escuro {
  --bg:     #000000; --bg2:    #0d0d0d; --bg3:    #111111;
  --card:   #1a1a1a; --border: #2a2a2a; --text:   #eeeeee;
  --text2:  #888888; --accent: #333333; --accent2:#666666;
}

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

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 4px; }

/* ===========================
   LAYOUT WRAPPER
=========================== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===========================
   SIDEBAR — só PC
=========================== */
.sidebar {
  display: none;
}

@media (min-width: 900px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    padding: 24px 0 20px;
  }

  .main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    max-width: 960px;
    padding: 0;
  }
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.logo-icon { font-size: 28px; }

.logo-text {
  font-family: var(--font-game);
  font-size: 16px;
  font-weight: 900;
  color: var(--accent2);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(76,175,80,0.5);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  flex: 1;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--text2);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.sidebar-btn i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.sidebar-btn:hover {
  background: rgba(76,175,80,0.1);
  color: var(--accent2);
}

.sidebar-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 4px 15px rgba(46,125,50,0.4);
}

.sidebar-footer {
  padding: 16px 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-kiwis {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--kiwi);
}

.sidebar-level {
  font-size: 12px;
  color: var(--text2);
}

/* ===========================
   MAIN CONTENT
=========================== */
.main-content {
  flex: 1;
  min-width: 0;
}

/* ===========================
   TOAST
=========================== */
.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--accent2);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  white-space: nowrap;
  transition: opacity 0.3s;
}
.toast.hidden { display: none; }

/* ===========================
   BOOST INDICATOR
=========================== */
.boost-indicator {
  position: fixed;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 998;
  animation: pulse 2s infinite;
  box-shadow: 0 0 15px var(--accent2);
}
.boost-indicator.hidden { display: none; }

/* ===========================
   SCREENS
=========================== */
#app {
  padding-bottom: calc(var(--nav-height) + 16px);
  min-height: 100vh;
}

@media (min-width: 900px) {
  #app { padding-bottom: 24px; }
}

.screen { display: none; padding: 16px; animation: fadeIn 0.3s ease; }
.screen.active { display: block; }

@media (min-width: 900px) {
  .screen { padding: 28px 32px; }
}

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

/* ===========================
   GAMER HEADERS
=========================== */
.gamer-header {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  padding: 0;
}

.gamer-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg3), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.range-header .gamer-header-bg {
  background: linear-gradient(135deg, #0d2b10, #1a4a1e);
  border-color: var(--accent2);
}

.loja-header .gamer-header-bg {
  background: linear-gradient(135deg, #1a2b0d, #2a4a1a);
  border-color: var(--kiwi);
}

.colecao-header .gamer-header-bg {
  background: linear-gradient(135deg, #2b1a0d, #4a2e10);
  border-color: #f59e0b;
}

.gamer-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}

.gamer-header-icon {
  font-size: 38px;
  filter: drop-shadow(0 0 10px rgba(76,175,80,0.6));
}

.loja-header .gamer-header-icon {
  filter: drop-shadow(0 0 10px rgba(139,195,74,0.6));
}

.colecao-header .gamer-header-icon {
  filter: drop-shadow(0 0 10px rgba(251,191,36,0.6));
}

.gamer-title {
  font-family: var(--font-game);
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(76,175,80,0.5);
  line-height: 1;
}

@media (min-width: 900px) {
  .gamer-title { font-size: 28px; }
}

.colecao-header .gamer-title {
  text-shadow: 0 0 20px rgba(251,191,36,0.5);
}

.gamer-subtitle {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text2);
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 600;
}

.gamer-header-deco {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.gamer-header-deco span {
  display: block;
  height: 28px;
  border-radius: 3px;
  opacity: 0.3;
}

.gamer-header-deco span:nth-child(1) { width: 4px;  background: var(--accent2); opacity: 0.6; }
.gamer-header-deco span:nth-child(2) { width: 4px;  background: var(--accent2); opacity: 0.4; }
.gamer-header-deco span:nth-child(3) { width: 4px;  background: var(--accent2); opacity: 0.2; }

.colecao-header .gamer-header-deco span { background: #f59e0b; }
.loja-header    .gamer-header-deco span { background: var(--kiwi); }

.header-kiwis-display {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(139,195,74,0.15);
  border: 1px solid rgba(139,195,74,0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--kiwi);
}

/* ===========================
   LOBBY GRID (PC)
=========================== */
.lobby-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 900px) {
  .lobby-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
  }
}

.lobby-col-main { min-width: 0; }
.lobby-col-side  { display: flex; flex-direction: column; gap: 16px; }

/* ===========================
   LOBBY HEADER
=========================== */
.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.profile-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--accent2);
  object-fit: cover;
}

.avatar-frame {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  pointer-events: none;
}

.avatar-frame.frame-brilhante {
  background: conic-gradient(#f59e0b,#ec4899,#8b5cf6,#06b6d4,#f59e0b);
  animation: spin 3s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
}
.avatar-frame.frame-dourada {
  background: conic-gradient(#f59e0b,#fbbf24,#fef08a,#f59e0b);
  animation: spin 4s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
}
.avatar-frame.frame-nebulosa {
  background: conic-gradient(#6366f1,#8b5cf6,#ec4899,#06b6d4,#6366f1);
  animation: spin 2s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
}
.avatar-frame.frame-kiwi {
  background: conic-gradient(#8bc34a,#4caf50,#cddc39,#8bc34a);
  animation: spin 3s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.avatar-edit-btn {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 20px; height: 20px;
  background: var(--accent2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--bg);
  z-index: 10;
  transition: all 0.2s;
}
.avatar-edit-btn i { font-size: 9px; color: white; }
.avatar-edit-btn:hover { transform: scale(1.15); filter: brightness(1.2); }

.profile-info { display: flex; flex-direction: column; gap: 2px; }
.profile-name { font-weight: 700; font-size: 16px; font-family: var(--font-ui); }
.player-rank  { font-size: 12px; color: var(--accent2); font-weight: 600; }

.active-title-display {
  font-size: 11px;
  color: var(--kiwi);
  font-weight: 600;
  min-height: 14px;
}

.profile-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.kiwis-display {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(139,195,74,0.15);
  border: 1px solid rgba(139,195,74,0.35);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  color: var(--kiwi);
  font-size: 14px;
}

.kiwi-icon { font-size: 16px; }
.level-display { font-size: 12px; color: var(--text2); }

/* ===========================
   XP BAR
=========================== */
.xp-bar-wrapper { margin-bottom: 14px; }

.xp-bar {
  height: 8px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}

.xp-label { font-size: 11px; color: var(--text2); }

/* ===========================
   FEATURED MISSION
=========================== */
.featured-mission-wrapper { margin-bottom: 14px; }

.featured-mission {
  background: linear-gradient(135deg, var(--card), var(--bg3));
  border: 1px solid var(--accent2);
  border-radius: var(--radius);
  padding: 14px;
  animation: glow 3s infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 10px rgba(76,175,80,0.2); }
  to   { box-shadow: 0 0 25px rgba(76,175,80,0.5); }
}

.no-featured { color: var(--text2); font-size: 13px; }

/* ===========================
   GRÁFICO
=========================== */
.chart-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}

.chart-bars {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  height: 90px;
  margin-top: 10px;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}

.chart-bar-fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height 0.6s ease;
}

.chart-bar-fill.ativas    { background: linear-gradient(180deg,#66bb6a,#388e3c); }
.chart-bar-fill.pausadas  { background: linear-gradient(180deg,#f59e0b,#d97706); }
.chart-bar-fill.concluidas{ background: linear-gradient(180deg,var(--accent2),var(--accent)); }
.chart-bar-label { font-size: 11px; color: var(--text2); text-align: center; }

/* ===========================
   SECTION TITLES
=========================== */
.section-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.mt { margin-top: 16px; }

/* ===========================
   MISSION CARDS
=========================== */
.missions-section { margin-bottom: 20px; }

.missions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 10px;
}

.mission-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.3s ease;
  transition: border-color 0.2s;
}

.mission-card:hover { border-color: var(--accent); }
.mission-card.expirada { border-color: #ef4444; opacity: 0.75; }

.mission-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.mission-card-info { flex: 1; }
.mission-card-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; font-family: var(--font-ui); }
.mission-card-desc { font-size: 12px; color: var(--text2); }

.mission-rank-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
  font-family: var(--font-ui);
}

.mission-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text2);
}

.mission-card-actions { display: flex; gap: 6px; }

.btn-action {
  flex: 1;
  padding: 7px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  font-family: var(--font-ui);
  letter-spacing: 0.3px;
}

.btn-complete { background: linear-gradient(135deg,#388e3c,#66bb6a); color: white; }
.btn-pause    { background: rgba(245,158,11,0.2); color:#f59e0b; border:1px solid rgba(245,158,11,0.3); }
.btn-resume   { background: rgba(102,187,106,0.2); color:#66bb6a; border:1px solid rgba(102,187,106,0.3); }
.btn-delete   { background: rgba(239,68,68,0.15); color:#ef4444; border:1px solid rgba(239,68,68,0.3); flex:0; padding:7px 10px; }
.btn-edit     { background: rgba(59,130,246,0.15); color:#3b82f6; border:1px solid rgba(59,130,246,0.3); }
.btn-action:hover { transform: scale(1.03); filter: brightness(1.1); }

/* RANK BADGE COLORS */
.rank-ferro      { background:rgba(156,163,175,0.2); color:#9ca3af; border:1px solid #9ca3af; }
.rank-bronze     { background:rgba(180,120,60,0.2);  color:#b4783c; border:1px solid #b4783c; }
.rank-prata      { background:rgba(192,192,192,0.2); color:#c0c0c0; border:1px solid #c0c0c0; }
.rank-ouro       { background:rgba(255,215,0,0.2);   color:#ffd700; border:1px solid #ffd700; }
.rank-platina    { background:rgba(0,229,229,0.15);  color:#00e5e5; border:1px solid #00e5e5; }
.rank-diamante   { background:rgba(59,130,246,0.2);  color:#3b82f6; border:1px solid #3b82f6; }
.rank-ascendente { background:rgba(102,187,106,0.2); color:#66bb6a; border:1px solid #66bb6a; }
.rank-imortal    { background:rgba(239,68,68,0.2);   color:#ef4444; border:1px solid #ef4444; }
.rank-radiante   { background:rgba(251,191,36,0.2);  color:#fbbf24; border:1px solid #fbbf24; box-shadow:0 0 8px rgba(251,191,36,0.4); }

/* ===========================
   FORM
=========================== */
.form-wrapper {
  max-width: 600px;
}

@media (min-width: 900px) {
  .form-wrapper { max-width: 560px; }
}

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

.form-group { display:flex; flex-direction:column; gap:8px; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group input,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent2); }

.rank-selector { display:flex; flex-wrap:wrap; gap:6px; }

.rank-btn {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-ui);
  font-weight: 600;
}

.rank-btn.active {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(76,175,80,0.15);
}

.recurrence-selector { display:flex; gap:8px; }

.rec-btn {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-ui);
  font-weight: 600;
}

.rec-btn.active {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(76,175,80,0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-ui);
  letter-spacing: 0.5px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover  { transform:scale(1.02); filter:brightness(1.1); }
.btn-primary:active { transform:scale(0.98); }

/* ===========================
   SAVE / EXPORT / IMPORT
=========================== */
.save-section { margin-top: 0; margin-bottom: 0; }

.save-buttons { display:flex; gap:10px; }

.btn-save {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-ui);
  border: none;
  text-align: center;
  letter-spacing: 0.3px;
}

.btn-save.export { background: linear-gradient(135deg,#1b5e20,#388e3c); color: white; }
.btn-save.import { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; }
.btn-save:hover  { transform:scale(1.02); filter:brightness(1.1); }
.btn-save:active { transform:scale(0.98); }

/* ===========================
   LOJA LAYOUT
=========================== */
.shop-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 900px) {
  .shop-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
  }
}

.shop-col-main { min-width: 0; }
.shop-col-side  {}

.shop-section { margin-bottom: 24px; }

.daily-offer-card {
  background: linear-gradient(135deg, var(--card), var(--bg3));
  border: 1px solid var(--accent2);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 0 20px rgba(76,175,80,0.2);
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

.shop-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s;
}

.shop-item:hover { border-color: var(--accent2); transform:translateY(-2px); }
.shop-item.owned { border-color:#66bb6a; opacity:0.8; }

.shop-item-icon { font-size:28px; }
.shop-item-name { font-size:13px; font-weight:700; font-family: var(--font-ui); }
.shop-item-desc { font-size:11px; color:var(--text2); }

.shop-item-price {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--kiwi);
  font-size: 13px;
  margin-top: 4px;
}

/* ===========================
   COLEÇÃO LAYOUT
=========================== */
.colecao-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 900px) {
  .colecao-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: start;
  }
}

.colecao-col-main { min-width: 0; }
.colecao-col-side  {}

.titles-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 10px;
  margin-bottom: 10px;
}

@media (min-width: 900px) {
  .titles-grid { grid-template-columns: repeat(6, 1fr); }
}

.title-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.title-card.unlocked {
  border-color: var(--accent2);
  box-shadow: 0 0 10px rgba(76,175,80,0.2);
  cursor: pointer;
}

.title-card.unlocked:hover { transform:translateY(-2px); }

.title-card.active-title {
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(251,191,36,0.4);
}

.title-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 8px;
}

.title-card.locked .title-icon { filter:grayscale(1); opacity:0.4; }

.title-name {
  font-size: 9px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text2);
  font-family: var(--font-ui);
}

.title-card.unlocked .title-name { color:var(--text); }

/* ===========================
   STATS
=========================== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.stat-value { font-size:24px; font-weight:800; color:var(--accent2); font-family: var(--font-game); }
.stat-label { font-size:11px; color:var(--text2); margin-top:4px; font-family: var(--font-ui); font-weight:600; }

/* ===========================
   NAVBAR MOBILE
=========================== */
.navbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 100;
  backdrop-filter: blur(10px);
}

@media (min-width: 900px) {
  .navbar { display: none; }
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 10px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s;
  font-family: var(--font-ui);
  font-weight: 600;
}

.nav-btn i { font-size:18px; }
.nav-btn.active { color:var(--accent2); }

.nav-btn.active:not(.lobby-btn) {
  background: rgba(76,175,80,0.12);
  border-radius: 12px;
}

.nav-btn.lobby-btn { padding: 12px 20px; border-radius: 16px; }
.nav-btn.lobby-btn i    { font-size:22px; }
.nav-btn.lobby-btn span { font-size:11px; font-weight:700; }

.nav-btn.lobby-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 4px 15px rgba(46,125,50,0.5);
}

/* ===========================
   MODAL
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}

.modal-overlay.hidden { display:none; }

.modal-box {
  background: var(--card);
  border: 1px solid var(--accent2);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 40px rgba(76,175,80,0.4);
}

@keyframes popIn {
  from { transform:scale(0.7); opacity:0; }
  to   { transform:scale(1);   opacity:1; }
}

.modal-emoji  { font-size:52px; margin-bottom:10px; }
.modal-box h3 { font-size:20px; font-weight:800; margin-bottom:6px; font-family: var(--font-game); }
.modal-box p  { color:var(--text2); font-size:13px; margin-bottom:14px; }

.modal-rewards {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-ui);
}

/* ===========================
   CONFETTI
=========================== */
#confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px; height: 10px;
  top: -10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0%   { transform:translateY(0) rotate(0deg);      opacity:1; }
  100% { transform:translateY(110vh) rotate(720deg); opacity:0; }
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes pulse {
  0%,100% { box-shadow:0 0 10px var(--accent); }
  50%      { box-shadow:0 0 25px var(--accent2); }
}

/* ===========================
   EMPTY STATE
=========================== */
.empty-state {
  text-align: center;
  color: var(--text2);
  font-size: 13px;
  padding: 16px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ui);
}