/* HEADER BASE */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 13, 15, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-exitlag img {
  height: 28px;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
}

.logo-wrapper img {
  display: block;
}

/* Cờ Việt Nam */
.vn-flag {
  position: absolute;
  top: -12px;
  right: -20px;
}

.vn-flag img {
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(197, 32, 33, 0.8);
  transition: .3s ease;
}

.vn-flag img:hover {
  transform: scale(1.15) rotate(3deg);
}

.slogan {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 50px;
}

.top-nav a {
  color: #aaa;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 40px;
  /* cố định chiều cao */
  font-size: 14px;
  transition: .2s;
}

.top-nav a:hover {
  color: rgb(197, 32, 33);
}

.btn-redeemcode {
  background: rgb(197, 32, 33);
  padding: 0 18px;
  height: 40px;
  /* đồng bộ chiều cao */
  display: flex;
  /* quan trọng */
  align-items: center;
  /* căn giữa theo chiều dọc */
  justify-content: center;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: .2s ease;
}

a.btn-redeemcode:hover,
button.btn-redeemcode:hover {
  background: #ffffff !important;
  color: red !important;
}

/* ========================= */
/* MOBILE RESPONSIVE */
/* ========================= */

@media(max-width:768px) {

  .top-nav {
    display: none;
  }

  .header-inner {
    flex-direction: column;
    gap: 6px;
    padding: 12px 15px;
  }

  .logo-group {
    flex-direction: column;
    gap: 4px;
  }

  .logo-exitlag img {
    height: 26px;
  }

  .slogan {
    font-size: 11px;
    text-align: center;
  }

}

.mobile-bottom-nav {
  display: none;
}

@media(max-width:768px) {

  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #0a0d0f;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
  }

  .bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888;
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    transition: .2s;
  }

  .bottom-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-icon svg {
    width: 22px;
    height: 22px;
  }

  .bottom-item.active {
    color: rgb(197, 32, 33);
  }

  .bottom-item.highlight {
    color: #fff;
  }

  .bottom-item.highlight .bottom-icon {
    background: rgb(197, 32, 33);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: 0 8px 20px rgba(197, 32, 33, .4);
  }

  .bottom-item.highlight svg {
    color: #fff;
  }

  body {
    padding-bottom: 80px;
  }
}

/* Footer */
.footer {
  background: #0a0d0f;
  border-top: 1px solid rgba(255, 255, 255, .05);
  padding: 60px 0 25px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 260px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #fff;
  letter-spacing: .5px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: .2s;
}

.footer a:hover {
  color: #fff;
}

.footer-small {
  font-size: 12px;
  color: #666;
  max-width: 320px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #aaa;
  transition: .2s;
}

.footer-social a:hover {
  background: rgb(197, 32, 33);
  color: #fff;
}

.footer-social svg {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  transition: 0.3s ease;
}

.footer-cert {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-cert img {
  height: 38px;
  opacity: .8;
  transition: .2s;
}

.footer-cert img:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: #555;
}

/* MOBILE */
@media(max-width:768px) {

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .footer-right {
    align-items: center;
  }

  .footer-small {
    margin: 0 auto;
  }

}