.loading-container {
  position: fixed;
  inset: 0;
  background-image: url('../img/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  font-family: Arial, sans-serif;
}

.loading-text {
  font-size: 48px;
  font-weight: bold;
  color: #ffd700;
  text-align: center;
  animation: pulse 1.5s ease-in-out infinite;
  text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700;
}

body:not(.js-loaded) .mobile-top,
body:not(.js-loaded) .mobile-middle,
body:not(.js-loaded) .mobile-bottom {
  visibility: hidden;
}

html,
body {
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background-image: url('../img/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

*:focus {
  outline: 2px solid #f97882;
  outline-offset: 2px;
}

.btn:focus {
  box-shadow: 0 0 0 3px rgb(0 188 212 / 50%);
}

.mobile-top {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: 30%;
  position: relative;
  padding: 0;
}

.mobile-top nav.navbar {
  margin-bottom: 0;
}

.mobile-top .username {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 1vh;
  margin-bottom: 1.5vh;
}

.mobile-top .slogan {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 8vh;
}

.mobile-top .main-slogan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  margin-bottom: 0;
  margin-top: auto;
  min-height: 0;
  padding-bottom: 0;
}

.mobile-middle {
  flex: 1;
  min-height: 0;
  height: 40%;
  overflow-y: auto;
}

.mobile-bottom {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  height: 30%;
  position: relative;
  z-index: 200;
  padding-bottom: 0;
}

.mobile-bottom .network-select {
  margin-bottom: 0;
  align-self: flex-start;
}

.mobile-bottom .donate-btn {
  margin-bottom: 6vh;
  align-self: center;
}

.mobile-bottom .footer-links {
  margin-bottom: 1vh;
}

.mobile-bottom .copyright {
  margin-bottom: 0;
}

.container {
  width: 100%;
  padding: 0 10px;
}

img {
  max-width: 100%;
  height: auto;
}

.logo {
  font-size: 1.5rem;
  color: #888;
  margin-right: 0;
}

.footer-links,
.copyright {
  font-size: 1rem;
  text-align: center;
  color: rgb(255 255 255 / 40%);
}

.footer-links a {
  color: rgb(255 255 255 / 40%);
  margin: 0 10px;
  text-decoration: none;
}

.username {
  font-size: 1.5rem;
  color: #7315f8;
  margin: 0;
}

.slogan {
  font-size: 1.2rem;
  color: rgb(255 255 255 / 20%);
  margin: 10px 0;
}

.network-select {
  font-size: 1.2rem;
  color: #555;
}

.main-slogan {
  font-size: 1.8rem;
  color: #777;
  animation: text-glow-blink 4s infinite alternate;
}

.btn {
  background: #000;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin: 5px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(102 126 234 / 60%);
}

.btn:active {
  transform: translateY(0);
}

.donate-btn {
  font-size: 1.4rem;
  border: 2px solid #aaa;
  background: transparent;
  color: #aaa;
  padding: 8px 20px;
  border-radius: 8px;
  animation: glow-blink 2s infinite alternate;
  margin: 10px auto;
  display: block;
  width: fit-content;
}

.donate-btn.impact {
  animation: none;
  box-shadow: 0 0 24px 8px rgba(255, 255, 255, 0.8);
  border-color: #fff;
  color: #fff;
  transition: box-shadow 0.2s ease;
}

.agree-btn {
  background: #91f829;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 18px;
}

.agree-btn:enabled {
  background: linear-gradient(135deg, #0ab833 0%, #07c78d 100%);
}

.agree-btn:disabled {
  background: #adaeaf;
  opacity: 0.7;
}

.thank-you-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fade-in 0.3s ease-out;
  padding: 20px;
  box-sizing: border-box;
}

.thank-you-modal.from-bottom {
  animation: none;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.thank-you-modal.from-bottom.show {
  transform: translateY(0);
  opacity: 1;
}

.thank-you-modal.from-bottom.closing {
  transform: translateY(100%);
  opacity: 0;
}

.thank-you-modal.from-bottom.closing .thank-you-content {
  animation: none;
}

.legal-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fade-in 0.4s ease-out;
  backdrop-filter: blur(5px);
}

.legal-modal.from-bottom {
  animation: none;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.legal-modal.from-bottom.show {
  transform: translateY(0);
  opacity: 1;
}

.legal-modal.from-bottom.closing {
  transform: translateY(100%);
  opacity: 0;
}

.legal-modal.from-bottom.closing .legal-modal-content {
  animation: none;
}

.legal-modal-content {
  background: #fff;
  width: 90vw;
  height: 90vh;
  max-width: 700px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  animation: slide-in 0.4s ease-out;
  overflow: hidden;
  position: relative;
}

.legal-header {
  background: #36454f;
  color: #fff;
  padding: 12px 16px;
  position: relative;
  flex-shrink: 0;
}

.legal-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.legal-close-button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgb(255 255 255 / 60%);
  font-size: 28px;
  padding: 0;
  line-height: 1;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-content {
  flex: 1;
  padding: 10px 20px;
  overflow-y: auto;
  line-height: 1.6;
  font-size: 13px;
  color: #333;
  background: #fafafa;
  text-align: left;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.legal-content::-webkit-scrollbar {
  display: none;
}

.legal-content h3 {
  color: #333;
  margin: 25px 0 15px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.legal-content p {
  margin-bottom: 15px;
  text-align: left;
}

.legal-content ol,
.legal-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-footer {
  background: #cdcece;
  padding: 0 30px;
  border-top: 1px solid #8e8f90;
  flex-shrink: 0;
}

.legal-action-buttons {
  display: flex;
  justify-content: center;
}

.thank-you-content {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  width: 90vw;
  max-width: 350px;
  animation: slide-in 0.4s ease-out;
  position: relative;
  border: 1px solid #eaeaea;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.thank-you-content h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #e0b105;
  text-align: left;
}

.payment-details {
  margin: 10px 0;
  text-align: left;
}

.payment-details h3 {
  text-align: left;
  margin: 0;
  color: #333;
  font-size: 1.2rem;
}

.payment-details .receipt-subtitle {
  text-align: left;
  font-size: 12px;
  color: #666;
  margin: 5px 0 20px;
}

.payment-details hr {
  border: 0;
  border-top: 1px solid #eaeaea;
  margin: 10px 0;
}

.payment-details .transaction-details {
  font-size: 14px;
  line-height: 1.6;
}

.payment-details p {
  margin: 8px 0;
  font-size: 14px;
  word-break: break-all;
}

.payment-details strong {
  color: #000;
  margin-right: 5px;
}

.payment-details .receipt-action-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eaeaea;
  padding-top: 15px;
}

.payment-details .receipt-action-buttons span {
  color: #000;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.payment-confirm-content {
  text-align: left;
}

.payment-confirm-content p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

#payment-confirm-modal .thank-you-content {
  width: 90vw;
  height: 90vh;
  max-width: none;
  max-height: none;
  padding: 10px 10px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#payment-confirm-modal .payment-details {
  flex: 1;
  overflow-y: auto;
  margin: 10px 0;
  padding-right: 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#payment-confirm-modal .payment-details::-webkit-scrollbar {
  display: none;
}

#payment-confirm-modal h2 {
  flex-shrink: 0;
  margin: 0 0 15px;
  padding-right: 40px;
}

#payment-confirm-modal .payment-action-buttons {
  flex-shrink: 0;
  margin-top: 10px;
  border-top: 1px solid #eaeaea;
  padding: 8px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-radius: 0 0 8px 8px;
}

.payment-instructions {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #2c5aa0;
}

.payment-instructions p {
  margin: 8px 0;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.payment-action-buttons {
  margin-top: 10px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
  border-top: 1px solid #eaeaea;
  padding: 0;
}

.payment-action-buttons .btn {
  flex: 1;
  margin: 0;
  padding: 12px 20px;
  font-size: 18px;
  border-radius: 20px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.payment-action-buttons .btn-cancel {
  background-color: #f775b6;
  color: #3f1c1c;
}

.payment-action-buttons .btn-confirm {
  background-color: #77f47b;
  color: #19341a;
}

.blockchain-link {
  color: #007bff;
  text-decoration: none;
  word-break: break-all;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: rgb(64 63 63 / 80%);
  font-size: 24px;
  padding: 5px;
  line-height: 1;
  transition: color 0.2s ease;
}

.thank-you-modal.closing .thank-you-content {
  animation: slide-out 0.4s ease-out;
}

.region-display {
  color: #6c757d;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 12px;
  background: rgb(108 117 125 / 10%);
}

.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
  transition: all 0.3s ease;
}

.btn-outline-secondary:focus {
  box-shadow: 0 0 0 3px rgb(108 117 125 / 30%);
}

.dropdown-item {
  transition: all 0.2s ease;
  padding: 8px;
  color: #ddd;
}

.language-btn {
  font-size: 1.2rem;
  padding: 4px;
  border-radius: 4px;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.dropdown-toggle {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus,
.dropdown-toggle:active,
.dropdown-toggle.show {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-menu {
  background-color: rgb(0 0 0 / 80%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 120px;
}

.language-dropdown-menu {
  right: 0 !important;
  left: auto !important;
  transform: translateX(0) !important;
}

.dropdown.ms-auto .dropdown-menu {
  right: 0 !important;
  left: auto !important;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes slide-in {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes slide-out {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  to {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
}

.guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  box-sizing: border-box;
}

.guide-box {
  position: relative;
  width: 80%;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  padding: 30px 25px 25px 25px;
  box-sizing: border-box;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease-out;
  pointer-events: auto;
  min-height: auto;
}

.guide-box.show {
  transform: translateY(0);
  opacity: 1;
}

.guide-box.closing {
  transform: translateY(-100%);
  opacity: 0;
}

.guide-confirm-btn {
  width: auto;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 24px;
  margin: 20px auto 0 auto;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.guide-confirm-btn:active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.guide-content {
  line-height: 1.8;
}

.guide-content p {
  margin: 0;
  font-weight: 500;
  font-size: 20px;
}

@media (max-width: 480px) {
  .guide-box {
    width: 85%;
    font-size: 18px;
    padding: 25px 20px 20px 20px;
  }
  
  .guide-confirm-btn {
    font-size: 16px;
    padding: 10px 20px;
    margin: 18px auto 0 auto;
  }
  
  .guide-content p {
    font-size: 18px;
  }
}

@keyframes glow-blink {
  0% {
    box-shadow: 0 0 5px #aaa;
    color: #aaa;
  }

  50% {
    box-shadow: 0 0 15px 5px #ddd;
    color: #ddd;
  }

  100% {
    box-shadow: 0 0 5px #aaa;
    color: #aaa;
  }
}

@keyframes text-glow-blink {
  0% {
    text-shadow: 0 0 5px #777, 0 0 10px #888;
    color: #999;
  }

  50% {
    text-shadow: 0 0 15px #888, 0 0 25px #aaa, 0 0 35px #ddd;
    color: #fff;
  }

  100% {
    text-shadow: 0 0 5px #777, 0 0 10px #888;
    color: #999;
  }
}

@media (width <= 480px) {
  .loading-text {
    font-size: 36px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .username {
    font-size: 1.3rem;
  }

  .slogan {
    font-size: 1.3rem;
  }

  .main-slogan {
    font-size: 1.5rem;
  }

  .network-select {
    font-size: 1.3rem;
  }

  .donate-btn {
    font-size: 1.2rem;
    padding: 6px 10px;
  }

  .footer-links,
  .copyright {
    font-size: 0.9rem;
  }

  .language-btn {
    font-size: 1rem;
  }

  .thank-you-content {
    width: 95vw;
    max-width: 320px;
    padding: 15px;
  }

  .thank-you-content h2 {
    font-size: 1.3rem;
  }

  .payment-details p {
    font-size: 0.85rem;
  }

  .payment-details .receipt-action-buttons span {
    font-size: 12px;
    padding: 3px 6px;
  }

  #payment-confirm-modal .thank-you-content {
    width: 95vw;
    height: 85vh;
    padding: 15px 15px 0;
  }

  #payment-confirm-modal h2 {
    font-size: 1.1rem;
    margin: 0 0 12px;
  }

  .payment-instructions {
    padding: 12px;
    margin: 12px 0;
  }

  .payment-instructions p {
    font-size: 12px;
  }

  .payment-action-buttons {
    gap: 10px;
  }

  .payment-action-buttons .btn {
    font-size: 13px;
    padding: 10px 15px;
  }

  .legal-modal-content {
    width: 90vw;
    height: 90vh;
    margin: 0;
    border-radius: 20px;
  }

  .legal-header {
    padding: 12px 15px;
    position: relative;
  }

  .legal-header h2 {
    font-size: 1rem;
    margin: 0;
    padding-right: 40px;
  }

  .legal-close-button {
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 20px;
    width: 28px;
    height: 28px;
  }

  .agree-btn {
    width: 100%;
    padding: 15px;
    font-size: 15px;
  }
}

@media (width >= 481px) and (width <= 768px) {
  .loading-text {
    font-size: 52px;
  }

  .logo {
    font-size: 1.6rem;
  }

  .username {
    font-size: 1.6rem;
  }

  .slogan {
    font-size: 1.6rem;
  }

  .main-slogan {
    font-size: 1.9rem;
  }

  .network-select {
    font-size: 1.6rem;
  }

  .donate-btn {
    font-size: 1.5rem;
    padding: 10px 20px;
  }

  .language-btn {
    font-size: 1.1rem;
  }

  .thank-you-content {
    width: 90vw;
    max-width: 400px;
    padding: 20px;
  }

  .thank-you-content h2 {
    font-size: 1.5rem;
  }

  .payment-details p {
    font-size: 0.95rem;
  }

  .payment-details .receipt-action-buttons span {
    font-size: 14px;
    padding: 5px 8px;
  }

  #payment-confirm-modal .thank-you-content {
    width: 92vw;
    height: 88vh;
    padding: 18px 18px 0;
  }

  #payment-confirm-modal h2 {
    font-size: 1.3rem;
    margin: 0 0 15px;
  }

  .payment-instructions {
    padding: 15px;
  }

  .payment-instructions p {
    font-size: 13px;
  }

  .payment-action-buttons .btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .payment-action-buttons {
    gap: 12px;
  }

  .legal-modal-content {
    width: 90vw;
    height: 90vh;
  }

  .legal-header {
    padding: 15px 18px;
  }

  .legal-header h2 {
    font-size: 1.2rem;
  }

  .legal-close-button {
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    font-size: 22px;
    width: 30px;
    height: 30px;
  }

  .legal-content {
    padding: 18px 15px;
    font-size: 14px;
    text-align: left;
  }

  .legal-footer {
    padding: 0 30px;
  }

  .agree-btn {
    padding: 15px;
    font-size: 18px;
  }
}

.toast-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(255,255,255,0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 20px;
  z-index: 100000;
  font-size: 16px;
  box-shadow: 0 4px 15px rgb(255,255,255,0.6);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.feedback-message {
  position: fixed;
  background-color: #28a745;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, top 0.3s ease;
}

.feedback-message.show {
  opacity: 1;
}

#network-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 9999;
  display: none;
}

#network-overlay.active {
  display: block;
}

#network-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 16px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  padding: 15px 10px;
  z-index: 10000;
  max-width: 90vw;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-in-out, visibility 0.4s;
  pointer-events: none;
}

#network-notification.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.announcement-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 100000;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.announcement-modal.show {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.announcement-modal.closing {
  transform: translateY(-100%);
  opacity: 0;
}

.announcement-content {
  background: rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #FFD700;
  padding: 10px;
  border-radius: 12px;
  width: 60vw;
  max-width: 240px;
  position: relative;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-top: 10px; 
}

.info-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 99999;
  backdrop-filter: blur(5px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.info-modal.show {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.info-modal.closing {
  transform: translateY(-100%);
  opacity: 0;
}

.info-modal-content {
  background: #fff;
  width: 90vw;
  height: 90vh;
  max-width: 700px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  margin-top: 24px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%);
}

.info-header {
  background: #2c3e50;
  color: #fff;
  padding: 12px 16px;
  position: relative;
  flex-shrink: 0;
}

.info-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.info-close-button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgb(255 255 255 / 80%);
  font-size: 28px;
  padding: 0;
  line-height: 1;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-content {
  flex: 1;
  padding: 10px 20px;
  overflow-y: auto;
  line-height: 1.6;
  font-size: 13px;
  color: #333;
  background: #fafafa;
  text-align: left;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.info-content::-webkit-scrollbar {
  display: none;
}

.info-content h3 {
  color: #333;
  margin: 25px 0 15px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.info-content p {
  margin-bottom: 15px;
  text-align: left;
}

.info-content ol,
.info-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.info-content li {
  margin-bottom: 8px;
}

.announcement-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.announcement-icon {
  color: #daa520;
  font-size: 20px;
  margin-right: 10px;
}

.announcement-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: #FFD700;
  margin: 0;
}

.announcement-message {
  font-size: 1.0rem;
  color: #FFF;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

@keyframes slide-in {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes slide-out {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  to {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
}
.guide-pointer {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFD700;
  box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.25), 0 0 10px rgba(255, 215, 0, 0.6);
  z-index: 20001;
  display: none;
  animation: pulse 2s infinite;
  pointer-events: none;
}

.guide-hotspot {
  position: absolute;
  background: transparent;
  z-index: 20002;
  display: none;
  cursor: pointer;
}

#lightning-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  pointer-events: none;
  z-index: 100;
}

.lightning-container {
  mix-blend-mode: normal;
  opacity: 1;
}

.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 25000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.error-modal.show {
  opacity: 1;
}

.error-modal.closing {
  opacity: 0;
}

.error-modal-content {
  position: relative;
  width: 80%;
  max-width: 300px;
  background: rgba(249, 4, 4, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 3px solid rgba(249, 208, 208, 0.6);
  color: #f7d7d7;
  font-size: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  padding: 20px 20px;
  box-sizing: border-box;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease-out;
  pointer-events: auto;
  min-height: auto;
}

.error-modal.show .error-modal-content {
  transform: translateY(0);
  opacity: 1;
}

.error-modal.closing .error-modal-content {
  transform: translateY(-100%);
  opacity: 0;
}

.error-close-btn {
  width: auto;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: rgb(250, 218, 218);
  font-size: 18px;
  font-weight: 400;
  padding: 5px 10px;
  margin: 10px auto 0 auto;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.error-close-btn:active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.error-message {
  line-height: 1.6;
  font-weight: 400;
  font-size: 20px;
  margin: 0;
  text-align: center;
}

@media (max-width: 480px) {
  .error-modal-content {
    width: 85%;
    font-size: 18px;
    padding: 10px 10px;
  }
  
  .error-message {
    font-size: 18px;
  }
}

/* Blockquote styles for Markdown content */
blockquote {
  margin: 0.8rem 0;
  padding: 0.6rem 0.8rem;
  border-left: 4px solid #888;
  background-color:#eee;
  border-radius: 0.5rem;
  font-size: inherit;
}

blockquote h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #AAA;
  font-size: 0.8rem;
  font-weight: bold;
}

blockquote p {
  margin-bottom: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

#infoContent p strong {
  color: #ff4500 !important;
}
