/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Header Styles */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
}

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

.menu-btn span {
  width: 100%;
  height: 3px;
  background: #666;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-btn:hover span {
  background: #4a90e2;
}

.logo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.auth-buttons {
  display: flex;
  gap: 12px;
}

/* Button Styles */
.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid #e0e0e0;
  color: #666;
}

.btn-outline:hover {
  border-color: #4a90e2;
  color: #4a90e2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #357abd, #2c5aa0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

/* Main Content */
.main {
  padding: 30px 0;
  min-height: calc(100vh - 200px);
}

/* Banner Section */
.banner-section {
  margin-bottom: 30px;
}

.banner-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.banner-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  cursor: pointer;
}

.banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.banner-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.banner-card:hover img {
  transform: scale(1.02);
}

/* Search Section */
.search-section {
  margin-bottom: 30px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 25px;
  padding: 15px 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.search-bar:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.search-icon {
  width: 20px;
  height: 20px;
  fill: #999;
  margin-right: 12px;
  flex-shrink: 0;
  transition: fill 0.3s ease;
}

.search-bar:focus-within .search-icon {
  fill: #4a90e2;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  background: transparent;
}

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

/* Tabs Section */
.tabs-section {
  margin-bottom: 30px;
}

.game-tabs {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 25px;
  background: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  min-width: 100px;
}

.tab-btn img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.tab-btn span {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.tab-btn.active {
  background: linear-gradient(135deg, #ff6b6b, #4a90e2);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.tab-btn.active span {
  color: white;
}

.tab-btn.active img {
  filter: brightness(0) invert(1);
}

/* Games Section */
.games-section {
  margin-bottom: 50px;
}

.games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.games-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.games-title h2 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.games-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: #4a90e2;
}

.nav-btn:hover svg {
  fill: white;
}

.nav-btn svg {
  width: 20px;
  height: 20px;
  fill: #666;
  transition: fill 0.3s ease;
}

.view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: rgba(74, 144, 226, 0.05);
}

.view-all:hover {
  background: rgba(74, 144, 226, 0.1);
  transform: translateX(3px);
}

.view-all .count {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1976d2;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.view-all svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.view-all:hover svg {
  transform: translateX(2px);
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 10px 0;
}

.game-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

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

.game-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}

.game-card:hover .favorite-btn {
  opacity: 1;
  transform: scale(1);
}

.favorite-btn:hover {
  background: #ff6b6b;
  color: white;
  transform: scale(1.1);
}

.favorite-btn.favorited {
  background: #ff6b6b !important;
  color: white !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.favorite-btn:hover svg {
  transform: scale(1.2);
}

.game-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.game-provider {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

/* Cooperation Section */
.cooperation-section {
  text-align: center;
  margin-bottom: 50px;
  padding: 30px 0;
}

.cooperation-section h3 {
  font-size: 18px;
  color: #999;
  margin-bottom: 25px;
  font-weight: 500;
}

.cooperation-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 50px 0 30px;
  border-top: 1px solid #e9ecef;
  margin-top: 50px;
}

.footer-logo {
  text-align: center;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

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

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  border-radius: 2px;
}

.footer-column ul {
  display: flex;
  list-style: none;
  gap: 20px;
  list-style: none;
}

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

.footer-link {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: all 0.3s ease;
  padding: 5px 0;
  display: inline-block;
}

.footer-link:hover {
  color: #4a90e2;
  transform: translateX(5px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
  from {
      opacity: 0;
      transform: translateY(-50px) scale(0.95);
  }
  to {
      opacity: 1;
      transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 20px 20px 0 0;
}

.modal-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  width: 35px;
  height: 35px;
  border: none;
  background: #f5f5f5;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #ff6b6b;
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group input {
  padding: 18px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
  background: #fafafa;
}

.form-group input:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
  background: white;
  transform: translateY(-2px);
}

.form-group input:valid {
  border-color: #4caf50;
}

.btn-full {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
}

.form-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #f0f0f0;
}

.form-footer p {
  color: #666;
  font-size: 15px;
}

.form-footer a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.form-footer a:hover {
  color: #357abd;
  text-decoration: underline;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
  from {
      opacity: 0;
      transform: translateX(-40px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
  from {
      opacity: 0;
      transform: scale(0.8);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4a90e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
      background-position: 200% 0;
  }
  100% {
      background-position: -200% 0;
  }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  min-width: 320px;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.4s ease;
  backdrop-filter: blur(10px);
}

.notification-success {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.notification-error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.notification-info {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
}

.notification-content {
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-message {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
}

.notification-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  margin-left: 20px;
  opacity: 0.8;
  transition: all 0.3s ease;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.notification-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
  from {
      transform: translateX(100%);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
      transform: translateX(0);
      opacity: 1;
  }
  to {
      transform: translateX(100%);
      opacity: 0;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.p-10 {
  padding: 10px;
}

.p-20 {
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
      padding: 0 20px;
  }
  
  .games-grid {
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
      padding: 0 15px;
  }
  
  .header-content {
      height: 65px;
  }
  
  .logo-img {
      height: 35px;
  }
  
  .auth-buttons {
      gap: 8px;
  }
  
  .btn {
      padding: 8px 16px;
      font-size: 13px;
  }
  
  .main {
      padding: 25px 0;
  }
  
  .banner-slider {
      height: 160px;
  }
  
  .search-bar {
      padding: 12px 18px;
      margin: 0 10px;
  }
  
  .search-icon {
      width: 18px;
      height: 18px;
  }
  
  .search-input {
      font-size: 15px;
  }
  
  .game-tabs {
      gap: 10px;
      justify-content: flex-start;
      overflow-x: auto;
      padding: 0 15px 15px;
      scrollbar-width: none;
      -ms-overflow-style: none;
  }
  
  .game-tabs::-webkit-scrollbar {
      display: none;
  }
  
  .tab-btn {
      min-width: 85px;
      padding: 12px 18px;
      flex-shrink: 0;
  }
  
  .tab-btn img {
      width: 26px;
      height: 26px;
  }
  
  .tab-btn span {
      font-size: 13px;
  }
  
  .games-header {
      flex-direction: column;
      align-items: stretch;
      gap: 20px;
  }
  
  .games-controls {
      justify-content: space-between;
      flex-wrap: wrap;
  }
  
  .games-title h2 {
      font-size: 22px;
  }
  
  .games-grid {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 18px;
  }
  
  .game-image {
      height: 160px;
  }
  
  .footer {
      padding: 40px 0 25px;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .modal-content {
      margin: 0 10px;
      max-width: none;
  }
  
  .modal-header,
  .modal-body {
      padding: 25px;
  }
  
  .modal-header h2 {
      font-size: 24px;
  }
  
  .notification {
      left: 15px;
      right: 15px;
      min-width: auto;
  }
}

@media (max-width: 480px) {
  .header-content {
      height: 60px;
      padding: 0 10px;
  }
  
  .logo-img {
      height: 32px;
  }
  
  .btn {
      padding: 6px 12px;
      font-size: 12px;
  }
  
  .main {
      padding: 20px 0;
  }
  
  .banner-slider {
      height: 140px;
  }
  
  .banner-dots {
      gap: 6px;
      margin-top: 12px;
  }
  
  .dot {
      width: 10px;
      height: 10px;
  }
  
  .search-bar {
      margin: 0 5px;
      padding: 10px 15px;
  }
  
  .game-tabs {
      padding: 0 10px 15px;
      gap: 8px;
  }
  
  .tab-btn {
      min-width: 75px;
      padding: 10px 15px;
  }
  
  .tab-btn img {
      width: 24px;
      height: 24px;
  }
  
  .tab-btn span {
      font-size: 12px;
  }
  
  .games-title h2 {
      font-size: 20px;
  }
  
  .provider-logo {
      width: 35px;
      height: 35px;
  }
  
  .games-controls {
      gap: 8px;
  }
  
  .nav-btn {
      width: 35px;
      height: 35px;
  }
  
  .nav-btn svg {
      width: 16px;
      height: 16px;
  }
  
  .view-all {
      font-size: 13px;
      padding: 6px 10px;
  }
  
  .games-grid {
      grid-template-columns: 1fr;
      gap: 15px;
      padding: 5px 0;
  }
  
  .game-image {
      height: 140px;
  }
  
  .game-info {
      padding: 15px;
  }
  
  .game-title {
      font-size: 15px;
  }
  
  .game-provider {
      font-size: 12px;
  }
  
  .favorite-btn {
      width: 32px;
      height: 32px;
      top: 10px;
      right: 10px;
  }
  
  .favorite-btn svg {
      width: 16px;
      height: 16px;
  }
  
  .footer {
      padding: 30px 0 20px;
  }
  
  .footer-logo img {
      height: 60px;
  }
  
  .footer-content {
      gap: 25px;
  }
  
  .footer-column h4 {
      font-size: 16px;
      margin-bottom: 15px;
  }
  
  .footer-link {
      font-size: 14px;
  }
  
  .modal-header,
  .modal-body {
      padding: 20px;
  }
  
  .modal-header h2 {
      font-size: 22px;
  }
  
  .form-group input {
      padding: 15px;
      font-size: 15px;
  }
  
  .btn-full {
      padding: 15px;
      font-size: 15px;
  }
  
  .cooperation-section {
      padding: 20px 0;
      margin-bottom: 30px;
  }
  
  .cooperation-section h3 {
      font-size: 16px;
      margin-bottom: 15px;
  }
}

@media (max-width: 360px) {
  .container {
      padding: 0 10px;
  }
  
  .games-grid {
      grid-template-columns: 1fr;
  }
  
  .tab-btn {
      min-width: 70px;
      padding: 8px 12px;
  }
  
  .games-controls {
      flex-direction: column;
      gap: 15px;
      align-items: center;
  }
  
  .modal-content {
      margin: 0 5px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img,
  .provider-logo,
  .tab-btn img {
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  :root {
      --bg-color: #1a1a1a;
      --text-color: #ffffff;
      --card-bg: #2d2d2d;
      --border-color: #404040;
  }
  
  /* Uncomment to enable dark mode */
  /*
  body {
      background-color: var(--bg-color);
      color: var(--text-color);
  }
  
  .header {
      background: var(--card-bg);
      border-bottom: 1px solid var(--border-color);
  }
  
  .search-bar,
  .game-card,
  .tab-btn,
  .modal-content {
      background: var(--card-bg);
      color: var(--text-color);
      border-color: var(--border-color);
  }
  */
}

/* Print Styles */
@media print {
  .header,
  .banner-section,
  .search-section,
  .modal,
  .notification {
      display: none;
  }
  
  .main {
      padding: 0;
  }
  
  .game-card {
      break-inside: avoid;
      box-shadow: none;
      border: 1px solid #ddd;
  }
  
  .games-grid {
      display: block;
  }
  
  .game-card {
      margin-bottom: 20px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
  }
}

/* Focus Styles for Better Accessibility */
button:focus-visible,
.tab-btn:focus-visible,
.nav-btn:focus-visible,
.favorite-btn:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

input:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

.game-card:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Selection Styles */
::selection {
  background: rgba(74, 144, 226, 0.3);
  color: #333;
}

::-moz-selection {
  background: rgba(74, 144, 226, 0.3);
  color: #333;
}




/* Terms & Conditions Page Styles - Specific Classes */

/* Main Container */
.chakra-container.css-1og9w4z {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Container for the whole terms section */
.css-1uoonoz {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Main Title */
.chakra-text.css-b7vqcq {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  text-align: center !important;
  margin-bottom: 30px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  background: linear-gradient(135deg, #4a90e2, #357abd) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Terms Content Article */
.css-12pbd34 {
  background: #ffffff !important;
  padding: 30px !important;
  border-radius: 12px !important;
  margin-top: 24px !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e9ecef !important;
  line-height: 1.7 !important;
}

/* All Paragraphs in Terms */
.css-12pbd34 p {
  margin-bottom: 16px !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #444 !important;
  text-align: justify !important;
}

/* Section Headers with 18px font size */
.css-12pbd34 p strong span[style*="font-size: 18px"],
.css-12pbd34 p strong span[style*="font-size:18px"] {
  display: block !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  margin: 25px 0 15px 0 !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid #4a90e2 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* First section header adjustment */
.css-12pbd34 p:first-of-type strong span[style*="font-size: 18px"] {
  margin-top: 0 !important;
}

/* Company name styling (Times font) */
.css-12pbd34 strong span[style*="Times"] {
  background: linear-gradient(135deg, #ff6b6b, #4a90e2) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}

/* Bold text styling */
.css-12pbd34 strong {
  font-weight: 600 !important;
  color: #2c3e50 !important;
}

/* Paragraphs with indented content (list items) */
.css-12pbd34 p[style*="display: inline-block"] {
  margin-left: 25px !important;
  padding-left: 10px !important;
  position: relative !important;
  display: block !important;
}

.css-12pbd34 p[style*="display: inline-block"]:before {
  content: "•" !important;
  color: #4a90e2 !important;
  font-weight: bold !important;
  position: absolute !important;
  left: -15px !important;
  font-size: 16px !important;
}

/* Special styling for important notices */
.css-12pbd34 p:has(span:contains("Under 21 years old")),
.css-12pbd34 p:has(span:contains("Public officials")),
.css-12pbd34 p:has(span:contains("Armed Forces")),
.css-12pbd34 p:has(span:contains("Students")) {
  background: #fff3cd !important;
  border-left: 4px solid #ffc107 !important;
  padding: 12px 16px !important;
  margin: 16px 0 !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

/* Age restrictions and critical info */
.css-12pbd34 p:has(strong:contains("not s")),
.css-12pbd34 p:contains("21 years old") {
  background: #f8d7da !important;
  border-left: 4px solid #dc3545 !important;
  padding: 12px 16px !important;
  margin: 16px 0 !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

/* Definition terms styling */
.css-12pbd34 p:contains('"Equipment"'),
.css-12pbd34 p:contains('"Game"'),
.css-12pbd34 p:contains('"Software"'),
.css-12pbd34 p:contains('"Sports betting"'),
.css-12pbd34 p:contains('"Website"'),
.css-12pbd34 p:contains('"Service"'),
.css-12pbd34 p:contains('"Card"'),
.css-12pbd34 p:contains('"Regulator"') {
  background: #e3f2fd !important;
  border-left: 4px solid #2196f3 !important;
  padding: 12px 16px !important;
  margin: 12px 0 !important;
  border-radius: 4px !important;
  font-style: italic !important;
}

/* Company and legal information */
.css-12pbd34 p:contains("SEC register no."),
.css-12pbd34 p:contains("PAGCOR"),
.css-12pbd34 p:contains("blingwin.com"),
.css-12pbd34 p:contains("ASCEND INNOVATION") {
  background: #e8f5e8 !important;
  border-left: 4px solid #4caf50 !important;
  padding: 12px 16px !important;
  margin: 16px 0 !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

/* KYC and AML related content */
.css-12pbd34 p:contains("KYC"),
.css-12pbd34 p:contains("Know Your Customer"),
.css-12pbd34 p:contains("Anti-Money Laundering"),
.css-12pbd34 p:contains("AML") {
  background: #fff8e1 !important;
  border-left: 4px solid #ff9800 !important;
  padding: 12px 16px !important;
  margin: 16px 0 !important;
  border-radius: 4px !important;
}

/* Financial and transaction info */
.css-12pbd34 p:contains("Php"),
.css-12pbd34 p:contains("deposit"),
.css-12pbd34 p:contains("withdraw"),
.css-12pbd34 p:contains("turnover") {
  background: #f0f8f7 !important;
  border-left: 4px solid #26a69a !important;
  padding: 12px 16px !important;
  margin: 16px 0 !important;
  border-radius: 4px !important;
}

/* List of accepted IDs */
.css-12pbd34 p:contains("National ID"),
.css-12pbd34 p:contains("Driver's License"),
.css-12pbd34 p:contains("Passport"),
.css-12pbd34 p:contains("UMID"),
.css-12pbd34 p:contains("Philhealth") {
  background: #f3e5f5 !important;
  border-left: 4px solid #9c27b0 !important;
  padding: 8px 16px !important;
  margin: 8px 0 !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

/* Empty paragraphs (spacing) */
.css-12pbd34 p:empty,
.css-12pbd34 p:contains("&nbsp;") {
  margin-bottom: 8px !important;
  height: 8px !important;
}

/* Back to top button (if needed) */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4a90e2;
  color: white;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #357abd;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .chakra-container.css-1og9w4z {
      padding: 20px 15px;
  }
  
  .css-1uoonoz {
      padding: 20px;
  }
  
  .chakra-text.css-b7vqcq {
      font-size: 24px !important;
      margin-bottom: 20px !important;
  }
  
  .css-12pbd34 {
      padding: 20px !important;
  }
  
  .css-12pbd34 p {
      font-size: 14px !important;
      text-align: left !important;
      margin-bottom: 14px !important;
  }
  
  .css-12pbd34 p strong span[style*="font-size: 18px"] {
      font-size: 18px !important;
      margin: 20px 0 10px 0 !important;
  }
  
  .css-12pbd34 p[style*="display: inline-block"] {
      margin-left: 20px !important;
  }
}

@media (max-width: 480px) {
  .chakra-container.css-1og9w4z {
      padding: 15px 10px;
  }
  
  .css-1uoonoz {
      padding: 15px;
  }
  
  .css-12pbd34 {
      padding: 15px !important;
  }
  
  .chakra-text.css-b7vqcq {
      font-size: 20px !important;
  }
  
  .css-12pbd34 p {
      font-size: 13px !important;
  }
  
  .css-12pbd34 p strong span[style*="font-size: 18px"] {
      font-size: 16px !important;
  }
}

/* Print styles */
@media print {
  .chakra-container.css-1og9w4z {
      max-width: none;
      padding: 20px;
  }
  
  .css-1uoonoz,
  .css-12pbd34 {
      background: white !important;
      box-shadow: none !important;
      border: none !important;
  }
  
  .back-to-top {
      display: none;
  }
  
  .chakra-text.css-b7vqcq {
      color: #333 !important;
      -webkit-print-color-adjust: exact;
  }
}