/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   MARICÁ ECONOMIC PANEL - ONE WORLD TRADE CENTER STYLE
   Inspired by "ONE: Union of the Senses" Mural
   Glass, Urban, Metallic Aesthetic
   ============================================ */

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

:root {
  /* === BASE: Urban Blue-Gray === */
  --bg-space: #0a1118;
  --bg-deep: #0d1520;
  --bg-panel: rgba(13, 21, 32, 0.85);
  --bg-card: rgba(18, 28, 42, 0.8);
  
  /* === GLASS EFFECT === */
  --bg-glass: rgba(20, 35, 55, 0.6);
  --bg-glass-hover: rgba(30, 50, 75, 0.7);
  --glass-blur: blur(24px);
  --glass-border: rgba(120, 140, 170, 0.15);
  
  /* === METALLIC BORDERS === */
  --border-subtle: rgba(140, 160, 190, 0.2);
  --border-metallic: rgba(180, 195, 220, 0.25);
  --border-shine: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.05) 100%);
  
  /* === TEXT === */
  --text-primary: #E8ECF2;
  --text-secondary: #A0AABB;
  --text-dim: #6B7A8C;
  
  /* === VIBRANT ACCENTS (Union of Senses Inspired) === */
  --accent-orange: #FF8C42;
  --accent-blue: #4DA8DA;
  --accent-green: #2DD4A8;
  --accent-coral: #FF6B6B;
  --accent-teal: #4ECDC4;
  --accent-gold: #FFD93D;
  
  /* === GRADIENTS === */
  --gradient-union: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #45B7D1 100%);
  --gradient-success: linear-gradient(135deg, #2DD4A8 0%, #4ECDC4 100%);
  --gradient-warm: linear-gradient(135deg, #FF8C42 0%, #FFD93D 100%);
  --gradient-glass: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%);
  
  /* === GLOW EFFECTS === */
  --glow-blue: 0 0 30px rgba(77, 168, 218, 0.3);
  --glow-green: 0 0 30px rgba(45, 212, 168, 0.3);
  --glow-orange: 0 0 30px rgba(255, 140, 66, 0.3);
  --glow-teal: 0 0 40px rgba(78, 205, 196, 0.25);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-space);
  background-image: 
    radial-gradient(ellipse at 20% 80%, rgba(77, 168, 218, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(78, 205, 196, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(45, 212, 168, 0.04) 0%, transparent 70%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   WELCOME SCREEN - ONE WORLD STYLE
   ============================================ */

.welcomeScreen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a1118 0%, #0d1a28 40%, #0a1520 100%);
  background-image: 
    radial-gradient(ellipse at 30% 70%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(77, 168, 218, 0.08) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
}

.welcomeContent {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.welcomeLogo {
  margin-bottom: 40px;
  animation: logoFloat 3s ease-in-out infinite;
}

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

.greetingContainer {
  animation: fadeInUp 0.6s ease;
}

.greetingFlag {
  font-size: 64px;
  display: block;
  margin-bottom: 20px;
  animation: flagPulse 0.8s ease infinite;
}

@keyframes flagPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.greetingText {
  font-size: 56px;
  font-weight: 300;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.2);
}

.greetingLang {
  font-size: 16px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.revealContainer {
  animation: revealFadeIn 1s ease;
}

@keyframes revealFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.revealTitle {
  font-size: 72px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.revealLine {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
  margin: 0 auto 20px;
  border-radius: 2px;
  animation: lineExpand 0.8s ease 0.3s both;
}

@keyframes lineExpand {
  from { width: 0; opacity: 0; }
  to { width: 120px; opacity: 1; }
}

.revealSubtitle {
  font-size: 36px;
  font-weight: 400;
  color: var(--accent-orange);
  margin-bottom: 16px;
}

.revealMeta {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Particles */
.welcomeParticles {
  position: absolute;
  inset: -100px;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  left: var(--x);
  bottom: -10px;
  animation: particleRise var(--duration) ease-in-out var(--delay) infinite;
}

@keyframes particleRise {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-800px) scale(1); opacity: 0; }
}

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

.skipButton {
  margin-top: 60px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.skipButton:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #050810 0%, #0a1020 100%);
  animation: dashboardFadeIn 1s ease;
  overflow: hidden;
}

@keyframes dashboardFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   HEADER
   ============================================ */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(10, 17, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.titleBlock h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(232, 236, 242, 0.1);
}

.titleBlock span {
  font-size: 12px;
  color: var(--accent-coral);
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
  letter-spacing: 0.02em;
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 24px;
}

.clockDisplay {
  text-align: right;
}

.clockTime {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.clockDate {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.headerBadge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.12), rgba(45, 212, 168, 0.06));
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(78, 205, 196, 0.15);
  animation: badgeGlow 4s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(78, 205, 196, 0.15); }
  50% { box-shadow: 0 0 35px rgba(78, 205, 196, 0.3), 0 0 60px rgba(78, 205, 196, 0.1); }
}

.headerBadge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.live-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-teal);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 15px var(--accent-teal);
}

@keyframes livePulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 15px var(--accent-teal);
  }
  50% { 
    opacity: 0.6; 
    transform: scale(0.85);
    box-shadow: 0 0 25px var(--accent-teal), 0 0 40px rgba(78, 205, 196, 0.3);
  }
}

/* Logout button */
.logoutButton {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logoutButton:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: var(--accent-coral);
  color: var(--accent-coral);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.25);
}

.logoutButton svg {
  flex-shrink: 0;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

.main {
  flex: 1 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-gap: 20px;
  gap: 20px;
  padding: 20px 32px;
  overflow: hidden;
}

/* ============================================
   LEFT PANEL - HISTORICAL & PROJECTIONS
   ============================================ */

.leftPanel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideInLeft 0.6s ease 0.2s both;
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Historical Grid */
.historicalGrid {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
}

.gridHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.gridIcon { font-size: 14px; }

.gridBars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100px;
  margin-bottom: 12px;
}

.gridBar {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.barFill {
  width: 100%;
  background: linear-gradient(180deg, var(--accent-blue), #1e40af);
  border-radius: 2px 2px 0 0;
  animation: barGrow 1s ease both;
  transition: background 0.3s ease;
}

.gridBar.recent .barFill {
  background: linear-gradient(180deg, var(--accent-orange), #ea580c);
}

@keyframes barGrow {
  from { height: 0 !important; }
}

.barLabel {
  font-size: 8px;
  color: var(--text-dim);
  margin-top: 4px;
}

.gridLegend {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

/* Projections Panel */
.projectionsPanel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  flex: 1 1;
}

.projHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.projIcon { font-size: 14px; }

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

.projItem {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: rgba(30, 64, 175, 0.1);
  border-radius: 8px;
  animation: fadeInUp 0.5s ease both;
}

.projBairro {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.projValues {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.projAtual { color: var(--text-secondary); }
.projArrow { color: var(--accent-green); }
.projFuturo { color: var(--accent-green); font-weight: 600; }

.projGrowth {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
  align-self: flex-end;
}

/* ============================================
   MAP CONTAINER - GLASS PORTAL EFFECT
   ============================================ */

.mapContainer {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-space);
  animation: mapFadeIn 1s ease 0.4s both;
  box-shadow: 
    0 0 0 1px var(--glass-border),
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 100px rgba(78, 205, 196, 0.03);
}

/* Glass reflection overlay */
.mapContainer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 10;
}

/* Animated border glow */
.mapContainer::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(
    45deg,
    rgba(78, 205, 196, 0.3) 0%,
    transparent 30%,
    transparent 70%,
    rgba(77, 168, 218, 0.3) 100%
  );
  z-index: -1;
  animation: mapBorderGlow 8s linear infinite;
  opacity: 0.5;
}

@keyframes mapBorderGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes mapFadeIn {
  from { 
    opacity: 0; 
    transform: scale(0.98);
  }
  to { 
    opacity: 1; 
    transform: scale(1);
  }
}

.mapboxContainer {
  width: 100%;
  height: 100%;
  min-height: 450px;
}

.mapboxgl-ctrl-attrib, 
.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right { 
  display: none !important; 
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Popup - Glass Portal Style */
.mapbox-popup-institutional .mapboxgl-popup-content {
  background: rgba(13, 21, 32, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 14px;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(78, 205, 196, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  padding: 0;
  animation: popupAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Popup glass reflection */
.mapbox-popup-institutional .mapboxgl-popup-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 100%
  );
  pointer-events: none;
}

@keyframes popupAppear {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mapbox-popup-institutional .mapboxgl-popup-tip {
  border-top-color: rgba(13, 21, 32, 0.92);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.popup-content { 
  padding: 18px 22px; 
  position: relative;
  z-index: 1;
}

.popup-bairro { 
  font-size: 15px; 
  font-weight: 600; 
  color: var(--text-primary); 
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(78, 205, 196, 0.15);
  text-shadow: 0 0 20px rgba(232, 236, 242, 0.1);
}

.popup-value { 
  font-size: 26px; 
  font-weight: 700; 
  color: var(--accent-teal); 
  margin-bottom: 6px;
  text-shadow: 0 0 30px rgba(78, 205, 196, 0.4);
  animation: popupValueGlow 2s ease-in-out infinite;
}

@keyframes popupValueGlow {
  0%, 100% { text-shadow: 0 0 25px rgba(78, 205, 196, 0.3); }
  50% { text-shadow: 0 0 40px rgba(78, 205, 196, 0.5), 0 0 60px rgba(45, 212, 168, 0.2); }
}

.popup-meta { 
  font-size: 12px; 
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.popup-empresas { 
  font-size: 12px; 
  color: var(--accent-blue); 
  margin-top: 10px; 
  padding-top: 10px; 
  border-top: 1px solid rgba(77, 168, 218, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
}

.popup-empresas-value { 
  color: var(--accent-blue); 
  text-shadow: 0 0 20px rgba(77, 168, 218, 0.4);
  font-weight: 600;
}

/* Loading */
.mapLoading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-space);
  z-index: 100;
}

.loadingSpinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Ranking - Glass Portal Panel */
.rankingPanel {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 340px;
  padding: 18px;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(78, 205, 196, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: slideUp 0.6s ease 0.6s both;
}

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

.rankingHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

.rankingHeader span:first-child {
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(255, 217, 61, 0.5));
}

.rankNeighborhood {
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 2px;
  display: block;
}

.rankItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  border-bottom: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.rankItem:nth-child(2) { animation: rankItemFadeIn 0.4s ease 0.1s both; }
.rankItem:nth-child(3) { animation: rankItemFadeIn 0.4s ease 0.2s both; }
.rankItem:nth-child(4) { animation: rankItemFadeIn 0.4s ease 0.3s both; }
.rankItem:nth-child(5) { animation: rankItemFadeIn 0.4s ease 0.4s both; }
.rankItem:nth-child(6) { animation: rankItemFadeIn 0.4s ease 0.5s both; }

@keyframes rankItemFadeIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Top 1 - Gold glow */
.rankItem:nth-child(2) {
  background: linear-gradient(90deg, rgba(255, 217, 61, 0.08), transparent);
}

/* Top 2 - Silver glow */
.rankItem:nth-child(3) {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.06), transparent);
}

/* Top 3 - Bronze glow */
.rankItem:nth-child(4) {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.06), transparent);
}

.rankItem:last-child { border-bottom: none; }

.rankItem:hover {
  background: linear-gradient(90deg, rgba(78, 205, 196, 0.12), rgba(78, 205, 196, 0.02));
  transform: translateX(4px);
  box-shadow: 0 0 25px rgba(78, 205, 196, 0.15);
}

.rankItem.itemPulse {
  animation: itemPulse 2s ease;
  background: linear-gradient(90deg, rgba(78, 205, 196, 0.2), rgba(45, 212, 168, 0.05));
  box-shadow: 
    0 0 30px rgba(78, 205, 196, 0.3),
    inset 0 0 20px rgba(78, 205, 196, 0.1);
}

@keyframes itemPulse {
  0% { 
    background: linear-gradient(90deg, rgba(78, 205, 196, 0.35), rgba(45, 212, 168, 0.1));
    box-shadow: 0 0 40px rgba(78, 205, 196, 0.4);
  }
  100% { 
    background: linear-gradient(90deg, rgba(78, 205, 196, 0.1), transparent);
    box-shadow: none;
  }
}

.rankBadge {
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  position: relative;
}

/* Gold badge glow */
.rankItem:nth-child(2) .rankBadge {
  box-shadow: 0 0 15px rgba(255, 217, 61, 0.4);
}

/* Silver badge glow */
.rankItem:nth-child(3) .rankBadge {
  box-shadow: 0 0 12px rgba(192, 192, 192, 0.3);
}

/* Bronze badge glow */
.rankItem:nth-child(4) .rankBadge {
  box-shadow: 0 0 12px rgba(205, 127, 50, 0.3);
}

.rankContent { flex: 1 1; }
.rankName { 
  font-size: 13px; 
  font-weight: 500; 
  color: var(--text-primary); 
  display: block; 
  margin-bottom: 6px;
}

/* Top 1 name glow */
.rankItem:nth-child(2) .rankName {
  color: #FFD93D;
  text-shadow: 0 0 20px rgba(255, 217, 61, 0.3);
}

.rankProgress { 
  height: 6px; 
  background: rgba(50, 70, 110, 0.2); 
  border-radius: 4px; 
  overflow: hidden;
  position: relative;
}

.rankFill { 
  height: 100%; 
  border-radius: 4px; 
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Animated shine on progress bar */
.rankFill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.rankValue { 
  font-size: 13px; 
  font-weight: 700; 
  color: var(--accent-teal); 
  white-space: nowrap;
  text-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

.rankValue.valuePulse { animation: valuePulse 1.5s ease; }

@keyframes valuePulse {
  0% { 
    color: var(--accent-gold); 
    transform: scale(1.15);
    text-shadow: 0 0 25px rgba(255, 217, 61, 0.6);
  }
  100% { 
    color: var(--accent-teal); 
    transform: scale(1);
    text-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
  }
}

/* ============================================
   SALE NOTIFICATION - SIMPLES FADE IN/OUT
   ============================================ */

.saleNotification {
  position: absolute;
  top: 20px;
  left: 50%;
  padding: 14px 28px;
  background: var(--bg-glass);
  border: 1px solid rgba(78, 205, 196, 0.4);
  border-radius: 30px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1000;
  box-shadow: 
    0 0 40px rgba(78, 205, 196, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  
  /* Estado inicial - invisível */
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Estado visível - apenas fade */
.saleNotification.visible {
  opacity: 1;
  pointer-events: auto;
}

.saleNotification .saleIcon {
  font-size: 26px;
  filter: drop-shadow(0 0 12px rgba(78, 205, 196, 0.6));
  animation: notificationIconPulse 2s ease-in-out infinite;
}

@keyframes notificationIconPulse {
  0%, 100% { 
    filter: drop-shadow(0 0 12px rgba(78, 205, 196, 0.6));
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 20px rgba(78, 205, 196, 0.9)) drop-shadow(0 0 40px rgba(255, 217, 61, 0.3));
    transform: scale(1.1);
  }
}

.saleNotification .saleText {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.saleNotification .saleBairro {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(232, 236, 242, 0.15);
}

.saleNotification .saleAmount {
  font-size: 13px;
  color: var(--accent-teal);
  font-weight: 700;
  text-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
  animation: amountGlow 1.5s ease-in-out infinite;
}

@keyframes amountGlow {
  0%, 100% { text-shadow: 0 0 15px rgba(78, 205, 196, 0.4); }
  50% { text-shadow: 0 0 25px rgba(78, 205, 196, 0.7), 0 0 40px rgba(45, 212, 168, 0.3); }
}

/* ============================================
   SETTINGS MENU - DISCRETO
   ============================================ */

.settingsMenu {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 100;
}

.settingsButton {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.settingsButton:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-metallic);
  transform: rotate(45deg);
  box-shadow: var(--glow-teal);
}

.settingsButton.active {
  background: rgba(77, 168, 218, 0.2);
  border-color: var(--accent-blue);
  transform: rotate(90deg);
  box-shadow: var(--glow-blue);
}

.settingsDropdown {
  position: absolute;
  bottom: 48px;
  left: 0;
  min-width: 220px;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: dropdownSlide 0.2s ease;
}

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

.settingsTitle {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.settingsOption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin: 4px -4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.settingsOption:hover {
  background: rgba(255, 255, 255, 0.05);
}

.settingsOption input[type="radio"] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-dim);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.settingsOption input[type="radio"]:checked {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
}

.settingsOption input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.settingsOption span {
  font-size: 13px;
  color: var(--text-primary);
}

/* ============================================
   FLOATING SALE LABEL - LINHA SUBINDO DO BAIRRO
   ============================================ */

.floatingLabel {
  position: absolute;
  pointer-events: none;
  z-index: 500;
  transform: translate(-50%, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Container da linha e conteúdo */
.floatingLine {
  position: relative;
  width: 3px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Linha que sobe de baixo para cima - Energy beam effect */
.floatingLineFill {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(
    to top, 
    rgba(78, 205, 196, 0.1), 
    rgba(78, 205, 196, 0.6), 
    rgba(255, 217, 61, 0.8), 
    #FFFFFF
  );
  border-radius: 2px;
  box-shadow: 
    0 0 20px rgba(78, 205, 196, 0.7),
    0 0 40px rgba(255, 217, 61, 0.4),
    0 0 60px rgba(78, 205, 196, 0.2);
}

/* Ponto brilhante no topo - Portal energy node */
.floatingLineDot {
  position: absolute;
  top: 0;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #FFFFFF 20%, var(--accent-gold) 60%, var(--accent-teal) 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 25px rgba(255, 217, 61, 1),
    0 0 50px rgba(78, 205, 196, 0.7),
    0 0 80px rgba(255, 217, 61, 0.3);
  opacity: 0;
  transform: scale(0) translateX(-50%);
  left: 50%;
  margin-left: -7px;
  animation: dotPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { 
    box-shadow: 
      0 0 25px rgba(255, 217, 61, 1),
      0 0 50px rgba(78, 205, 196, 0.7);
  }
  50% { 
    box-shadow: 
      0 0 35px rgba(255, 217, 61, 1),
      0 0 70px rgba(78, 205, 196, 0.9),
      0 0 100px rgba(255, 217, 61, 0.4);
  }
}

/* Card com nome do estabelecimento - Glass portal card */
.floatingContent {
  position: absolute;
  top: -10px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px;
  background: rgba(13, 21, 32, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 217, 61, 0.4);
  border-radius: 12px;
  box-shadow: 
    0 0 35px rgba(255, 217, 61, 0.35),
    0 0 60px rgba(78, 205, 196, 0.15),
    0 15px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateX(-10px) scale(0.9);
  white-space: nowrap;
  overflow: hidden;
}

/* Glass reflection on card */
.floatingContent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.floatingEstabelecimento {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(255, 217, 61, 0.5);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.floatingAmount {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-teal);
  text-shadow: 0 0 15px rgba(78, 205, 196, 0.4);
  position: relative;
  z-index: 1;
}

/* ============================================
   FASES DA ANIMAÇÃO
   ============================================ */

/* Fase 1: Linha subindo de baixo para cima */
.floatingLabel.phase-line .floatingLineFill {
  animation: lineGrowUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes lineGrowUp {
  0% {
    height: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    height: 100px;
    opacity: 1;
  }
}

/* Fase 2: Ponto e texto aparecendo */
.floatingLabel.phase-text .floatingLineFill,
.floatingLabel.phase-visible .floatingLineFill,
.floatingLabel.phase-fadeout .floatingLineFill {
  height: 100px;
  opacity: 1;
}

.floatingLabel.phase-text .floatingLineDot,
.floatingLabel.phase-visible .floatingLineDot,
.floatingLabel.phase-fadeout .floatingLineDot {
  animation: dotBurst 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dotBurst {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    transform: scale(1.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.floatingLabel.phase-text .floatingContent,
.floatingLabel.phase-visible .floatingContent {
  animation: contentSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes contentSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Fase 3: Visível (manter) */
.floatingLabel.phase-visible .floatingContent {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.floatingLabel.phase-visible .floatingLineDot {
  opacity: 1;
  transform: scale(1);
  animation: dotPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.6);
  }
  50% { 
    box-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.8);
  }
}

/* Fase 4: Fade out - sobe e desaparece */
.floatingLabel.phase-fadeout {
  animation: floatingFlyUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes floatingFlyUp {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -30px);
  }
}

.floatingLabel.phase-fadeout .floatingContent {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.floatingLabel.phase-fadeout .floatingLineDot {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   KPI SIDEBAR - UNION OF SENSES LIGHT EFFECTS
   ============================================ */

.kpiPanel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slideInRight 0.6s ease 0.3s both;
  min-height: 0;
  overflow: hidden;
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.kpiCard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Light shimmer effect */
.kpiCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 100%
  );
  transition: left 0.6s ease;
}

.kpiCard:hover::before {
  left: 100%;
}

.kpiCard:hover {
  border-color: var(--border-metallic);
  transform: translateX(-6px) scale(1.02);
  background: var(--bg-glass-hover);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(78, 205, 196, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Highlight card with animated glow */
.kpiCard.highlight {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.12), rgba(255, 217, 61, 0.06));
  border-color: rgba(255, 140, 66, 0.4);
  animation: kpiHighlightPulse 3s ease-in-out infinite;
}

@keyframes kpiHighlightPulse {
  0%, 100% {
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.2),
      0 0 30px rgba(255, 140, 66, 0.2);
  }
  50% {
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.2),
      0 0 50px rgba(255, 140, 66, 0.35),
      0 0 80px rgba(255, 217, 61, 0.15);
  }
}

.kpiIconWrap {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.kpiIconWrap.orange { 
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.25), rgba(255, 107, 107, 0.15)); 
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 20px rgba(255, 140, 66, 0.2);
  animation: iconGlowOrange 4s ease-in-out infinite;
}

@keyframes iconGlowOrange {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 140, 66, 0.2); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 35px rgba(255, 140, 66, 0.4); }
}

.kpiIconWrap.blue { 
  background: linear-gradient(135deg, rgba(77, 168, 218, 0.25), rgba(69, 183, 209, 0.15)); 
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 20px rgba(77, 168, 218, 0.2);
  animation: iconGlowBlue 4s ease-in-out infinite 1s;
}

@keyframes iconGlowBlue {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 20px rgba(77, 168, 218, 0.2); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 35px rgba(77, 168, 218, 0.4); }
}

.kpiIconWrap.green { 
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(45, 212, 168, 0.15)); 
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 20px rgba(78, 205, 196, 0.2);
  animation: iconGlowGreen 4s ease-in-out infinite 2s;
}

@keyframes iconGlowGreen {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 20px rgba(78, 205, 196, 0.2); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 35px rgba(78, 205, 196, 0.4); }
}

.kpiData { display: flex; flex-direction: column; gap: 4px; }
.kpiLabel { 
  font-size: 11px; 
  color: var(--text-secondary); 
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kpiAmount { 
  font-size: 22px; 
  font-weight: 700; 
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(232, 236, 242, 0.15);
  animation: valueGlow 3s ease-in-out infinite;
}

@keyframes valueGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(232, 236, 242, 0.1); }
  50% { text-shadow: 0 0 30px rgba(232, 236, 242, 0.25); }
}

.kpiAmount.green { 
  color: var(--accent-teal); 
  text-shadow: 0 0 25px rgba(78, 205, 196, 0.4);
  animation: valueGlowGreen 3s ease-in-out infinite;
}

@keyframes valueGlowGreen {
  0%, 100% { text-shadow: 0 0 20px rgba(78, 205, 196, 0.3); }
  50% { text-shadow: 0 0 40px rgba(78, 205, 196, 0.6), 0 0 60px rgba(45, 212, 168, 0.3); }
}

.kpiAmount.orange { 
  color: var(--accent-orange); 
  text-shadow: 0 0 25px rgba(255, 140, 66, 0.4);
  animation: valueGlowOrange 3s ease-in-out infinite;
}

@keyframes valueGlowOrange {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 140, 66, 0.3); }
  50% { text-shadow: 0 0 40px rgba(255, 140, 66, 0.6), 0 0 60px rgba(234, 88, 12, 0.3); }
}

/* ============================================
   ANIMATED COUNTER
   ============================================ */

.animatedCounter {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ============================================
   RECENT SALES FEED
   ============================================ */

.salesFeed {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px;
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feedHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

.feedIcon {
  font-size: 14px;
}

.feedTitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  flex: 1 1;
}

.feedLive {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-teal);
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.4);
}

.feedLiveDot {
  width: 7px;
  height: 7px;
  background: var(--accent-teal);
  border-radius: 50%;
  animation: feedLivePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 12px var(--accent-teal);
}

@keyframes feedLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.feedList {
  flex: 1 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.feedList::-webkit-scrollbar {
  width: 4px;
}

.feedList::-webkit-scrollbar-track {
  background: transparent;
}

.feedList::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 2px;
}

.feedEmpty {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
  font-style: italic;
}

.feedItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(77, 168, 218, 0.06);
  border-radius: 8px;
  border: 1px solid transparent;
  animation: feedItemSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.feedItem:hover {
  background: rgba(77, 168, 218, 0.12);
  border-color: var(--glass-border);
}

@keyframes feedItemSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feedItem.feedItemNew {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(45, 212, 168, 0.08));
  border: 1px solid rgba(78, 205, 196, 0.3);
  animation: feedItemNew 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  box-shadow: 0 0 20px rgba(78, 205, 196, 0.15);
}

@keyframes feedItemNew {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.feedItemIcon {
  font-size: 14px;
}

.feedItemContent {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.feedItemEstabelecimento {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedItemBairro {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedItemTime {
  font-size: 11px;
  color: var(--text-secondary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.feedItemAmount {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-teal);
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

/* ============================================
   ANIMATED LEADERBOARD
   ============================================ */

.rankingList {
  position: relative;
}

.rankItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(50, 70, 110, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rankItem:last-child { 
  border-bottom: none; 
}

.rankItem.itemPulse {
  animation: rankItemPulse 1.5s ease;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
  margin: 0 -8px;
  padding: 8px;
  border-radius: 8px;
}

@keyframes rankItemPulse {
  0% { 
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
    transform: scale(1.02);
  }
  100% { 
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    transform: scale(1);
  }
}

.rankBadge {
  min-width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.rankBadge.rankBadgePulse {
  animation: badgePulse 0.6s ease;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.rankContent { 
  flex: 1 1; 
  min-width: 0;
}

.rankName { 
  font-size: 13px; 
  font-weight: 500; 
  color: var(--text-primary); 
  display: block; 
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rankProgress { 
  height: 6px; 
  background: rgba(50, 70, 110, 0.3); 
  border-radius: 3px; 
  overflow: hidden; 
}

.rankFill { 
  height: 100%; 
  border-radius: 3px; 
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}

.rankValue { 
  font-size: 12px; 
  font-weight: 600; 
  color: var(--text-primary); 
  white-space: nowrap;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  min-width: 90px;
  text-align: right;
}

.rankValue.valuePulse { 
  animation: rankValuePulse 1s ease; 
}

@keyframes rankValuePulse {
  0% { 
    color: #FFD700; 
    transform: scale(1.1); 
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  100% { 
    color: var(--text-primary); 
    transform: scale(1);
    text-shadow: none;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 32px;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 8, 16, 0.6);
  flex-shrink: 0;
  min-height: 44px;
}

.footer strong { color: var(--accent-blue); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .main { grid-template-columns: 1fr 280px; gap: 16px; }
}

@media (max-width: 800px) {
  .main { grid-template-columns: 1fr; }
  .kpiPanel { flex-direction: row; flex-wrap: wrap; }
  .kpiCard { flex: 1 1 45%; }
}

