/* --- Bắt đầu CSS chung cho trang VIP Club --- */
.page-vip-club {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Màu chữ mặc định trên nền sáng */
  background-color: #FFFFFF; /* Nền trắng mặc định */
}

.page-vip-club__section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-vip-club__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-vip-club__light-bg {
  background-color: #f9f9f9;
  color: #333333;
}

.page-vip-club__main-title,
.page-vip-club__section-title {
  color: #017439;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.page-vip-club__main-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #ffffff;
}

.page-vip-club__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
}

.page-vip-club__intro-text,
.page-vip-club__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 17px;
}

.page-vip-club__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-vip-club__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.page-vip-club__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-vip-club__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px 15px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over image for visual flow */
  color: #ffffff;
}

.page-vip-club__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-vip-club__cta-buttons--center {
  margin-top: 40px;
}

.page-vip-club__btn-register,
.page-vip-club__btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-vip-club__btn-register {
  background-color: #C30808;
  color: #FFFF00;
}

.page-vip-club__btn-register:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-vip-club__btn-login {
  background-color: #C30808;
  color: #FFFF00;
}

.page-vip-club__btn-login:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-vip-club__benefits-grid,
.page-vip-club__tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-vip-club__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-vip-club__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-vip-club__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-vip-club__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-vip-club__card p {
  font-size: 16px;
  color: #555555;
  text-align: center;
}

.page-vip-club__card ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  text-align: left;
  width: 100%;
}

.page-vip-club__card li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #555555;
  position: relative;
  padding-left: 25px;
}

.page-vip-club__card li::before {
  content: '✓';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-vip-club__how-to-join ol {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-vip-club__how-to-join li {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 70px;
  text-align: left;
}

.page-vip-club__how-to-join li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 25px;
  top: 25px;
  background-color: #017439;
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.page-vip-club__step-title {
  font-size: 20px;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-vip-club__how-to-join p {
  font-size: 16px;
  color: #555555;
  text-align: left;
}

.page-vip-club__how-to-join a {
  color: #017439;
  text-decoration: underline;
}

.page-vip-club__faq-list {
  max-width: 800px;
  margin: 40px auto;
}

details.page-vip-club__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-vip-club__faq-item summary.page-vip-club__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-vip-club__faq-item summary.page-vip-club__faq-question::-webkit-details-marker {
  display: none;
}

details.page-vip-club__faq-item summary.page-vip-club__faq-question:hover {
  background: #f5f5f5;
}

.page-vip-club__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-vip-club__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-vip-club__faq-item .page-vip-club__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* --- Bắt đầu Responsive Design --- */
@media (max-width: 1023px) {
  /* HOMEPAGE TRIAL CSS - Included as per strict instructions, not functionally relevant to this inner page */
  .page-vip-club__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-vip-club__hero-brand,
  .page-vip-club__hero-jackpot {
    display: none !important;
  }
  .page-vip-club__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-vip-club__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-vip-club__game-trial-topbar,
  .page-vip-club__game-trial-bottombar {
    display: none !important;
  }
  .page-vip-club__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-vip-club__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-vip-club__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-vip-club__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  /* HOMEPAGE TRIAL CSS - Included as per strict instructions, not functionally relevant to this inner page */
  .page-vip-club__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-vip-club__hero-brand,
  .page-vip-club__hero-jackpot,
  .page-vip-club__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-vip-club__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-vip-club__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-vip-club__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-vip-club__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-vip-club__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  .page-vip-club__section {
    padding: 30px 15px;
  }

  .page-vip-club__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 15px;
  }

  .page-vip-club__main-title {
    font-size: 32px;
  }

  .page-vip-club__section-title {
    font-size: 28px;
  }

  .page-vip-club__intro-text,
  .page-vip-club__section-description {
    font-size: 15px;
  }

  .page-vip-club__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-vip-club__btn-register,
  .page-vip-club__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-vip-club__benefits-grid,
  .page-vip-club__tiers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-vip-club__card {
    padding: 20px;
  }

  .page-vip-club__card-title {
    font-size: 18px;
  }

  .page-vip-club__card p,
  .page-vip-club__card li {
    font-size: 14px;
  }

  .page-vip-club__how-to-join li {
    padding: 20px 20px 20px 60px;
  }

  .page-vip-club__how-to-join li::before {
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .page-vip-club__step-title {
    font-size: 18px;
  }

  .page-vip-club__how-to-join p {
    font-size: 15px;
  }

  details.page-vip-club__faq-item summary.page-vip-club__faq-question {
    padding: 15px;
  }

  .page-vip-club__faq-qtext {
    font-size: 15px;
  }

  /* General image and container responsive rules */
  .page-vip-club img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-vip-club__section,
  .page-vip-club__card,
  .page-vip-club__container,
  .page-vip-club__hero-section,
  .page-vip-club__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-vip-club__hero-section {
    padding-left: 0; /* Hero image might be full width */
    padding-right: 0;
  }
  .page-vip-club__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-vip-club__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
  .page-vip-club__game-trial-overlay{z-index:5;pointer-events:auto;}.page-vip-club__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-vip-club__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-vip-club__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-vip-club__reward-modal{position:fixed;inset:0;z-index:10000;}
}

/* Ensure images are responsive by default */
.page-vip-club img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Specific styles for game trial overlay and modal, as per strict instructions */
.page-vip-club__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
  /* Other styles like background, position, etc. would be here if this was the homepage */
}
.page-vip-club__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-vip-club__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-vip-club__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-vip-club__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.page-vip-club__reward-modal[hidden] {
  display: none;
}
.page-vip-club__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.page-vip-club__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}
.page-vip-club__reward-modal-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
}
.page-vip-club__reward-modal-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}
.page-vip-club__reward-modal-cta {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.page-vip-club__reward-modal-cta:hover {
  background-color: #005a2e;
}