* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans Khmer', 'Inter', sans-serif;
  background: #2a2a3a;
  min-height: 100vh;
  color: #fff;
}

.page-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #2a2a3a;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #2a2a3a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #3a3a4a;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.icon-btn:hover {
  background: #4a4a5a;
}

.cambodia-flag img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.search-container {
  padding: 0 15px 15px;
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 10px;
  background: #3a3a4a;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.search-input::placeholder {
  color: #888;
}

.search-input:focus {
  outline: none;
  background: #4a4a5a;
}

.popular-section {
  padding: 15px 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.section-title i {
  color: #ff6b35;
}

.section-subtitle {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

.popular-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.popular-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, #3a3a4a 0%, #2d2d3d 100%);
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255,255,255,0.05);
}

.popular-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.popular-img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.popular-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
}

.popular-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-dev {
  font-size: 10px;
  color: #9a9a9a;
}

.topup-games-section {
  padding: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title-box {
  background: #3a3a4a;
  padding: 6px 16px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 600;
}

.nav-arrow {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: #3a3a4a;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  font-size: 11px;
}

.nav-arrow:hover {
  background: #4a4a5a;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.game-card {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s;
}

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

.game-image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.game-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-info {
  padding: 5px 3px;
  text-align: center;
}

.game-info h4 {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-dev {
  font-size: 9px;
  color: #888;
}

.features-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 20px 15px;
  border-radius: 20px;
  padding: 30px 20px;
  color: #fff;
  text-align: center;
}

.mascot-container {
  margin-bottom: 15px;
}

.mascot {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
}

.features-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.features-subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  color: #333;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.feature-icon.blue { background: #3498db; }
.feature-icon.purple { background: #9b59b6; }
.feature-icon.orange { background: #e67e22; }
.feature-icon.green { background: #27ae60; }

.feature-content h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-content p {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

.footer {
  background: #fff;
  padding: 25px 15px;
  margin-top: 20px;
}

.footer-top {
  text-align: center;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.contact-label {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.contact-buttons {
  display: flex;
  gap: 10px;
}

.contact-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s;
}

.contact-btn:hover {
  transform: scale(1.1);
}

.contact-btn.telegram {
  background: #0088cc;
}

.contact-btn.facebook {
  background: #1877f2;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: #e63946;
}

.footer-links .divider {
  margin: 0 12px;
  color: #ccc;
}

.copyright {
  font-size: 12px;
  color: #888;
  margin-bottom: 15px;
}

.copyright strong {
  color: #e63946;
}

.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-methods span:first-child {
  font-size: 12px;
  color: #666;
}

.payment-badge {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.payment-badge.khqr {
  background: #e63946;
}

.payment-badge.aba {
  background: #0066b3;
}

/* Banner Slider */
.banner-section {
  padding: 10px 15px;
  position: relative;
}

.banner-slider {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 120px;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.banner-img.active {
  opacity: 1;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #e63946;
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #2a2a3a;
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.side-menu.open {
  right: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-header {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #3a3a4a;
  gap: 12px;
}

.menu-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.menu-title {
  font-size: 16px;
  font-weight: 700;
  color: #e63946;
  flex: 1;
}

.close-menu {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.menu-nav {
  flex: 1;
  padding: 20px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.menu-item:hover,
.menu-item.active {
  background: #3a3a4a;
}

.menu-item i {
  width: 20px;
  text-align: center;
  font-size: 18px;
}

.menu-footer {
  padding: 20px;
  border-top: 1px solid #3a3a4a;
  text-align: center;
}

.menu-footer p {
  font-size: 12px;
  color: #666;
}

/* Mobile (default - up to 480px) */
@media (max-width: 480px) {
  .popular-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .popular-item {
    padding: 8px;
    gap: 8px;
  }
  
  .popular-img {
    width: 40px;
    height: 40px;
  }
  
  .popular-name {
    font-size: 12px;
  }
  
  .popular-dev {
    font-size: 9px;
  }
  
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  
  .game-info h4 {
    font-size: 9px;
  }
  
  .game-dev {
    font-size: 8px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 12px;
  }
  
  .features-title {
    font-size: 15px;
  }
  
  .banner-slider {
    height: 90px;
  }
  
  .section-title {
    font-size: 15px;
  }
  
  .logo {
    width: 36px;
    height: 36px;
  }
}

/* Small tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .page-container {
    max-width: 100%;
    padding: 0;
  }
  
  .header {
    padding: 10px 18px;
  }
  
  .popular-section {
    padding: 15px 18px;
  }
  
  .topup-games-section {
    padding: 12px 18px;
  }
  
  .popular-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .popular-img {
    width: 44px;
    height: 44px;
  }
  
  .popular-name {
    font-size: 12px;
  }
  
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  
  .game-info h4 {
    font-size: 10px;
  }
  
  .game-dev {
    font-size: 8px;
  }
  
  .features-section {
    margin: 18px;
    padding: 22px 18px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .banner-slider {
    height: 110px;
  }
  
  .banner-section {
    padding: 10px 18px;
  }
  
  .search-container {
    padding: 0 18px 12px;
  }
  
  .footer {
    padding: 22px 18px;
  }
}

/* Tablets and small desktops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-container {
    max-width: 750px;
    margin: 0 auto;
  }
  
  .header {
    padding: 10px 22px;
  }
  
  .logo {
    width: 40px;
    height: 40px;
  }
  
  .popular-section,
  .topup-games-section {
    padding: 15px 22px;
  }
  
  .popular-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .popular-item {
    padding: 10px;
  }
  
  .popular-img {
    width: 46px;
    height: 46px;
  }
  
  .popular-name {
    font-size: 13px;
  }
  
  .popular-dev {
    font-size: 10px;
  }
  
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  
  .game-info h4 {
    font-size: 10px;
  }
  
  .game-dev {
    font-size: 8px;
  }
  
  .features-section {
    margin: 18px 22px;
    padding: 22px 18px;
  }
  
  .features-title {
    font-size: 17px;
  }
  
  .features-subtitle {
    font-size: 12px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .feature-card {
    padding: 12px;
  }
  
  .feature-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  
  .feature-content h4 {
    font-size: 13px;
  }
  
  .feature-content p {
    font-size: 11px;
  }
  
  .banner-slider {
    height: 140px;
  }
  
  .banner-section {
    padding: 15px 25px;
  }
  
  .section-title {
    font-size: 17px;
  }
  
  .section-subtitle {
    font-size: 12px;
  }
  
  .search-container {
    padding: 0 25px 15px;
  }
  
  .search-input {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .footer {
    padding: 25px;
  }
  
  .mascot {
    width: 90px;
    height: 90px;
  }
}

/* Large desktops (1025px and up) */
@media (min-width: 1025px) {
  .page-container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .header {
    padding: 12px 28px;
  }
  
  .logo {
    width: 42px;
    height: 42px;
  }
  
  .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  
  .popular-section,
  .topup-games-section {
    padding: 18px 28px;
  }
  
  .popular-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .popular-item {
    padding: 12px;
    border-radius: 12px;
  }
  
  .popular-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }
  
  .popular-name {
    font-size: 14px;
  }
  
  .popular-dev {
    font-size: 11px;
  }
  
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  
  .game-image-wrapper {
    border-radius: 10px;
  }
  
  .game-info {
    padding: 5px 3px;
  }
  
  .game-info h4 {
    font-size: 11px;
  }
  
  .game-dev {
    font-size: 9px;
  }
  
  .features-section {
    margin: 22px 28px;
    padding: 25px;
    border-radius: 18px;
  }
  
  .features-title {
    font-size: 18px;
  }
  
  .features-subtitle {
    font-size: 13px;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  
  .feature-card {
    padding: 14px;
    border-radius: 12px;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .feature-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .feature-content {
    text-align: center;
  }
  
  .feature-content h4 {
    font-size: 13px;
  }
  
  .feature-content p {
    font-size: 11px;
  }
  
  .banner-slider {
    height: 160px;
    border-radius: 16px;
  }
  
  .banner-section {
    padding: 18px 30px;
  }
  
  .section-title {
    font-size: 19px;
  }
  
  .section-subtitle {
    font-size: 13px;
  }
  
  .section-header {
    margin-bottom: 20px;
  }
  
  .section-title-box {
    padding: 10px 22px;
    font-size: 14px;
  }
  
  .nav-arrow {
    width: 35px;
    height: 35px;
  }
  
  .search-container {
    padding: 0 30px 18px;
  }
  
  .search-input {
    padding: 13px 16px;
    font-size: 14px;
    border-radius: 10px;
  }
  
  .footer {
    padding: 30px;
  }
  
  .contact-label {
    font-size: 14px;
  }
  
  .contact-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .footer-links a {
    font-size: 13px;
  }
  
  .copyright {
    font-size: 12px;
  }
  
  .payment-methods span:first-child {
    font-size: 12px;
  }
  
  .payment-badge {
    padding: 5px 12px;
    font-size: 11px;
  }
  
  .mascot {
    width: 100px;
    height: 100px;
    padding: 8px;
  }
  
  .side-menu {
    width: 300px;
    right: -300px;
  }
}

/* Extra large screens (1440px and up) */
@media (min-width: 1440px) {
  .page-container {
    max-width: 1100px;
  }
  
  .popular-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
  }
  
  .banner-slider {
    height: 180px;
  }
}
