* {
    margin: 0;
    padding: 0;
    text-align: center;
    font-weight: bold;
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
}

body {
    background: url("https://www.bdgameghor.net/wp-content/uploads/2025/11/Free-Fire-Diamond-Top-Up-BD.webp") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: black;
    font-weight: bold;
}

header {
    background: antiquewhite;
    color: black;
    font-size: 26px;
    padding: 31px;
    margin-bottom: 20px;
    border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
    border-bottom: 5px solid black;
}

header #fsti {
    color: red;
    font-size: 45px;
}

.main-box {
    background: antiquewhite;
    color: black;
    padding:25px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    border: 4px solid black;
    border-radius: 37px;
}

.main-box h2 {
    color: black;
    background: aqua;
    padding: 5px;
    border-left: 4px solid black;
    border-radius: 12px;
    margin-bottom: 12px;
}

.main-box p {
    color: black;
    background: whitesmoke;
    padding: 12px;
    font-size: 18px;
    border-left: 4px solid black;
    border-radius: 14px;
    }
    
footer {
    background: antiquewhite;
    padding: 20px;
    border-top: 4px solid black;
    font-size: 20px;
    margin-top: 20px;
}

footer i {
    color: red;
    
    font-size: 27px;
}

ul {
    background: whitesmoke;
    list-style: none;
    padding: 10px;
    margin-top: 20px;
    border-left: 4px solid black;
    border-radius: 15px;
}

li {
    margin-bottom: 20px;
    border-bottom: 4px solid black;
    padding: 10px;
}
    
    li:hover {
        background: greenyellow;
        padding: 10x;
    }
    
     body {
       padding-bottom: 65px;
       
     }
         .navbar {
  width: 100%;
  background: rgba(139, 69, 19, 0.85); 
  backdrop-filter: blur(4px); 
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  border-top: 4px solid black;
  box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
}

.nav-item {
  color: #bdc3c7;
  text-align: center;
  font-size: 12px;
  text-decoration: none;
  transition: 0.2s;
}

.nav-item {
    position: relative;
}


.nav-item i {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

.nav-item.active,
.nav-item:hover {
  color: #f39c12;
}

.contact-menu {
  position: fixed;
  bottom: 80px; 
  right: 25px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse; 
  align-items: center;
}

.contact-btn {
  width: 70px;
  height: 70px;
  background: #e74c3c;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 5px solid black;
  transition: transform 0.3s, background 0.3s;
}

.contact-btn:hover {
  transform: scale(1.1);
  background: #f1c40f;
  color: black;
}

.contact-options {
  display: flex;
  flex-direction: column-reverse; 
  gap: 12px;
  margin-bottom: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
}

.contact-menu.active .contact-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-options .option {
  width: 50px;
  height: 50px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  border: 4px solid black;
  transition: transform 0.3s, background 0.3s;
}

.contact-options .option:hover {
  background: #f1c40f;
  color: black;
  transform: scale(1.2);
}

.card-image {
  background-size: cover;
  background-position: center;
}

.popup-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  border: 4px solid black;
  padding: 20px 30px;
  display: none;
  flex-direction: column;
  gap: 15px;
  z-index: 10001;
  min-width: 200px;
  text-align: center;
  animation: fadeInScale 0.3s ease forwards;
}
@keyframes fadeInScale {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.popup-menu button {
  border: none;
  background-color: #f0f0f0;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-menu button.active {
  background-color: #007bff;
  color: #fff;
}
.popup-menu button:hover {
  background-color: #0056b3;
  color: #fff;
}
.flag-icon {
  width: 20px;
  height: 14px;
  margin-right: 8px;
  vertical-align: middle;
}
.custom-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  border: 4px solid black;
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 30px;
  margin: 20px;
  border-radius: 37px;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow-y: auto;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 4px;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  color: #e74c3c;
  transition: all 0.4s ease;
}

.modal-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 4px solid black;
  border-radius: 15px;
  margin-bottom: 15px;
}
#modal-title {
  font-size: 22px;
  background: yellow;
  padding: 5px;
  border-radius: 24px;
  border: 4px solid black;
  color: #2c3e50;
  margin-bottom: 12px;
}
.modal-text {
  flex: 1;  
  font-size: 15px;
  color: #444;
  background: wheat;
  padding: 8px;
  border-radius: 24px;
  border: 4px solid black;
  padding-right: 10px;
  text-align: justify;
  margin-bottom: 15px;
}

.custom-modal {
  display: none;
}

.search-box {
    position: relative;
    max-width: 400px;
    margin: 20px auto;
}

.bn-btn {
 margin: 30px;
} 

ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

li {
  flex: 1 1 calc(50% - 15px);
  box-sizing: border-box;
  padding: 12px;
  background: white;
  border: 4px solid black;
  border-radius: 26px;
  font-weight: 500;
}
    .popup-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.6);
      display: none;
          
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    .popup-box {
      background: white;
      padding: 25px;
      border-radius: 10px;
      margin-right: 15px;
      margin-left: 15px;  
      max-width: 360px;
      width: 90%;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
      text-align: center;
      font-family: 'Hind Siliguri', sans-serif;
    }

    .popup-box input {
      width: 90%;
      padding: 10px;
      margin: 10px 0;
      border: 1px solid #ddd;
      border-radius: 5px;
    }

    .popup-box button {
      padding: 10px 20px;
      background: #008080;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      margin: 5px;
    }

    .popup-box .copy-btn {
      background: #444;
    }

    .bkash-info {
      background: #f9f9f9;
      padding: 10px;
      margin-top: 10px;
      border-radius: 6px;
      margin-bottom: 10px;
    }
    
    .last {
        color: red;
        text-decoration: none;
    }
    
    .bvv {
        margin-bottom: 10px;
    }
    
    .fstt {
        color: black;
        text-decoration: none;
        margin-top: 18px;
        background: aqua;  
        border-left: 4px solid black;  
        padding: 6px;   
        border-radius: 15px;        
    }
    
        .custom-modal, #authModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease forwards;
  cursor: pointer;
}


.custom-modal .modal-content,
#authModal > div {
  background: linear-gradient(to bottom, #1e90ff 20%, #ffffff 20%);
  padding: 28px 20px;
  width: 360px;
  max-width: 95%;
  border: none;
  border-radius: 57px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
  animation: scaleUp 0.35s ease forwards;
  cursor: auto;
  font-weight: bold;
}


.modal-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  border: 4px solid grey;
  
  
  display: block;
}

.custom-modal h2, #authModal h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #111;
  font-weight: bold;
}

#userEmail, #userUID, #totalOrders, #totalAmount {
  font-size: 16px;
  color: #555;
  margin: 5px 0;
  border-radius: 22px;  
  padding: 12px;
  border-left: 4px solid brown;
  border-right: 4px solid brown;
  box-shadow: 02px 01px 01px 01px black;
  font-weight: bold;
  word-wrap: break-word;
  overflow-wrap: break-word;
  
  white-space: normal;
  margin-bottom: 10px;
  
}

.custom-modal input, #authModal input {
  width: 200px;
  padding: 14px 18px;
  margin: 10px 0;
  border: 1px solid #ccc;
  font-size: 15px;
  font-weight: bold;
  border-radius: 37px;
  transition: all 0.3s ease;
}

.custom-modal input:focus, #authModal input:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 10px rgba(13,110,253,0.3);
}

.custom-modal button, #authModal button {
  width: 70%;
  padding: 12px;
  margin: 12px auto 0 auto;
  border: none;
  background: linear-gradient(90deg,#0d6efd,#0056b3);
  color: #fff;
  font-size: 15px;
  border-radius: 37px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s ease;
  display: block;
}

.custom-modal button:hover, #authModal button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

#close-btn {
  width: 60%;
  margin: 12px auto 0 auto;
  background: #e0e0e0;
  color: #333;
  font-weight: bold;
}

#close-btn:hover {
  background: #cfcfcf;
}

#switchAuth {
  display: block;
  margin: 15px auto 0 auto;
  color: #0d6efd;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
}

#switchAuth:hover {
  color: #0056b3;
  transform: scale(1.05);
}

@media (max-width: 400px) {
  .custom-modal .modal-content, #authModal > div {
    width: 90%;
    padding: 20px;
  }
}

@keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

@keyframes scaleUp {
  0% {opacity: 0; transform: scale(0.92);}
  100% {opacity: 1; transform: scale(1);}
}
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease forwards;
}


.popup-box .close-btn {
  position: absolute;
  top: 20px;    /* উপরের দূরত্ব */
  right: 20px;  /* ডানের দূরত্ব */
  color: grey;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

/* Order List Styling */
#orderList {
  margin-top: 60px;
  max-height: 400px;
  overflow-y: auto;
  text-align: left;
  border-left: 4px solid #1e90ff;
  border-right: 4px solid #1e90ff;
  padding: 10px;
  border-radius: 15px;
  background: #f0f8ff;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

/* Clear Button */
#clearOrders {
  padding: 10px 20px;
  border: none;
  background: #008080;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}
#clearOrders:hover {
  background: #005959;
}

/* Animations */
@keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
@keyframes scaleUp {
  0% {opacity: 0; transform: scale(0.8);}
  100% {opacity: 1; transform: scale(1);}
}

    