/* ===== 변수 (시리즈 1 · 레드톤) ===== */
:root {
  --bg-deep: #0f0a0a;
  --bg-card: rgba(28, 18, 18, 0.9);
  --border: rgba(180, 100, 100, 0.25);
  --text: #f0e8e8;
  --text-soft: #c9a8a8;
  --accent: #c94b4b;
  --accent-glow: rgba(201, 75, 75, 0.35);
  --accent-hover: #d65c5c;
  --star: rgba(255, 220, 220, 0.9);
  --font-sans: 'Noto Sans KR', sans-serif;
  --font-display: 'Cormorant Garamond', serif;
  --font-title: 'Nanum Myeongjo', serif;
}

/* ===== 리셋 & 기본 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh; /* iOS Safari 뷰포트 안정화 */
  min-height: calc(100vh + env(safe-area-inset-bottom));
  overflow-x: hidden;
  position: relative;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

/* PWA · 모바일 앱처럼 보이기 */
@media (display-mode: standalone), (display-mode: fullscreen) {
  body { padding-top: env(safe-area-inset-top); }
}

/* ===== 배경 별 효과 ===== */
.stars,
.twinkling {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.stars {
  background: radial-gradient(2px 2px at 20px 30px, var(--star), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 50px 160px, var(--star), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(2px 2px at 130px 80px, var(--star), transparent);
  background-size: 200px 200px;
  opacity: 0.7;
}

.twinkling {
  background: transparent;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== 레이아웃 ===== */
.header,
.main,
.footer {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

/* 모바일 터치 영역 · 탭 하이라이트 제거 */
@media (hover: none) {
  .btn-search, .btn-chart, .gender-option, .btn-am-pm, .btn-time-unknown {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }
}

/* ===== 헤더 ===== */
.header {
  position: relative;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  text-align: center;
}

/* 상단 한 줄: 시리즈 뱃지 + 다국어 버튼 (항상 노출) */
.header-top {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
  visibility: visible;
  opacity: 1;
}
.header-top .series-badge {
  flex-shrink: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 다국어 선택 KOR/ENG/JPN/VIE — 절대 숨기지 않음 */
.lang-selector {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
}
.lang-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  font-family: var(--font-sans);
  border: 1px solid rgba(255, 105, 180, 0.4);
  border-radius: 8px;
  background: rgba(30, 20, 20, 0.8);
  color: var(--text);
  opacity: 0.9;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.lang-btn:hover {
  opacity: 1;
  border-color: rgba(255, 105, 180, 0.7);
  background: rgba(50, 35, 35, 0.9);
}
.lang-btn.active {
  color: #ff69b4;
  font-weight: 700;
  opacity: 1;
  border-color: #ff69b4;
  background: rgba(255, 105, 180, 0.12);
}
.lang-btn:active {
  opacity: 1;
}

@media (max-width: 480px) {
  .header {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
  }
  .lang-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }
}

/* 메인 타이틀: PC는 한 줄, 모바일은 다국어 길이 대비 줄바꿈 허용 (외국어 짤림 방지) */
.title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: clamp(32px, 9vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  text-align: center;
  max-width: 100%;
  min-width: 0;
}
.title-text {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
@media (min-width: 769px) {
  .title {
    white-space: nowrap;
    overflow: hidden;
  }
  .title-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 480px) {
  .title {
    font-size: clamp(32px, 9vw, 2.8rem);
  }
}

/* 서브 타이틀: 메인보다 확실히 작게 (위계 조정) */
.subtitle {
  font-size: 16px;
  font-weight: 500;
  color: #ff6b9d;
  text-shadow:
    0 0 4px rgba(255, 20, 147, 0.6),
    0 0 12px rgba(255, 20, 147, 0.35);
}
@media (min-width: 481px) {
  .subtitle {
    font-size: 18px;
  }
}

.api-status {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.35rem;
  opacity: 0.9;
}

.btn-test-gemini {
  margin-top: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.btn-test-gemini:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.help-quota {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.help-quota code {
  font-size: 0.7em;
  padding: 0.1rem 0.3rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
.help-quota a {
  color: var(--accent);
}

/* ===== 24시간 VIP 프리패스 배너 ===== */
.vip-pass-banner {
  text-align: center;
  padding: 0.6rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 0 14px var(--accent-glow);
}
.vip-pass-banner.hidden {
  display: none;
}

/* ===== 검색 섹션 ===== */
.search-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

/* 라벨: 가독성 (15px, 밝은 회색). 다국어 시 길어져도 줄바꿈 */
.search-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* iOS 줌 방지: input/select 무조건 16px */
.birthdate-input,
input.birthdate-input,
select.birthdate-input,
#person-name,
#city-name,
#birthdate,
#birth-timezone,
#birthhour,
#birthminute {
  font-size: 16px !important;
}
.birthdate-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  pointer-events: auto;
  min-height: 44px;
}

input[type="date"].birthdate-input {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.birthdate-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-search {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--bg-deep);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  text-align: center;
}

.btn-search:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-search:active {
  transform: translateY(0);
}

/* ===== 결과 섹션 ===== */
.result-section {
  margin-bottom: 2.5rem;
  overflow: visible; /* iOS Safari: 페이월 블러가 잘리지 않도록 */
}

.result-section.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.vip-24h-info {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0 0 0.6rem 0;
  padding: 0.4rem 0.75rem;
  line-height: 1.45;
  opacity: 0.92;
}
.vip-review-notice {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0 0 0.75rem 0;
  padding: 0.5rem 0.75rem;
  background: rgba(201, 75, 75, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.vip-review-notice.hidden {
  display: none !important;
}

.result-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.result-person-name {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
  display: none;
}
.result-sign {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.result-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.result-dates {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.result-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1rem;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  overflow: visible; /* 리딩 결과 잘림 방지 — 결제 후 전체가 보이도록 */
}

/* 도입~3번: 블러 없이 선명, 글자 시원하게 */
.result-desc-free {
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text);
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

/* 뼈 때리는 핵심 팩폭 문장 강조 (AI가 span으로 감싼 부분) */
.highlight-pink {
  color: #d81b60;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(216, 27, 96, 0.4);
}

/* 마크다운 **텍스트** → 핑크 볼드 변환용 */
.pink-bold {
  color: #FF69B4 !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

/* 1번 무료 / 2~5번 유료 결제 구조 */
.free-section {
  margin-bottom: 20px;
}

.teaser-title {
  background: linear-gradient(135deg, #ffe6f0, #fff0f5);
  padding: 20px;
  border-radius: 12px;
  border: 2px dashed #FF69B4;
  margin: 20px 0;
  text-align: center;
}

.payment-cta {
  text-align: center;
  margin: 30px 0;
}

.payment-btn {
  background: linear-gradient(135deg, #FF69B4, #FF1493);
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
  transition: transform 0.2s;
}

.payment-btn:hover {
  transform: scale(1.05);
}

.payment-btn-small {
  background: #FF69B4;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.blur-section {
  margin-top: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
}

.blur-overlay {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 12px;
}

/* 무료 콘텐츠 영역 */
.free-content {
  padding: 20px;
  margin-bottom: 20px;
}

/* 제목 노란색 */
.section-title {
  color: #FFD700 !important;
  font-weight: 700;
  font-size: 22px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  margin-bottom: 15px;
}

/* 핑크 볼드 */
.pink-bold {
  color: #FF69B4 !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.locked-title {
  margin: 1.5rem 0 1rem;
}

.locked-title h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.lock-badge {
  font-size: 0.875rem;
  color: var(--text-soft);
}

.lock-icon {
  margin-right: 0.25rem;
}

/* 티저 문구 섹션 */
.teaser-text-section {
  text-align: center;
  padding: 30px 20px 10px 20px;
  margin-top: 20px;
}

.teaser-main {
  color: #FF69B4;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

.teaser-sub {
  color: #aaa;
  font-size: 15px;
}

/* 결제 버튼 섹션 */
.payment-section {
  display: flex;
  justify-content: center;
  padding: 20px;
  margin-bottom: 20px;
}

.payment-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF69B4 0%, #FF1493 50%, #FF69B4 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  color: white;
  padding: 20px 50px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(255, 105, 180, 0.5);
  min-width: 280px;
}

.payment-button:hover {
  transform: translateY(-5px) scale(1.02);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.payment-icon {
  font-size: 28px;
}

.payment-text {
  font-size: 18px;
  font-weight: 700;
}

.price-tag {
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
}

/* 살짝 블러 (25% - 궁금하게, 읽을 수는 없게) */
.blur-preview {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: visible; /* 결제 후 전체 리딩이 잘리지 않도록 */
}

.blur-content-light {
  filter: blur(4px);
  -webkit-filter: blur(4px);
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
  padding: 30px;
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.8) 0%, rgba(40, 20, 50, 0.9) 100%);
}

/* 블러 속 핑크/노란 글씨 살짝 비침 */
.blur-content-light strong.pink-bold {
  color: #FF69B4 !important;
  text-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
}

.blur-content-light h2.section-title {
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* 다운로드 섹션 */
.download-section {
  text-align: center;
  margin-top: 30px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.1) 0%, rgba(255, 20, 147, 0.05) 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 105, 180, 0.2);
}

.download-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.download-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.download-btn.mobile {
  background: linear-gradient(90deg, #FF69B4, #9370DB);
  color: white;
}

.download-btn.pc {
  background: linear-gradient(90deg, #FFD700, #FFA500);
  color: #1a1a2e;
}

.download-btn.btn-save-destiny {
  background: linear-gradient(135deg, #c94b6a 0%, #8b3a5c 100%);
  color: #fff;
  font-size: 1rem;
  padding: 14px 28px;
  box-shadow: 0 4px 14px rgba(201, 75, 106, 0.35);
}

.download-btn.btn-save-destiny:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(201, 75, 106, 0.45);
}

.download-notice {
  color: #888;
  font-size: 13px;
  margin-top: 15px;
}

/* 결제 성공 페이지 (success.html) */
.payment-success-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 20px;
}

.payment-success-box {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.15) 0%, rgba(255, 20, 147, 0.1) 100%);
  border: 2px solid #FF69B4;
  border-radius: 30px;
  padding: 50px 40px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
}

.payment-success-box .success-icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.payment-success-box .success-title {
  color: #FF69B4;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.payment-success-box .success-message {
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.payment-success-box .success-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF69B4 0%, #FF1493 50%, #FF69B4 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  color: white;
  padding: 20px 50px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 40px rgba(255, 105, 180, 0.5);
}

.payment-success-box .success-button:hover {
  transform: translateY(-5px) scale(1.05);
}

.payment-success-box .button-icon { font-size: 28px; }
.payment-success-box .button-text { font-size: 18px; }

.paywall-cta {
  position: relative;
  margin-top: 1rem;
  flex-shrink: 0;
}

.btn-premium {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.25rem;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #0f0a0a;
  background: linear-gradient(135deg, #d4af37 0%, #c9a227 50%, #b8960c 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  line-height: 1.4;
  z-index: 2;
  position: relative;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.5);
}

.btn-premium:active {
  transform: translateY(0);
}

.btn-premium s {
  opacity: 0.85;
}

.result-desc-blurred {
  -webkit-filter: blur(8px);
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
  min-height: 200px;
}

/* 미결제 시 인라인 결제 버튼(블러 위) 반드시 노출 — z-index 최상단으로 클릭 보장 */
#result-desc.result-desc--has-paywall:not(.result-desc--unlocked) .paywall-wrapper .paywall-gate,
#result-desc.result-desc--has-paywall:not(.result-desc--unlocked) .paywall-cta-inline {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 999 !important;
  position: relative;
}
#result-desc.result-desc--has-paywall:not(.result-desc--unlocked) .paywall-wrapper .paywall-gate .paywall-simple-box {
  z-index: 1000 !important;
  position: relative;
}

/* 결제창 2중 노출 방지: 페이월이 있으면 fallback·모달 강제 숨김 (모바일·iOS 포함) */
#result-section:has(#result-desc.result-desc--has-paywall) #paywall-cta-fallback,
#result-section.result-section--paywall-active #paywall-cta-fallback {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
#result-section:has(#result-desc.result-desc--has-paywall) #paywall-modal,
#result-section.result-section--paywall-active #paywall-modal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* iOS Safari: :has() 미지원/지연 시 대비 — 클래스 기반 강제 숨김 */
#paywall-cta-fallback[aria-hidden="true"],
#paywall-modal[aria-hidden="true"] {
  display: none !important;
}

#result-desc .paywall-blur {
  -webkit-filter: blur(12px);
  filter: blur(12px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* 3번 항목부터 끝까지 감싸는 컨테이너 — 미결제 시 강력 차단 (iOS Safari 스태킹 컨텍스트·overflow 대응) */
.paywall-wrapper {
  position: relative;
  isolation: isolate;
  margin-top: 0.5rem;
  z-index: 10;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  overflow: visible;
}
/* 결제창 길막: 3번 바로 위·블러 영역 상단에 고정 (iOS sticky/z-index 안정화) — 반드시 클릭 가능 */
.paywall-wrapper .paywall-gate {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 500;
  flex-shrink: 0;
  pointer-events: auto !important;
  background: linear-gradient(180deg, var(--bg, #0f0a0a) 0%, var(--bg, #0f0a0a) 70%, transparent 100%);
  padding-bottom: 0.5rem;
  margin-bottom: -0.5rem;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  display: block;
  visibility: visible;
}
.paywall-wrapper .paywall-gate *,
.paywall-wrapper .paywall-gate .paywall-simple-box,
.paywall-wrapper .paywall-gate button,
.paywall-wrapper .paywall-gate .btn-premium {
  pointer-events: auto !important;
  cursor: pointer;
}
.paywall-wrapper .paywall-gate button,
.paywall-wrapper .paywall-gate .btn-premium {
  cursor: pointer !important;
}
/* 3번 제목+본문 영역: 읽기·복사 불가 — iOS Safari blur 호환 (-webkit-filter) */
.paywall-wrapper .paywall-blurred-inner {
  -webkit-filter: blur(14px);
  filter: blur(14px);
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  min-height: 140px;
  position: relative;
  z-index: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.result-desc--unlocked .paywall-wrapper .paywall-blurred-inner {
  -webkit-filter: none !important;
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

/* 미결제 시 3번 이후 영역: 뿌연 블러 + 반투명 오버레이 (iOS -webkit- 호환) */
.paywall-content.paywall-blur.paywall-placeholder {
  position: relative;
  min-height: 120px;
  background: linear-gradient(180deg, rgba(18, 12, 12, 0.4) 0%, rgba(18, 12, 12, 0.85) 100%);
  -webkit-filter: blur(12px);
  filter: blur(12px);
}
.paywall-content.paywall-blur.paywall-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 12, 0.5);
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* 3번 제목: 블러 영역 안에서 표시 (미결제 시 비가독) */
.paywall-section3-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.75rem 0;
  line-height: 1.4;
}

/* 3번(금전) 직전 인라인 결제창 + 3번부터 블러 — 결제 버튼을 블러 위 최상단에 배치 */
.paywall-zone {
  position: relative;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  isolation: isolate;
  z-index: 10;
}

.paywall-zone .paywall-content.paywall-blur {
  position: relative;
  z-index: 1;
}

/* 결제 버튼 영역 컨테이너: 블러 위로 확실히 노출 (position + z-index 50 이상) */
.paywall-simple-box {
  background: rgba(18, 12, 12, 0.98);
  border: 2px solid rgba(212, 175, 55, 0.6);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  max-width: 420px;
  margin: 1rem auto 1rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 50;
}

.paywall-simple-box--always-visible {
  position: relative;
  z-index: 600;
}

.paywall-simple-copy {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.paywall-simple-price {
  margin: 0 0 1.25rem 0;
  font-size: 1rem;
  line-height: 1.5;
}
.paywall-price-was:empty {
  display: none;
}

.paywall-cta-inline .paywall-cta-pulse,
.paywall-simple-box .paywall-cta-pulse {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  min-height: 56px !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
}

/* 결제 버튼: 미결제 시 무조건 눈에 띄게 (z-index·대비·크기) */
.paywall-btn-primary {
  position: relative !important;
  z-index: 100 !important;
  background: linear-gradient(135deg, #d4af37 0%, #c9a227 50%, #b8960c 100%) !important;
  color: #0f0a0a !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  padding: 1rem 1.5rem !important;
  min-height: 58px !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2) !important;
}
.paywall-btn-primary:hover {
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.65) !important;
  filter: brightness(1.08);
}

.paywall-content.paywall-blur {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text);
  margin-top: 0;
  min-height: 100px;
}

.paywall-content {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text);
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.result-desc--unlocked .paywall-content {
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
  pointer-events: auto;
  user-select: auto;
  -webkit-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
}
.result-desc--unlocked .paywall-zone,
.result-desc--unlocked .paywall-zone * {
  -webkit-filter: none !important;
  filter: none !important;
}

.result-desc--unlocked .paywall-zone {
  max-height: none;
  overflow: visible;
}

/* JS로 강제 주입되는 결제 버튼 컨테이너 — DOM에 반드시 노출 */
#payment-widget-container {
  display: block !important;
  visibility: visible !important;
  margin: 1rem 0;
  text-align: center;
  position: relative;
  z-index: 500;
}
#payment-widget-container .pay-btn,
#payment-widget-container #paywall-inline-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.paywall-cta-inline {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  pointer-events: auto;
  position: relative;
  z-index: 50;
  order: -1;
  isolation: isolate;
}

.paywall-cta-inline button,
.paywall-cta-inline .btn-premium {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.result-desc--unlocked .paywall-cta-inline,
.result-desc--unlocked .paywall-wrapper .paywall-gate {
  display: none !important;
}

.btn-premium-inline {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  padding: 1.1rem 1.5rem;
  min-height: 56px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
}

@media (max-width: 768px) {
  .btn-premium {
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
    min-height: 48px;
  }
}

.paywall-cta.paywall-unlocked .btn-premium {
  display: none !important;
}

.paywall-cta.paywall-unlocked .result-desc-blurred {
  filter: none;
  pointer-events: auto;
  user-select: auto;
  opacity: 1;
}

/* 긴 본문: 줄바꿈 유지, 높이 제한 없이 페이지 전체 스크롤 (일본어 등 띄어쓰기 없는 언어 대비) */
.result-desc--long {
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
  padding-right: 0.25rem;
}

/* 결과 실시간 번역 로딩 — 리얼 모래시계 (위→아래 흐름 + 180° 회전 루프, 보라/금 테마) */
.result-desc-translating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 2rem 1rem;
}
.hourglass-real {
  --hg-purple: #8B5CF6;
  --hg-purple-dark: #6D28D9;
  --hg-gold: #D4AF37;
  --hg-gold-soft: rgba(212, 175, 55, 0.5);
  margin: 0 auto 1.25rem;
  width: 56px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hourglass-real-rotate {
  width: 100%;
  height: 100%;
  animation: hourglass-rotate-loop 5.2s ease-in-out infinite;
}
.hourglass-real-frame {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 위쪽 삼각형(불룩) — 테두리만 */
.hourglass-real-top {
  width: 48px;
  height: 28px;
  position: relative;
  clip-path: polygon(15% 0%, 85% 0%, 55% 100%, 45% 100%);
  border: 2px solid var(--hg-gold-soft);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  background: rgba(15, 10, 25, 0.6);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
  overflow: hidden;
}
.hourglass-sand-top {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, var(--hg-gold) 0%, var(--hg-purple) 50%, var(--hg-purple-dark) 100%);
  box-shadow: 0 0 10px var(--hg-gold-soft);
  transform-origin: bottom center;
  animation: hourglass-sand-drain 5.2s linear infinite;
}
/* 목 (모래가 지나가는 부분) */
.hourglass-real-neck {
  width: 10px;
  height: 12px;
  background: rgba(15, 10, 25, 0.9);
  border-left: 2px solid var(--hg-gold-soft);
  border-right: 2px solid var(--hg-gold-soft);
  position: relative;
  overflow: hidden;
}
.hourglass-real-stream {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--hg-gold), var(--hg-purple));
  border-radius: 2px;
  animation: hourglass-stream 5.2s linear infinite;
}
@keyframes hourglass-stream {
  0% { opacity: 1; transform: translateX(-50%) scaleY(1); }
  22% { opacity: 0.95; transform: translateX(-50%) scaleY(0.08); }
  24% { opacity: 0; }
  24.01%, 50% { opacity: 0; transform: translateX(-50%) scaleY(1); }
  52% { opacity: 1; transform: translateX(-50%) scaleY(1); }
  74% { opacity: 0.95; transform: translateX(-50%) scaleY(0.08); }
  76% { opacity: 0; }
  76.01%, 100% { opacity: 0; transform: translateX(-50%) scaleY(1); }
}
/* 아래쪽 삼각형(불룩) */
.hourglass-real-bottom {
  width: 48px;
  height: 28px;
  position: relative;
  clip-path: polygon(45% 0%, 55% 0%, 85% 100%, 15% 100%);
  border: 2px solid var(--hg-gold-soft);
  border-top: none;
  border-radius: 0 0 2px 2px;
  background: rgba(15, 10, 25, 0.6);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
  overflow: hidden;
}
.hourglass-sand-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(0deg, var(--hg-purple-dark) 0%, var(--hg-purple) 50%, var(--hg-gold) 100%);
  box-shadow: 0 0 10px var(--hg-gold-soft);
  animation: hourglass-sand-fill 5.2s linear infinite;
}
/* 2.5초 흐름 → 180° 회전 → 2.5초 흐름 → 180° 회전(360°) (루프 5.2초, 끊김 없음) */
@keyframes hourglass-rotate-loop {
  0% { transform: rotate(0deg); }
  46% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  96% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}
/* 윗모래: 0~48% 비움, 50%에서 리셋(가득), 98% 비움, 100% 리셋 */
@keyframes hourglass-sand-drain {
  0%, 50% { transform: scaleY(1); opacity: 1; }
  48%, 98% { transform: scaleY(0); opacity: 0.98; }
  100% { transform: scaleY(1); opacity: 1; }
}
/* 아랫모래: 0~48% 채움, 50% 리셋(빔), 98% 채움, 100% 리셋 */
@keyframes hourglass-sand-fill {
  0%, 50% { height: 0%; }
  48%, 98% { height: 100%; }
  100% { height: 0%; }
}
.translating-text {
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0;
  text-align: center;
}

.result-desc--long:not(.result-desc--has-paywall) {
  max-height: none;
  overflow: visible;
}

.result-desc--has-paywall {
  max-height: none;
  overflow: visible;
}

.result-keywords {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 400;
}

/* ===== 페이월 모달 (결제 준비 중 안내) ===== */
.paywall-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.paywall-modal.hidden {
  display: none;
}

.paywall-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.paywall-modal-content {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.paywall-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
}

.paywall-modal-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  text-align: center;
}

.btn-premium-in-modal {
  max-width: none;
  margin: 0;
}

/* ===== 페이월 마케팅 (모달) ===== */
.paywall-marketing {
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.paywall-headline {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-align: center;
}

.paywall-price-section {
  margin-bottom: 1.25rem;
}

.paywall-price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.paywall-price-list li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.paywall-our-price {
  font-size: 1.05rem;
  margin-top: 0.35rem;
}

.paywall-disclaimer {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(201, 168, 168, 0.65);
  line-height: 1.4;
}

.paywall-spec-section {
  margin-bottom: 1.25rem;
}

.paywall-spec {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 0.6rem 0;
}

.paywall-spec:last-child {
  margin-bottom: 0;
}

.paywall-review {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-soft);
  font-style: italic;
  margin: 0 0 1.25rem 0;
  padding: 0.6rem 0;
}

@keyframes paywall-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(201, 75, 75, 0.5); }
  50% { transform: scale(1.02); box-shadow: 0 6px 28px rgba(201, 75, 75, 0.65); }
}

.paywall-cta-pulse {
  background: linear-gradient(135deg, #c94b4b 0%, #a83838 50%, #8b2c2c 100%) !important;
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 1rem 1.25rem !important;
  border: none !important;
  animation: paywall-pulse 1.8s ease-in-out infinite;
}

.paywall-cta-pulse:hover {
  animation: paywall-pulse 1.2s ease-in-out infinite;
}

/* ===== 다른 시리즈 광고판 ===== */
.series-promo {
  padding-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-align: center;
}

.series-promo-desc {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}

.series-promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 24rem;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .series-promo-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}

@media (min-width: 640px) {
  .series-promo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.series-promo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.series-promo-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.series-promo-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.series-promo-title {
  font-size: 1rem;
  font-weight: 500;
}

.series-promo-arrow {
  margin-top: auto;
  font-size: 1.1rem;
  color: var(--text-soft);
  padding-top: 0.5rem;
}

.series-promo-card-more .series-promo-title {
  color: var(--text-soft);
}

/* ===== 푸터 (전체 내용 항상 노출) ===== */
.footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(15, 10, 10, 0.6);
  display: block !important;
  visibility: visible !important;
  overflow: visible !important;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: visible !important;
}

.footer-inner .footer-line,
.footer-inner .footer-legal-links,
.footer-inner .footer-promo-links {
  display: block !important;
  visibility: visible !important;
  overflow: visible !important;
}

.footer-inner .footer-legal-links {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* PC: 이용약관/개인정보 먼저, 그 다음 상점/블로그 */
.footer-legal-links { order: 0; }
.footer-promo-links { order: 1; }
.footer-inner .footer-line:not(.footer-promo-links):not(.footer-legal-links) { order: 1; }

.footer-line {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(201, 168, 168, 0.75);
  margin: 0 0 0.2rem 0;
}

@media (max-width: 480px) {
  .footer {
    padding: 1.25rem 1rem 1.5rem;
    display: block !important;
    visibility: visible !important;
  }
  .footer-inner {
    padding: 0 0.25rem;
  }
  .footer-inner .footer-line,
  .footer-inner .footer-legal-links,
  .footer-inner .footer-promo-links {
    display: block !important;
    visibility: visible !important;
  }
  .footer-inner .footer-legal-links { display: flex !important; }
  .footer-line {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
    padding: 0 0.15rem;
  }
  .footer .legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }
}

.footer-links {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.footer-link {
  font-size: 0.75rem;
  color: rgba(201, 168, 168, 0.85);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-link-sep {
  margin: 0 0.5rem;
  color: rgba(201, 168, 168, 0.5);
  font-size: 0.7rem;
}

/* 푸터 상단 링크 구분자 */
.footer-sep {
  margin: 0 0.5rem;
  color: rgba(201, 168, 168, 0.6);
}

/* 모바일 푸터: 상점/블로그 가장 위 고정, 그 아래 이용약관/개인정보 + 노란색 강조 */
@media (max-width: 768px) {
  .footer-inner .footer-promo-links { order: -1 !important; margin-bottom: 0.5rem; }
  .footer-inner .footer-legal-links {
    order: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
  }
  .footer .footer-highlight {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFD700;
    text-decoration: none;
  }
  .footer .footer-highlight:hover,
  .footer .footer-highlight:focus {
    color: #FFE44D;
    text-decoration: underline;
  }
  .footer .footer-promo-links .footer-sep {
    color: rgba(255, 215, 0, 0.6);
  }
  /* 이용약관/개인정보는 기본 푸터 글씨 유지 */
  .footer .footer-legal-links,
  .footer .footer-legal-links a {
    font-size: 0.75rem;
    font-weight: normal;
    color: rgba(201, 168, 168, 0.75);
  }
  .footer .footer-legal-links .footer-sep {
    color: rgba(201, 168, 168, 0.6);
  }
}

/* 시리즈 배지 */
.series-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

/* 성별 선택 (HTML 유지, CSS만) */
.gender-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.gender-option {
  flex: 1;
  cursor: pointer;
  position: relative;
  min-height: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gender-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.gender-option-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 48px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.gender-option:hover .gender-option-text {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text);
}
.gender-option input:checked + .gender-option-text {
  background: linear-gradient(135deg, #8b1a4a, #c2185b);
  border: 1px solid #ff69b4;
  color: #fff;
  font-weight: 500;
}

/* 출생 시간: 오전·오후·시·분·모름 한 줄 수평 배치 */
.time-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: nowrap;
}
.time-am-pm {
  display: flex;
  gap: 0.2rem;
  flex-shrink: 0;
}
.btn-am-pm {
  min-width: 40px;
  min-height: 44px;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(200, 150, 150, 0.2);
  box-sizing: border-box;
}
.btn-am-pm:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-am-pm.active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-glow);
  font-weight: 500;
}
.time-input {
  width: 2.8rem;
  min-width: 2.8rem;
  min-height: 44px;
  padding: 0.4rem 0.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.time-sep {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
  flex-shrink: 0;
  line-height: 44px;
}
.btn-time-unknown {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  box-sizing: border-box;
}
.btn-time-unknown:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-time-unknown.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.btn-chart {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-chart:hover {
  background: var(--accent-glow);
  color: var(--text);
}

/* 네이탈 차트 섹션 */
.chart-section {
  margin-bottom: 2.5rem;
}
.chart-section.hidden {
  display: none;
}
.chart-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}
.chart-waiting-msg {
  display: block;
  text-align: center;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 1.25rem 0.75rem;
}
.chart-waiting-msg:not(.hidden) {
  display: block !important;
  visibility: visible !important;
}
.chart-waiting-msg.hidden {
  display: none !important;
}

/* 로딩 오버레이 (번역 시 전체 화면) */
.chart-waiting-msg.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-deep);
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 수정구 자리: 로딩 슬라이드 이미지 */
.loading-slide-wrap {
  width: 100%;
  max-width: min(90vw, 720px);
  margin: 0 auto 1rem;
  flex-shrink: 0;
}
.loading-slide-img {
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: rgba(0, 0, 0, 0.2);
}
.loading-slide-wrap:not([data-loaded]) .loading-slide-img,
.loading-slide-img[src=""],
.loading-slide-img:not([src]) {
  min-height: 200px;
}

/* 로딩: 진행률 바만 표시 (크리스탈/모래시계 제거) */
.loading-visual-wrap {
  display: none;
}
.crystal-wrap,
.chart-waiting-msg.mode-reading .crystal-wrap,
.chart-waiting-msg.mode-translation .crystal-wrap {
  display: none !important;
  justify-content: center;
  align-items: center;
}
.hourglass-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.chart-waiting-msg.mode-reading .hourglass-wrap {
  display: none;
}
.chart-waiting-msg.mode-translation .hourglass-wrap {
  display: flex;
}

/* 수정구슬 애니메이션 — 다크 네이비·네온 핑크 (숨김으로 비표시) */
.crystal-ball {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(255, 200, 220, 0.25), rgba(80, 40, 100, 0.6) 40%, rgba(15, 10, 25, 0.9));
  border: 2px solid rgba(201, 75, 120, 0.5);
  box-shadow: 0 0 30px rgba(201, 75, 120, 0.3), inset -10px -10px 30px rgba(0, 0, 0, 0.4);
}
.crystal-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(201, 75, 120, 0.4), transparent 60%);
  animation: crystal-pulse 2.5s ease-in-out infinite;
}
.crystal-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 220, 240, 0.35), transparent 55%);
  animation: crystal-shine 3s ease-in-out infinite;
}
@keyframes crystal-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes crystal-shine {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
/* 수정구슬 완전 제거 (캐시된 예전 HTML 포함, 반드시 마지막 적용) */
.crystal-ball,
.crystal-glow,
.crystal-inner,
.crystal-wrap .crystal-ball,
.crystal-wrap .crystal-glow,
.crystal-wrap .crystal-inner,
.loading-visual-wrap .crystal-ball,
.loading-visual-wrap .crystal-glow,
.loading-visual-wrap .crystal-inner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  clip: rect(0,0,0,0) !important;
}

.loading-hint {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  min-height: 1.5em;
}

/* 로딩: 90초 모래시계 (순수 CSS) — 다크 네이비·핑크/보라 포인트 */
.hourglass-wrap {
  margin-bottom: 0;
}
.hourglass {
  width: 56px;
  height: 100px;
  animation: hourglass-flip 2s ease-in-out 90s forwards;
}
@keyframes hourglass-flip {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(180deg); }
}
.hourglass-frame {
  width: 100%;
  height: 100%;
  position: relative;
  border: 2px solid rgba(120, 80, 140, 0.5);
  border-radius: 4px;
  background: rgba(15, 10, 25, 0.6);
  box-shadow: 0 0 16px rgba(138, 43, 226, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.hourglass-top-bulb {
  position: absolute;
  top: 0;
  left: 4px;
  right: 4px;
  height: 44px;
  clip-path: polygon(10% 0, 90% 0, 55% 100%, 45% 100%);
  background: rgba(20, 15, 35, 0.8);
  overflow: hidden;
}
.hourglass-sand--top {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(201, 75, 120, 0.9) 0%, rgba(140, 60, 160, 0.85) 100%);
  box-shadow: 0 0 12px rgba(201, 75, 120, 0.4);
  transform-origin: bottom center;
  animation: hourglass-sand-drain 90s linear forwards;
}
@keyframes hourglass-sand-drain {
  0% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0.95; }
}
.hourglass-neck {
  position: absolute;
  left: 50%;
  top: 42px;
  transform: translateX(-50%);
  width: 10px;
  height: 16px;
  background: rgba(20, 15, 35, 0.9);
  border: 1px solid rgba(120, 80, 140, 0.4);
  overflow: hidden;
}
.hourglass-stream {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(201, 75, 120, 0.95), rgba(140, 60, 160, 0.9));
  animation: hourglass-stream 90s linear forwards;
}
@keyframes hourglass-stream {
  0% { opacity: 1; transform: translateX(-50%) scaleY(1); }
  99% { opacity: 0.3; transform: translateX(-50%) scaleY(0.02); }
  100% { opacity: 0; }
}
.hourglass-bottom-bulb {
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 44px;
  clip-path: polygon(45% 0, 55% 0, 90% 100%, 10% 100%);
  background: rgba(20, 15, 35, 0.8);
  overflow: hidden;
}
.hourglass-sand--bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(0deg, rgba(140, 60, 160, 0.85) 0%, rgba(201, 75, 120, 0.9) 100%);
  box-shadow: 0 0 12px rgba(201, 75, 120, 0.35);
  animation: hourglass-sand-fill 90s linear forwards;
}
@keyframes hourglass-sand-fill {
  0% { height: 0%; }
  100% { height: 100%; }
}

/* 90초 전에 끝나면: 진행률 100%와 모래시계 완료 상태 동기화 */
.chart-waiting-msg.loading-complete .hourglass-sand--top {
  animation: none;
  transform: scaleY(0);
  opacity: 0.95;
}
.chart-waiting-msg.loading-complete .hourglass-sand--bottom {
  animation: none;
  height: 100%;
}
.chart-waiting-msg.loading-complete .hourglass-stream {
  animation: none;
  opacity: 0;
}

.loading-text {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text-soft);
}

.loading-progress-wrap {
  max-width: 240px;
  margin: 0 auto;
  position: relative;
  height: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.loading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 4px;
  transition: width 0.25s ease-out;
}
.loading-progress-pct {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.loading-progress-pct-suffix {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* 99% 대기 시 찰랑거리는 효과 */
.chart-waiting-msg.loading-at-99 .loading-progress-bar {
  animation: loading-bar-wave 1.2s ease-in-out infinite;
}
.chart-waiting-msg.loading-at-99 .hourglass .hourglass-frame {
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.3);
}
@keyframes loading-bar-wave {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
.natal-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.chart-loading {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}
.natal-chart-svg {
  display: block;
}
.chart-legend {
  font-size: 0.9rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.8;
}
.legend-row { margin: 0.25rem 0; }
.legend-note {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-style: italic;
}
.legend-symbol {
  display: inline-block;
  width: 1.5em;
  text-align: center;
  color: var(--accent);
}

/* 결과 영역 내 결제 칸(폴백) — isPaid false일 때만 노출, 블러 위 최상단 레이어 */
.paywall-cta-fallback {
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  z-index: 60;
  display: block;
  visibility: visible;
  opacity: 1;
  isolation: isolate;
}
.result-section:not(.result-section--unlocked) .paywall-cta-fallback:not(.hidden) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.paywall-cta-fallback.hidden {
  display: none !important;
  visibility: hidden !important;
}
.result-section--unlocked .paywall-cta-fallback {
  display: none !important;
}

/* 리뷰 게시판: 결제 완료 후에만 노출 */
.reviews-section.reviews-section--hidden-when-unpaid {
  display: none !important;
}

/* ===== 결과 다운로드 안내 + 버튼 ===== */
.result-download-notice {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 105, 180, 0.06);
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.result-download-notice-lead {
  margin: 0 0 0.5rem 0;
  color: var(--text, #e8e0f0);
  font-weight: 500;
}
.result-download-notice-body {
  margin: 0 0 1rem 0;
  color: rgba(232, 224, 240, 0.9);
  font-size: 0.875rem;
}
.result-download-notice strong {
  color: var(--accent, #FF69B4);
}
.btn-copy-result-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: rgba(106, 76, 147, 0.9);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-copy-result-text:hover {
  background: rgba(139, 92, 246, 0.9);
}

.result-actions {
  margin-top: 1rem;
  text-align: center;
}
.btn-download-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-download-result:hover:not(:disabled) {
  background: rgba(40, 25, 25, 0.95);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.btn-download-result:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===== 이미지 저장 로딩 오버레이 ===== */
.download-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 10, 10, 0.85);
  backdrop-filter: blur(4px);
}
.download-loading-overlay.hidden {
  display: none !important;
}
.download-loading-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.download-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: download-spin 0.9s linear infinite;
}
.download-loading-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}
@keyframes download-spin {
  to { transform: rotate(360deg); }
}

/* ===== 마라맛 리딩 후기 ===== */
.reviews-section {
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.reviews-section--after-result {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}
/* 페이월 밖·페이지 최하단 배치 (series-promo 다음) — 항상 노출 */
.reviews-section--below-promo {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.reviews-section .section-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-height: 50vh;
  overflow-y: auto;
}
.review-item {
  position: relative;
  padding: 1rem;
  padding-top: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.review-item-body {
  margin: 0;
}
.review-delete-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.review-delete-btn:hover {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.review-delete-btn:focus {
  outline: none;
}
.review-item .review-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.review-item .review-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.review-item .review-time {
  font-size: 0.8rem;
  color: var(--text-soft);
}
.reviews-form-area {
  margin-top: 0.5rem;
}
.reviews-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(22, 12, 28, 0.95) 0%, rgba(14, 8, 18, 0.98) 100%);
  border: 1px solid rgba(120, 80, 140, 0.4);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.reviews-stars {
  display: flex;
  gap: 0.25rem;
}
.reviews-stars .star {
  padding: 0.25rem 0.4rem;
  font-size: 1.5rem;
  color: var(--text-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s, transform 0.1s;
}
.reviews-stars .star:hover,
.reviews-stars .star.selected {
  color: #c9a0e8;
}
.reviews-stars .star:focus {
  outline: none;
}
.reviews-text {
  width: 100%;
  min-height: 5rem;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(120, 80, 140, 0.35);
  border-radius: 10px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reviews-text:focus {
  outline: none;
  border-color: rgba(160, 110, 200, 0.6);
  box-shadow: 0 0 0 2px rgba(160, 110, 200, 0.15);
}
.reviews-text::placeholder {
  color: rgba(180, 160, 200, 0.6);
}
.reviews-submit {
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px;
  min-width: 44px;
}
.reviews-submit:hover:not(:disabled) {
  background: var(--accent-hover);
}
.reviews-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.reviews-submit--primary {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6b3d8a 0%, #4a2870 50%, #2d1b45 100%);
  border: 1px solid rgba(180, 140, 220, 0.4);
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(90, 50, 130, 0.4);
  transition: transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 48px;
  min-width: 120px;
}
.reviews-submit--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(90, 50, 130, 0.5);
  background: linear-gradient(135deg, #7a4a9a 0%, #5a3285 50%, #3d2555 100%);
}
.reviews-submit--primary:active:not(:disabled) {
  transform: translateY(0);
}
.reviews-form,
.reviews-form .reviews-stars .star {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.reviews-stars .star {
  min-height: 44px;
  min-width: 44px;
}
.reviews-lock {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.reviews-lock-vip-benefit {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  opacity: 0.9;
  line-height: 1.45;
}
.reviews-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0;
}

/* 결제 오류 시 복구 안내 */
.payment-error-recovery {
  margin-top: 1.25rem;
  padding: 1rem;
  text-align: center;
  background: rgba(201, 75, 75, 0.08);
  border: 1px solid var(--accent);
  border-radius: 12px;
}
.payment-error-recovery.hidden {
  display: none !important;
}
.payment-error-recovery-msg {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.btn-payment-retry {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-payment-retry:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 12px var(--accent-glow);
}
.btn-payment-retry:focus {
  outline: none;
}

/* ===== 결과 텍스트 전체 노출 (짤림 방지) ===== */
.result-section,
.result-card,
#result-desc,
#result-desc .paywall-wrapper,
#result-desc .paywall-wrapper .paywall-blurred-inner,
#result-desc .blur-preview,
#result-desc .blur-content-light,
#result-desc .free-content,
#result-desc .teaser-text-section,
#result-desc .payment-section,
#result-desc .download-section {
  max-height: none !important;
  overflow: visible !important;
}
.result-section { overflow: visible !important; }
#result-desc { display: block !important; min-height: 0 !important; }
.paywall-wrapper .paywall-blurred-inner { min-height: 0 !important; }

/* ===== 모바일: 미디어쿼리만 사용 (m-mobile / mobile.css 없음) ===== */
@media (max-width: 768px) {
  /* 다국어 번역 시 외국어 텍스트 짤림 방지: 헤더·라벨·본문 줄바꿈 허용 */
  .header {
    overflow: visible;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .header-top {
    flex-wrap: nowrap;
    gap: 0.4rem;
    min-width: 0;
    align-items: center;
  }
  .header-top .series-badge {
    flex-shrink: 0;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
  .header-top .lang-selector {
    flex-shrink: 1;
    gap: 4px;
  }
  .header-top .lang-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 0.25rem 0.35rem;
    font-size: 0.65rem;
  }
  .title,
  .title-text,
  .subtitle,
  .section-title,
  .series-promo-desc,
  .chart-desc,
  .vip-24h-info,
  .result-download-notice-lead,
  .result-download-notice-body {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
  }
  main.main {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-width: 0;
    padding: 0 1rem 2rem;
    box-sizing: border-box;
  }
  .search-section,
  .chart-section,
  .result-section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .chart-section .section-title,
  .chart-section .chart-desc {
    min-width: 0;
  }
  .search-section.hidden {
    display: none !important;
  }
  .birthdate-input,
  .btn-search {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .btn-search {
    min-height: 52px;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .result-card { width: 100%; }
  .header .title-text { font-size: 1.1rem; }
  .series-promo,
  .reviews-section { display: none; }
  .payment-button,
  .btn-premium,
  .paywall-btn-primary,
  .btn-download-result,
  .btn-payment-retry {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  #result-actions {
    display: flex !important;
    visibility: visible !important;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  #result-actions .btn-download-result {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    background: var(--accent, #c94b78);
    color: #fff;
  }
  button,
  input[type="text"],
  input[type="number"] {
    min-height: 44px;
  }
  .gender-option,
  .btn-am-pm,
  .btn-time-unknown {
    min-height: 44px;
    padding: 10px 16px;
    touch-action: manipulation;
  }
  .time-row {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }
  .btn-am-pm {
    min-width: 36px;
    padding: 0.35rem 0.4rem;
    font-size: 0.8rem;
  }
  .time-input {
    min-width: 2.5rem;
    width: 2.5rem;
    min-height: 44px;
    font-size: 0.9rem;
  }
  .btn-time-unknown {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }
  select.birthdate-input {
    min-height: 48px;
    font-size: 1rem;
  }
  .footer {
    padding: 1.25rem 1rem max(1.5rem, env(safe-area-inset-bottom, 0px));
    text-align: center;
    overflow: visible;
    min-height: 0;
    display: block !important;
    visibility: visible !important;
  }
  .footer .footer-inner {
    padding: 0 0.25rem;
    max-width: 100%;
    overflow: visible;
  }
  .footer .footer-inner .footer-line,
  .footer .footer-inner .footer-legal-links,
  .footer .footer-inner .footer-promo-links {
    display: block !important;
    visibility: visible !important;
  }
  .footer .footer-inner .footer-legal-links { display: flex !important; }
  .footer .footer-line,
  .footer .legal-links {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
    font-size: 0.75rem;
    line-height: 1.6;
  }
  body,
  main,
  .main {
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  .result-section,
  .result-card,
  #result-desc,
  #result-desc .paywall-wrapper,
  #result-desc .paywall-wrapper .paywall-blurred-inner,
  #result-desc .blur-preview,
  #result-desc .blur-content-light,
  #result-desc .free-content,
  #result-desc .teaser-text-section,
  #result-desc .payment-section,
  #result-desc .download-notice {
    max-height: none !important;
    overflow: visible !important;
    min-height: 0;
  }
  #result-desc .payment-section {
    position: relative;
    z-index: 50;
    pointer-events: auto !important;
  }
  #result-desc .payment-button {
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 51;
    pointer-events: auto !important;
  }
  .result-card,
  #result-desc {
    overflow: visible !important;
  }
  .chart-waiting-msg.loading-overlay {
    padding: 1rem;
  }
  .loading-slide-wrap {
    max-width: 95vw;
  }
}
