* {
  font-family: "Pretendard Variable", Pretendard, -apple-system,
  BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI",
  "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji",
  "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-style: normal;
}
html, body {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  background-color: var(--page-bg-color, #F6F7F8);
  background-image: var(--page-bg-image, none);
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
html {
  position: relative;
}
html.light-mode {
  --page-bg-color: #FFFFFF;
  --page-bg-image: none;
}
html.dark-mode {
  --page-bg-color: #05070A;
  --page-bg-image: url("/static/bg/main.png");
}
body {
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--page-bg-color, #F6F7F8);
  background-image: var(--page-bg-image, none);
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateZ(0);
}
li {
  list-style: none;
}

main {
  position: relative;
  width: 100%;
  padding-top: 148px;
  padding-bottom: 80px;
  min-height: 100vh;
  font-weight: 400;
  overflow-x: hidden;
}
*::-webkit-scrollbar {
  display: none;
}
.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* input */
.input-item {
  position: relative;
}
.input-item label {
  display: none;
}
.input-item input {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  padding: 16px 27px;
  font-size: 14px;
}
.input-item input:focus {
  outline: none;
}
.login_eyes {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.login_eyes img {
  width: 100%;
  height: 100%;
}

/* btn */
.common-btn {
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 14px;
  overflow: hidden;
}

/* modal */
.modal-wrapper {
  display: none;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: rgba(0, 0, 0, 0.5);
  z-index: 400;
  overflow: hidden;
}
.modal-wrapper.active {
  display: block;
}
.modal-scroll {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 968px;
  max-height: 90vh;
  padding: 51px 25px;
  border-radius: 30px;
}
.modal {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 25px;
  max-height: calc(90vh - 102px);
}
.modal::-webkit-scrollbar {
  width: 11px;
}
.modal::-webkit-scrollbar-thumb {
  border-radius: 55px;
}
.modal::-webkit-scrollbar-button {
  display: none;
}
.modal > div {
  text-align: center;
  font-size: 14px;
  line-height: 22px;
}
.modal-box {
  position: relative;
  padding: 24px 32px;
  border-radius: 22px;
  border: 1px solid #C0C1C0;
  background: #ffffff;
  margin-bottom: 16px;
}
.modal-close {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close img {
  width: 20px;
  height: 20px;
}
.modal-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.modal-notice-content {
  font-size: 12px;
  line-height: 20px;
  color: #717D84;
}
.modal-steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sub-title {
  font-size: 14px;
  font-weight: 700;
}
.modal-steps-content {
  font-size: 14px;
  line-height: 20px;
}
.modal-gray-box {
  padding: 34px 68px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 16px 0;
}
.modal-gray-box .text {
  text-align: center;
  font-size: 14px;
  line-height: 22px;
}
.modal-gray-box .cont {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 31px 60px;
  border-radius: 22px;
}
.modal-gray-box .cont p {
  font-size: 18px;
  font-weight: 700;
}
.modal-cont-cb {
  display: flex;
  gap: 65px;
}
.modal-cont-cb li {
  width: 145px;
}
.modal-cont-cb li label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-cont-cb li label img {
  width: 109px;
  height: 109px;
  display: block;
  object-fit: contain;
}
.modal-cont-cb input[type="checkbox"] {
  display: none;
}
.modal-cont-cb input[type="checkbox"] + label .cb {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #CDD5D9;
}
.modal-cont-cb input[type="checkbox"] + label img {
  opacity: 0.3;
}
.modal-cont-cb input[type="checkbox"]:checked + label .cb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.modal-cont-cb input[type="checkbox"]:checked + label img {
  opacity: 1;
}
.modal-cont-cb input[type="checkbox"]:checked + label .cb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.modal-wrapper .input-item label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-gray-box .input-cont {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-gray-box .input-cont span {
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}
.modal-gray-box .input-cont div {
  width: 100%;
  padding: 16px 27px;
  border-radius: 14px;
  border: 1px solid #CDD5D9;
  background: #fff;
  text-align: left;
}
.modal-white-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 34px 0;
  border-radius: 22px;
}
.modal-white-box p {
  font-size: 18px;
  font-weight: 700;
  line-height: 21px;
}
.modal-white-box ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.modal-white-box ul li {
  cursor: pointer;
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-white-box ul img {
  display: block;
  object-fit: contain;
  width: 100%;
  height: 100%;
  max-width: 140px;
  max-height: 140px;
}
.modal-close-btn {
  margin: 40px auto 0 auto;
  width: 365px;
  color: #fff;
  background: linear-gradient(90.06deg, #A179F5 46.35%, #2EB9C8 99.94%);
  border: 0;
}

/* modal additions */
.modal-intro-content {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.modal-intro-text {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

.kyc-info {
  margin: 15px 0;
  padding: 15px;
  background-color: #E6F7FF;
  border-radius: 8px;
  text-align: center;
}

.kyc-warning {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: #C31B1B;
}

.kyc-info p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.usage-instructions {
  margin: 20px 0;
  padding: 18px 20px;
  background-color: #f0f8ff;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #C0C1C0;
}

.usage-instructions h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0056b3;
  font-weight: bold;
}

.usage-instructions p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.limitations, .signals {
  margin: 15px 0;
  padding: 12px 14px;
  background-color: #f8f9fa;
  border-radius: 5px;
  text-align: center;
}

.limitations p, .signals p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.important-notes {
  margin: 20px 0;
  padding: 15px;
  background-color: #FFF3CD;
  border-radius: 8px;
  border-left: 4px solid #FFC107;
  text-align: center;
  border: 1px solid #C0C1C0;
}

.important-notes h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #856404;
  font-weight: bold;
}

.important-notes ul {
  margin: 0;
  padding-left: 0;
  display: inline-block;
  text-align: left;
}

.important-notes ul li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 5px;
  list-style-type: disc;
}

/* light mode */
.light-mode main {
  background: #F6F7F8;
  color: #2B343A;
}
.light-mode main input {
  color: #2B343A;
}
.light-mode .input-item input {
  background: #fff;
  mix-blend-mode: inherit;
  border: 1px solid #CDD5D9;
}
.light-mode .input-item input::placeholder {
  color: #CDD5D9;
}
.light-mode .mobile-menu-wrapper {
  background: #F6F7F8;
}
.light-mode .mobile-menu-wrapper ul li .menu-btn,
.light-mode .mobile-menu-wrapper ul li .menu-link {
  color: #2B343A;
}
.light-mode input[type="checkbox"]:checked + label .cb {
  border: 3px solid #498DEA;
}
.light-mode input[type="checkbox"]:checked + label .cb::after {
  background: #498DEA;
}
.light-mode label {
  color: #2B343A;
}
.light-mode .modal-scroll {
  background: #fff;
}
.light-mode .modal-box {
  background: #ffffff;
  border-color: #C0C1C0;
  color: #2B343A;
}
.light-mode .modal-notice-content {
  color: #717D84;
}
.light-mode .modal::-webkit-scrollbar-thumb {
  background: #D9D9D9;
}
.light-mode .modal-gray-box {
  background: #F3F4F3;
  border: 1px solid #C0C1C0;
  color: #2B343A;
}
.light-mode .modal-gray-box .cont {
  background: #fff;
  border: 1px solid #C0C1C0;
}
.light-mode .modal-gray-box .input-cont div {
  color: #2B343A;
}
.light-mode .modal-white-box {
  background: #ffffff;
  border: 1px solid #C0C1C0;
}
.light-mode .modal-intro-content {
  background: #F3F4F3;
  border: 1px solid #C0C1C0;
}
.light-mode .modal-intro-text {
  color: #2B343A;
}
.light-mode .kyc-info {
  background: #ffffff;
  border: 1px solid #C0C1C0;
  color: #2B343A;
}
.light-mode .kyc-info p {
  color: #2B343A;
}
.light-mode .usage-instructions {
  background: #F3F4F3;
  border: 1px solid #C0C1C0;
  color: #2B343A;
}
.light-mode .usage-instructions h3 {
  color: #A179F5;
}
.light-mode .usage-instructions p {
  color: #2B343A;
}
.light-mode .limitations,
.light-mode .signals {
  background: #ffffff;
  border: 1px solid #C0C1C0;
  color: #2B343A;
}
.light-mode .limitations p,
.light-mode .signals p {
  color: #2B343A;
}
.light-mode .important-notes {
  background: #F3F4F3;
  border-left: 4px solid #A179F5;
  color: #2B343A;
}
.light-mode .important-notes h3 {
  color: #A179F5;
}
.light-mode .important-notes ul li {
  color: #2B343A;
}

/* dark mode */
.dark-mode main input {
  color: #fff;
}
.dark-mode .input-item input {
  background: rgba(0, 0, 0, 0.3);
  border: none;
}
.dark-mode .input-item input::placeholder {
  color: #717D84;
}
.dark-mode .mobile-menu-wrapper {
  background: #0F0F0F;
}
.dark-mode .mobile-menu-wrapper ul li .menu-btn,
.dark-mode .mobile-menu-wrapper ul li .menu-link {
  color: #717D84;
}
.dark-mode input[type="checkbox"]:checked + label .cb {
  border: 3px solid #FFFFFF;
}
.dark-mode input[type="checkbox"]:checked + label .cb::after {
  background: #FFFFFF;
}
.dark-mode label {
  color: #FFFFFF;
}
.dark-mode .modal-scroll {
  background: rgba(0, 0, 0, 0.8);
}
.dark-mode .modal-box {
  background: #24262B;
  border-color: #24262B;
  color: #FFFFFF;
}
.dark-mode .modal-notice-content {
  color: #CDD5D9;
}
.dark-mode .modal::-webkit-scrollbar-thumb {
  background: #24262B;
}
.dark-mode .modal-gray-box {
  background: #24262B;
  border: 1px solid #24262B;
  color: #FFFFFF;
}
.dark-mode .modal-gray-box .cont {
  background: #353639;
  border: 1px solid #353639;
}
.dark-mode .modal-gray-box .input-cont div {
  background: #FFFFFF;
  color: #2B343A;
}
.dark-mode .modal-white-box {
  background: #24262B;
  border: 1px solid #24262B;
}
.dark-mode .modal-white-box p {
  color: #fff;
}

/* modal additions (dark mode) */
.dark-mode .modal-intro-content {
  background-color: #24262B;
  color: #FFFFFF;
}

.dark-mode .modal-intro-text {
  color: #FFFFFF;
}

.dark-mode .kyc-info {
  background-color: #353639;
  color: #FFFFFF;
  border: 1px solid #353639;
}

.dark-mode .kyc-info p {
  color: #FFFFFF;
}

.dark-mode .kyc-warning {
  color: #FF6B6B;
}

.dark-mode .usage-instructions {
  background-color: #24262B;
  color: #FFFFFF;
  border: 1px solid #24262B;
}

.dark-mode .usage-instructions h3 {
  color: #A179F5;
}

.dark-mode .usage-instructions p {
  color: #FFFFFF;
}

.dark-mode .limitations, 
.dark-mode .signals {
  background-color: #353639;
  color: #FFFFFF;
  border: 1px solid #353639;
}

.dark-mode .limitations p, 
.dark-mode .signals p {
  color: #FFFFFF;
}

.dark-mode .important-notes {
  background-color: #353639;
  border-left: 4px solid #A179F5;
  color: #FFFFFF;
}

.dark-mode .important-notes h3 {
  color: #A179F5;
}

.dark-mode .important-notes ul li {
  color: #FFFFFF;
}

@media (max-width: 600px) {
  main {
    padding-top: 63px;
  }
}
@media (max-width: 600px) {
  .modal-scroll {
    width: calc(100% - 24px);
    max-height: 80vh;
    border-radius: 15px;
    padding: 20px;
  }
  .modal {
    overflow-y: auto;
    padding: 0;
    max-height: calc(80vh - 40px);
  }
  .modal::-webkit-scrollbar {
    display: none;
  }
  .modal > div {
    font-size: 12px;
    line-height: 19px;
  }
  .modal-box {
    padding: 16px 14px;
    border-radius: 14px;
    margin-bottom: 12px;
  }
  .modal-gray-box {
    gap: 17px;
    border-radius: 12px;
    padding: 25px 10px 10px 10px;
  }
  .modal-gray-box .cont {
    gap: 10px;
    padding: 15px 10px;
    border-radius: 12px;
  }
  .modal-gray-box .cont p {
    font-size: 12px;
  }
  .modal-cont-cb {
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: initial;
  }
  .modal-cont-cb li {
    width: auto;
  }
  .modal-cont-cb li label {
    gap: 6px;
  }
  .modal-cont-cb li label img {
    width: 61px;
    height: 61px;
  }
  .modal-cont-cb input[type="checkbox"] + label .cb {
    width: 14px;
    height: 14px;
    border: 2px solid #CDD5D9;
  }
  .modal-cont-cb input[type="checkbox"]:checked + label .cb {
    width: 14px;
    height: 14px;
    border: 2px solid #498DEA;
  }
  .modal-cont-cb input[type="checkbox"]:checked + label .cb::after {
    width: 6px;
    height: 6px;
  }
  .modal-gray-box .input-cont {
    margin-top: 6px;
  }
  .modal-gray-box .input-cont span {
    font-size: 12px;
  }
  .modal-gray-box .input-cont div {
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 12px;
  }
  .modal-white-box {
    gap: 8px;
    border-radius: 12px;
    padding: 15px 10px;
  }
  .modal-white-box p {
    font-size: 12px;
  }
  .modal-white-box ul {
    max-width: 300px;
    width: 100%;
    gap: 30px;
    margin: 0 auto;
  }
  .modal-white-box ul li {
    width: 61px;
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-white-box ul img {
    width: 61px;
    height: 61px;
    display: block;
    object-fit: contain;
  }
  .modal-close-btn {
    margin-top: 20px;
    width: 200px;
    height: 40px;
    border-radius: 10px;
    font-size: 12px;
  }
  
  /* modal additions (mobile) */
  .modal-intro-content {
    margin: 15px 0;
    padding: 10px;
    border-radius: 6px;
  }
  
  .modal-intro-text {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .kyc-info {
    margin: 10px 0;
    padding: 10px;
    border-radius: 6px;
  }
  
  .kyc-info p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  
  .usage-instructions {
    margin: 15px 0;
    padding: 10px;
    border-radius: 6px;
  }
  
  .usage-instructions h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .usage-instructions p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  
  .limitations, .signals {
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
  }
  
  .limitations p, .signals p {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .important-notes {
    margin: 15px 0;
    padding: 10px;
    border-radius: 6px;
  }
  
  .important-notes h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .important-notes ul {
    padding-left: 15px;
  }
  
  .important-notes ul li {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 4px;
  }
}
