.popup {
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 16, 0.78);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: none;
  color: #f2f0eb;
  backdrop-filter: blur(8px);
}
.popup__heading {
  font-family: var(--MSIBodyFont);
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  background: linear-gradient(180deg, #1a1e28 0%, #10141c 55%, #0c0e12 100%);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: sticky;
  padding: 14px 44px 14px 16px;
  top: 0;
  color: #c9a962;
  border-bottom: 1px solid rgba(201, 169, 98, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 8px 28px rgba(60, 130, 255, 0.18);
  z-index: 2;
}
@media (min-width: 996px) {
  .popup__heading {
    padding: 16px 48px 16px 24px;
  }
}
.popup__heading-text {
  color: #c9a962;
}
.popup__area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(120% 80% at 50% 0%, rgba(50, 100, 180, 0.18) 0%, transparent 42%), linear-gradient(180deg, #161a22 0%, #0c0e12 55%, #090a0c 100%);
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 169, 98, 0.1), 0 0 40px rgba(60, 130, 255, 0.18);
  width: 94%;
  max-width: 1280px;
  height: auto;
  max-height: 92vh;
  overflow-x: hidden;
  overflow-y: auto;
}
@media (min-width: 996px) {
  .popup__area {
    width: 90%;
    max-height: 90vh;
  }
}
.popup__area::-webkit-scrollbar {
  width: 6px;
  background-color: rgba(255, 255, 255, 0.06);
}
.popup__area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.7), rgba(70, 140, 255, 0.45));
  border-radius: 3px;
}
.popup__area::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.25);
}
.popup__content {
  text-align: left;
  font-family: var(--MSIBodyFont);
  font-size: clamp(13px, 3.2vw, 16px);
  line-height: 1.6;
  color: #f2f0eb;
  padding: 14px 14px 20px;
}
@media (min-width: 996px) {
  .popup__content {
    padding: 30px 50px 40px;
  }
}
.popup__table-wrap {
  width: 100%;
  margin: 16px 0 20px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
@media (min-width: 768px) {
  .popup__table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(201, 169, 98, 0.45);
    border-radius: 10px;
    background: rgba(10, 12, 16, 0.85);
  }
}
.popup__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border: 0;
  background: transparent;
}
.popup__table thead {
  display: none;
}
.popup__table tbody,
.popup__table tr,
.popup__table td {
  display: block;
  width: 100%;
}
.popup__table tr {
  margin: 0 0 12px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10, 12, 16, 0.85);
}
.popup__table tr:last-child {
  margin-bottom: 0;
}
.popup__table td {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(242, 240, 235, 0.92);
  border-bottom: 1px solid rgba(201, 169, 98, 0.2);
  box-sizing: border-box;
  word-break: break-word;
}
.popup__table td:last-child {
  border-bottom: none;
}
.popup__table td::before {
  content: attr(data-label);
  flex: 0 0 42%;
  max-width: 42%;
  font-weight: 700;
  color: #c9a962;
  line-height: 1.35;
}
@media (min-width: 768px) {
  .popup__table {
    min-width: 520px;
    table-layout: fixed;
  }
  .popup__table thead {
    display: table-header-group;
  }
  .popup__table tbody {
    display: table-row-group;
  }
  .popup__table tr {
    display: table-row;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .popup__table thead th {
    display: table-cell;
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 700;
    color: #c9a962;
    background: rgba(18, 22, 30, 0.95);
    border-bottom: 1px solid rgba(201, 169, 98, 0.35);
    border-right: 1px solid rgba(201, 169, 98, 0.22);
    box-sizing: border-box;
  }
}
@media (min-width: 768px) and (min-width: 996px) {
  .popup__table thead th {
    padding: 14px 18px;
    font-size: 15px;
  }
}
@media (min-width: 768px) {
  .popup__table thead th:last-child {
    border-right: none;
    text-align: center;
  }
  .popup__table thead th:nth-child(1) {
    width: 30%;
  }
  .popup__table thead th:nth-child(2) {
    width: 55%;
  }
  .popup__table thead th:nth-child(3) {
    width: 15%;
  }
  .popup__table td {
    display: table-cell;
    padding: 14px;
    vertical-align: middle;
    font-size: 14px;
    border-bottom: 0;
    border-right: 1px solid rgba(201, 169, 98, 0.22);
  }
}
@media (min-width: 768px) and (min-width: 996px) {
  .popup__table td {
    padding: 16px 18px;
    font-size: 15px;
  }
}
@media (min-width: 768px) {
  .popup__table td::before {
    display: none;
  }
  .popup__table td:last-child {
    border-right: none;
    text-align: center;
    font-weight: 700;
  }
}

.popup .popup-close,
.popup .popup__close {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  padding: 0;
  display: block;
  position: absolute;
  top: 50%;
  right: 14px;
  margin: 0;
  transform: translateY(-50%);
  transform-origin: center center;
  transition: transform 0.3s ease, opacity 0.2s ease, border-color 0.2s ease;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #c9a962;
  cursor: pointer;
  appearance: none;
}
@media (min-width: 996px) {
  .popup .popup-close,
  .popup .popup__close {
    width: 36px;
    height: 36px;
    right: 20px;
  }
}
.popup .popup-close::before, .popup .popup-close::after,
.popup .popup__close::before,
.popup .popup__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: #c9a962;
}
.popup .popup-close::before,
.popup .popup__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.popup .popup-close::after,
.popup .popup__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.popup .popup-close:hover,
.popup .popup__close:hover {
  transform: translateY(-50%) rotate(180deg);
  background: transparent;
  text-decoration: none;
  border-color: #fff;
  opacity: 0.85;
}
.popup .popup-close:hover::before, .popup .popup-close:hover::after,
.popup .popup__close:hover::before,
.popup .popup__close:hover::after {
  background: #fff;
}

.popup__content a {
  color: #e8d5a3;
  text-decoration: underline;
  word-break: break-word;
}
.popup__content a:hover {
  color: #fff;
}
.popup__content .popRedeem {
  text-align: center;
}
.popup__content .popRedeem__item {
  position: relative;
  margin: 24px 0;
  font-size: clamp(15px, 1.6vw, 18px);
}
.popup__content .popRedeem__item h4 {
  margin: 0 0 8px;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.45;
  color: #f2f0eb;
}
.popup__content .popRedeem__item p {
  margin: 6px 0;
  font-size: 0.9em;
  line-height: 1.5;
  color: #9a968c;
}
.popup__content .popRedeem__item span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 15px;
  border: 1px solid rgba(201, 169, 98, 0.45);
  color: #e8d5a3;
  font-weight: 700;
  border-radius: 20px;
  background: #12151a;
}
.popup__content .popRedeem .text__note {
  margin-top: 20px;
  font-size: 0.75em;
  line-height: 1.5;
  text-align: left;
  color: rgba(242, 240, 235, 0.55);
}
.popup__content .popTC {
  position: relative;
}
.popup__content .popTC p {
  margin: 0 0 12px;
  line-height: 1.55;
  color: rgba(242, 240, 235, 0.88);
}
.popup__content .popTC__subtitle {
  margin: 28px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  text-align: left;
  color: #c9a962;
}
@media (min-width: 996px) {
  .popup__content .popTC__subtitle {
    margin-top: 36px;
  }
}
.popup__content .popTC__line {
  width: 100%;
  height: 1px;
  margin: 6px auto 16px;
  background: linear-gradient(90deg, rgba(201, 169, 98, 0.65) 0%, rgba(70, 140, 255, 0.35) 55%, rgba(201, 169, 98, 0.08) 100%);
}
.popup__content .popTC ul,
.popup__content .popTC ol {
  margin: 8px 0 12px 1.2em;
  padding-left: 1.2em;
  color: rgba(242, 240, 235, 0.88);
}
.popup__content .popTC ul li,
.popup__content .popTC ol li {
  display: list-item;
  margin: 8px 0;
  line-height: 1.55;
}
.popup__content .popTC ul.lower-roman {
  list-style: lower-roman;
}
.popup__content .popTC ul.lower-roman li {
  list-style: lower-roman;
}
.popup__content .popTC ul.discStyle {
  list-style: disc;
}
.popup__content .popTC ul.discStyle li {
  list-style: disc;
}
.popup__content .popTC ol.lower-alpha,
.popup__content .popTC ul .lower-alpha {
  list-style: lower-alpha;
}
.popup__content .popTC ol.lower-alpha li,
.popup__content .popTC ul .lower-alpha li {
  list-style: lower-alpha;
}
.popup__content .popTC ol {
  list-style: decimal;
}
.popup__content .popTC ol li {
  list-style: decimal;
}
