/* Modal Styles for About Coin Pages */
.aboutsodex-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: pointer;
}

.modal-content {
  position: absolute;
  background: #1a1a1a;
  border-radius: 12px;
  max-width: 800px;
  max-height: 80vh;
  width: 800px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  pointer-events: auto;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  border-bottom: 1px solid #333;
  background: #2a2a2a;
}

.modal-header h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #333;
  color: #fff;
}

.modal-body {
  padding: 24px;
  max-height: calc(80vh - 80px);
  overflow-y: auto;
  color: #e0e0e0;
  line-height: 1.6;
}

.modal-body h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px 0;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 8px 0;
}

.modal-body p {
  margin: 0 0 16px 0;
  color: #ccc;
}

.modal-body ul, .modal-body ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.modal-body li {
  margin: 8px 0;
  color: #ccc;
}

.modal-body strong {
  color: #fff;
  font-weight: 600;
}

.modal-body a {
  color: #4a9eff;
  text-decoration: underline;
}

.modal-body a:hover {
  color: #6bb6ff;
}

/* 滚动条样式 */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px;
    max-height: 90vh;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .modal-body {
    padding: 20px;
    max-height: calc(90vh - 60px);
  }

  .modal-body h3 {
    font-size: 16px;
  }

  .modal-body h4 {
    font-size: 14px;
  }
}


