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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: 'Open Sans', sans-serif;
  background: #000;
}

/* ── BACKGROUND ── */
.bg-image {
  position: fixed;
  inset: 0;
  background-image: url('bg-desktop.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 0;
}

@media (max-width: 768px) {
  .bg-image {
    background-image: url('bg-mobile.png');
  }
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 40, 0.30);
  z-index: 1;
}

/* ══ COOKIE POPUP ══ */
#cookie-wrapper {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#cookie-banner {
  background: #fff;
  color: #1e293b;
  border-radius: 20px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 36px 36px 32px;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: popIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popIn {
  from { transform: scale(0.88) translateY(24px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.country-header {
  text-align: center;
}

.country-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: #0a1628;
  margin-bottom: 8px;
  line-height: 1.2;
}

.country-header p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}

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

.country-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.country-btn:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.country-flag {
  display: inline-flex;
  width: 30px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.country-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.country-name {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0a1628;
}

.country-arrow {
  font-size: 1.1rem;
  color: #94a3b8;
  flex-shrink: 0;
}

/* ══ RESPONSIVO — SMARTPHONES ══ */

/* Tablets e smartphones maiores (481px–768px) */
@media (max-width: 768px) {
  #cookie-wrapper {
    padding: 16px;
    align-items: center;
  }

  #cookie-banner {
    /* 30% menor que o original: padding reduzido, gap menor */
    padding: 20px 18px 18px;
    gap: 14px;
    border-radius: 16px;
    max-width: 100%;
  }

  .country-header h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
  }

  .country-header p {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .country-list {
    gap: 10px;
  }

  .country-btn {
    padding: 12px 14px;
    gap: 12px;
    border-radius: 12px;
  }

  .country-flag {
    width: 24px;
    height: 16px;
  }

  .country-name {
    font-size: 0.88rem;
  }

  .country-arrow {
    font-size: 0.95rem;
  }
}

/* Smartphones pequenos (≤380px — iPhone SE, Galaxy A02s, etc.) */
@media (max-width: 380px) {
  #cookie-wrapper {
    padding: 12px;
  }

  #cookie-banner {
    padding: 16px 14px 14px;
    gap: 12px;
    border-radius: 14px;
  }

  .country-header h3 {
    font-size: 1.05rem;
  }

  .country-header p {
    font-size: 0.74rem;
  }

  .country-btn {
    padding: 10px 12px;
  }

  .country-flag {
    width: 22px;
    height: 15px;
  }

  .country-name {
    font-size: 0.82rem;
  }
}
