:root {
  --bg-dark: #121417;
  --bg-card: #1E2126;
  --bg-card-elevated: #262A31;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #F3F5F8;
  --text-secondary: #9BA3B0;
  --text-muted: #68707E;

  --gremio-blue: #0D80BF;
  --inter-red: #E30613;
  --accent-green: #10B981;

  /* Tema padrão (antes do login / neutro) */
  --primary-color: #10B981;
  --primary-glow: rgba(16, 185, 129, 0.28);
  --header-pattern: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%);
}

/* Tema Dinâmico: GRÊMIO (#0D80BF + listras verticais sutis Tricolores no header) */
body[data-theme="gremio"] {
  --primary-color: #0D80BF;
  --primary-glow: rgba(13, 128, 191, 0.35);
  --header-pattern: repeating-linear-gradient(
    90deg,
    rgba(13, 128, 191, 0.16) 0px,
    rgba(13, 128, 191, 0.16) 14px,
    rgba(0, 0, 0, 0.22) 14px,
    rgba(0, 0, 0, 0.22) 24px,
    rgba(255, 255, 255, 0.05) 24px,
    rgba(255, 255, 255, 0.05) 28px
  );
}

/* Tema Dinâmico: INTERNACIONAL (#E30613 + linhas diagonais sutis no header) */
body[data-theme="inter"] {
  --primary-color: #E30613;
  --primary-glow: rgba(227, 6, 19, 0.35);
  --header-pattern: repeating-linear-gradient(
    -45deg,
    rgba(227, 6, 19, 0.17) 0px,
    rgba(227, 6, 19, 0.17) 12px,
    rgba(255, 255, 255, 0.03) 12px,
    rgba(255, 255, 255, 0.03) 24px
  );
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  background-color: #0B0C0E;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Container Mobile-First centralizado em telas maiores */
.mobile-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background-color: var(--bg-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.75);
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* ================= TELA DE AUTENTICAÇÃO ================= */
.auth-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 20px 36px;
  background:
    radial-gradient(circle at 15% 12%, rgba(13, 128, 191, 0.18), transparent 45%),
    radial-gradient(circle at 85% 12%, rgba(227, 6, 19, 0.18), transparent 45%),
    var(--bg-dark);
}

.auth-hero {
  text-align: center;
  margin-bottom: 22px;
}

.badge-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.auth-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.club-crest {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.vs-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.app-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 8px;
}

.app-title span {
  background: linear-gradient(90deg, var(--gremio-blue), #38BDF8 45%, #F87171 65%, var(--inter-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 320px;
  margin: 0 auto;
}

.auth-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-dark);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
}

.auth-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: var(--bg-card-elevated);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.required-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Seleção de Time (Grêmio / Internacional) */
.team-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.team-card {
  cursor: pointer;
  position: relative;
}

.team-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.team-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border-radius: 14px;
  background: var(--bg-dark);
  border: 2px solid var(--border-subtle);
  transition: all 0.2s ease;
  text-align: center;
}

.team-card-inner img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 8px;
}

.team-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.team-tag {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.gremio-option input:checked + .team-card-inner {
  border-color: var(--gremio-blue);
  background: linear-gradient(180deg, rgba(13, 128, 191, 0.22), rgba(18, 20, 23, 0.95));
  box-shadow: 0 0 18px rgba(13, 128, 191, 0.35);
}

.inter-option input:checked + .team-card-inner {
  border-color: var(--inter-red);
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.22), rgba(18, 20, 23, 0.95));
  box-shadow: 0 0 18px rgba(227, 6, 19, 0.35);
}

.auth-feedback {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.35;
}

.auth-feedback.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.auth-feedback.success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 13px;
  padding: 14px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  background: var(--primary-color);
  box-shadow: 0 6px 20px var(--primary-glow);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, background-color 0.25s ease;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ================= HEADER FIXO & PLACAR GLOBAL GRE-NAL ================= */
.main-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

/* Placar Global Gre-Nal */
.grenal-scoreboard {
  padding: 10px 14px 8px;
  background-color: rgba(18, 20, 23, 0.92);
  border-bottom: 1px solid var(--border-subtle);
}

.scoreboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.score-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-crest {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.score-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.score-meta.align-right {
  text-align: right;
}

.score-club {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.score-pct {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.score-gremio .score-pct {
  color: #38BDF8;
}

.score-inter .score-pct {
  color: #F87171;
}

.score-center-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Barra de Progresso Horizontal Azul vs Vermelho */
.score-progress-track {
  width: 100%;
  height: 11px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #0B0C0E;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-bar-gremio {
  height: 100%;
  background: linear-gradient(90deg, #095C8A, var(--gremio-blue));
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.score-bar-inter {
  height: 100%;
  background: linear-gradient(90deg, var(--inter-red), #9E040D);
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.scoreboard-pts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Faixa de Identidade do Clube (Listras Grêmio ou Diagonal Inter) */
.club-identity-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background-image: var(--header-pattern);
  background-color: var(--bg-card);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mini-crest {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.header-username {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.header-userid {
  display: inline-block;
  font-family: 'Outfit', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-color);
}

.territory-pill {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(18, 20, 23, 0.78);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.territory-pill strong {
  color: var(--text-primary);
}

/* ================= CONTEÚDO DAS ABAS ================= */
.app-content {
  flex: 1;
  padding: 18px 16px 104px;
  display: flex;
  flex-direction: column;
}

.tab-view {
  display: none;
  animation: fadeIn 0.2s ease;
}

.tab-view.active {
  display: block;
}

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

.placeholder-card,
.profile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.placeholder-card.highlight-border {
  border-color: var(--primary-color);
}

.placeholder-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary-color);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.placeholder-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.placeholder-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.placeholder-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.placeholder-card code {
  background: var(--bg-dark);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.placeholder-skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-item {
  height: 62px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--bg-dark) 25%, #1A1D22 50%, var(--bg-dark) 75%);
  border: 1px solid var(--border-subtle);
}

.camera-preview-placeholder {
  height: 190px;
  border-radius: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ================= ABA DE PERFIL & COSMÉTICOS (IMPÉTUOS OVERWATCH) ================= */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

/* --- MOLDURAS DE AVATAR (AVATAR FRAMES) --- */
.avatar-frame {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all 0.35s ease;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.profile-crest {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.avatar-streak-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 99px;
  background: #181B20;
  border: 1.5px solid #F59E0B;
  color: #FBBF24;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* 1. Padrão: Simples nas cores do time */
.avatar-frame.cosmetic-default {
  background: var(--primary-color);
  box-shadow: 0 0 18px var(--primary-glow);
}

/* 2. Streak 7 Dias: Moldura metálica cromada */
.avatar-frame.cosmetic-streak-7 {
  background: conic-gradient(
    from 0deg,
    #64748B,
    #E2E8F0,
    var(--primary-color),
    #F8FAFC,
    #475569,
    #E2E8F0,
    #64748B
  );
  box-shadow: 0 0 22px rgba(226, 232, 240, 0.28), 0 0 12px var(--primary-glow);
}

/* 3. Streak 30 Dias: Efeito "Impétuo" (Gradiente animado + brilho neon intenso) */
.avatar-frame.cosmetic-streak-30 {
  padding: 5px;
  background: linear-gradient(135deg, var(--primary-color), #FFFFFF, var(--primary-color), #38BDF8);
  background-size: 260% 260%;
  animation: drivePulseGradient 3s ease infinite;
  box-shadow:
    0 0 28px var(--primary-color),
    0 0 50px var(--primary-glow);
}

.avatar-frame.cosmetic-streak-30::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  animation: spinSlow 10s linear infinite;
}

/* 4. Streak 365 Dias: Moldura Lendária Dourada/Cristal com partículas */
.avatar-frame.cosmetic-streak-365 {
  padding: 5px;
  background: conic-gradient(
    from 45deg,
    #F59E0B,
    #FEF08A,
    #38BDF8,
    #FFFBEB,
    #D97706,
    #FDE047,
    #67E8F9,
    #F59E0B
  );
  animation: spinSlow 8s linear infinite;
  box-shadow:
    0 0 30px rgba(250, 204, 21, 0.65),
    0 0 55px rgba(56, 189, 248, 0.4);
}

.avatar-frame.cosmetic-streak-365 .avatar-inner,
.avatar-frame.cosmetic-streak-365 .avatar-streak-badge {
  animation: counterSpinSlow 8s linear infinite;
}

/* 5. Evento Especial: Dia da Coleta (Eco Cyber-Neon) */
.avatar-frame.cosmetic-event-coleta {
  background: conic-gradient(from 90deg, #059669, #34D399, #A7F3D0, #10B981, #047857);
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.55);
}

/* 6. Evento Especial: Mutirão de Natal (Rubi/Ouro/Gelo) */
.avatar-frame.cosmetic-event-natal {
  background: repeating-conic-gradient(
    from 0deg,
    #DC2626 0deg 25deg,
    #FDE047 25deg 40deg,
    #16A34A 40deg 65deg,
    #F8FAFC 65deg 72deg
  );
  box-shadow: 0 0 26px rgba(220, 38, 38, 0.5), 0 0 40px rgba(250, 204, 21, 0.35);
}

/* --- PLACAS DE NOME / NAMEPLATES (ESTILO OVERWATCH "IMPÉTUOS / DRIVES") --- */
.drive-nameplate {
  position: relative;
  width: 100%;
  max-width: 330px;
  padding: 10px 22px 11px;
  margin-bottom: 12px;
  overflow: hidden;
  /* Chanfros angulares esportivos estilo Overwatch Drives */
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  border-left: 4px solid var(--primary-color);
  border-right: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.drive-bg-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.drive-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.drive-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drive-tier-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2px;
}

.profile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  margin: 0;
}

/* Nameplate 1: Padrão */
.drive-nameplate.cosmetic-default .drive-bg-fx {
  background: linear-gradient(90deg, rgba(18, 20, 23, 0.95), var(--primary-glow), rgba(18, 20, 23, 0.95));
}

/* Nameplate 2: Streak 7 Dias (Metálica + Brilho Sutil) */
.drive-nameplate.cosmetic-streak-7 {
  border-left-color: #CBD5E1;
  border-right-color: var(--primary-color);
  box-shadow: 0 4px 18px rgba(148, 163, 184, 0.22);
}

.drive-nameplate.cosmetic-streak-7 .drive-bg-fx {
  background:
    linear-gradient(110deg, #1E293B 15%, #475569 45%, var(--primary-color) 75%, #1E293B 95%);
  background-size: 220% 100%;
  animation: shimmerSweep 4.5s ease-in-out infinite;
}

/* Nameplate 3: Streak 30 Dias (Efeito "IMPÉTUO" — Gradiente Animado, Chanfros e Neon Intenso) */
.drive-nameplate.cosmetic-streak-30 {
  clip-path: polygon(18px 0%, 100% 0%, calc(100% - 18px) 100%, 0% 100%);
  border-left: 5px solid #FFFFFF;
  border-right: 5px solid #FFFFFF;
  filter: drop-shadow(0 0 14px var(--primary-color));
}

.drive-nameplate.cosmetic-streak-30 .drive-bg-fx {
  background:
    repeating-linear-gradient(
      -55deg,
      rgba(255, 255, 255, 0.14) 0px,
      rgba(255, 255, 255, 0.14) 10px,
      transparent 10px,
      transparent 22px
    ),
    linear-gradient(90deg, #090D16 0%, var(--primary-color) 35%, #F8FAFC 50%, var(--primary-color) 65%, #090D16 100%);
  background-size: 100% 100%, 240% 100%;
  animation: drivePulseGradient 2.4s linear infinite;
}

.drive-nameplate.cosmetic-streak-30 .profile-name {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px #FFFFFF, 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Nameplate 4: Streak 365 Dias (Lendária Dourada/Cristal com Partículas) */
.drive-nameplate.cosmetic-streak-365 {
  clip-path: polygon(20px 0%, calc(100% - 8px) 0%, 100% 50%, calc(100% - 20px) 100%, 8px 100%, 0% 50%);
  border-left: 5px solid #FDE047;
  border-right: 5px solid #67E8F9;
  filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.65));
}

.drive-nameplate.cosmetic-streak-365 .drive-bg-fx {
  background:
    linear-gradient(125deg, #451A03 0%, #D97706 25%, #FEF08A 48%, #0284C7 72%, #F59E0B 100%);
  background-size: 260% 260%;
  animation: drivePulseGradient 3.2s ease infinite;
}

.drive-nameplate.cosmetic-streak-365 .drive-particles,
.avatar-frame.cosmetic-streak-365 .frame-particles {
  background-image:
    radial-gradient(circle at 18% 30%, #FFFFFF 1.5px, transparent 2.5px),
    radial-gradient(circle at 42% 75%, #FEF08A 2px, transparent 3px),
    radial-gradient(circle at 76% 25%, #67E8F9 2px, transparent 3px),
    radial-gradient(circle at 88% 70%, #FFFFFF 1.5px, transparent 2.5px);
  animation: sparkleFloat 2.2s ease-in-out infinite alternate;
}

/* Nameplate 5: Evento "Dia da Coleta" */
.drive-nameplate.cosmetic-event-coleta {
  border-left-color: #34D399;
  border-right-color: #10B981;
}

.drive-nameplate.cosmetic-event-coleta .drive-bg-fx {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(16, 185, 129, 0.2) 0px,
      rgba(16, 185, 129, 0.2) 12px,
      rgba(6, 78, 59, 0.5) 12px,
      rgba(6, 78, 59, 0.5) 24px
    ),
    linear-gradient(90deg, #022C22, #059669, #022C22);
}

/* Nameplate 6: Evento "Mutirão de Natal" */
.drive-nameplate.cosmetic-event-natal {
  border-left-color: #FDE047;
  border-right-color: #EF4444;
}

.drive-nameplate.cosmetic-event-natal .drive-bg-fx {
  background: linear-gradient(115deg, #7F1D1D 0%, #DC2626 35%, #14532D 70%, #B45309 100%);
  background-size: 200% 200%;
  animation: shimmerSweep 4s ease infinite;
}

.drive-nameplate.cosmetic-event-natal .drive-particles {
  background-image:
    radial-gradient(circle at 15% 40%, #FFFFFF 2px, transparent 3px),
    radial-gradient(circle at 55% 25%, #FDE047 2px, transparent 3px),
    radial-gradient(circle at 82% 65%, #FFFFFF 2px, transparent 3px);
  animation: sparkleFloat 2.5s ease-in-out infinite alternate;
}

@keyframes drivePulseGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmerSweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

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

@keyframes sparkleFloat {
  0% { opacity: 0.45; transform: translateY(2px) scale(0.96); }
  100% { opacity: 1; transform: translateY(-2px) scale(1.04); }
}

.profile-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.profile-id-badge {
  font-family: 'Outfit', monospace;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 99px;
  background: var(--bg-dark);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-icon-small {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.profile-team-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 12px;
}

.btn-customize-profile {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid var(--primary-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn-customize-profile:active {
  transform: scale(0.97);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.profile-stats-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.stat-box {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.stat-box.highlight-streak-box {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), var(--bg-dark));
}

.stat-value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* ================= 2. GALERIA CALENDÁRIO (ESTILO BEREAL / GYMRATS) ================= */
.calendar-gallery-section {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 12px;
  margin-bottom: 18px;
}

.calendar-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color);
}

.calendar-month-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.calendar-summary-pill {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-day {
  position: relative;
  aspect-ratio: 1 / 1.18;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.cal-day.empty {
  background: transparent;
  border-color: transparent;
}

.cal-day.today {
  border-color: var(--primary-color);
}

.cal-day-number {
  position: relative;
  z-index: 2;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cal-day.today .cal-day-number {
  color: var(--text-primary);
  font-weight: 900;
}

/* Dia com foto (Thumbnail BeReal / Gymrats) */
.cal-day.has-photo {
  cursor: pointer;
  border: 1.5px solid var(--primary-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.cal-day.has-photo:active {
  transform: scale(0.93);
}

.cal-day-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.76) contrast(1.05);
}

.cal-day.has-photo .cal-day-number {
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

.cal-day-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 6px #10B981;
  z-index: 2;
}

.calendar-hint {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* ================= MODAIS (COSMÉTICOS & DETALHE DO DIA) ================= */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 10, 13, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.app-modal-sheet {
  width: 100%;
  max-width: 410px;
  max-height: 86dvh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 18px 16px 22px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65);
  animation: modalSlideUp 0.22s ease;
}

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

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-eyebrow {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color);
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.btn-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-dark);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.cosmetics-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.btn-demo-unlock {
  border: 1px solid var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.cosmetics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cosmetic-item-card {
  background: var(--bg-dark);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  transition: border-color 0.2s ease;
}

.cosmetic-item-card.equipped {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.cosmetic-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cosmetic-item-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.cosmetic-req-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.cosmetic-req-badge.unlocked {
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
}

/* Mini preview da Nameplate dentro do modal */
.cosmetic-preview-strip {
  margin-bottom: 10px;
  pointer-events: none;
}

.cosmetic-preview-strip .drive-nameplate {
  max-width: 100%;
  margin-bottom: 0;
  padding: 7px 14px;
}

.cosmetic-preview-strip .profile-name {
  font-size: 0.95rem;
}

.cosmetic-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cosmetic-item-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.btn-equip-cosmetic {
  border: none;
  border-radius: 9px;
  padding: 7px 13px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  background: var(--primary-color);
  color: #FFFFFF;
  white-space: nowrap;
}

.btn-equip-cosmetic:disabled {
  background: var(--bg-card-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Modal de Detalhe do Dia do Calendário */
.day-modal-photo-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  background: #090A0C;
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
}

.day-modal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.day-modal-verified {
  position: absolute;
  top: 10px;
  right: 10px;
}

.day-modal-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.day-modal-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.day-modal-desc {
  font-size: 0.86rem;
  color: var(--text-primary);
  line-height: 1.45;
  background: var(--bg-dark);
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.btn-logout {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

/* ================= FEED PÚBLICO ================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color);
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.btn-mini-cta {
  border: none;
  border-radius: 99px;
  padding: 8px 13px;
  background: var(--primary-color);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.feed-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.filter-chip img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.filter-chip.active {
  background: var(--bg-card-elevated);
  color: var(--text-primary);
  border-color: var(--primary-color);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.feed-card.team-gremio {
  border-top: 3px solid var(--gremio-blue);
}

.feed-card.team-inter {
  border-top: 3px solid var(--inter-red);
}

.feed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.feed-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-user-crest {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: var(--bg-dark);
  padding: 4px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
}

.feed-username-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-username {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.feed-userid {
  font-family: 'Outfit', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-dark);
}

.team-gremio .feed-userid {
  color: #38BDF8;
}

.team-inter .feed-userid {
  color: #F87171;
}

.feed-submeta {
  display: block;
  font-size: 0.71rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.feed-photo-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0D0F12;
  overflow: hidden;
}

.feed-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-category-floating {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.category-pill {
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(18, 20, 23, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
}

.points-pill {
  font-family: 'Outfit', sans-serif;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.points-pill.scored-gremio {
  background: var(--gremio-blue);
}

.points-pill.scored-inter {
  background: var(--inter-red);
}

.points-pill.unscored {
  background: rgba(38, 42, 49, 0.92);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.feed-card-body {
  padding: 12px 14px 14px;
}

.feed-description {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-primary);
}

/* ================= CÂMERA & CAPTURA AO VIVO ================= */
.camera-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.camera-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.camera-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

/* Aviso Anti-Spam de 1 Foto Pontuada por Dia */
.daily-limit-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FDE68A;
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.daily-limit-banner svg {
  flex-shrink: 0;
  color: #FBBF24;
  margin-top: 1px;
}

.viewfinder-shell {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: #090A0C;
  border: 2px solid var(--border-subtle);
  margin-bottom: 12px;
}

.camera-video,
.camera-canvas,
.camera-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewfinder-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 4;
}

.camera-lock-badge,
.camera-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(18, 20, 23, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.camera-fallback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  gap: 10px;
  z-index: 3;
}

.camera-fallback-overlay p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 260px;
}

.btn-secondary-sm {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.camera-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-shutter {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--primary-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.shutter-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shutter-core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
}

.btn-retake {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-dark);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.action-category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-option {
  cursor: pointer;
  position: relative;
}

.category-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-option-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--bg-dark);
  border: 1.5px solid var(--border-subtle);
  transition: all 0.18s ease;
}

.category-option input:checked + .category-option-body {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.category-title {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.category-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.category-pts {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-color);
  white-space: nowrap;
}

.camera-form textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  resize: none;
  outline: none;
}

.camera-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ================= ABA: RANKING (ARENA VS BEIRA-RIO & LEADERBOARD) ================= */
.leader-status-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #FDE047;
  white-space: nowrap;
}

.mountains-arena-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px 14px;
  margin-bottom: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.mountains-card-header {
  text-align: center;
  margin-bottom: 14px;
}

.mountains-title {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
}

.mountains-subtitle {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mountains-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px;
  padding: 8px 6px 4px;
  background:
    radial-gradient(circle at 22% 75%, rgba(13, 128, 191, 0.15), transparent 55%),
    radial-gradient(circle at 78% 75%, rgba(227, 6, 19, 0.15), transparent 55%),
    var(--bg-dark);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.mountain-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 10px;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.mountain-column.is-leading {
  background: rgba(255, 255, 255, 0.02);
}

.floating-crest-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
  animation: floatCrest 3s ease-in-out infinite;
}

@keyframes floatCrest {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.leader-crown {
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #F59E0B, #FDE047);
  color: #121417;
  margin-bottom: 5px;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.55);
}

.floating-crest-bubble {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  border: 2px solid var(--border-subtle);
}

.floating-crest-bubble img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.gremio-bubble {
  border-color: var(--gremio-blue);
  box-shadow: 0 0 16px rgba(13, 128, 191, 0.45);
}

.inter-bubble {
  border-color: var(--inter-red);
  box-shadow: 0 0 16px rgba(227, 6, 19, 0.45);
}

.mountain-pts {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.mountain-kg {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Pista vertical onde a pilha/montanha cresce proporcionalmente */
.mountain-bar-track {
  width: 100%;
  max-width: 124px;
  height: 128px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  border-bottom: 2px solid rgba(255, 255, 255, 0.14);
}

.mountain-pile {
  width: 100%;
  min-height: 28%;
  max-height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mountain-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 -4px 12px rgba(0, 0, 0, 0.45));
}

.mountain-pct-label {
  position: absolute;
  bottom: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.mountain-base-label {
  text-align: center;
  margin-top: 8px;
}

.mountain-base-label strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.gremio-col .mountain-base-label strong {
  color: #38BDF8;
}

.inter-col .mountain-base-label strong {
  color: #F87171;
}

.mountain-base-label span {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.mountains-vs-divider {
  align-self: center;
  padding: 6px 8px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--text-muted);
}

/* Abas do Leaderboard (Pontos vs Streaks) */
.leaderboard-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-card);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.lb-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lb-tab.active {
  background: var(--bg-dark);
  color: var(--text-primary);
  border: 1px solid var(--primary-color);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.lb-row.is-me {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.lb-rank {
  width: 26px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.lb-rank.top-1 { color: #FDE047; font-size: 1.1rem; }
.lb-rank.top-2 { color: #E2E8F0; font-size: 1.02rem; }
.lb-rank.top-3 { color: #FDBA74; font-size: 0.98rem; }

/* Mini Moldura de Avatar no Ranking */
.lb-avatar-frame {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  padding: 3px;
  flex-shrink: 0;
}

.lb-avatar-frame .profile-crest {
  width: 26px;
  height: 26px;
}

/* Placa de Nome (Impétuo) compacta no Ranking */
.lb-drive-wrap {
  flex: 1;
  min-width: 0;
}

.lb-drive-wrap .drive-nameplate {
  max-width: 100%;
  margin-bottom: 0;
  padding: 6px 12px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.lb-drive-wrap .drive-content {
  align-items: flex-start;
}

.lb-drive-wrap .drive-tier-tag {
  font-size: 0.54rem;
  letter-spacing: 0.1em;
}

.lb-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.lb-drive-wrap .profile-name {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-userid {
  font-family: 'Outfit', monospace;
  font-size: 0.64rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  flex-shrink: 0;
}

.lb-metric {
  text-align: right;
  flex-shrink: 0;
  min-width: 66px;
}

.lb-metric-val {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--text-primary);
}

.lb-metric-sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ================= ABA: AMIGOS (ADICIONAR POR ID & CUTUCAR / NUDGE) ================= */
.add-friend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}

.add-friend-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.add-friend-row {
  display: flex;
  gap: 8px;
}

.add-friend-row input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 11px 12px;
  color: var(--text-primary);
  font-family: 'Outfit', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
}

.add-friend-row input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-add-friend {
  border: none;
  border-radius: 11px;
  padding: 0 16px;
  background: var(--primary-color);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.add-friend-hint {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.add-friend-hint code {
  background: var(--bg-dark);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text-secondary);
  font-family: 'Outfit', monospace;
}

.friends-list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.friends-list-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
}

.friends-list-header span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.friend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.friend-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.friend-crest-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.friend-crest-wrap.gremio { border-color: var(--gremio-blue); }
.friend-crest-wrap.inter { border-color: var(--inter-red); }

.friend-crest-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.friend-info {
  min-width: 0;
}

.friend-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.friend-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.friend-id {
  font-family: 'Outfit', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-dark);
  color: var(--text-secondary);
}

.friend-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.73rem;
  font-weight: 600;
}

.status-done {
  color: #34D399;
}

.status-pending {
  color: #FBBF24;
}

.friend-streak-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
}

/* Botão Cutucar 👉 (Nudge) */
.btn-nudge {
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.14);
  color: #FDE68A;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.btn-nudge:active {
  transform: scale(0.95);
}

.btn-nudge.nudged {
  background: var(--bg-dark);
  border-color: var(--border-subtle);
  color: var(--text-muted);
  cursor: default;
}

.friend-done-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34D399;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

/* Toast Flutuante de Cutucada */
.app-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 398px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 14px;
  background: #181B20;
  border: 1.5px solid #F59E0B;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  animation: toastPop 0.25s ease;
}

@keyframes toastPop {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.toast-icon {
  font-size: 1.35rem;
}

.toast-body {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.toast-body strong {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: #FDE68A;
}

.toast-body span {
  font-size: 0.75rem;
  color: var(--text-primary);
}

/* ================= EDITAR PERFIL & DENÚNCIA DE FOTOS NO FEED ================= */
.avatar-inner {
  overflow: hidden;
}

.profile-crest.is-custom-photo,
.mini-crest.is-custom-photo,
.feed-user-crest.is-custom-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  padding: 0;
}

.mini-crest.is-custom-photo {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--primary-color);
}

.feed-user-crest.is-custom-photo {
  width: 34px;
  height: 34px;
}

.avatar-edit-fab {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 5;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card-elevated);
  color: var(--text-primary);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.avatar-frame.cosmetic-streak-365 .avatar-edit-fab {
  animation: counterSpinSlow 8s linear infinite;
}

.profile-bio-text {
  font-size: 0.78rem;
  color: var(--text-primary);
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
  max-width: 100%;
}

.profile-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-edit-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-elevated);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-edit-profile:active {
  transform: scale(0.97);
}

.edit-avatar-section {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.edit-avatar-preview-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edit-avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-avatar-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-upload-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--primary-color);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.avatar-presets-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-preset-chip {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
}

.modal-actions-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-top: 14px;
}

/* Rodapé de Ações do Card do Feed e Botão Denunciar Foto */
.feed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.feed-fairplay-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-report-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #FCA5A5;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-report-post:hover {
  background: rgba(239, 68, 68, 0.18);
  transform: scale(1.05);
}

.btn-report-post.already-reported {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.15);
  color: #FDE68A;
  cursor: default;
  opacity: 0.7;
}

.reported-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feed-photo.is-blurred {
  filter: blur(16px) brightness(0.45);
  transform: scale(1.06);
}

.feed-reported-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background: rgba(12, 14, 18, 0.55);
}

.feed-reported-overlay strong {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  color: #FCA5A5;
  margin-bottom: 4px;
}

.feed-reported-overlay span {
  font-size: 0.74rem;
  color: var(--text-secondary);
  max-width: 250px;
  margin-bottom: 10px;
}

.btn-toggle-reported-photo {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
}

.report-modal-intro {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.report-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-danger-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  background: #DC2626;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

/* ================= 4. BOTTOM BAR (NAVEGAÇÃO INFERIOR) ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 72px;
  background-color: rgba(30, 33, 38, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 6px;
  z-index: 60;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-item.active {
  color: var(--primary-color);
}

/* Botão Central de Câmera Destacado */
.nav-camera-cta {
  position: relative;
  top: -16px;
}

.camera-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px var(--primary-glow), 0 0 0 4px var(--bg-dark);
  transition: transform 0.18s ease, background-color 0.25s ease;
}

.nav-camera-cta:active .camera-fab {
  transform: scale(0.93);
}

.camera-label {
  margin-top: 2px;
  font-weight: 700;
  color: var(--text-secondary);
}

.nav-camera-cta.active .camera-label {
  color: var(--primary-color);
}
