@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #6c757d;
  --background-color: #f8f9fa;
  --surface-color: #ffffff;
  --accent-color: #FF7A00;
  --danger-color-alt: #e53935;
  --text-color: #212529;
  --border-color: #dee2e6;
  --success-color: #198754;
  --danger-color: #dc3545;
  --info-color: #6c757d;
  --font-family: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  padding-bottom: 80px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.header-content,
.container,
.footer-content {
  max-width: 1030px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.main-header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100%;
}

.main-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.main-header .header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.main-header .logo-container {
  display: flex;
  align-items: center;
}

.logo-desktop {
  display: block;
  width: 100px;
}

.logo-mobile {
  display: none;
  width: 34px;
}

.header-text {
  display: flex;
  flex-direction: row;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.2;
  border-left: 1px solid #ccc;
  padding-left: 15px;
}

.header-text span {
  display: block;
}

.main-header .header-right {
  display: flex;
  align-items: center;
  position: relative;
}

.user-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.user-icon:hover {
  background-color: #f5f5f5;
}

.user-icon img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.user-menu-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.mobile-menu-header h3 {
  font-size: 16px;
  font-weight: 700;
}

#close-mobile-menu {
  background: none;
  border: none;
  font-size: 24px;
  color: #ffffff;
  padding: 0 5px;
}

.user-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1200;
  border: none;
  padding: 0;
}

.user-dropdown.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header-bg {
  background: linear-gradient(135deg, #E00000 0%, #B00000 100%);
  padding: 25px 20px;
  text-align: center;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dropdown-header-bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.114) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 10px);
  pointer-events: none;
}

.mobile-close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 10;
}

.user-profile-summary {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar-container {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 3px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-name-display {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dropdown-content-body {
  padding: 10px 0;
  background: #fff;
}

.dropdown-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
}

.dropdown-link-item:hover {
  background-color: #f5f5f5;
}

.dropdown-link-item i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.dropdown-link-item.logout {
  color: #d11a1f;
}

.dropdown-link-item.logout i {
  transform: scaleX(-1);
}

.dropdown-divider {
  height: 1px;
  background-color: #eee;
  margin: 5px 20px;
}

@media (max-width: 768px) {
  .user-menu-overlay {
    display: block;
  }

  .user-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
  }

  .header-text {
    flex-direction: column;
    gap: 0;
    font-size: 12px;
    padding-left: 10px;
  }

  .user-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    border-radius: 0;
    transform: translateX(100%);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  }

  .user-dropdown.visible {
    transform: translateX(0);
  }

  .dropdown-header-bg {
    height: 220px;
    justify-content: center;
  }

  .mobile-close-btn {
    display: block;
  }

  .avatar-container {
    width: 90px;
    height: 90px;
  }

  .user-name-display {
    font-size: 20px;
    margin-top: 5px;
  }

  .user-dropdown.visible {
    right: 0;
  }

  .mobile-menu-header {
    display: flex;
  }
}

.promo-carousel-section {
  width: 100%;
  position: relative;
  background-color: #111;
  overflow: hidden;
}

.promo-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
}

.carousel-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  cursor: grab;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.carousel-slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.carousel-nav {
  display: none;
}

.carousel-pagination {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-pagination .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-pagination .dot.active {
  background-color: rgb(255, 255, 255);
  transform: scale(1.2);
}

@media (min-width: 768px) {
  .promo-carousel-section {
    height: 300px;
    display: flex;
    align-items: center;
  }

  .promo-carousel {
    height: 230px;
  }

  .carousel-wrapper {
    height: 100%;
  }

  .carousel-slide {
    flex-basis: 60%;
    opacity: 0.4;
    transform: scale(0.85);
    cursor: pointer;
  }

  .carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    cursor: default;
  }

  .carousel-slide img {
    border-radius: 12px;
  }

  .carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }

  .carousel-slide.active::after {
    opacity: 0;
  }

  .carousel-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 20;
  }

  .carousel-nav.prev {
    left: 20px;
  }

  .carousel-nav.next {
    right: 20px;
  }

  .carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .carousel-pagination {
    position: relative;
    bottom: auto;
    margin-top: 20px;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex-basis: 50%;
  }

  .carousel-nav.prev {
    left: 100px;
  }

  .carousel-nav.next {
    right: 100px;
  }
}

@media (min-width: 1200px) {
  .carousel-nav.prev {
    left: 150px;
  }

  .carousel-nav.next {
    right: 150px;
  }
}

.game-selection {
  background-color: #EFEFEF;
  padding-top: 0;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-bottom: 6px;
}

.game-selection .section-decoration {
  width: 100%;
  height: 27px;
  margin-bottom: -0.3em;
}

.game-selection .section-decoration svg {
  width: 100%;
  height: 100%;
}

.game-selection .container {
  padding-left: 20px;
  padding-right: 20px;
}

.game-selection .section-title {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 16px;
}

.games-list {
  display: flex;
  gap: 20px;
  margin-left: 0.7rem;
}

.game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
}

.game-item span {
  font-weight: 600;
  font-size: 13px;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.game-item.active span {
  color: var(--danger-color-alt);
}

.game-icon-wrapper {
  position: relative;
  width: 63px;
  height: 63px;
}

.game-icon-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.game-item.active .game-icon-wrapper img {
  border-color: var(--danger-color-alt);
}

.checkmark-icon {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 24px;
  height: 24px;
  background-color: var(--danger-color-alt);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  border: 2px solid var(--surface-color);
  opacity: 0;
  transform: scale(0.5) rotate(-15deg);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-item.active .checkmark-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.promo-banner-single {
  position: relative;
  color: white;
  overflow: hidden;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  max-width: 1030px;
  margin: 10px 10px 0 6px;
}

@media (min-width: 1070px) {
  .promo-banner-single {
    margin: 20px auto 0 auto;
  }
}

.promo-card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.promo-card-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promo-card-content {
  position: relative;
  display: flex;
  align-items: center;
  padding: 15px;
  gap: 15px;
  height: 80px;
  z-index: 3;
}

.promo-card-icon img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-top: 3px;
}

.promo-card-details h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 1px 0;
}

.promo-card-details p {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(0, 0, 0, .65);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .5);
}

.promo-card-details p svg {
  width: 12px;
  height: 12px;
}

@media (min-width: 768px) {
  .promo-banner-single {
    border-radius: .5rem;
  }

  .promo-card-content {
    height: 110px;
    padding: 20px;
    gap: 20px;
  }

  .promo-card-icon img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }

  .promo-card-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .promo-card-details p {
    font-size: 13px;
    padding: 5px 12px;
    gap: 8px;
  }
}

.player-login-section {
  margin-top: 40px;
  margin-bottom: 40px;
  max-width: 450px;
  margin-left: 0;
  margin-right: auto;
}

.section-header-login {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header-login .title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header-login .step-icon {
  background-color: #d11a1f;
  color: white;
  font-weight: 700;
  font-size: 16px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  clip-path: polygon(0 0, 85% 0, 100% 20%, 100% 100%, 15% 100%, 0 80%);
}

.section-header-login h2 {
  font-size: 18px;
  font-weight: 600;
}

.logout-btn-header {
  background: none;
  border: none;
  color: var(--danger-color-alt);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.login-form-container {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid #f0f0f0;
  max-width: 450px;
  margin-left: 0;
  margin-right: auto;
}

.login-form-container label {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.login-form-container label i,
.login-modal-form label i {
  color: var(--secondary-color);
  cursor: pointer;
}

.input-group {
  background-color: white;
  display: flex;
  flex-wrap: nowrap;
  border-radius: 4px;
  border: 2px solid #ced4da;
  overflow: hidden;
  transition: border-color 0.3s;
}

.input-group.error {
  border-color: var(--danger-color-alt);
}

.input-group input {
  flex-grow: 1;
  border: none;
  padding: 12px 15px;
  font-size: 16px;
  outline: none;
  min-width: 0;
  width: 100%;
}

.input-group input::placeholder {
  font-size: 14px;
  color: #cfcfcf;
}

.input-group button {
  background-color: #d11a1f;
  color: white;
  border: none;
  padding: 0 25px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.input-group button:hover {
  background-color: #b5151a;
}

.input-group button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.input-error-message {
  color: var(--danger-color-alt);
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

#player-info-display {
  background-color: #f4f4f4;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

#player-info-display.player-info-hidden {
  display: none;
}

.player-display-icon img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.player-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: var(--success-color);
  border-radius: 50%;
}

.player-id-text {
  font-size: 14px;
  color: var(--secondary-color);
}

.recharge-section {
  margin-bottom: 40px;
}

.special-offers-section {
  margin-bottom: 40px;
}

.special-offers-section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #6c757d;
}

.section-header-recharge {
  margin-bottom: 20px;
}

.section-header-recharge .title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.step-icon-recharge {
  background-color: #d11a1f;
  color: white;
  font-weight: 700;
  font-size: 16px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  clip-path: polygon(0 0, 85% 0, 100% 20%, 100% 100%, 15% 100%, 0 80%);
}

.section-header-recharge h2 {
  font-size: 18px;
  font-weight: 600;
}

.recharge-tabs {
  display: flex;
  gap: 10px;
}

.tab-btn {
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid #d11a1f;
  background: white;
  font-weight: 500;
  color: #d11a1f;
  font-size: 14px;
  transition: all 0.2s;
}

.tab-btn.active {
  background-color: #ffffff;
  color: #d11a1f;
  border-color: #d11a1f;
}

.recharge-grid,
.special-offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.special-offers-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .recharge-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
  }

  .special-offers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
}

.recharge-item,
.special-offer-item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
  height: 60px;
  position: relative;
}


.special-offer-item {
  padding: 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.special-offer-title {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #333;
  line-height: 1.2;
  padding: 5px;
}

.hot-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #d11a1f;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-top-left-radius: 4px;
  border-bottom-right-radius: 4px;
  z-index: 10;
}

.recharge-item.selected,
.special-offer-item.selected {
  border: 1px solid #d11a1f;
  background-color: rgba(209, 26, 31, 0.03);
}

.recharge-content {
  display: flex;
  align-items: center;
  gap: 5px;
}

.recharge-item img {
  width: 16px;
  height: 16px;
}

.special-offer-item img {
  width: 99%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
  display: block;
}

.recharge-item span.recharge-value {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

@media (max-width: 768px) {
  .recharge-item span.recharge-value {
    font-size: 14px;
  }

  .recharge-item {
    height: 47px;
  }
}

.footer-minimal {
  padding: 20px 0 40px 0;
  background-color: #ffffff;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

.footer-minimal-content p {
  color: #666;
  font-size: 12px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.footer-row-top {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #333;
  text-decoration: underline;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 13px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  display: none;
  z-index: 1000;
  animation: slideUp 0.3s ease-out;
}

.bottom-bar.visible {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.bottom-bar-content {
  max-width: 1030px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  background-color: white;
}

.price-details-popup {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  display: none;
  z-index: 1;
  margin-bottom: -1px;
}

@media(min-width: 768px) {
  .price-details-popup {
    width: 300px;
    left: 20%;
    border-radius: 8px;
    bottom: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  }
}

.price-details-popup.visible {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.details-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
}

.details-divider {
  height: 1px;
  background-color: #eee;
  margin: 10px 0;
}

.details-row.total {
  font-weight: 700;
  color: #333;
  font-size: 16px;
  margin-bottom: 0;
}

.details-row.total span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}

.details-row.total span:last-child::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../src/diamond.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.total-info {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.diamonds-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-icon {
  font-size: 12px;
  color: #666;
  transition: transform 0.3s;
}

.toggle-icon.rotate {
  transform: rotate(180deg);
}

.total-diamonds-text {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.total-diamonds-text::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../src/diamond.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.total-price-text {
  font-size: 18px;
  color: #d11a1f;
  font-weight: 700;
}

.btn-buy-bottom {
  background-color: #d11a1f;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.btn-buy-bottom:hover {
  background-color: #b5151a;
}

@media (max-width: 480px) {
  .bottom-bar-content {
    padding: 8px 15px;
  }

  .btn-buy-bottom {
    padding: 8px 16px;
    font-size: 14px;
  }

  .total-price-text {
    font-size: 15px;
  }

  .total-diamonds-text {
    font-size: 13px;
  }
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  visibility: hidden;
  padding: 20px;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
}

#login-required-modal-backdrop {
  align-items: flex-end;
  padding: 0;
}

.modal-backdrop.visible {
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  visibility: visible;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.visible .modal-container {
  transform: scale(1);
  opacity: 1;
}

.modal-container {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 100%;
  max-width: 400px;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-container h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-container p {
  color: var(--secondary-color);
  margin-bottom: 25px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 15px;
}

.btn-modal-primary,
.btn-modal-secondary {
  flex: 1;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--danger-color-alt);
}

.btn-modal-primary {
  background-color: var(--danger-color-alt);
  color: white;
}

.btn-modal-secondary {
  background-color: white;
  color: var(--danger-color-alt);
  border-width: 2px;
}

.login-required-modal {
  background: transparent;
  position: relative;
  width: 100%;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.modal-backdrop.visible .login-required-modal {
  transform: translateY(0);
}

.login-modal-banner img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
}

.login-modal-content {
  padding: 20px;
  background-color: var(--surface-color);
  position: relative;
}

.close-modal-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  z-index: 3;
}

.login-modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.login-modal-game-icon {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.login-modal-game-icon img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 4px solid var(--background-color);
}

.login-modal-game-info {
  padding-top: 40px;
}

.login-modal-game-info h3 {
  font-size: 18px;
  font-weight: 600;
}

.login-modal-game-info p {
  font-size: 14px;
  color: var(--secondary-color);
}

.login-modal-form .input-group button {
  padding: 0 20px;
}

@media (min-width: 768px) {
  #login-required-modal-backdrop {
    align-items: center;
    padding: 20px;
  }

  .login-required-modal {
    position: relative;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-backdrop.visible .login-required-modal {
    transform: scale(1);
    opacity: 1;
  }
}

.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

.image-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  background-color: rgba(0, 0, 0, 0.8);
}

.image-modal-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.image-modal-overlay.visible img {
  transform: scale(1);
}

#notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  background-color: var(--success-color);
}

.toast.info {
  background-color: var(--info-color);
}

.toast.error {
  background-color: var(--danger-color);
}

.terms-agreement-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-top: 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.terms-agreement-box.error {
  border-color: var(--danger-color);
  background-color: #fbe9e7;
}

.terms-agreement-box.terms-highlight {
  border-color: var(--danger-color-alt);
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.terms-agreement-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.terms-agreement-box label {
  font-size: 14px;
  color: var(--secondary-color);
}

.terms-agreement-box label a {
  color: var(--danger-color-alt);
  text-decoration: underline;
  font-weight: 600;
}

.terms-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1500;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s, visibility 0s 0.4s;
}

.terms-overlay.visible {
  background-color: rgba(0, 0, 0, 0.6);
  visibility: visible;
  transition: background-color 0.4s, visibility 0s;
}

.terms-modal-container {
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media(min-width: 768px) {
  .terms-modal-container {
    height: 90vh;
    max-height: 700px;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
  }
}

.terms-overlay.visible .terms-modal-container {
  transform: translateY(0);
}

@media(min-width: 768px) {
  .terms-overlay.visible .terms-modal-container {
    transform: scale(1);
    opacity: 1;
  }
}

.terms-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 0 20px;
  height: 60px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  background-color: var(--surface-color);
  z-index: 10;
}

@media(min-width: 768px) {
  .terms-modal-header {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
}

.terms-modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.terms-modal-header .icon-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.terms-modal-header .icon-btn:hover {
  background-color: var(--background-color);
}

.terms-modal-body {
  padding: 20px 20px 120px 20px;
  overflow-y: auto;
  flex-grow: 1;
  background-color: var(--surface-color);
}

.terms-text-block {
  font-size: 16px;
  line-height: 1.4;
  color: #666;
  text-align: justify;
}

.terms-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  background-color: #f8f9fa;
  position: absolute;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 5;
}

@media(min-width: 768px) {
  .terms-modal-footer {
    position: relative;
    background: var(--surface-color);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }
}

.terms-modal-agreement {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background-color: var(--surface-color);
  border-radius: 8px;
}

.terms-modal-agreement input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

.terms-modal-agreement label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
}