/* Backdrop overlay - blocks all interaction */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { 
    opacity: 0;
  }
  to { 
    opacity: 1;
  }
}

/* Modal container */
.modal {
  background: linear-gradient(135deg, #0a1628 0%, #0f1f38 100%);
  border: 2px solid #c9923a;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 900px;
  width: 100%;
  min-width: 0;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(201, 146, 58, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

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

.inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  min-width: 0;
  width: 100%;
}

.title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #c9923a;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(201, 146, 58, 0.3);
}

.text {
  margin: 0;
  width: 100%;
  min-width: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-weight: 400;
  text-align: left;
  max-height: none;
  overflow-y: visible;
  overflow-x: hidden;
  padding-right: 0.5rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.text * {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.text p {
  margin: 0 0 1rem;
}

.text p:last-child {
  margin-bottom: 0;
}

.text pre {
  white-space: pre-wrap;
  font-family: inherit;
}

.text ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.text li {
  margin-bottom: 0.85rem;
  padding-left: 0.5rem;
}

.text li:last-child {
  margin-bottom: 0;
}

.text::-webkit-scrollbar {
  width: 6px;
}

.text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.text::-webkit-scrollbar-thumb {
  background: #c9923a;
  border-radius: 3px;
}

.text::-webkit-scrollbar-thumb:hover {
  background: #e8b060;
}

.buttonGroup {
  display: flex;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}

.agreeBtn,
.disagreeBtn {
  flex: 1;
  max-width: 200px;
  background: linear-gradient(135deg, #c9923a 0%, #e8b060 100%);
  color: #0a1628;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 
    0 4px 12px rgba(201, 146, 58, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.disagreeBtn {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  color: #fff;
  box-shadow: 
    0 4px 12px rgba(107, 114, 128, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.agreeBtn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(201, 146, 58, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.disagreeBtn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(107, 114, 128, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.agreeBtn:active,
.disagreeBtn:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .modal {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .title {
    font-size: 1.5rem;
  }

  .text {
    font-size: 0.9rem;
  }

  .buttonGroup {
    flex-direction: column;
  }

  .agreeBtn,
  .disagreeBtn {
    max-width: 100%;
    padding: 1rem;
  }
}
