.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  z-index: 1000;
}

.modal::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal[open] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

dialog:not([open]) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.modal__dialog {
  background-color: #121212;
  border-radius: 8px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}

.modal__content {
  display: flex;
  flex-direction: column;
}

.modal__header {
  display: flex;
  justify-content: flex-end;
  position: relative;
  padding-bottom: 20px;
}

.modal__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ccc;
  top: 50%;
  left: 0;
}

.modal__close::before {
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

.modal__icon {
  margin: 0 auto 16px;
  width: 40px;
  height: 40px;
}

.modal__icon svg {
  fill: #d8c09d;
}

.modal__body {
  text-align: center;
  color: #f5f5f5;
}

.modal__title {
  font-family: 'Fira Sans', sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
  color: #d8c09d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.modal__message {
  font-family: 'Fira Sans', sans-serif;
  font-size: 16px;
  margin-bottom: 30px;
  color: #ccc;
  line-height: 1.5;
}

.modal__footer {
  display: flex;
  justify-content: center;
}

.modal__button {
  width: 210px;
  height: 42px;
  font-family: 'Fira Sans', sans-serif;
  display: inline-block;
  border: 1px solid #d8c09d;
  background-color: transparent;
  color: #d8c09d;
  padding: 10px 20px;
  margin-top: 20px;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal__button:hover {
  background-color: rgba(216, 192, 157, 0.2);
}