:root {
  --bg-main: #060b14;
  --bg-secondary: #0d1526;
  --bg-card: rgba(20, 30, 50, 0.6);
  --bg-card-hover: rgba(30, 45, 75, 0.8);
  
  --accent: #1d4ed8;
  --accent-light: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.3);
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --border: rgba(255, 255, 255, 0.15);
  --border-light: rgba(255, 255, 255, 0.25);
  
  --font-main: 'Inter', sans-serif;
  
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img, svg {
  max-width: 100%;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 4rem 0;
}

.center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.mt-2 { margin-top: 0.5rem; }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--accent-light); }

/* Glassmorphism utility */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* --- HEADER --- */
.header {
  background: rgba(6, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo img {
  max-width: 100%;
  object-fit: contain;
}

.logo i {
  color: var(--accent-light);
}

.nav {
  display: none; /* hidden on mobile by default */
}

.nav ul {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.nav a {
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav a:hover, .nav a.active {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  position: relative;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 140px;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1000;
}

.lang-dropdown.show {
  display: flex;
}

.lang-dropdown li {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  transition: var(--transition);
}

.lang-dropdown li img {
  width: 20px;
  border-radius: 2px;
}

.lang-dropdown li:hover {
  background: rgba(255,255,255,0.1);
}

/* Esconder a barra chata do Google Tradutor e remover espaço do body */
body {
  top: 0 !important;
  position: static !important;
}
.goog-te-banner-frame {
  display: none !important;
}
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}
.skiptranslate iframe {
  display: none !important;
}
.goog-tooltip {
  display: none !important;
}
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important; 
  box-shadow: none !important;
}

.flag-icon {
  width: 20px;
  border-radius: 2px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-secondary);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav { display: block; }
  .mobile-menu-btn { display: none; }
}


/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 5rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-main); /* Fallback for video */
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
  opacity: 0.8;
}

.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(6, 11, 20, 0.95) 0%, rgba(6, 11, 20, 0.8) 50%, rgba(6, 11, 20, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .hero-content {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-text p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 550px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 50px;
  padding: 0.3rem 0.3rem 0.3rem 1.5rem;
  max-width: 500px;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  color: #334155;
  padding: 0.5rem 1rem 0.5rem 0;
  outline: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
}

.search-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 0 15px var(--accent-glow);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.2;
}

.trust-item i {
  font-size: 1.2rem;
  color: var(--text-main);
}

.trust-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
}

.hero-stats {
  display: flex;
  justify-content: flex-end;
}

.stat-panel {
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 280px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-info strong {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.stat-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}


/* --- CONTINENTS --- */
.continents {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 4rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.continents-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;
}

.continent-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  border-radius: 16px;
  transition: var(--transition);
}

.continent-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-light);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.continent-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.continent-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
}

.btn-outline:hover {
  background: var(--text-main);
  color: var(--bg-main);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-pill {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
}

/* Maps placeholders */
.continent-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-card);
}
.map-eu { background-image: linear-gradient(rgba(13, 21, 38, 0.4), rgba(13, 21, 38, 0.9)), url('/map_eu.png'); }
.map-sa { background-image: linear-gradient(rgba(13, 21, 38, 0.4), rgba(13, 21, 38, 0.9)), url('/map_sa.png'); }
.map-na { background-image: linear-gradient(rgba(13, 21, 38, 0.4), rgba(13, 21, 38, 0.9)), url('/map_na.png'); }
.map-as { background-image: linear-gradient(rgba(13, 21, 38, 0.4), rgba(13, 21, 38, 0.9)), url('/map_as.png'); }
.map-af { background-image: linear-gradient(rgba(13, 21, 38, 0.4), rgba(13, 21, 38, 0.9)), url('/map_af.png'); }
.map-oc { background-image: linear-gradient(rgba(13, 21, 38, 0.4), rgba(13, 21, 38, 0.9)), url('/map_as.png'); background-size: 250%; background-position: bottom right; }


/* --- COUNTRY SELECTION --- */
.country-selection {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-top: 4rem;
  padding: 2.5rem;
}

.country-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.country-controls {
  gap: 1rem;
}

.country-search {
  display: flex;
  align-items: center;
  flex: 1;
  background: #ffffff;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border-radius: 50px;
  gap: 0.5rem;
  max-width: 500px;
}

.country-search i {
  color: #94a3b8;
  font-size: 1.2rem;
}

.country-search input {
  background: none;
  border: none;
  color: #334155;
  outline: none;
  width: 100%;
  font-weight: 500;
  padding: 0.5rem 0;
}

.country-search input::placeholder {
  color: #94a3b8;
}

.country-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.country-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.country-tabs button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  border-radius: 4px;
}

.country-tabs button:hover, .country-tabs button.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  z-index: 10;
}

/* Custom Dropdown for Continents */
.custom-dropdown-container {
  min-width: 200px;
}
.custom-dropdown-selected {
  color: white;
  user-select: none;
}
.custom-dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  list-style: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  display: none;
  z-index: 100;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.custom-dropdown-options.show {
  display: block;
}
.custom-dropdown-options li {
  padding: 0.5rem 1rem;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}
.custom-dropdown-options li:hover, .custom-dropdown-options li.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-light);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.country-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  transition: var(--transition);
  border-radius: 16px;
}

.country-card:hover {
  border-color: var(--accent-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.country-card img {
  width: 24px;
  border-radius: 2px;
}

.country-card span {
  font-size: 0.85rem;
  font-weight: 600;
}


/* --- RANKING TABLE --- */
.ranking {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.table-container {
  overflow-x: auto;
  margin-top: 1rem;
  width: 100%;
  max-width: 100vw;
  -webkit-overflow-scrolling: touch;
}

.ranking-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}












.rank {
  font-weight: 700;
  color: var(--text-muted);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.brand-logo {
  font-weight: 800;
  font-size: 1.1rem;
}

.bet365 { color: #007a56; }
.betsson { color: #f26d21; }
.onexbet { color: #1e4b85; }
.sportsbet { color: #15b85a; }
.pinnacle { color: #f8991d; }

.score {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.score i { color: var(--accent-light); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.valid {
  background: var(--success-bg);
  color: var(--success);
}

.btn-visit {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-visit:hover {
  background: var(--accent-light);
  box-shadow: 0 0 10px var(--accent-glow);
}

.table-features {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* --- INFINITE CAROUSEL --- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  display: flex;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: 2.5rem;
  padding-right: 2.5rem;
  min-width: 100%;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.t-feat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.t-feat i {
  font-size: 1.1rem;
  color: var(--text-main);
}


/* --- FOOTER --- */
.footer {
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
}

.footer-brand p {
  font-size: 0.85rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a, .footer-links li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.langs-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.langs-list img {
  width: 16px;
  border-radius: 2px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.payment-methods i {
  font-size: 1.5rem;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
}
@media (max-width: 1023px) {
  .nav.active {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .nav.active ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- UTILS --- */
.mobile-only { display: none !important; }

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
  * {
    word-break: break-word;
  }
  
  .mobile-only { display: block !important; }
  .mobile-only.section-subtitle-blue { display: flex !important; }
  .mobile-only.carousel-dots { display: flex !important; }
  .desktop-only { display: none !important; }

  /* HEADER MOBILE ACTIONS */
  .logo img {
    height: 40px !important;
    width: auto !important;
  }
  .mobile-menu-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .mobile-star-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* HERO */
  .hero {
    padding: 5rem 0 4rem 0;
    min-height: auto;
  }
  .hero-content {
    gap: 1.5rem;
  }
  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.35;
    text-align: left;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .search-box {
    width: 100%;
    background: #fff;
    padding: 0.4rem 0.4rem 0.4rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
  }
  .search-box input {
    flex: 1;
    border: none;
    outline: none;
    color: #333;
    font-size: 1rem;
  }
  .search-btn {
    background: var(--accent);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
  }

  /* CONTINENTES - CAROUSEL */
  .continents, .country-selection, .ranking {
    padding: 1.5rem;
    margin-top: 3rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 16px;
  }
  .section-header {
    text-align: left !important;
    margin-bottom: 1rem;
  }
  .section-subtitle-blue {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
  }
  .section-subtitle-blue i {
    color: var(--accent-light);
  }
  .continents-wrapper {
    position: relative;
  }
  .continents-grid.snap-x {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .continents-grid.snap-x::-webkit-scrollbar {
    display: none;
  }
  .continent-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    min-height: 200px;
  }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 45px;
    position: relative;
    z-index: 10;
  }
  .carousel-dots .dot {
    width: 8px;
    height: 8px;
    background: var(--border-light);
    border-radius: 50%;
  }
  .carousel-dots .dot.active {
    background: #fff;
  }

  /* RANKING LISTA */
  .section-header.flex-between {
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-title {
    font-size: 1.2rem;
    font-weight: 700;
  }
  
  
  
  
  
  
  
  
  
  
  
  
  .brand-logo {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    color: #fff;
    font-size: 1.1rem;
    display: inline-block;
  }
  .brand-logo.bet365 { background: #007a56; }
  .brand-logo.betsson { background: #f26d21; }
  .brand-logo.onexbet { background: #1e4b85; }
  .brand-logo.sportsbet { background: #15b85a; }
  .brand-logo.pinnacle { background: #f8991d; }
  

  
  .hero-content {
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .search-box {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .trust-divider {
    display: none;
  }

  .hero-stats {
    justify-content: center;
  }
  
  .stat-panel {
    width: 100%;
    min-width: 0;
    padding: 1.5rem;
  }

  .continents-grid {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }

  .country-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .country-filter {
    justify-content: center;
  }


  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .header-actions .lang-selector span {
    display: none; /* Esconde o texto 'Português' no mobile para economizar espaço */
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }
  
  .continents-grid {
    grid-template-columns: 1fr;
  }
  
  .country-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .country-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: nowrap;
    padding: 0 1rem;
  }
  .header-actions {
    order: 2;
    margin-left: auto;
    margin-right: 1rem;
    width: auto;
    justify-content: flex-end;
  }
  .mobile-menu-actions {
    order: 3;
  }
  .lang-selector #current-lang-text {
    display: none;
  }
  .country-region-card {
    padding: 1rem !important;
  }
  .country-region-card h2 {
    font-size: 1.5rem !important;
  }
  .country-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  }
}

.table-container, .tab-pane {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding-bottom: 0.5rem;
}

.ranking-table {
  width: 100%;
  min-width: 1000px; /* Wider for the 8-column global table */
  white-space: nowrap; /* Prevent text wrapping in compressed tables */
}

.ranking-table.inner-table {
  min-width: 700px; /* Keep the 5-column country table smaller */
}



.ranking-table td {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.ranking-table tbody tr {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ranking-table tbody tr:hover {
  transform: translateY(-2px);
}

.ranking-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.ranking-table td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}
.ranking-table td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.ranking-table th {
  text-align: left;
  padding: 1rem 1.2rem;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

/* GLOBAL ANIMATIONS */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Enhanced Hover Effects */
.glass:hover, .country-card:hover, .continent-card:hover, .house-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  z-index: 2;
}

.ranking-table tr.animate-on-scroll:hover td {
  background: rgba(255, 255, 255, 0.05);
}

/* FIX UNWANTED VERTICAL SCROLLBARS DURING ANIMATIONS */
.table-container, 
.continents-grid,
.country-grid {
  padding-bottom: 40px; /* Space for the 30px translateY and hover shadow */
  margin-bottom: -40px; /* Compensate layout */
}

.table-container::-webkit-scrollbar:vertical,
.continents-grid::-webkit-scrollbar:vertical,
.country-grid::-webkit-scrollbar:vertical {
  display: none;
}

/* --- COUNTRY PAGE MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .country-page-main {
    margin-top: 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  
  .breadcrumbs {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .country-page-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .country-page-header .d-flex {
    flex-wrap: wrap;
  }
  
  .country-hero-flag {
    width: 50px !important;
  }
  
  .country-hero-title {
    font-size: 2rem !important;
  }
  
  .info-grid {
    grid-template-columns: 1fr !important;
  }
  
  .info-grid .info-card {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 0.5rem;
  }
  
  .info-grid .info-card:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
  
  .country-page-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }
  
  .country-page-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar Safari and Chrome */
  }
  
  .country-page-tabs button {
    flex: 0 0 auto !important;
    text-align: center;
    white-space: nowrap !important;
  }
  
  .tab-content {
    padding: 1rem !important;
    max-width: 100%;
  }
  
  .tab-pane {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
  }
  
  .inner-table {
    min-width: 600px; /* Table forces its own width, but wrapper scrolls */
  }
  
  /* Make the action button column always visible on mobile */
  .ranking-table th:last-child,
  .ranking-table td:last-child {
    position: sticky;
    right: 0;
    background: rgba(20, 30, 50, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 5;
  }
  
  /* Add a subtle shadow to indicate scroll when sticky */
  .ranking-table td:last-child {
    box-shadow: -4px 0 12px rgba(0,0,0,0.2);
    border-left: 1px solid rgba(255,255,255,0.05);
  }
}
