/* Global */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(to bottom right, #1a1a1a, #2a2a40);
  color: #ccc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #ffce54;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffd700;
}

.container {
  min-height: 80vh;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.container h1 {
  text-align: center;
  margin: 2rem 0;
  color: #fff;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 100vh;
  background: linear-gradient(to bottom, #000000, #190909);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  z-index: 10;
  box-shadow: 2px 0 10px rgba(12, 12, 12, 0.4);
}

.logo img {
  width: 75px;
  height: auto;
  margin-bottom: 2rem;
}

.side-nav a {
  margin: 20px 0;
  display: block;
}

.side-nav img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.side-nav img:hover {
  transform: scale(1.1);
  filter: brightness(1.5);
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 90px;
  right: 0;
  height: 60px;
  background: linear-gradient(to left, #1f0000, #300606);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.menu-toggle {
  display: none;
}

.search-box {
  flex-grow: 1;
  flex: 1;
  margin-right: auto;
  display: flex;
  max-width: 300px;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 0.5rem;
  background: #060404;
  border: none;
  color: #fff;
  border-radius: 5px;
}

.profile-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffd700;
}
.avatar:hover {
  filter: brightness(1.4);
  cursor: pointer;
}

/* Main Content */
.main-content {
  margin-left: 90px;
  margin-top: 60px;
  padding: 2rem 1rem;
  width: calc(100% - 90px);
  box-sizing: border-box;
  background: linear-gradient(to bottom, #000000, #190909);
}

/* Footer */
footer {
  background: #080202;
  color: #aaa;
  padding: 1rem;
  text-align: center;
  margin-left: 90px;
  width: calc(100% - 90px);
  box-sizing: border-box;
  border-top: 1px solid #2f2f44;
}

.footer-right {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 0.5rem;
}

/* Ad Section */
.ad-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 2rem 0;
  overflow: hidden;
  height: 180px;
}

.ad-slider {
  overflow: hidden;
  width: 100%;
}

.ad-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.ad-card {
  min-width: 300px;
  margin-right: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.ad-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.ad-prev, .ad-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #292c40;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 5;
  border-radius: 5px;
  opacity: 0.8;
}

.ad-prev:hover, .ad-next:hover {
  background: #4a90e2;
}

.ad-prev {
  left: 10px;
}

.ad-next {
  right: 10px;
}

/* Topup Cards */
.topup-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.card {
  background: #25253a;
  padding: 25px 20px;
  justify-content: center;
  flex-wrap: wrap;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  width: 300px;
  text-align: left;
  color: #fff;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
}

.card h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

.card p {
  margin: 5px 0;
}

.yes {
  color: rgb(0, 0, 0);
  font-weight: bold;
  margin-right: 5px;
}

.no {
  color: rgb(0, 0, 0);
  font-weight: bold;
  margin-right: 5px;
  opacity: 0.7;
}

.card button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #ffd700;
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card button:hover {
  background: #e6c200;
}

body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: #1a1a1a;
}
body::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}
body::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.coupon-box {
  margin: 20px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.coupon-box input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  width: 250px;
}

.coupon-box button {
  padding: 10px 15px;
  background-color: #8a0d0d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#couponFeedback {
  display:block;
  min-height:1.2em;
  font-size:14px;
  font-weight:600;
  margin-left: 10px;
  color: green;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* харанхуйлалт */
  z-index: 900;
}

.sidebar-overlay.active {
  display: block;
}

   /* ---------- RESPONSIVE (Mobile / Tablet) ---------- */
@media (max-width: 768px) {
.sidebar {
    width: 70vw; /* 🔥 70% дэлгэцийн өргөн */
    max-width: 100px;
    min-width: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: #600000;
    padding-top: 1rem;
  }

  .sidebar.active {
    transform: translateX(0);
  }
    .topbar {
    margin-left: 0;
    left: 0; /* ☑ sidebar байхгүй үед */
    flex-direction: row; /* 🔥 column биш row болгоно */
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    gap: 10px;
  }
  
  .main-content {
    margin-left: 0;
    margin-top: 60px;
    width: 100%;
  }

    footer {
    margin-left: 0;
    width: 100%;
  }
    .header-actions {
    margin-left: 0;
  }

  .search-box {
    flex-grow: 1;
    margin: 0;
  }

  .search-box input {
    width: 100%;
    font-size: 14px;
    padding: 8px;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .footer-right {
    flex-direction: column;
    gap: 10px;
  }
    .ad-card {
    min-width: 300px;
  }

  .ad-slider-wrapper {
    height: 150px;
  }

  .ad-card img {
    height: 150px;
  }

  .coupon-box{
    flex-direction:column;
    align-items:stretch;
  }

  .coupon-box button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
  }

  .coupon-box input{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 95%;
    margin: 0 auto;
  }

  #couponFeedback{
    margin-top:6px;
    text-align:left;
  }

}
