.container1 {
  text-align: center;
}

.container1 img {
  display: block;
  margin: 0 auto;
}

.language-switcher {
  display: flex;
  align-items: center;
}

.language-switcher .dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.language-switcher .dropdown-toggle {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.language-switcher .dropdown-toggle::after {
  display: none !important;
  content: none !important;
}

.language-switcher .language-switcher-icon {
  font-size: 24px;
  line-height: 1;
  color: #0c2fb8;
}

@media (min-width: 769px) {
  .attr-nav > ul > li.language-switcher {
    margin-top: 14px;
    margin-bottom: 0;
  }
}

.language-switcher .custom-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f9f9f9;
  min-width: 160px;
  width: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  background-size: cover;
}

.language-switcher .dropdown:hover .custom-dropdown-menu {
  display: block;
}

.language-switcher .custom-dropdown-menu li {
  width: 100%;
}

.language-switcher .custom-dropdown-menu a {
  display: block;
  padding: 8px 10px;
  color: #000;
  text-decoration: none;
}

.language-switcher .custom-dropdown-menu a:hover {
  background-color: #ddd;
}

.language-switcher .dropdown-menu-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 5px 0;
  display: block;
}

#mp-trial-root {
  position: fixed;
  left: 16px;
  top: 55vh;
  transform: translateY(-50%);
  width: 200px;
  height: 250px;
  z-index: 999999;
  pointer-events: none;
}

.mp-trial-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(120px 120px at 20% 90%, rgba(0, 255, 255, 0.18), transparent 60%),
    radial-gradient(140px 120px at 90% 10%, rgba(255, 200, 0, 0.18), transparent 65%),
    linear-gradient(135deg, #466085, #014b99 60%, #183054);
  pointer-events: auto;
}

.mp-trial-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  padding: 0;
}

.mp-trial-content {
  height: 100%;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mp-trial-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 10px;
}

.mp-trial-gift {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background:
    linear-gradient(#ffd76a, #ffb300) center/10px 100% no-repeat,
    linear-gradient(#ffd76a, #ffb300) center/100% 10px no-repeat,
    linear-gradient(135deg, #ff5a5f, #d81b2c);
  position: relative;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  flex: 0 0 auto;
  transform: translateZ(0);
  will-change: transform, filter;
  animation: mpGiftFloat 2.8s ease-in-out infinite, mpGiftGlow 1.7s ease-in-out infinite, mpGiftWiggle 6.5s ease-in-out infinite;
}

.mp-trial-gift:before,
.mp-trial-gift:after {
  content: "";
  position: absolute;
  top: -8px;
  width: 26px;
  height: 18px;
  background: linear-gradient(#ffd76a, #ffb300);
  border-radius: 20px 20px 0 20px;
}

.mp-trial-gift:before {
  left: 6px;
  transform: rotate(-18deg);
}

.mp-trial-gift:after {
  right: 6px;
  transform: scaleX(-1) rotate(-18deg);
}

.mp-trial-tag {
  flex: 1;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  color: #ffd76a;
  background: rgba(255, 215, 106, 0.12);
  border: 1px solid rgba(255, 215, 106, 0.45);
  backdrop-filter: blur(2px);
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.mp-trial-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  text-align: center;
}

.mp-trial-line {
  font-size: 15px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.2px;
}

.mp-trial-btn {
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: #3a2200;
  background: linear-gradient(#ffd76a, #ffb300);
  box-shadow: 0 12px 24px rgba(255, 179, 0, 0.28);
  text-decoration: none;
}

.mp-trial-card:hover .mp-trial-gift {
  filter: brightness(1.06) saturate(1.08);
}

.mp-trial-mini {
  display: none;
  height: 100%;
  padding: 8px 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mp-trial-gift--mini {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  animation: none;
}

.mp-trial-gift--mini:before,
.mp-trial-gift--mini:after {
  top: -6px;
  width: 16px;
  height: 12px;
}

.mp-trial-mini-btn {
  width: 100%;
  height: 30px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  color: #3a2200;
  background: linear-gradient(#ffd76a, #ffb300);
  box-shadow: 0 8px 16px rgba(255, 179, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
}

@keyframes mpGiftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes mpGiftGlow {
  0%, 100% {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22), 0 0 0 rgba(255, 215, 106, 0), 0 0 0 rgba(0, 255, 255, 0);
  }
  50% {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22), 0 0 18px rgba(255, 215, 106, 0.35), 0 0 26px rgba(0, 255, 255, 0.18);
  }
}

@keyframes mpGiftWiggle {
  0%, 78%, 100% { transform: translateY(0) rotate(0deg); }
  80% { transform: translateY(-6px) rotate(-2deg); }
  82% { transform: translateY(-6px) rotate(2deg); }
  84% { transform: translateY(-6px) rotate(-1deg); }
  86% { transform: translateY(-6px) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mp-trial-gift {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .language-switcher .custom-dropdown-menu {
    left: auto;
    right: 0;
    transform: none;
    min-width: 150px;
    width: max-content;
    max-width: calc(100vw - 24px);
  }

  #mp-trial-root {
    width: 92px;
    height: 84px;
    left: 12px;
    top: 62vh;
    transform: translateY(-50%);
  }

  .mp-trial-content {
    display: none;
  }

  .mp-trial-mini {
    display: flex;
  }

  .mp-trial-close {
    display: none;
  }
}

@media (max-height: 700px) {
  #mp-trial-root {
    transform: translateY(-50%) scale(0.9);
    transform-origin: left center;
  }
}

@media (max-height: 560px) {
  #mp-trial-root {
    transform: translateY(-50%) scale(0.8);
  }
}
