body {
    background-color: #faf9f8;
    font-family: 'Noto Sans JP', 'Inter', 'Pretendard', 'SF Pro Display', 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 220px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #1a2e49;
    color: rgb(0, 0, 0);
    font-weight: bold;
    border-radius: 0 0 10px 10px;
}

.menu-icon {
    font-size: 24px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    margin-right: 10px;
    background: none;
    border: none;
}

.header-title {
    text-align: left;
    margin-left: 10px;
    color: #fff;
}
.subtitle-inline {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.subtitle-icon {
  width: 30px;
  height: 30px;
  margin-top: 28px; /* 텍스트 상단 정렬 맞춤용 */
}


.subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
 
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 16px;
padding-bottom: 5px;
  margin-top: 1rem;
}
.subtitle2 {
  margin-top: 1px;
  margin-bottom: 10px;
  padding-left: 20px;
  padding-right: 15px;
  padding-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: #b6a17a;
  text-align: left;
}
.subtitle2 {
  position: relative;
  animation: zoomToButton 1s ease forwards;
  animation-delay: 6s;
  transform-origin: var(--target-x) var(--target-y);
}

/* 축소 애니메이션 */
@keyframes zoomToButton {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}



/* 📌 메뉴 스타일 */
.menu-items {
    position: absolute;
    top: 60px;
    right: 10px;
    background: rgba(30, 30, 30, 0.5);
    /* 어두운 반투명 배경 */
    border-radius: 14px;
    /* 더 둥글게 */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    /* 더 깊은 그림자 */
    width: 180px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease-in-out;
    backdrop-filter: blur(15px);
    z-index: 1000;
    /* 유리 같은 블러 효과 추가 */
}

/* 메뉴가 열릴 때 */
.menu-items.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 390px;
}

/* 📌 메뉴 내부 항목 */
.menu-items a {
    padding: 11px 18px;
    /* 더 넓은 패딩 */
    text-decoration: none;
    color: white;
    font-size: 17px;
    text-align: left;
    display: block;
    font-weight: 400;
    /* 굵은 폰트 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* 마지막 항목 테두리 제거 */
.menu-items a:last-child {
    border-bottom: none;
}

/* 📌 호버 효과 */
.menu-items a:hover {
    background: rgba(255, 255, 255, 0.2);
    /* 부드러운 반투명 호버 */
    color: #ffd21e;
    /* 골드 컬러 강조 */
    border-radius: 5px;
}

/* 📌 메뉴 버튼 스타일 */
.menu-icon {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    margin-right: 10px;
    background: none;
    border: none;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* 버튼을 누를 때 애니메이션 */
.menu-icon:active {
    transform: scale(0.9);
    opacity: 0.7;
}
/* ✅ 모바일 (767px 이하): 데스크탑 메뉴 숨김 */
@media (max-width: 767px) {
    .desktop-menu {
      display: none !important;
    }
    .select-situation-btn {
        width: 50%;
    }
    .container {
        flex-direction:column;
    }
  }
  
/* ✅ PC에서는 상단 우측에 항상 보이도록 */
@media (min-width: 768px) {
    /* 햄버거 버튼과 드롭다운 메뉴 숨기기 */
    .menu-icon,
    .menu-items {
      display: none !important;
    }

    .select-situation-btn {
        margin-right: 20px !important;
    }
    .container {
        flex-direction:row !important;
    }
  
    /* PC 전용 네비게이션 */
    .desktop-menu {
      display: flex;
      gap: 24px;
      margin-left: auto;
      align-items: center;
    }
  
    .desktop-menu a {
      color: white;
      text-decoration: none;
      font-weight: 500;
      font-size: 16px;
      padding: 10px 12px;
      transition: color 0.2s ease, border-bottom 0.2s ease;
      border-bottom: 2px solid transparent;
    }
  
    .desktop-menu a:hover {
      color: #ffcc00;
      border-bottom: 2px solid #ffcc00;
    }
  }
  




.btn-group-custom {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-top: 25px;
    /* 기존보다 15px 증가 */
    margin-bottom: 25px;
    /* 기존보다 15px 증가 */
}
.btn-close {
    filter: invert(14%) sepia(19%) saturate(1673%) hue-rotate(180deg) brightness(95%) contrast(95%);
    opacity: 1;
    position: relative;
    top: -5px;  /* 위로 살짝 이동 */
  }

  .btn-close:hover {
    opacity: 0.7; /* 살짝 흐려지게 */
  }
  

/* .btn-option {
    background-color: #258eff;
    color: white;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    margin: 5px;
    transition: all 0.2s ease-in-out;

    flex: 1 1 auto;
} */


/* 터치할 때 (모바일) */
.btn-option:active {
    transform: scale(0.95);
    /* 버튼이 살짝 작아짐 */
    background-color: #e3d7c1;
    color: #1a2e49;

    /* 눌렀을 때 더 짙은 블루 */
}

/* 선택된 버튼 */
.btn-option.active {
    background-color: #e3d7c1;
    color: #1a2e49;
    opacity: 1;
    /* 강조 */
}


/* 선택되지 않은 버튼 */
.btn-option.dimmed {
    opacity: 0.7;
    /* 흐릿하게 */
}

.btn-option:hover {
    background-color: #e3d7c1;
    color: #1a2e49;
}

.image-upload {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.upload-btn {
    width: 232px;
    height: 232px;
    background-color: #f0f0f0;
    /* 부드러운 라이트 그레이 */
    border-radius: 20%;
    /* 부드러운 모서리 */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #666;
    /* 다크 그레이 아이콘 */
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}


/* 로딩 중 네온 애니메이션 상태 */
.upload-btn.loading-glow {
  border: none;
  /* animation: neonPulse 2.5s infinite alternate;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; */
}

@keyframes neonPulse {
  0% {
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  }
  33% {
    box-shadow: 0 0 12px #00aaff, 0 0 24px #00aaff;
  }
  66% {
    box-shadow: 0 0 14px #a64aff, 0 0 28px #cc66ff;
  }
  100% {
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  }
}

.upload-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* ✅ 스캔 영역 배경 (약간 어두운 필터) */
.scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.004); /* 살짝 어두운 반투명 배경 */
  z-index: 2;
  pointer-events: none;
}

/* ✅ 스캔 라인 */
.scan-line {
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(
    to bottom,
    rgba(0, 255, 255, 0) 0%,
    rgba(0, 255, 255, 0.3) 40%,
    rgba(180, 255, 255, 0.9) 50%,
    rgba(0, 255, 255, 0.3) 60%,
    rgba(0, 255, 255, 0) 100%
  );
  filter: blur(1px);
  animation: scanMove 3.5s linear infinite;
  mix-blend-mode: screen;
  opacity: 1;
}

@keyframes scanMove {
  0% {
    top: -80px;
  }
  100% {
    top: 100%;
  }
}


.upload-btn:not(.loading-glow) .scan-overlay {
  display: none;
}





/* 📌 버튼 터치 시 (모바일 포함) */
.upload-btn:active {
    transform: scale(0.95);
    /* 살짝 눌리는 느낌 */
    background-color: #e0e0e0;
    /* 조금 더 진한 회색으로 변화 */
}

/* 📌 아이콘 색상 변경 */
.upload-btn i {
    color: #555;
    /* 중간 톤 회색 */
    transition: color 0.3s ease-in-out;
}

/* 📌 파일 업로드 후 이미지 변경 */
.upload-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.uploaded-preview {
  width: 100%;
  height: auto;
  display: block;
 
  border-radius: 12px; /* 살짝 더 부드럽고 고급스럽게 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* 은은한 고급 그림자 */
  border: 1px solid rgba(0, 0, 0, 0.05); /* 거의 안 보이는 세련된 테두리 */
  background-color: #fff; /* 흰 배경으로 깔끔하게 */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 부드러운 효과 */
}

.uploaded-preview:hover {
  transform: scale(1.01); /* 마우스 올리면 살짝 확대 */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); /* 그림자 강화로 몰입감 */
}

.uploaded-image-preview-wrapper {
  position: relative;
  width: 95%;
  margin: 0.1rem auto 3rem auto;

  overflow: hidden; /* 비네팅 테두리 깔끔하게 */
  border-radius: 12px; /* 살짝 더 부드럽고 고급스럽게 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* 은은한 고급 그림자 */
  border: 1px solid rgba(0, 0, 0, 0.05); /* 거의 안 보이는 세련된 테두리 */
}

.vignette-mask {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 12px;
  z-index: 3;
  opacity: 0.7;
}


.overlay-signature {
  position: absolute;
  right: 12px;
  bottom: 12px;
  height: 70px;
  opacity: 1;
  z-index: 4;
  pointer-events: none;
}

/* .image-overlay-content {
  position: absolute;
  top: 25px;
  left: 25px;
  color: white;
  z-index: 5;
  text-align: left;
  
  max-width: 220px;
  font-family: 'Noto Sans JP', sans-serif;
} */
/* 오버레이 블록 */
.image-overlay-content {
  position: absolute;
  top: 25px;
  left: 25px;
  color: white;
  z-index: 5;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;

  transform-origin: top left;
  transform: scale(1); /* 기본 비율 */
  transition: transform 0.3s;
}

/* 브라우저 크기 작아질 때 자동 축소 */
@media (max-width: 490px) {
  .image-overlay-content {
    transform: scale(0.9);
  }
}

@media (max-width: 450px) {
  .image-overlay-content {
    transform: scale(0.8);
  }
}

@media (max-width: 410px) {
  .image-overlay-content {
    transform: scale(0.7);
  }
}

@media (max-width: 380px) {
  .image-overlay-content {
    transform: scale(0.5);
        top: 20px;
    left: 20px;
  }
}
@media (max-width: 320px) {
  .image-overlay-content {
    transform: scale(0.4);
        top: 20px;
    left: 20px;
  }
}
@media (max-width: 280px) {
  .image-overlay-content {
    transform: scale(0.3);
        top: 20px;
    left: 20px;
  }
}

.overlay-title {
  font-size: 1.2rem;
  font-weight: bold;
  border-bottom: 4px solid white;
  padding-bottom: 4px;
}
.overlay-subtitle {
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
 opacity: 0.8;
}

.overlay-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.overlay-icon {
  width: 28px;
  height: 28px;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;              /* ✅ flexbox로 정중앙 정렬 */
  align-items: center;        /* 수직 가운데 */
  justify-content: center;    /* 수평 가운데 */
  font-size: 0.9rem;
  margin-right: 8px;
  flex-shrink: 0;
  color: white;               /* 아이콘 색상 (흰색) */
}

.overlay-text {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.overlay-label {
  font-weight: 600;
  font-size: 0.8rem;
}

.overlay-grade {
  font-size: 0.75rem;
 
}




/* .search-icon {
font-size: 18px;
margin-right: 8px; 
color: #fff; 
} */

.search-icon {
    width: 35px;
    /* 기존 아이콘 크기에 맞춤 */
    height: 35px;
    margin-right: 2px;
    margin-left: 2px;
    /* 텍스트와의 간격 */
    vertical-align: middle;
    /* 텍스트와 정렬 */
    border-radius: 6px;
    

}





.container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modal-title {
    color: #1a2e49 !important; /* 진한 검은색 구분선 */
  }
/* ✅ 모달 내부 스크롤 가능 */
.modal-body {
    max-height: 500px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 0px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;

}

/* ✅ 버튼 스타일 */
.button-group {
    display: flex;
    flex-wrap: wrap;
    /* 버튼이 넘치면 다음 줄로 이동 */
    justify-content: space-between;
    /* 버튼 사이 간격 자동 조정 */
    gap: 10px;
    /* 버튼 사이 여백 */
}
.btn-secondary {
    background-color: #1a2e49;
    margin-right: 10px;
}
.btn-primary {
    background-color: #1a2e49;
}
.btn-primary:hover {
    background-color: #5c636a;
}
/* 버튼 클릭 시 살짝 커졌다 돌아오는 효과 */
.share-buttons-wrapper .btn:active {
  transform: scale(1.05);
  transition: transform 0.1s ease-in-out;
  background-color: #5c636a;
}

.btn-option {
    background-color: #fffbf500;
    color: #444;
     border: 1px solid #ccc1ad;
    border-radius: 15px;
    padding: 10px 15px;
    font-size: 15px;
    margin-bottom: 3px;
    margin-top: 3px;
 
    cursor: pointer;
    width: calc(50% - 7px);
    /* 50%에서 간격 감안 */
    text-align: center;
    transition: all 0.2s ease-in-out;
}
.text-danger{
    color: #b6463c !important;
}
.text-danger2{
    color: #1a2e49 !important;
}

.btn-option:hover {
    background-color: #e3d7c1;
    color: #1a2e49;
}

/* ✅ 카테고리 제목 스타일 
.category-title {
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 19px;
}*/

/* ✅ 모달 제목 스타일 */
.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-top: 10px;
}

/* ✅ 카테고리 제목 스타일 */
.category-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-top: 20px;
    margin-bottom: 8px;
    /* 버튼과의 여백 증가 */
}

/* ✅ "상황 선택" 버튼 스타일 */
/* ✅ 버튼 기본 스타일 */
.select-situation-btn {
    display: block;
    width: 50%;
    background-color: #e3d7c1;
    color: #1c3950;
    font-size: 18px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 50px;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease-in-out;
    animation: pulse 1.5s infinite ease-in-out;
    /* ✅ 3초 간격으로 애니메이션 반복 */
}

/* ✅ 버튼이 커졌다 작아지는 애니메이션 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
        /* 8% 커짐 */
    }

    100% {
        transform: scale(1);
    }
}

/* ✅ 애니메이션이 멈추는 클래스 */
.no-animation {
    animation: none !important;
}


.select-situation-btn:active {
    transform: scale(0.95);
    background-color: #848484;

}

/* ✅ 아이콘 기본 스타일 */
.upload-btn i {
    color: #1c3950;
    transition: color 0.3s ease-in-out;
}

/* ✅ 아이콘이 커졌다 작아지는 애니메이션 */
@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        /* 15% 커짐 */
    }

    100% {
        transform: scale(1);
    }
}

/* ✅ 애니메이션을 실행하는 클래스 */
.icon-animate {
    animation: iconPulse 1s infinite ease-in-out;
}
.modal-header {
    border-bottom: none !important;
  }
  .modal-footer {
    border-top: none !important;
  }

  /* .modal-dialog {
    height: 80vh !important;
  } */
  
  
.modal-content {
    padding: 6px;
    border-radius: 20px;
    background-color: #faf9f8;
}

#resultText {
  -webkit-overflow-scrolling: touch;
}

/* ✅ 쿠폰 입력 영역 */


.coupon-section {
    position: fixed;
    bottom: 138px; /* 유도 문구 위 */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 997;
    text-align: center;
    z-index: 1001;
    display: none;
}
/*입력 창*/
.coupon-input-wrapper {
    position: relative;
    width: 100%;
  }
  
  .coupon-input {
    width: 100%;
    padding: 8px 60px 8px 12px; /* 오른쪽 패딩 확보 */
    border: 1px solid #e3d7c1;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    background-color: #faf9f8;
    box-sizing: border-box;
  }
  .coupon-input:focus {
    outline: none;
    border-color: #e3d7c1; /* 원래 테두리 색으로 유지 */
    box-shadow: none;      /* 불필요한 그림자 제거 */
  }
  
  .apply-coupon-btn {
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    padding: 10px 16px;
    background-color: #e3d7c1;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  
    transition: transform 0.15s ease;
  }

  /*장소 입력 창*/
.coupon-input-wrapperp {
  margin-top: 12px;
  position: relative;
  width: 100%;
}

.coupon-inputp {
  width: 100%;
  padding: 8px 60px 8px 12px; /* 오른쪽 패딩 확보 */
  border: 1px solid #e3d7c1;
  border-radius: 10px;
  font-size: 16px;
  text-align: left;
  background-color: #faf9f8;
  box-sizing: border-box;
}
.coupon-inputp:focus {
  outline: none;
  border-color: #e3d7c1; /* 원래 테두리 색으로 유지 */
  box-shadow: none;      /* 불필요한 그림자 제거 */
}

.apply-coupon-btnp {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  padding: 10px 12px;
  background-color: #e3d7c1;
  color: white;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

  transition: transform 0.15s ease;
}
  
  /* 클릭 시 살짝 커졌다가 돌아오게 */
  .apply-coupon-btn:active {
    transform: translateY(-50%) scale(1.05);
    background-color: #c8b084;
  }
  
  
/* ✅ 고정된 쿠폰 문구 스타일 */
.coupon-offer-fixed {
    position: fixed;
    bottom: 84px; /* start-btn 위에 적당한 간격 */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 999;
    background:#faf9f8;
    padding: 6px 0;
  }
  

  
  .coupon-offer-text strong {
    color: #0070f3;
  }
  .coupon-offer-text2 strong {
    color: #0070f3;
  }
  #paypal-button-container{
    margin-top: 10px;
  }
  
  
  /* 수정된 애니메이션 */
@keyframes scaleIn {
  0% {
    transform: translateX(-50%) scale(0.1);
    opacity: 0;
  }
  80% {
    transform: translateX(-50%) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

@keyframes blinkFadeIn {
  0%, 100% {
    transform: translateX(-50%);
    opacity: 1;
  }
  20%, 60% {
    transform: translateX(-50%);
    opacity: 0;
  }
  40%, 80% {
    transform: translateX(-50%);
    opacity: 1;
  }
}
@keyframes scaleIn2 {
  0% {
    transform:  scale(0.1);
    opacity: 0;
  }
  80% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform:  scale(1);
    opacity: 1;
  }
}

@keyframes blinkFadeIn2 {
  0%, 100% {
   
    opacity: 1;
  }
  20%, 60% {
    
    opacity: 0;
  }
  40%, 80% {
  
    opacity: 1;
  }
}
  
  .coupon-offer-text {
    font-size: 0.9rem;
    color: #0f77a8;
    margin: 0;
    display: none;
  }

  .coupon-offer-text2 {
    font-size: 0.9rem;
    color: #0f77a8;
    margin: 0;
   
  }
/* 애니메이션 1단계: 등장 */

.coupon-section.appear {
  display: block;
  animation: scaleIn 0.8s ease-out forwards;
  transform-origin: center top;

}
.coupon-section.show-blink  {
  display: block;
  animation: blinkFadeIn 2.5s ease-in-out 1;
}

.coupon-offer-text.appear {
  display: block;
  animation: scaleIn2 0.8s ease-out forwards;
  transform-origin: center top;

}
  

  .coupon-offer-text.show-blink  {
    display: block;
    animation: blinkFadeIn2 2.5s ease-in-out 1;
  }


  

  .share-buttons-wrapper {
    flex-wrap: wrap;
    gap: 8px; /* 버튼 간격 */
  }

  .share-buttons-wrapper .btn {
    font-size: 0.9rem; /* 기본 텍스트 크기 약간 작게 */
    padding: 10px 12px;
  }

  @media (max-width: 1024px) {
    .share-buttons-wrapper {
      flex-direction: column;
      align-items: stretch;
    }

    .share-buttons-wrapper .btn {
      font-size: 0.9rem;
      width: 100%;
    }
  }

  .bottom-bar {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    justify-content: space-between;
    z-index: 1002;
  }
  
  
  .dropdown-container {
    position: relative;
    width: 48%;
  }
  
  .dropdown-toggle {
    flex: 1;
    width: 100%;

    background-color: #1a2e49;
    color: #fff;
    font-size: 16px;
    padding: 15px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
  }
  .dropdown-menu {
    display: block;
    opacity: 0;
    transform: scale(0);
    transform-origin: bottom center; /* ✅ 오른쪽 하단 꼭짓점에서 시작 */
    transition: opacity 0.5s ease-in-out, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    visibility: hidden;
    pointer-events: none;
  
    position: absolute;
    bottom: 110%;
    right: 0; /* ✅ 오른쪽 정렬 */
  
    backdrop-filter: blur(10px);
    background-color: rgba(26, 46, 73, 0.8); /* 반투명 유리 느낌 */
    color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
  
    transform-style: preserve-3d;
    backface-visibility: hidden;
  }
  
  .dropdown-menu.show {
    opacity: 1;
    transform: scale(1); /* ✅ 전체 확장 */
    visibility: visible;
    pointer-events: auto;
  }
  
  
  
  
  .dropdown-menu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: white;
    font-size: 15px;
  }
  
  .dropdown-menu a:hover {
    background-color: #2d456d;
  }

  .start-btn {
    flex: 1; /* 가변 너비로 */
    background-color: #1a2e49;
    color: #fff;
    font-size: 16px;
    padding: 15px;
    border-radius: 20px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-left: 8px; /* 드롭다운과 간격 */
  }
  
  .start-btn:active {
    transform: scale(0.95);
    background-color: #094e99;
  }

/*로딩*/

:root {
  --size: 45vh;
  --logo-size: 128px;
  --logo-color: #0e1b3e;
}

#loadingWrapper {
  display: none; /* 시작 시 숨김 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1003;
  flex-direction: column;  /* ✅ 요소들을 위→아래 정렬 */
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#canv{
  display: none; /* 시작 시 숨김 */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 1500px;
  z-index: 1004;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  position: absolute;
padding: 7px;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--logo-size);
  height: var(--logo-size);
  background-color: var(--logo-color);
  border-radius: 50%;
  z-index: 2;
  animation: logoPulse 5s ease-in-out infinite;
}

.loading-message {
  margin-top: 200px;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
  animation: fadeIn 1s ease-in-out;
  color: #0e1b3e;
 
  backdrop-filter: blur(2px);
  padding: 4px 12px;
  border-radius: 8px;
}

@keyframes logoPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* 
.rainbow-container {
  position: fixed;
  z-index: 1;
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transform-style: preserve-3d;
  perspective: var(--size);
  filter: blur(15px);
   animation: rainbow 20s cubic-bezier(0.5, 0.35, 0.15, 1) infinite both;
  transform: rotate(0deg) translateZ(0);
  transform-origin: center center;
} */
.rainbow-container {
  position: fixed;
 z-index: 1;
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transform-style: preserve-3d;
  perspective: var(--size);
  filter: blur(15px);
  animation: rainbow 20s cubic-bezier(0.5, 0.35, 0.15, 1) infinite both;
  
}

/* .rainbow-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.rainbow-container {
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transform-style: preserve-3d;
  perspective: var(--size);
  filter: blur(15px);
  animation: rainbow 20s cubic-bezier(0.5, 0.35, 0.15, 1) infinite both;
} */



@keyframes rainbow {
  0% {
    transform: rotateY(0deg) skew(14deg) rotate3d(1.1, 1, 0.9, 0deg);
  }
  20%, 40%, 60%, 80%, 100% {
    transform: rotateY(0deg) skew(14deg) rotate3d(1.1, 1, 0.9, 0deg);
  }
}
/* 이게 중심 정렬 */
.circle-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  border-radius: 20%;
  filter: blur(10px);
  z-index: 1;
}

/* 실제 애니메이션은 자식 요소에 줌 */
.circle-wrapper::before {
  position: fixed;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: red; /* 개별 색상에서 override */
  animation: spin 4s linear infinite;
}



/* .purple::before { background: #a600ff; animation: curve-rotate-purple 3s ease infinite; }
.pink::before   { background: #295df9; animation: curve-rotate-pink 4s ease infinite; }
.orange::before { background: #ffd057; animation: curve-rotate-orange 3s ease infinite; }
.moss::before   { background: #8bffab; animation: curve-rotate-moss 3s ease infinite; }
.white::before  { background: #f4fcbc; animation: curve-rotate-white 3s ease infinite; } */

.purple::before {
  background: #a600ff;
  animation: glow-spin-purple 6s ease-in-out infinite;
  filter: blur(20px);
}
.pink::before {
  background: #0040ff;
  animation: glow-spin-purple 8s ease-in-out infinite;
  filter: blur(18px);
}
.orange::before {
  background: #feb600;
  animation: glow-spin-purple 7s ease-in-out infinite;
  filter: blur(16px);
}
.moss::before {
  background: #00fffb;
  animation: glow-spin-purple 9s ease-in-out infinite;
  filter: blur(20px);
}
.white::before {
  background: #ff00a2;
  animation: glow-spin-purple 5s ease-in-out infinite;
  filter: blur(14px);
}


@keyframes curve-rotate-purple {
  0%, 100% { transform: rotateY(170deg) skew(20deg, -10deg) rotate3d(1.1, 1, 0.9, 0deg); }
  50% { transform: rotateY(70deg) skew(20deg, -10deg) rotate3d(1.1, 1, 0.9, 180deg); }
}

@keyframes curve-rotate-pink {
  0%, 100% { transform: rotateY(0deg) skew(20deg, -10deg) rotate3d(1.1, 1, 0.9, 0deg); }
  50% { transform: rotateY(0deg) skew(20deg, -10deg) rotate3d(1.1, 1, 0.9, 0deg); }
}

@keyframes curve-rotate-orange {
  0%, 100% { transform: rotateY(40deg) skew(20deg, -10deg) rotate3d(1.1, 1, 0.9, 0deg); }
  50% { transform: rotateY(0deg) skew(20deg, -10deg) rotate3d(1.1, 1, 0.9, 0deg); }
}

@keyframes curve-rotate-moss {
  0%, 100% { transform: rotateY(0deg) skew(20deg, -10deg) rotate3d(1.1, 1, 0.9, 0deg); }
  50% { transform: rotateY(0deg) skew(20deg, -10deg) rotate3d(1.1, 1, 0.9, 0deg); }
}

@keyframes curve-rotate-white {
  0%, 100% { transform: rotateY(50deg) skew(20deg, -10deg) rotate3d(1.1, 1, 0.9, 50deg); }
  50% { transform: rotateY(30deg) skew(20deg, -10deg) rotate3d(1.1, 1, 0.9, 230deg); }
}
@keyframes glow-spin-purple {
  0% {
    transform: rotate3d(1, 1, 0, 0deg) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: rotate3d(1, 0.5, 0.2, 180deg) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: rotate3d(1, 1, 0, 360deg) scale(0.8);
    opacity: 0.6;
  }
  75% {
    transform: rotate3d(0.8, 1, 0.5, 540deg) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: rotate3d(1, 1, 0, 720deg) scale(1);
    opacity: 0.8;
  }
}

#loadingWrapper{
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: none; /* 기본은 숨김 */
  pointer-events: none;
}


#canv {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: none; /* 기본은 숨김 */
  pointer-events: none;
}

#loadingWrapper.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

#canv.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-title {
  color: #1a2e49 !important; /* 진한 검은색 구분선 */
}
/* ✅ 모달 내부 스크롤 가능 */
.modal-body {
  max-height: 500px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 0px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;

}
.modal-body2 {
  padding: 0 20px 20px 20px;
  /* max-height, overflow-y 제거 */
}

/* 모달 결과 영역 */
#resultText {
  max-height: 80%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
}

/* PayPal 카드 결제 모달 */
#paypalCardModal .modal-content {
  padding: 1.5rem; /* p-4 */
  background-color: #fff;
}






