/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

button {
  cursor: pointer;
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  position: relative;
  padding-bottom: 10px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #e73323;
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 30px;
  margin-right: 10px;
}

.logo-text {
  color: #e73323;
  font-weight: bold;
  font-size: 18px;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-right: 20px;
}

.main-nav a {
  color: #555;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.main-nav a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e73323;
  transition: width 0.3s ease;
}

.main-nav a:hover:after,
.main-nav a.active:after {
  width: 100%;
}

.main-nav a.active {
  color: #e73323;
}

.header-title {
  font-size: 16px;
  color: #555;
}

.user-actions {
  display: flex;
  align-items: center;
}

.language-selector {
  margin-right: 15px;
}

.language-selector select {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.user-icon {
  font-size: 24px;
  color: #555;
  cursor: pointer;
}

/* User Menu */
.user-menu {
  position: absolute;
  top: 60px;
  right: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 200px;
  z-index: 100;
  display: none;
}

.user-menu.active {
  display: block;
}

.user-menu-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.user-menu-header i {
  font-size: 20px;
  margin-right: 10px;
  color: #555;
}

.user-menu ul {
  padding: 10px 0;
}

.user-menu li a {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  color: #555;
  transition: background-color 0.3s ease;
}

.user-menu li a:hover {
  background-color: #f5f5f5;
}

.user-menu li a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.banner-content h1 {
  font-size: 36px;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: #e73323;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #d62c1a;
  transform: translateY(-2px);
}

/* Game Selection */
.game-selection {
  padding: 40px 0;
}

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

.game-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-card.active {
  border: 2px solid #e73323;
}

.game-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.game-card h3 {
  padding: 15px;
  text-align: center;
  font-size: 16px;
}

/* Game Content */
.game-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  overflow: hidden;
}

.game-header {
  position: relative;
}

.game-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
}

.game-info h2 {
  margin-bottom: 5px;
  font-size: 28px;
}

.secure-badge {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 10px;
}

.secure-badge i {
  margin-right: 5px;
  color: #4caf50;
}

/* Login Section */
.login-section {
  padding: 30px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.section-number {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 30px;
  height: 30px;
  background-color: #e73323;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.section-title {
  margin-left: 50px;
  margin-bottom: 20px;
  font-size: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.tooltip-icon {
  cursor: help;
  color: #777;
}

.input-group {
  display: flex;
}

.input-group input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.login-btn {
  background-color: #e73323;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 0 4px 4px 0;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #d62c1a;
}

/* Social Login */
.social-login {
  margin-top: 20px;
}

.social-login p {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.social-buttons {
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s ease;
}

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

.facebook {
  background-color: #1877f2;
}

.google {
  background-color: #fff;
  color: #444;
  border: 1px solid #ddd;
}

.twitter {
  background-color: #1da1f2;
}

.discord {
  background-color: #5865f2;
}

/* Payment Section */
.payment-section {
  padding: 30px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.payment-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 16px;
  color: #777;
  position: relative;
}

.tab-btn.active {
  color: #e73323;
}

.tab-btn.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e73323;
}

/* Amount Options */
.amount-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.amount-option {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.amount-option:hover {
  border-color: #e73323;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.amount-option.selected {
  border: 2px solid #e73323;
  background-color: rgba(231, 51, 35, 0.05);
}

.amount-value {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.amount-details {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.currency-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.currency-amount {
  font-size: 14px;
  color: #555;
}

.amount-price {
  font-weight: bold;
  color: #e73323;
}

/* Payment Method Section */
.payment-method-section {
  padding: 30px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.payment-methods {
  margin-bottom: 30px;
}

.payment-method-category {
  margin-bottom: 20px;
}

.payment-method-category h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #555;
}

.payment-method-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.payment-method-option {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.payment-method-option:hover {
  border-color: #e73323;
  background-color: rgba(231, 51, 35, 0.05);
}

.payment-method-option.selected {
  border: 2px solid #e73323;
  background-color: rgba(231, 51, 35, 0.05);
}

.payment-method-option img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  object-fit: contain;
}

.checkout-button-container {
  text-align: center;
}

.checkout-button {
  background-color: #e73323;
  color: #fff;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.checkout-button:hover {
  background-color: #d62c1a;
  transform: translateY(-2px);
}

/* Special Offers */
.special-offers {
  padding: 30px;
}

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

.offer-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-5px);
}

.offer-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.offer-details {
  padding: 15px;
}

.offer-details h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.offer-details p {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.offer-price {
  font-weight: bold;
  color: #e73323;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 20px;
}

.close-modal {
  font-size: 24px;
  cursor: pointer;
  color: #777;
}

.modal-body {
  padding: 20px;
}

.checkout-summary {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.checkout-summary h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.payment-form h4 {
  margin-bottom: 15px;
  font-size: 16px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

.cancel-btn {
  padding: 10px 20px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #555;
}

.confirm-btn {
  padding: 10px 20px;
  background-color: #e73323;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #e73323;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  background-color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: #e73323;
}

.app-download p {
  margin-bottom: 10px;
  color: #aaa;
}

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

.app-buttons img {
  height: 35px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #aaa;
  font-size: 14px;
}

.payment-icons {
  display: flex;
  gap: 10px;
}

.payment-icons img {
  height: 25px;
  opacity: 0.7;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 992px) {
  .header-container {
    padding: 10px 0;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .games-grid,
  .offers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header-title {
    display: none;
  }

  .games-grid,
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .game-header {
    flex-direction: column;
  }

  .game-banner {
    height: 150px;
  }

  .payment-method-options {
    flex-wrap: wrap;
  }

  .payment-method-option {
    min-width: calc(50% - 10px);
  }

  /* Improved form elements for mobile */
  .form-group label {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .input-group input {
    height: 48px;
    font-size: 16px;
    padding: 12px 15px;
  }

  .login-btn {
    padding: 12px 20px;
    font-size: 16px;
    min-width: 100px;
  }

  /* Improved social login buttons */
  .social-buttons {
    justify-content: center;
    gap: 20px;
  }

  .social-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  /* Improved checkout button */
  .checkout-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 10px;
  }

  .logo {
    height: 24px;
  }

  .logo-text {
    font-size: 16px;
  }

  .user-icon {
    font-size: 22px;
  }

  .banner-content h1 {
    font-size: 28px;
  }

  .banner-content p {
    font-size: 16px;
  }

  .games-grid,
  .offers-grid,
  .amount-options {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 20px;
  }

  .game-info h2 {
    font-size: 24px;
  }

  /* Improved login section for mobile */
  .login-section,
  .payment-section,
  .payment-method-section {
    padding: 20px 15px;
  }

  .section-number {
    width: 28px;
    height: 28px;
    top: 20px;
    left: 15px;
    font-size: 14px;
  }

  .section-title {
    margin-left: 40px;
    font-size: 18px;
  }

  /* Touch-friendly form elements */
  .form-group {
    margin-bottom: 20px;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group input {
    border-radius: 8px;
    margin-bottom: 10px;
    width: 100%;
  }

  .login-btn {
    border-radius: 8px;
    width: 100%;
    height: 50px;
  }

  /* Better social login on mobile */
  .social-login {
    margin-top: 25px;
  }

  .social-login p {
    text-align: center;
    margin-bottom: 15px;
  }

  /* Improved payment options for mobile */
  .amount-option {
    padding: 15px;
    margin-bottom: 10px;
  }

  .amount-value {
    font-size: 22px;
  }

  .payment-method-option {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
  }

  /* Footer improvements */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Add mobile menu styles */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #555;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  background-color: #fff;
  width: 85%;
  height: 100%;
  max-width: 320px;
  padding: 20px;
  position: relative;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.close-mobile-menu {
  background: none;
  border: none;
  font-size: 24px;
  color: #555;
  cursor: pointer;
}

.mobile-menu-nav {
  margin-bottom: 30px;
}

.mobile-menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-nav li {
  margin-bottom: 15px;
}

.mobile-menu-nav a {
  display: block;
  padding: 10px 0;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu-nav a.active {
  color: #e73323;
}

.mobile-menu-user {
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.mobile-menu-user-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.mobile-menu-user-icon {
  width: 40px;
  height: 40px;
  background-color: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 20px;
  color: #777;
}

.mobile-menu-user-title {
  font-size: 18px;
  font-weight: 500;
}

.mobile-menu-user-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-user-nav li {
  margin-bottom: 15px;
}

.mobile-menu-user-nav a {
  display: flex;
  align-items: center;
  color: #555;
  font-size: 16px;
  text-decoration: none;
}

.mobile-menu-user-nav a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Touch-friendly buttons */
.cta-button,
.support-link,
.view-btn,
.topup-btn,
.notify-btn,
.filter-btn,
.submit-btn {
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  touch-action: manipulation;
}

/* Improved form focus states for touch */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(231, 51, 35, 0.3);
}

/* Add tap highlight color for mobile */
a,
button {
  -webkit-tap-highlight-color: rgba(231, 51, 35, 0.2);
}
