* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --body-bg: radial-gradient(circle at center, #888888, #000000);
  --text-color: #000000;
    --bg-color: #ffffff;
    --border-color: #000000;
      --divider-color: #000000; /* Light mode */
  --box-bg: #ffffff; /* Light mode */
  --primary-color: #0d6efd; /* Light mode Bootstrap Blue */
 --card-bg: #ffffff;
  --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Bootstrap shadow-sm */
  --container-bg: #bdcefe;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: var(--body-bg);
  color: var(--text-color);
  font-family: Arial, sans-serif;
}

.container {
  max-width: 425px;
  width: 100%;
  padding: 0px;
  background-color: var(--container-bg);
  min-height: 100vh;

}

/* Dark theme variables */
body.dark {
  --body-bg: radial-gradient(circle at center, #888888, #000000);
  --text-color: #ffffff;
   --bg-color: #171717;
    --border-color: #ffffff;
  --container-bg: #171717;
    --divider-color: #ffffff; /* Dark mode */
  --box-bg: #171717; /* Dark mode */
  --primary-color: #66b2ff; /* Softer blue for dark mode */
  --card-bg: #1e1e1e;
  --card-shadow: 0 0.125rem 0.25rem rgba(255, 255, 255, 0.05); /* lighter white shadow in dark */
    --padding: 12px;
  --line-height: 1.7;
  --max-width: 428px;
}

/* ===========================
   🔹 Header Styling
   =========================== */
.page-header {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1f1f1f; /* matches your dark theme */
  padding: 10px 14px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.page-header h1 {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  text-align: center;
  margin: 0;
  color: #fff;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: #1f1f1f;
  transition: background 0.2s;
}

.back-btn:hover {
  background: #222;
}

/* ==============================
   🔹 Character Grid (2 Columns)
   ============================== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

.char-card {
  display: block;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.char-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.char-detail {
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  color: #fff;
}

.char-box {
  background: #171717;
  padding: 15px;
  display: inline-block;
}

.char-box img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.char-box h2 {
  font-size: 18px;
  margin: 5px 0;
}

.claim-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
   background: #0152af;
  border-radius: 30px;
  padding: 10px 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}



/* =============================
   🔹 Character / Pet Grid Shared
   ============================= */
.char-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

.char-card {
  display: block;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.char-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


    /* 💎 Diamond image */
    .diamond-img {
      width: 100px;
      height: 100px;
      object-fit: contain;
      border-radius: 50%;
      margin: 10px auto 15px;
      display: block;
      border: 2px solid #0152af;
      padding: 8px;
      background: #000;
    }

    .input-field {
      background: #000;
      color: #fff;
      border: 2px solid #0152af;
      border-radius: 25px;
      padding: 12px;
      width: 90%;
      margin: 0 auto;
      display: block;
      text-align: center;
      font-size: 14px;
      outline: none;
    }

    .input-field::placeholder {
      color: #777;
    }

    .calculator-btn {
      display: flex;
      justify-content: center;
      align-items: center;
      background: transparent;
      border: 2px solid #0152af;
      color: #fff;
      border-radius: 25px;
      padding: 12px;
      margin: 18px auto;
      width: 90%;
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      transition: 0.3s ease;
    }

    .calculator-btn:hover {
      background: #0152af;
    }

    .result-label {
      display: flex;
      width: 100%;
      align-items: start;
      justify-content: center;
      color: #ccc;
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .result-box {
      background: #000;
      border: 2px solid #0152af;
      border-radius: 25px;
      padding: 14px;
      width: 80%;
      margin: 8px auto 0;
      font-size: 15px;
      text-align: center;
      color: #fff;
    }

    .error-text {
      color: #0152af;
      font-size: 13px;
      margin-top: 8px;
      display: none;
    }



.three-grid{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  gap: 16px;
  margin: 10px;
}

.three-grid a img{
 width: 100%;

} 

.card {
    background: linear-gradient(135deg, #162447, #0f0f1f);
    border-radius: 14px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    
    padding: 20px 25px;
    margin: 10px;
    border: 1px solid rgba(0, 162, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
  }

  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.3);
  }

  .card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #0152af;
  }

  .card p {
    font-size: 13px;
    color: #d0d0d0;
  }

  .btn {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    background: linear-gradient(145deg, #3698ff, #0152af);
    border: none;
    color: #fff;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
  }

  .task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0152af;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px;
  color: #fff;
}

.task-item img{
  width: 30px;
  height: 30px;
}

  .btn:hover {
    background: linear-gradient(145deg, #0152af, #0152af);
  }

   .player-card-a {
    text-decoration: none;
    width: 100%;
  }

  .player-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 5px 10px;
    transition: all 0.3s ease;
    margin: 10px;
    cursor: pointer;
  }

  .player-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  }

  .player-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5rem;
  }

  .player-card img {
    width: 10%;
    height: auto;
    object-fit: contain;
  }

    .options-container {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 10px;
    }

    a.option {
      text-decoration: none;
    }

    .option-card {
      border: 1px solid rgba(255, 255, 255, 0.5);
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(6px);
      border-radius: 16px;
      text-align: center;
      transition: all 0.25s ease;
      padding: 14px 0;
    }

    .option-card:hover {
      background: rgba(255, 255, 255, 0.25);
      transform: translateY(-2px);
    }

    .option-card span {
      color: #fff;
      font-size: 18px;
      font-weight: 600;
      letter-spacing: 0.5px;
    }

    
    .button-container {
      width: 100%;
      display: flex;
      flex-direction: column;
    }

    a {
      text-decoration: none;
    }



    .tip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.3s;
}
.tip-item:hover {
  background: #222;
}
.tip-item img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.tip-detail-card {
  padding: 20px;
  color: #ffffff;
  text-align: center;
}
.tip-detail-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.tip-detail-card p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.banner_ad {
  margin-bottom:5px;
  display:flex;
  justify-content: center;
  align-items:center;
  flex-direction:column}

.banner_ad::before {
  content:"Advertisement";
  font-size:12px;
  margin-top:1px;
  color:#ffffff}

      .ad-300x250 {
        max-width: auto;
        height: auto;
        min-height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

    /* Pop up for ads show in index page */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    opacity: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 1000;
    pointer-events: none;
}

.popup-content {
    position: relative;
    height: auto;
    border: 1px solid #888;
    color: #fff;
    border-radius: 5px;
    margin: 0 auto;
    width: 600px;
    padding: 10px;
    position: absolute;
    pointer-events: auto;
    z-index: 1001;
}

.close-popup {
    outline: none;
    background-color: #ffffff;
    border: 1px solid #000;
    border-radius: 20%;
    color: #000;
    cursor: pointer;
    font-family: arial;
    font-size: 25px;
    font-weight: 700;
    height: 30px;
    line-height: 25px;
    margin-bottom: 10px;
    position: relative;
    text-align: center;
    width: 30px;
    z-index: 1003;
}

@media screen and (max-width: 640px) {
    .popup-content {
        width: 350px;
    }
}

@media screen and (max-width: 470px) {
    .popup-content {
        width: 100%;
    }
}

