body {
  background: #1e1e1e;
  margin: 0;
  font-family: Be Vietnam Pro, sans-serif;
  color: #f0f0f0;
  min-height: 100vh;
  padding: 2rem 0 6rem;
}

header {
  text-align: center;
  padding: 40px 20px;
}

header h1 {
  font-size: 48px;
  margin: 0;
}

.app-container {
  background-color: var(--container-color);
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 30px #00000080;
}

nav {
  display: flex;
  justify-content: center;
  gap: 0px;
  margin-bottom: 20px;
}

nav button {
  background: none;
  border: none;
  color: #ccc;
  font-size: 16px;
  cursor: pointer;
  padding: 10px;
}

nav button.active {
  color: #ffd700;
  /* border-bottom: 2px solid #ffd700; */
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
}

.card img {
  width: 100%;
  display: block;
}

.card button {
  width: 100%;
  padding: 12px;
  background: #333;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ---------------- */

.tab-group button {
  /* padding: 8px 18px; */
  padding: 0px 0px;
  margin-right: 6px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
  /* Không bị vỡ chữ lẻ */
  flex-shrink: 0;
}

.tab-group button.active {
  color: gold;
  /* border-color: gold; */
}

#content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 10px;
}

.card img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #000000e6;
  padding: 1.25rem 0;
  color: var(--text-secondary);
  font-size: .9rem;
  display: flex;
  justify-content: center;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 999;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.donate-button {
  background-color: var(--accent-color);
  color: var(--container-color);
  padding: .6rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: all .3s ease;
  border: none;
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
}

@media (max-width: 600px) {
  #content {
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2 ảnh mỗi hàng */
  }
}

/* Mobile fix */
@media (max-width: 600px) {
  body {
    padding: 0 !important;
  }

  #content {
    max-width: 100% !important;
    width: 90% !important;
    padding: 10px !important;
    grid-template-columns: 1fr 1fr !important;
    /* hoặc 1fr nếu muốn 1 cột */
    gap: 10px !important;
  }

  .card img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    display: block;
  }

  .card {
    width: 100% !important;
    margin: 0 auto !important;
  }

}

.pagination-wrapper {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 12px;
  /* khoảng cách giữa từng nút */
  padding: 8px 18px;
  margin-right: 6px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
}

.footer_margintop {
  margin-bottom: 60px;
}

/* ------------------------------------ */
/* Nút cuộn lên đầu trang */
#scrollTopBtn {
  display: none;
  /* Ẩn mặc định */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 22px;
  border: none;
  outline: none;
  background-color: #f8c24f;
  color: white;
  cursor: pointer;
  padding: 1px 10px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #e6b030;
  transform: translateY(-3px);
}


/* -------------------------------------- */
/* ===== Modal QR Mời Cà Phê ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #111;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  animation: zoomIn 0.3s ease;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.close:hover {
  color: #f8c24f;
}

/* Hiệu ứng mở popup */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------------------------------------------------- */
.header p {
  /* color: #a0a0a0; */
  font-size: 1.05rem;
}

.header a .accent-text {
  transition: filter .2s ease-in-out;
}

.header a {
  text-decoration: none !important;
}

.header a:hover {
  text-decoration: none !important;
}

.header-subtitle {
  font-family: Playwrite AU SA, cursive;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  margin-top: .5rem;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
}

.header h1 {
  font-family: Saira Stencil One, sans-serif;
  font-size: 5rem;
  color: #ad8130;
  font-weight: 700;
  margin-bottom: .5rem;
  text-transform: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
}

.accent-text {
  color: #ad8130;
  text-decoration: none;
  transition: color 0.3s ease;
}

.accent-text:hover {
  color: #ffd36b; 
}

.copy-button {
  background-color: #222;
  color: #ffd700;
  border: 1px solid #ffd700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-button:hover {
  background-color: #ffd700;
  color: #222;
  transform: scale(1.05);
}
