@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

html,
body {
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    "Segoe UI",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Malgun Gothic",
    sans-serif;
}

button,
input,
textarea,
select,
option {
  font-family: inherit;
}

body * {
  touch-action: manipulation;
}

.smartour-mask {
  background-color: rgba(0, 0, 0, 0.1) !important;
  border: 2px solid #a366e4 !important;
}

.embla__dots .embla__dot {
  background-color: #d9d9d9;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
}

.embla__dots .embla__dot.embla__dot--selected {
  background-color: #fff;
}

.receipt-cut-wrap {
  background-image: image-set(
    url("https://storage.perfectcdn.com/8oz98m/f93bs7ra00x9o6qf.png") 1x,
    url("https://storage.perfectcdn.com/8oz98m/7nl18y6zr7x128md.png") 2x,
    url("https://storage.perfectcdn.com/8oz98m/z4rp47ulhs2o2fk0.png") 3x
  );
}

#menu-container a.active {
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity)) /* #000000 */;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity)) /* #ffffff */;
  border-top-left-radius: 1.5rem /* 24px */;
  border-bottom-left-radius: 1.5rem /* 24px */;
  background-image: linear-gradient(90deg, #fff 88%, #ddd);
}

#menu-container .sideBarHashLink.active {
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity)) /* #000000 */;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity)) /* #ffffff */;
  border-top-left-radius: 1.5rem /* 24px */;
  border-bottom-left-radius: 1.5rem /* 24px */;
  background-image: linear-gradient(90deg, #fff 88%, #ddd);
}

#menu-container a:hover {
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity)) /* #000000 */;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity)) /* #ffffff */;
  border-top-left-radius: 1.5rem /* 24px */;
  border-bottom-left-radius: 1.5rem /* 24px */;
  background-image: linear-gradient(90deg, #fff 88%, #ddd);
}

.social-name.active {
  filter: brightness(1) grayscale(0) !important;
}

.category-box.active {
  border-color: #a366e4 !important;
  background-color: #e7e9f5 !important;
  font-weight: 500;
}

.order-category.active,
.dripfeed-category.active {
  border-color: #9044e2 !important;
  background-color: #a366e4 !important;
  box-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.25) !important;
  color: rgb(255 255 255) !important;
}

.order-category.active img,
.dripfeed-category.active img {
  filter: invert(100%) !important;
}

.pay-method.active {
  color: rgb(255 255 255) !important;
  background-color: #5d00c8 !important;
}

.pay-method.active img {
  filter: grayscale(0) !important;
}

.pay-tax.active {
  border-color: rgb(163 102 228) !important;
  color: rgb(0 0 0) !important;
  background-color: rgb(231 233 245) !important;
}

.blog-contents img {
  display: block !important;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SH Auth Design System (signup / signin / resetpassword)
   ============================================ */

/* --- Inputs ---
   !important: 런타임에 주입되는 Tailwind CDN(forms 리셋 포함) 스타일이
   문서 순서상 이 파일보다 뒤에 오므로 핵심 시각 속성은 강제한다. */
.sh-input {
  width: 100% !important;
  border: 1.5px solid #e4e4ec !important;
  border-radius: 12px !important;
  padding: 13px 14px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  color: #17141f !important;
  background-color: #ffffff !important;
  outline: none !important;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.sh-input::placeholder {
  color: #a7a7b4 !important;
}

.sh-input:hover {
  border-color: #c9c9db !important;
}

.sh-input:focus {
  border-color: #5d00c8 !important;
  box-shadow: 0 0 0 4px rgba(93, 0, 200, 0.1) !important;
}

.sh-input.sh-input-error {
  border-color: #e5484d !important;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.1) !important;
}

.sh-input[readonly] {
  background-color: #fafafc !important;
  color: #77748a !important;
  cursor: default;
}

.sh-input[readonly]:focus {
  border-color: #e4e4ec !important;
  box-shadow: none !important;
}

.sh-field-message {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: #e5484d;
}

.sh-field-message.show {
  display: block;
}

/* --- Primary CTA --- */
.sh-btn-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  /* !important: Tailwind preflight가 [type='submit']에 background-image: none을 주입함 */
  background-image: linear-gradient(180deg, #7a1fe8 0%, #5d00c8 78%, #5300b2 100%) !important;
  box-shadow:
    0 6px 18px rgba(93, 0, 200, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.sh-btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow:
    0 10px 26px rgba(93, 0, 200, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sh-btn-primary:active {
  transform: translateY(0) scale(0.985);
}

.sh-btn-primary:disabled {
  filter: grayscale(0.15) brightness(0.92);
  cursor: not-allowed;
  transform: none;
}

/* --- Button spinner --- */
.sh-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: sh-spin 0.7s linear infinite;
}

.sh-loading .sh-spinner {
  display: inline-block;
}

@keyframes sh-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Entrance motion --- */
@keyframes sh-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sh-rise {
  animation: sh-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sh-shake {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-3px);
  }
  40%,
  60% {
    transform: translateX(3px);
  }
}

.sh-shake {
  animation: sh-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* --- Brand panel (desktop, signup) --- */
.sh-brand-panel {
  background-image:
    radial-gradient(ellipse 90% 60% at 15% -10%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 55% at 110% 105%, rgba(58, 0, 132, 0.85), transparent 60%),
    linear-gradient(160deg, #6e14dc 0%, #5d00c8 48%, #43008f 100%);
}

.sh-brand-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}

/* --- Fullscreen auth gradient (signin modal) --- */
.sh-auth-bg {
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -12%, rgba(163, 102, 228, 0.5), transparent 60%),
    radial-gradient(ellipse 65% 50% at 90% 110%, rgba(40, 0, 90, 0.9), transparent 62%),
    linear-gradient(165deg, #6612d2 0%, #55009f 55%, #33006e 100%);
}

/* --- Auth card --- */
.sh-card {
  background: #ffffff;
  border: 1px solid rgba(23, 20, 31, 0.06);
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(23, 20, 31, 0.04),
    0 12px 40px rgba(23, 20, 31, 0.1);
}

/* --- Password visibility toggle --- */
.sh-eye-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a7a7b4;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.sh-eye-btn:hover {
  color: #5d00c8;
  background: rgba(93, 0, 200, 0.06);
}

.sh-eye-btn .sh-eye-off {
  display: none;
}

.sh-eye-btn.on .sh-eye-on {
  display: none;
}

.sh-eye-btn.on .sh-eye-off {
  display: block;
}

/* --- Trust chips (brand panel) --- */
.sh-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* --- Sidebar (평면적인 원색 단면 대신 깊이 있는 그라디언트) --- */
.sh-sidebar {
  background-image:
    radial-gradient(ellipse 130% 36% at 50% -4%, rgba(255, 255, 255, 0.13), transparent 62%),
    linear-gradient(180deg, #6c15d8 0%, #5a00c0 52%, #45009a 100%);
}

/* --- Live pulse dot --- */
.sh-live-dot {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.sh-live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.4);
  animation: sh-pulse 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes sh-pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  70%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* --- Checkbox (Tailwind forms 리셋이 체크 색을 파랑으로 강제하므로 브랜드 색 적용) --- */
.sh-checkbox {
  border-radius: 4px !important;
  border-color: #c9c9db !important;
  cursor: pointer;
}

.sh-checkbox:checked {
  background-color: #5d00c8 !important;
  border-color: #5d00c8 !important;
}

.sh-checkbox:focus {
  box-shadow: 0 0 0 3px rgba(93, 0, 200, 0.18) !important;
  outline: none !important;
}

/* --- Focus visibility (keyboard nav) --- */
.sh-btn-primary:focus-visible,
.sh-eye-btn:focus-visible {
  outline: 3px solid rgba(93, 0, 200, 0.45) !important;
  outline-offset: 2px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .sh-rise,
  .sh-shake,
  .sh-live-dot::after,
  .sh-spinner {
    animation: none !important;
  }

  .sh-btn-primary,
  .sh-input {
    transition: none !important;
  }
}
