/* পুরো পেজের ডিজাইন */
body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* হেডার ডিজাইন */
header {
    width: 100%;
    background: #121212;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #00ff88;
    text-transform: uppercase;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.header-icons i {
    font-size: 18px;
    cursor: pointer;
    color: white;
}

/* সার্চ বার স্টাইল */
#searchWrapper {
    display: none;
    width: 100%;
    padding: 10px 20px;
    background: #1a1a1a;
    box-sizing: border-box;
}

#searchInput {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #333;
    color: white;
}

.title {
    margin: 25px 0;
    font-size: 22px;
    font-weight: bold;
}

/* রেসপন্সিভ গ্রিড */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 20px;
    width: 95%;
    max-width: 1100px;
    margin-bottom: 50px;
}

/* কার্ড ডিজাইন */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: transform 0.2s;
}

.card:active { transform: scale(0.95); }

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.card span {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

/* টেলিগ্রাম বাটন */
.tg-float {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: #0088cc;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* ফুটার */
footer {
    width: 100%;
    background: #121212;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: auto;
}

/* মোবাইলের জন্য ৩ কলাম ফিক্সড */
@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .card span { font-size: 10px; }
}
/* ===== POPUP STYLES ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85); /* ডার্ক গ্লাস ইফেক্ট */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-card {
  width: 100%;
  max-width: 350px; /* প্রিমিয়াম ছোট সাইজ */
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111827; /* ডার্ক থিম */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.popup-overlay.show .popup-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.popup-content {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.popup-icon {
  background: #38bdf8;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
}

.popup-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.5rem;
}

.popup-text {
  color: #94a3b8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popup-join-btn {
  background: #38bdf8;
  color: #000;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}

.popup-join-btn:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

.popup-close-btn {
  background: #1f2937;
  color: #cbd5e1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}