/*
Theme Name: 사주봇
Theme URI: https://example.com/saju-bot
Author: 사주공장
Author URI: https://example.com
Description: 사주봇 워드프레스 테마. 무료 만세력·택일·토정비결·달마일장금·오늘의 운세와 블로그·FAQ·문의 페이지를 제공합니다.
Version: 1.12.9
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: saju-bot
*/
:root {
  --ink: #2a1f14;
  --ink-soft: #5c4a38;
  --paper: #0b1426;
  --paper-deep: #060d18;
  --cream: #fdf7e8;
  --white: #fdf7e8;
  --brown: #8b3d12;
  --brown-deep: #5c2410;
  --tan: #d2b48c;
  --gold: #e8c872;
  --gold-deep: #c5a059;
  --gold-line: #c5a059;
  --night: #0b1426;
  --night-2: #060d18;
  --crimson: #8b1e1e;
  --crimson-badge: #a52a2a;
  --line: rgba(197, 160, 89, 0.35);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max: 1160px;
  --font: "Noto Sans KR", "Noto Sans SC", "Noto Sans JP", sans-serif;
  --serif: "Gowun Batang", "Noto Serif KR", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.saju-bot-body {
  margin: 0;
  font-family: var(--font);
  color: #e8dfc8;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(197, 160, 89, 0.12), transparent),
    radial-gradient(circle at 20% 80%, rgba(30, 60, 120, 0.25), transparent 40%),
    linear-gradient(180deg, #060d18 0%, #0b1426 40%, #0f1a30 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brown);
  text-decoration: none;
}

a:hover {
  color: var(--brown-deep);
}

.sb-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.sb-section {
  position: relative;
  padding: 96px 0;
  color: #e8dfc8;
}

.sb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-deep);
}

.sb-kicker::before,
.sb-kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

.sb-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.28;
  font-weight: 700;
  color: #fdf7e8;
}

.sb-lead {
  margin: 0 auto 40px;
  max-width: 640px;
  color: rgba(232, 223, 200, 0.78);
}

.sb-center {
  text-align: center;
}

/* Header */
.sb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 20, 38, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.home .sb-header,
body.front-page .sb-header {
  background: transparent;
  border-bottom-color: transparent;
}

body.home .sb-header .sb-nav a,
body.home .sb-header .sb-nav .menu a,
body.home .sb-header .sb-menu-toggle,
body.front-page .sb-header .sb-nav a,
body.front-page .sb-header .sb-nav .menu a,
body.front-page .sb-header .sb-menu-toggle {
  color: #fdf7e8;
}

body.home .sb-header.is-scrolled,
body.front-page .sb-header.is-scrolled {
  background: rgba(9, 6, 10, 0.88);
  border-bottom-color: rgba(224, 192, 112, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.sb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 12px 16px;
  flex-wrap: wrap;
  position: relative;
}

/* 로고 + 언어 선택 묶음 (모바일에서는 세로로 쌓임) */
.sb-header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}

.sb-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.sb-lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(11, 20, 38, 0.92);
  border: 1px solid rgba(197, 160, 89, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 248, 224, 0.08);
}

body.home .sb-lang-switch,
body.front-page .sb-lang-switch {
  background: rgba(6, 13, 24, 0.75);
  border-color: rgba(232, 200, 114, 0.4);
  backdrop-filter: blur(12px);
}

.sb-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 10px;
  text-align: center;
  color: rgba(232, 223, 200, 0.85);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sb-lang-btn:hover {
  transform: translateY(-2px);
  background: rgba(232, 200, 114, 0.12);
  color: #fff8e0;
}

.sb-lang-btn.is-active {
  background: linear-gradient(180deg, #f0d78a, #c49a3c);
  color: #2b1608;
  box-shadow: 0 0 16px rgba(232, 200, 114, 0.45);
}

.sb-flag-svg {
  display: block;
  width: 28px;
  height: 19px;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.18);
}

body.home .sb-lang-btn,
body.front-page .sb-lang-btn {
  color: rgba(246, 234, 210, 0.9);
}

body.home .sb-lang-btn.is-active,
body.front-page .sb-lang-btn.is-active {
  background: linear-gradient(180deg, #f0d78a, #c49a3c);
  color: #2b1608;
}

.sb-section-tint {
  background: linear-gradient(180deg, rgba(15, 26, 48, 0.75), rgba(11, 20, 38, 0.35));
}

.sb-section-form {
  background: var(--paper-deep);
}

.sb-section-tight {
  padding-top: 0;
}

.sb-section-cta {
  margin-top: 32px;
}

.sb-form-wrap {
  max-width: 760px;
}

.sb-narrow {
  max-width: 800px;
}

.sb-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-top: 6px;
}

.sb-kicker-gold {
  color: #e0c070;
}

/* 언어별 폰트 분기 제거: body 공통 스택을 써서 언어마다 달라 보이지 않도록 */

.sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  flex-shrink: 0;
}

.sb-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
  /* 로고 영역이 헤더 왼쪽 끝과 자연스럽게 이어지도록 */
  border-radius: 6px;
}

.sb-logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 192, 112, 0.08);
}

body.home .sb-logo-text,
body.front-page .sb-logo-text {
  color: #f6ead2;
}

.sb-logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #fdf7e8;
  line-height: 1.1;
}

.sb-logo-text small {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}

.sb-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.sb-nav a,
.sb-nav .menu a {
  color: #e8dfc8;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sb-nav > ul,
.sb-nav ul.menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.sb-nav .menu-item-has-children {
  position: relative;
}

.sb-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.sb-nav .menu-item-has-children.is-open > a::after,
.sb-nav .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* 무료 서비스 드롭다운 */
.sb-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 0);
  min-width: 188px;
  margin: 0;
  /* 상단 패딩으로 부모·서브메뉴 사이 빈틈을 메워 마우스 이동이 끊기지 않게 합니다. */
  padding: 12px 0 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s;
  z-index: 120;
}

.sb-nav .sub-menu::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a120c;
  border: 1px solid rgba(224, 192, 112, 0.28);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  z-index: -1;
}

.sb-nav .sub-menu li {
  position: relative;
  z-index: 1;
}

.sb-nav .sub-menu a {
  display: block;
  padding: 10px 16px;
  color: #f3e7cf !important;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: auto;
}

.sb-nav .sub-menu a:hover,
.sb-nav .sub-menu .current-menu-item > a {
  color: var(--gold) !important;
  background: rgba(232, 200, 114, 0.1);
}

.sb-nav .menu-item-has-children:hover > .sub-menu,
.sb-nav .menu-item-has-children:focus-within > .sub-menu,
.sb-nav .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sb-nav .current-menu-item > a,
.sb-nav a:hover {
  color: var(--gold);
}

.sb-header-cta {
  display: none !important;
}

/* 햄버거 메뉴 안 ‘사주 풀이 신청’은 버튼이 아닌 메뉴 글자로 (모바일에서만) */
.sb-nav-cta-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sb-nav-cta {
  /* 다른 메뉴 항목과 동일하게 글자만 */
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: inherit;
  font-weight: inherit;
}

.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--brown);
  color: #fff !important;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sb-btn:hover {
  background: var(--brown-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(92, 36, 16, 0.28);
}

.sb-btn-gold {
  background: linear-gradient(180deg, #f0d78a, #c49a3c);
  color: #2b1608 !important;
  box-shadow: 0 10px 24px rgba(196, 154, 60, 0.35);
}

.sb-btn-line {
  background: transparent;
  color: var(--gold) !important;
  border: 1px solid rgba(224, 192, 112, 0.55);
}

body:not(.home):not(.front-page) .sb-btn-line {
  color: var(--brown) !important;
  border-color: var(--brown);
}

.sb-menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
  /* 모든 페이지에서 어두운 헤더 위에 밝은 색으로 보이게 */
  color: #fdf7e8;
  line-height: 1;
  padding: 4px 2px;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Hero */
.sb-hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  padding: 120px 0 110px;
  background:
    radial-gradient(ellipse at 70% 25%, rgba(197, 160, 89, 0.2), transparent 45%),
    radial-gradient(ellipse at 15% 75%, rgba(20, 50, 100, 0.4), transparent 50%),
    linear-gradient(165deg, #060d18 0%, #0b1426 55%, #0f1a30 100%);
  color: #f6ead2;
}

.sb-stars,
.sb-hero-mist,
.sb-hero-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sb-stars {
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff6c8, transparent),
    radial-gradient(1.5px 1.5px at 28% 42%, #ffe9a8, transparent),
    radial-gradient(2.5px 2.5px at 48% 14%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 66% 36%, #ffe7a0, transparent),
    radial-gradient(2px 2px at 82% 22%, #fff4c4, transparent),
    radial-gradient(1.5px 1.5px at 18% 72%, #fff, transparent),
    radial-gradient(2px 2px at 74% 68%, #ffe9a8, transparent),
    radial-gradient(1.5px 1.5px at 90% 80%, #fff, transparent),
    radial-gradient(2px 2px at 35% 55%, #fff8e0, transparent),
    radial-gradient(1px 1px at 55% 88%, #ffe9a8, transparent);
  animation: sb-twinkle 4s ease-in-out infinite;
  opacity: 0.9;
}

.sb-orery {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  transition: transform 0.15s ease-out;
}

.sb-hero-mist {
  background:
    radial-gradient(circle at 50% 110%, rgba(224, 192, 112, 0.18), transparent 40%),
    linear-gradient(180deg, transparent 60%, rgba(9, 6, 10, 0.35));
}

.sb-hero-frame {
  margin: 18px;
  border: 1px solid rgba(224, 192, 112, 0.22);
  box-shadow: inset 0 0 80px rgba(224, 192, 112, 0.05);
}

.sb-hero-frame::before,
.sb-hero-frame::after {
  content: "❖";
  position: absolute;
  color: var(--gold);
  font-size: 12px;
}

.sb-hero-frame::before {
  top: 10px;
  left: 14px;
}

.sb-hero-frame::after {
  right: 14px;
  bottom: 10px;
}

.sb-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.sb-kicker-hero {
  color: var(--gold);
}

.sb-kicker-hero::before,
.sb-kicker-hero::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.sb-hero h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.22;
  font-weight: 700;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.sb-hero-lead,
.sb-hero p {
  margin: 0 0 26px;
  max-width: 42em;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(246, 234, 210, 0.82);
}

.sb-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.sb-hero-pills li {
  padding: 6px 12px;
  border: 1px solid rgba(224, 192, 112, 0.28);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(224, 192, 112, 0.08);
}

.sb-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sb-orery-halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 215, 138, 0.28), transparent 68%);
  filter: blur(6px);
  animation: sb-pulse 5s ease-in-out infinite;
}

.sb-orery-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(224, 192, 112, 0.45);
  animation: sb-spin 48s linear infinite;
}

.sb-orery-ring-2 {
  inset: 22%;
  border-style: solid;
  border-width: 1px;
  animation-duration: 72s;
  animation-direction: reverse;
}

.sb-gua {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  margin: -14px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  text-align: center;
  transform: rotate(var(--a)) translateY(-168px) rotate(calc(var(--a) * -1));
}

.sb-orery-core {
  position: absolute;
  inset: 32%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background:
    radial-gradient(circle at 35% 30%, #5a3518, #1a0c08 72%);
  box-shadow:
    inset 0 0 30px rgba(224, 192, 112, 0.25),
    0 0 40px rgba(224, 192, 112, 0.18);
  text-align: center;
  z-index: 2;
}

.sb-orery-core b {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  color: #f7e7b4;
  line-height: 1;
}

.sb-orery-core small {
  display: block;
  margin-top: 4px;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--gold);
}

.sb-needle {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 3px;
  height: 32%;
  background: linear-gradient(#fff4c4, #c49a3c);
  transform-origin: bottom center;
  border-radius: 2px;
  animation: sb-needle 8s ease-in-out infinite;
  z-index: 3;
}

.sb-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%230b1426' d='M0,48 C240,80 480,8 720,32 C960,56 1200,16 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.sb-elements {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: -18px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.sb-elements span {
  min-width: 72px;
  padding: 10px 8px;
  text-align: center;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-family: var(--serif);
  font-size: 15px;
}

.sb-elements span small {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  color: var(--ink-soft);
}

/* Cards */
.sb-grid-4,
.sb-grid-3,
.sb-grid-2 {
  display: grid;
  gap: 20px;
}

.sb-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.sb-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.sb-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.sb-card {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sb-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 137, 46, 0.45);
  box-shadow: 0 28px 50px rgba(26, 18, 12, 0.16);
}

.sb-card h3 {
  margin: 10px 0 8px;
  font-family: var(--serif);
}

.sb-service-card {
  text-align: left;
  background:
    linear-gradient(180deg, rgba(224, 192, 112, 0.12), transparent 38%),
    var(--white);
}

.sb-service-hanja {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(184, 137, 46, 0.35);
  font-family: var(--serif);
  font-size: 26px;
  color: var(--brown-deep);
  background: #f8efd8;
}

.sb-service-tag {
  display: inline-block;
  margin: 12px 0 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}

/* 유료 특급 뱃지 — 무료 도구와 구분 (작은 빨간 글씨) */
.sb-service-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
}

.sb-service-tier {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #c62828;
  vertical-align: super;
}

.sb-service-tier--premium {
  color: #b71c1c;
}

.sb-service-tier--pro {
  color: #d32f2f;
}

.sb-service-tier--plus {
  color: #e53935;
}

/* 서비스명 바로 아래 키워드 */
.sb-service-hook {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--gold, #c49a3c);
  word-break: keep-all;
}

.sb-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--paper-deep);
  font-size: 22px;
}

.sb-price {
  margin: 6px 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: var(--brown);
}

.sb-price small {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* About band */
.sb-about-band {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
}

.sb-about-hero-copy .sb-about-brand {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sb-about-hero-copy .sb-title {
  margin-top: 0.15rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
}

.sb-about-subtitle {
  margin: 0.65rem 0 0;
  color: var(--tan);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.sb-about-lead-top {
  margin-top: 1.1rem;
  max-width: 40rem;
  line-height: 1.75;
  color: rgba(253, 247, 232, 0.95);
  font-weight: 500;
}

.sb-about-lead {
  margin-top: 0.85rem;
  max-width: 38rem;
  line-height: 1.75;
  color: rgba(253, 247, 232, 0.88);
}

.sb-about-stories {
  display: grid;
  gap: 1.75rem;
  max-width: 820px;
}

.sb-about-story {
  margin: 0;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 16px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  background:
    linear-gradient(160deg, rgba(253, 247, 232, 0.97), rgba(245, 234, 210, 0.94));
  color: #1a120a;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.sb-about-story-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(139, 61, 18, 0.18);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: #5c2410;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.sb-about-story-body {
  font-size: 0.96rem;
  line-height: 1.78;
  color: #2a1f14;
}

.sb-about-story-body p {
  margin: 0 0 0.9rem;
}

.sb-about-story-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .sb-about-band {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sb-portrait {
    max-width: 240px;
    margin: 0 auto;
  }
}

.sb-about-panel {
  padding: 8px;
}

.sb-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 28%, #f1d9a6, #7a3a12 58%, #2a140c 100%);
  display: grid;
  place-items: end center;
  color: #fff;
  font-family: var(--serif);
  padding: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(42, 20, 12, 0.28);
  margin: 0;
}

/* 업로드한 커버(책 표지) 이미지 위 장식 글자 오버레이 제거 */
.sb-portrait-photo {
  padding: 0;
  place-items: stretch;
  display: block;
  background: #060d18;
}

.sb-portrait-photo::before,
.sb-portrait-photo::after {
  content: none !important;
  display: none !important;
}

.sb-portrait-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

.sb-portrait::before {
  content: "☯";
  position: absolute;
  top: 18%;
  font-size: 88px;
  opacity: 0.12;
  letter-spacing: 0.2em;
}

.sb-portrait-seal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 220, 160, 0.7);
  color: #ffdca0;
  font-size: 18px;
}

.sb-portrait-name {
  position: relative;
  font-size: 20px;
}

/* Posts */
.sb-post-card time {
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 700;
}

.sb-post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.sb-cat-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brown-deep) !important;
  background: linear-gradient(180deg, #fff4d0, #f0d890);
  border: 1px solid rgba(197, 160, 89, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sb-cat-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 160, 89, 0.35);
  color: var(--brown-deep) !important;
}

.sb-article .sb-post-cats {
  margin-bottom: 14px;
}

.sb-post-card h3 {
  margin: 8px 0 10px;
  font-size: 20px;
}

/* Reviews */
.sb-quote {
  font-size: 16px;
  color: var(--ink-soft);
  position: relative;
  padding-top: 12px;
}

.sb-quote::before {
  content: "“";
  position: absolute;
  top: -8px;
  left: 18px;
  font-family: var(--serif);
  font-size: 42px;
  color: var(--gold-deep);
  opacity: 0.55;
}

.sb-quote strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
}

/* Process */
.sb-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sb-step {
  position: relative;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: #000 !important;
}

.sb-step b {
  display: block;
  margin-bottom: 8px;
  color: #000 !important;
}

/* Forms */
.sb-form,
.sb-form-grid {
  display: grid;
  gap: 14px;
}

.sb-form-grid {
  grid-template-columns: 1fr 1fr;
}

.sb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-field-full {
  grid-column: 1 / -1;
}

.sb-field label {
  font-weight: 700;
  font-size: 14px;
}

.sb-field-birth-place {
  flex: 1 1 100%;
  min-width: 0;
}

.sb-field-birth-place .sb-field-hint {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  color: #546e7a;
}

.sb-field .sb-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  color: #546e7a;
}

.sb-manse-solar-row strong,
.sb-ilj-solar-row strong {
  font-weight: 600;
  font-size: 0.88em;
  line-height: 1.45;
  white-space: normal;
}

.sb-tf-solar-hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #546e7a;
}

.sb-field input,
.sb-field select,
.sb-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.sb-field textarea {
  min-height: 120px;
  resize: vertical;
}

.sb-notice {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.sb-notice-ok {
  background: #e8f6e8;
  color: #215c21;
}

.sb-notice-err {
  background: #fde8e8;
  color: #8a1f1f;
}

.sb-honeypot {
  position: absolute;
  left: -9999px;
}

/* FAQ */
.sb-faq-filter-wrap {
  margin: 1.25rem 0 0.75rem;
}

.sb-faq-filter {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: #1a140f;
  font-size: 0.95rem;
}

.sb-faq-filter:focus {
  outline: 2px solid rgba(92, 36, 16, 0.35);
  outline-offset: 1px;
}

.sb-faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

/* FAQ 펼침 카드: 검정 글씨 (critical CSS와 동일, style.css 캐시 대비) */
.sb-faq details,
.sb-faq summary,
.sb-faq-answer,
.sb-faq-answer p,
.sb-faq-answer strong,
.sb-faq-answer li {
  color: #000 !important;
}

.sb-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.sb-faq-answer {
  padding: 0.75rem 0 0.25rem;
  line-height: 1.65;
}

.sb-faq-answer p {
  margin: 0 0 0.65rem;
}

.sb-faq-answer a {
  color: var(--brown-deep, #5c2410) !important;
  text-decoration: underline;
}

/* Blog layout */
.sb-blog {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

/* 블로그 목록 카드 — 대표 이미지 + 제목 */
.sb-post-album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.sb-post-album-grid-home {
  margin-top: 0;
}

.sb-post-album {
  margin: 0;
}

.sb-post-album-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(197, 160, 89, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.sb-post-album-link:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 192, 112, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.sb-post-album-media {
  position: relative;
  /* 16:9로 높이를 줄여, 대표 이미지가 칸을 가득 채우며 잘리지 않게 합니다. */
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1420, #2a1810);
}

.sb-post-album-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.sb-post-album-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(224, 192, 112, 0.25), transparent 55%),
    linear-gradient(160deg, #1c140c 0%, #3a1a0c 100%);
}

.sb-post-album-placeholder-mark {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  color: rgba(240, 216, 144, 0.55);
  line-height: 1;
}

.sb-post-album-body {
  padding: 16px 16px 18px;
  background: linear-gradient(180deg, rgba(253, 247, 232, 0.98), rgba(245, 235, 210, 0.95));
}

.sb-post-album-date {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b4a2a;
}

.sb-post-album-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--brown-deep, #5c2410);
  letter-spacing: -0.02em;
}

.sb-post-album-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #2a1f14;
}

.sb-post-album-link:hover .sb-post-album-title {
  color: #3a1a0c;
}

@media (max-width: 1024px) {
  .sb-post-album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sb-post-album-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 블로그 페이지네이션 버튼 */
.sb-pagination {
  margin: 2.75rem 0 0.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.sb-pagination .navigation.pagination,
.sb-pagination nav {
  width: 100%;
}

.sb-pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sb-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.sb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.85rem;
  min-height: 2.85rem;
  padding: 0 0.95rem;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1.5px solid rgba(224, 192, 112, 0.55);
  background: linear-gradient(180deg, #2a1c12 0%, #1a100c 100%);
  color: #fff6d8 !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 240, 200, 0.12);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sb-pagination a.page-numbers:hover,
.sb-pagination a.page-numbers:focus {
  background: linear-gradient(180deg, #5a3a1a 0%, #3a2410 100%);
  border-color: #e0c070;
  color: #fffdf0 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224, 192, 112, 0.28);
  outline: none;
}

.sb-pagination .page-numbers.current {
  background: linear-gradient(180deg, #f0d78a 0%, #c5a059 100%);
  border-color: #f5e0a0;
  color: #1a1008 !important;
  box-shadow: 0 4px 16px rgba(224, 192, 112, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: default;
  pointer-events: none;
}

.sb-pagination .page-numbers.dots {
  min-width: 2rem;
  padding: 0 0.35rem;
  border: none;
  background: transparent;
  box-shadow: none;
  color: rgba(253, 247, 232, 0.55) !important;
  font-weight: 600;
}

.sb-pagination .page-numbers.prev,
.sb-pagination .page-numbers.next {
  min-width: auto;
  padding: 0 1.05rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .sb-pagination .nav-links {
    gap: 0.4rem;
  }

  .sb-pagination .page-numbers {
    min-width: 2.55rem;
    min-height: 2.55rem;
    font-size: 0.95rem;
    padding: 0 0.7rem;
    border-radius: 10px;
  }

  .sb-pagination .page-numbers.prev,
  .sb-pagination .page-numbers.next {
    padding: 0 0.8rem;
    font-size: 0.88rem;
  }
}

.sb-cta-banner {
  margin: 28px 0;
  padding: 36px 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 20%, rgba(224, 192, 112, 0.25), transparent 36%),
    linear-gradient(135deg, #140c08, #6a3010);
  color: #fff8dc;
  text-align: center;
  border: 1px solid rgba(224, 192, 112, 0.22);
}

.sb-cta-banner h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
}

.sb-finale {
  padding-bottom: 110px;
}

.sb-sidebar .sb-card {
  margin-bottom: 16px;
}

.sb-cat-list,
.sb-footer-nav,
.sb-hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-cat-list li,
.sb-hours li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

/* Footer */
.sb-footer {
  padding: 56px 0 28px;
  background:
    radial-gradient(ellipse at top, rgba(224, 192, 112, 0.12), transparent 40%),
    #09060a;
  color: #efe4d0;
}

.sb-footer a {
  color: #efe4d0;
}

.sb-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.sb-footer-legal {
  border-top: 1px solid rgba(239, 228, 208, 0.18);
  padding: 18px 0 8px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(239, 228, 208, 0.78);
}

.sb-footer-legal-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e8c872;
}

.sb-footer-legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.sb-footer-legal-list li {
  margin: 0;
}

.sb-footer-legal-list span {
  color: rgba(232, 200, 114, 0.88);
  margin-right: 6px;
}

.sb-footer-legal-list a {
  color: #efe4d0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sb-copy {
  border-top: 1px solid rgba(239, 228, 208, 0.18);
  padding-top: 16px;
  font-size: 13px;
  opacity: 0.8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.sb-footer-privacy-link {
  color: #e8c872 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sb-privacy-section {
  padding-top: 36px;
}

.sb-privacy-doc {
  margin-top: 28px;
  background: #fdf7e8;
  color: #2a1f14;
  border-radius: 14px;
  padding: 32px 28px 40px;
  line-height: 1.8;
}

.sb-privacy-doc h2 {
  margin: 1.6em 0 0.6em;
  font-size: 1.15rem;
  color: #2a1f14;
}

.sb-privacy-doc h2:first-child {
  margin-top: 0;
}

.sb-privacy-doc h3 {
  margin: 1.1em 0 0.4em;
  font-size: 1rem;
  color: #3d3220;
}

.sb-privacy-doc p,
.sb-privacy-doc li {
  color: #2a1f14;
}

.sb-privacy-toc {
  padding-left: 1.2em;
}

.sb-privacy-doc a {
  color: #6b4d2a;
  text-decoration: underline;
}

/* 이용약관 상단 환불규정 강조 상자 */
.sb-refund-box {
  margin: 1.2em 0 1.8em;
  padding: 18px 20px 8px;
  border: 1px solid #c4a574;
  background: #f8edd4;
  border-radius: 10px;
}

.sb-refund-box h2 {
  margin-top: 0;
}

.sb-refund-box ol {
  margin: 0.4em 0 1em;
  padding-left: 1.3em;
}

.sb-privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 0.95rem;
}

.sb-privacy-table th,
.sb-privacy-table td {
  border: 1px solid #d4c4a8;
  padding: 8px 10px;
  text-align: left;
  color: #2a1f14;
}

.sb-privacy-table th {
  background: #f3e6c8;
}

.sb-footer-lang {
  margin-left: auto;
}

.sb-footer-lang .sb-lang-switch {
  background: rgba(255, 248, 224, 0.08);
}

.sb-kakao {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fee500;
  color: #3c1e1e !important;
  font-weight: 800;
  box-shadow: var(--shadow);
}

/* 카카오톡 채널 추가 버튼 SDK (공식 이미지 버튼) */
.sb-kakao-channel {
  line-height: 0;
}

.sb-kakao-channel img,
.sb-kakao-channel iframe,
.sb-kakao-channel a {
  display: block;
  max-width: 100%;
}

.sb-kakao-channel--float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.sb-kakao-contact {
  margin: 12px 0 4px;
}

.sb-article {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
  color: #000;
}

.sb-related-posts {
  margin: 2.2rem 0 1.2rem;
  padding: 1.2rem 1.15rem 1.3rem;
  border-top: 1px solid var(--line);
  background: #faf8f4;
  border-radius: var(--radius);
}
.sb-related-title {
  margin: 0 0 .75rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #2a2118;
}
.sb-related-list {
  margin: 0;
  padding-left: 1.15rem;
}
.sb-related-list li {
  margin: 0 0 .45rem;
  line-height: 1.5;
}
.sb-related-list a {
  color: #5c2410;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sb-article h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.35;
  font-weight: 700;
  color: #000;
}

.sb-article-body,
.sb-article-body p,
.sb-article-body li,
.sb-article-body h2,
.sb-article-body h3,
.sb-article-body h4,
.sb-article-body blockquote,
.sb-article-body figcaption,
.sb-article-body td,
.sb-article-body th {
  color: #000;
}

.sb-article-body {
  font-size: 17px;
  line-height: 1.85;
}

.sb-article-body a {
  color: #8b3d12;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sb-article-body a:hover {
  color: #5c2410;
}

.sb-article .sb-muted {
  color: #333;
}

/* 글 상단 작성 주체. 소개 페이지로 연결해 운영 정보를 바로 확인하게 합니다. */
.sb-tool-guide {
  margin-top: 28px;
  max-width: 760px;
}

.sb-tool-guide:hover {
  transform: none;
}

.sb-tool-guide h2 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.25rem;
  color: #3a1a0c;
}

.sb-tool-guide h2:first-child {
  margin-top: 0;
}

.sb-tool-guide p,
.sb-tool-guide li {
  color: #2a1f14;
  line-height: 1.75;
}

.sb-tool-guide a {
  color: #5c2410;
  text-decoration: underline;
}

.sb-reading-hub-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.sb-sinsal-preface {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  color: #fdf7e8;
  line-height: 1.7;
  text-align: left;
}

.sb-author-box {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf8f4;
}
.sb-author-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #5c4a38;
}
.sb-author-name {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.sb-author-name a {
  color: #5c2410;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sb-author-bio {
  margin: 0 0 6px;
  color: #2a1f14;
  font-size: 0.95rem;
  line-height: 1.7;
}

.sb-author-box-foot {
  margin: 28px 0 8px;
}

/* 사주봇(Streamlit) 임베드 */
.sb-section-bot {
  padding-top: 48px;
}

/* 상단 매니페스토 — 추명서 입력 히어로와 같은 중앙 정렬 */
.sb-bot-manifesto {
  max-width: 46rem;
  margin: 0 auto 1.75rem;
}

.sb-bot-manifesto-inner {
  padding: 1.65rem 1.6rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(197, 160, 89, 0.5);
  background:
    linear-gradient(160deg, rgba(253, 247, 232, 0.1), rgba(12, 18, 32, 0.92)),
    rgba(14, 10, 6, 0.75);
  text-align: center;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.sb-bot-manifesto-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.sb-bot-manifesto-title {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #fdf7e8;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.sb-bot-manifesto-lead,
.sb-bot-manifesto-body {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(253, 247, 232, 0.9);
  text-align: center;
}

.sb-bot-manifesto-body {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(197, 160, 89, 0.28);
  font-size: 0.92rem;
  color: rgba(253, 247, 232, 0.82);
}

.sb-bot-manifesto-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.sb-bot-manifesto-tags li {
  margin: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.sb-bot-home-center {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.sb-section-bot .sb-bot-premium,
.sb-section-bot .sb-bot-panel {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

/* 프리미엄 LLM 추명서(PDF) 안내 — 무료 도구와 구분 */
.sb-bot-premium {
  margin: 1.35rem auto 0;
  max-width: 52rem;
}

.sb-bot-premium-inner {
  padding: 1.35rem 1.5rem 1.45rem;
  border-radius: 14px;
  border: 1px solid rgba(197, 160, 89, 0.55);
  background:
    linear-gradient(135deg, rgba(197, 160, 89, 0.16), rgba(20, 14, 8, 0.55)),
    rgba(18, 12, 8, 0.72);
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.sb-bot-premium-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.sb-bot-premium-title {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: #fdf7e8;
  letter-spacing: -0.02em;
}

.sb-bot-premium-text {
  margin: 0 auto 1.05rem;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(253, 247, 232, 0.88);
}

.sb-bot-premium-sub {
  margin: 0.35rem 0 1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.sb-bot-prem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.25rem;
  text-align: left;
}

.sb-bot-prem-grid-images {
  margin-bottom: 1.5rem;
}

.sb-bot-prem-fig-only {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.3);
  background: #120c08;
}

.sb-bot-prem-fig-only img {
  display: block;
  width: 100%;
  height: auto;
}

.sb-bot-prem-copy {
  max-width: 46rem;
  margin: 0 auto 1.25rem;
  text-align: left;
}

.sb-bot-prem-block {
  margin: 0 0 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.22);
}

.sb-bot-prem-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sb-bot-prem-card {
  padding: 0.75rem 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  background: rgba(10, 8, 6, 0.45);
}

.sb-bot-prem-fig {
  margin: 0 0 0.7rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.3);
  background: #120c08;
}

.sb-bot-prem-fig img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.sb-bot-prem-card-title {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fdf7e8;
  letter-spacing: -0.01em;
}

.sb-bot-prem-card-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(253, 247, 232, 0.86);
}

.sb-bot-prem-hl-label {
  margin: 0.9rem 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold);
}

.sb-bot-prem-hl-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  list-style: disc;
}

.sb-bot-prem-hl-list li {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(253, 247, 232, 0.86);
}

.sb-bot-prem-hl-list li strong {
  color: #fdf7e8;
}

.sb-bot-premium-cta {
  margin-top: 0.25rem;
}

.sb-bot-premium .sb-btn {
  margin-top: 0.15rem;
}

@media (max-width: 720px) {
  .sb-bot-prem-grid {
    grid-template-columns: 1fr;
  }
}

.sb-bot-panel {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: linear-gradient(145deg, rgba(253, 247, 232, 0.08), rgba(11, 20, 38, 0.75));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.sb-bot-modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 1.1rem 0 0;
}

.sb-bot-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.55);
  background: rgba(11, 20, 38, 0.55);
  color: #fdf7e8 !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.sb-bot-mode:hover {
  border-color: #e8c872;
  background: rgba(197, 160, 89, 0.22);
}

.sb-bot-mode-free {
  background: linear-gradient(135deg, #6e2f0e, #a67c3a);
  border-color: #e8c872;
}

.sb-bot-iframe {
  display: block;
  width: 100%;
  min-height: min(78vh, 720px);
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.sb-bot-placeholder {
  padding: 28px 24px;
  border-radius: 14px;
  background: var(--cream);
  color: #000;
  text-align: center;
}

.sb-bot-placeholder p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
}

.sb-bot-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sb-bot-features li {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4d0, #f0d890);
  color: var(--brown-deep);
  font-size: 13px;
  font-weight: 700;
}

.sb-bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* Saju Bot trial: 21-module showcase */
@keyframes sb-poster-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes sb-poster-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -10px) scale(1.05); }
}

@keyframes sb-poster-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.sb-bot-poster-wrap {
  margin: 36px 0 30px;
  display: grid;
  gap: 28px;
}

.sb-bot-poster {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(224, 192, 112, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.sb-bot-poster-inner {
  position: relative;
  z-index: 2;
  padding: 32px 28px 26px;
}

.sb-bot-poster-modules {
  background: linear-gradient(145deg, #0f1628 0%, #1a1420 38%, #121a2e 100%);
  color: #f4ead8;
}

.sb-bot-poster-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.sb-bot-poster-orb-a {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(232, 192, 96, 0.55), transparent 70%);
  animation: sb-poster-float 9s ease-in-out infinite;
}

.sb-bot-poster-orb-b {
  width: 220px;
  height: 220px;
  bottom: -40px;
  left: -40px;
  background: radial-gradient(circle, rgba(120, 160, 220, 0.35), transparent 70%);
  animation: sb-poster-float 11s ease-in-out infinite reverse;
}

.sb-bot-poster-reviews {
  background: linear-gradient(155deg, #1c1208 0%, #2a1810 50%, #141820 100%);
  color: #f6ead2;
}

.sb-bot-poster-head {
  margin-bottom: 26px;
  text-align: center;
}

.sb-bot-poster-head-center {
  text-align: center;
}

.sb-bot-poster-kicker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #1a1208;
  background: linear-gradient(90deg, #c9a04a, #f0d890, #c9a04a);
  background-size: 200% auto;
  animation: sb-poster-shimmer 4s linear infinite;
  margin-bottom: 14px;
}

.sb-bot-poster-badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1a1208;
  background: linear-gradient(135deg, #f0d890, #e8b84a);
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(232, 192, 96, 0.35);
}

.sb-bot-poster-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff8ec;
}

.sb-bot-poster-lead {
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244, 234, 216, 0.78);
  max-width: 560px;
}

/* 3대 기둥: 만세력 + 21모듈 + 8영역 */
.sb-bot-pillar-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 28px;
}

.sb-bot-pillar {
  position: relative;
  padding: 20px 16px 18px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease, box-shadow 0.35s ease;
}

.sb-bot-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 192, 96, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.sb-bot-pillar-accent {
  background: linear-gradient(160deg, rgba(232, 192, 96, 0.18), rgba(255, 255, 255, 0.05));
  border-color: rgba(232, 192, 96, 0.4);
  box-shadow: 0 0 0 1px rgba(232, 192, 96, 0.12) inset;
}

.sb-bot-pillar-mark,
.sb-bot-pillar-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f0d890, #e8b84a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sb-bot-pillar-label {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #fff8ec;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.sb-bot-pillar-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(244, 234, 216, 0.65);
}

.sb-bot-pillar-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(232, 192, 96, 0.55);
  padding: 0 2px;
}

.sb-bot-area-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.sb-bot-area-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 192, 96, 0.45), transparent);
}

.sb-bot-area-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 192, 96, 0.9);
  white-space: nowrap;
}

.sb-bot-module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sb-bot-module-card {
  position: relative;
  padding: 16px 14px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 118px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  animation: sb-poster-rise 0.6s ease both;
  animation-delay: calc(var(--card-i, 0) * 0.05s);
}

.sb-bot-module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 192, 96, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sb-bot-module-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(232, 192, 96, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.sb-bot-module-card:hover::before {
  opacity: 1;
}

.sb-bot-module-no {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.08);
}

.sb-bot-module-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #f0d890;
  letter-spacing: -0.01em;
}

.sb-bot-module-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sb-bot-module-tags li {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(232, 192, 96, 0.12);
  color: rgba(244, 234, 216, 0.85);
  border: 1px solid rgba(232, 192, 96, 0.15);
}

.sb-bot-poster-foot {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(244, 234, 216, 0.62);
  text-align: center;
}

.sb-bot-review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sb-bot-review-card {
  margin: 0;
  padding: 20px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(224, 192, 112, 0.18);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  animation: sb-poster-rise 0.55s ease both;
  animation-delay: calc(var(--review-i, 0) * 0.08s);
}

.sb-bot-review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 192, 96, 0.4);
}

.sb-bot-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.sb-bot-review-stars {
  color: #e8c060;
  font-size: 14px;
  letter-spacing: 2px;
}

.sb-bot-review-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(232, 192, 96, 0.12);
  color: #f0d890;
  white-space: nowrap;
  border: 1px solid rgba(232, 192, 96, 0.2);
}

.sb-bot-review-quote {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 234, 210, 0.9);
}

.sb-bot-review-by {
  font-size: 13px;
  font-weight: 700;
  color: #e8c060;
  text-align: right;
}

@media (max-width: 1024px) {
  .sb-bot-pillar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sb-bot-pillar-connector {
    display: none;
  }
  .sb-bot-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sb-bot-poster-inner {
    padding: 24px 16px 20px;
  }
  .sb-bot-module-grid,
  .sb-bot-review-grid {
    grid-template-columns: 1fr;
  }
  .sb-bot-area-title {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-bot-poster-orb-a,
  .sb-bot-poster-orb-b,
  .sb-bot-poster-kicker,
  .sb-bot-module-card,
  .sb-bot-review-card {
    animation: none;
  }
  .sb-bot-pillar:hover,
  .sb-bot-module-card:hover,
  .sb-bot-review-card:hover {
    transform: none;
  }
}

.sb-muted {
  color: var(--ink-soft);
}

/* 관리자 로그인 바 (로그인 시 상단) */
.sb-admin-strip {
  background: linear-gradient(90deg, #1c140c, #3a1a0c);
  color: #f6ead2;
  border-bottom: 1px solid rgba(224, 192, 112, 0.25);
  font-size: 13px;
}

.sb-admin-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.sb-admin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sb-admin-links a {
  color: #f0d78a;
  font-weight: 600;
}

.sb-admin-links a:hover {
  color: #fff;
}

.sb-footer-admin {
  display: inline-block;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(239, 228, 208, 0.25);
}

.sb-admin-login-link {
  color: #f0d78a !important;
  font-weight: 600;
}

.sb-login-card {
  text-align: center;
  padding: 36px 28px;
}

.sb-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px 0 16px;
}

.sb-login-note {
  font-size: 13px;
  max-width: 480px;
  margin: 0 auto;
}

/* Manhua guide (인포그래픽) */
.sb-hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--crimson-badge);
  color: #fff8f0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 20px rgba(139, 30, 30, 0.35);
}

.sb-title-brush {
  position: relative;
  display: inline-block;
}

.sb-title-brush::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.sb-lead-light {
  color: rgba(232, 223, 200, 0.82);
}

.sb-manhua-card {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(197, 160, 89, 0.15),
    var(--shadow);
  padding: 28px 24px 24px;
}

.sb-step-badge {
  position: absolute;
  top: -14px;
  left: 20px;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--crimson-badge);
  color: #fff8f0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  box-shadow: 0 6px 16px rgba(139, 30, 30, 0.3);
}

.sb-section-guide {
  padding-top: 48px;
}

.sb-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
  margin-top: 36px;
}

.sb-guide-card-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sb-guide-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(197, 160, 89, 0.5);
  background: linear-gradient(180deg, #fff9e8, #f3e4c0);
  font-family: var(--serif);
  font-size: 24px;
  color: var(--brown-deep);
}

.sb-guide-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--brown-deep);
}

.sb-guide-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.sb-pillar-panel {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.sb-pillar-title {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--brown-deep);
}

.sb-pillar-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.sb-pillar-col {
  padding: 18px 10px;
  border-radius: 14px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: linear-gradient(180deg, #fff9e8, #f5ebd0);
}

.sb-pillar-col.is-day {
  border-color: var(--gold-deep);
  background: linear-gradient(180deg, #fff4d0, #f0d890);
  box-shadow: 0 12px 28px rgba(197, 160, 89, 0.25);
  transform: translateY(-4px);
}

.sb-pillar-label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.sb-pillar-sample {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--brown-deep);
}

.sb-pillar-arrow {
  display: block;
  margin: 8px 0 4px;
  color: var(--crimson);
  font-size: 18px;
}

.sb-pillar-daymaster {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--crimson-badge);
  color: #fff8f0;
  font-size: 12px;
  font-weight: 700;
}

.sb-table-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.sb-stem-table-wrap h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--brown-deep);
}

.sb-stem-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.sb-stem-table th,
.sb-stem-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  text-align: left;
}

.sb-stem-table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: rgba(197, 160, 89, 0.12);
}

.sb-elem-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
}

.sb-elem-wood .sb-elem-dot { background: #2d6a3e; }
.sb-elem-fire .sb-elem-dot { background: #c0392b; }
.sb-elem-earth .sb-elem-dot { background: #8b6914; }
.sb-elem-metal .sb-elem-dot { background: #7f8c8d; }
.sb-elem-water .sb-elem-dot { background: #2471a3; }

.sb-warm-tip {
  text-align: center;
  background: linear-gradient(165deg, #fff9e8, #f3e0b8);
}

.sb-warm-tip-head {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--brown-deep);
}

.sb-warm-tip p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  line-height: 1.75;
}

@keyframes sb-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sb-needle {
  0%,
  100% {
    transform: rotate(-12deg);
  }
  50% {
    transform: rotate(18deg);
  }
}

@keyframes sb-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes sb-twinkle {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-stars,
  .sb-orery-ring,
  .sb-orery-halo,
  .sb-needle {
    animation: none;
  }
}

@media (max-width: 960px) {
  .sb-hero {
    min-height: auto;
    padding: 100px 0 80px;
  }

  .sb-hero-grid,
  .sb-about-band,
  .sb-blog,
  .sb-grid-4,
  .sb-grid-3,
  .sb-steps,
  .sb-footer-grid,
  .sb-guide-steps,
  .sb-pillar-chart,
  .sb-table-grid {
    grid-template-columns: 1fr;
  }

  .sb-gua {
    transform: rotate(var(--a)) translateY(-118px) rotate(calc(var(--a) * -1));
  }

  .sb-orery {
    max-width: 300px;
    margin-top: 12px;
  }

  .sb-elements {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sb-elements span {
    min-width: calc(33% - 8px);
    flex: 1 1 auto;
  }

  .sb-menu-toggle {
    display: block;
    color: #fdf7e8 !important;
    margin-left: auto;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 6px;
  }

  /* 로고 아래 언어 · 햄버거는 오른쪽 */
  .sb-header-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .sb-header-brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 8px;
  }

  .sb-header-brand .sb-lang-switch {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .sb-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #140c08;
    padding: 16px;
    border-bottom: 1px solid rgba(224, 192, 112, 0.2);
    flex-direction: column;
    align-items: flex-start;
    z-index: 50;
  }

  .sb-nav > ul,
  .sb-nav ul.menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  .sb-nav .menu-item-has-children {
    width: 100%;
  }

  .sb-nav .sub-menu {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transition: max-height 0.28s ease, padding 0.28s ease;
  }

  .sb-nav .sub-menu::before {
    display: none;
  }

  /* 모바일은 is-open 상태에서만 펼침 (hover로는 열리지 않음) */
  .sb-nav .menu-item-has-children.is-open > .sub-menu {
    max-height: 480px;
    padding: 4px 0 8px 12px;
    pointer-events: auto;
    overflow: visible;
  }

  .sb-nav .sub-menu a {
    pointer-events: auto;
    color: #f6ead2 !important;
  }

  .sb-nav a,
  .sb-nav .menu a {
    color: #f6ead2;
    padding: 8px 0;
    font-size: 16px;
  }

  .sb-nav .sub-menu a {
    padding: 8px 4px;
    font-size: 15px;
  }

  .sb-nav.is-open,
  .sb-nav.is-open > ul,
  .sb-nav.is-open ul.menu {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .sb-header-cta {
    display: none !important;
  }

  /* 모바일: 햄버거 메뉴 안 ‘사주 풀이 신청’ 글자 링크 */
  .sb-nav.is-open .sb-nav-cta-list {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .sb-nav.is-open .sb-nav-cta-item {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .sb-nav.is-open .sb-nav-cta {
    display: block;
    width: 100%;
    padding: 12px 4px;
    margin: 0;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: left;
    box-sizing: border-box;
  }
  .sb-nav.is-open .sb-nav-cta:hover {
    color: var(--gold);
    background: none !important;
    transform: none !important;
  }

  .sb-form-grid,
  .sb-grid-2 {
    grid-template-columns: 1fr;
  }

  .sb-section {
    padding: 72px 0;
  }

  .sb-hero h1 {
    font-size: clamp(32px, 8vw, 48px);
  }

  .sb-hero-actions .sb-btn {
    width: 100%;
  }

  .sb-kakao {
    width: 52px;
    height: 52px;
    right: 12px;
    bottom: 12px;
  }

  .sb-kakao-channel--float {
    right: 12px;
    bottom: 12px;
    width: auto;
    height: auto;
  }
}

/* 태블릿: 2열 카드 */
@media (min-width: 641px) and (max-width: 1024px) {
  .sb-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sb-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sb-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .sb-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sb-hero-copy {
    margin: 0 auto;
  }

  .sb-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .sb-hero-actions {
    justify-content: center;
  }

  .sb-hero-pills {
    justify-content: center;
  }
}

/* PC: 넓은 화면 — 로고·언어를 가로로 */
@media (min-width: 1025px) {
  .sb-wrap {
    width: min(1200px, calc(100% - 48px));
  }

  .sb-header-brand {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .sb-nav {
    flex: 1;
    justify-content: center;
  }
}

/* 소형 스마트폰 */
@media (max-width: 480px) {
  .sb-lang-btn {
    min-width: 0;
    padding: 4px 5px;
  }

  .sb-flag-svg {
    width: 24px;
    height: 16px;
  }

  .sb-logo-text {
    font-size: 17px;
  }

  .sb-logo-img {
    height: 42px;
    max-width: min(168px, 48vw);
  }

  .sb-logo-mark {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .sb-card {
    padding: 18px;
  }

  .sb-cta-banner {
    padding: 28px 18px;
  }

  .sb-footer-admin {
    display: block;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
  }

  .sb-admin-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* === VIVID THEME LAYER (merged) === */
/* 사주봇 Vivid — 화려한 사주 사이트 비주얼 레이어 */

body.saju-bot-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 10% 20%, rgba(180, 60, 20, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 35% at 90% 10%, rgba(197, 160, 89, 0.22), transparent 45%),
    radial-gradient(ellipse 45% 50% at 50% 100%, rgba(40, 80, 160, 0.2), transparent 50%);
  animation: sb-aurora 12s ease-in-out infinite alternate;
}

body.saju-bot-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23c5a059' stroke-width='0.5'/%3E%3C/svg%3E");
}

.sb-hero h1,
.sb-title-gold {
  background: linear-gradient(105deg, #fff8e0 0%, #f0d060 25%, #fff 45%, #e8c872 65%, #c5a059 85%, #fff4c8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sb-shimmer 4s linear infinite;
  filter: drop-shadow(0 4px 24px rgba(232, 200, 114, 0.35));
}

.sb-hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(197, 160, 89, 0.08), transparent, rgba(139, 30, 30, 0.06), transparent);
  animation: sb-aurora-spin 20s linear infinite;
  opacity: 0.7;
}

.sb-hero-rays {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, transparent 0deg 8deg, rgba(232, 200, 114, 0.03) 8deg 9deg);
  animation: sb-aurora-spin 60s linear infinite;
}

.sb-hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sb-float-char {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  color: rgba(232, 200, 114, 0.12);
  text-shadow: 0 0 30px rgba(232, 200, 114, 0.2);
  animation: sb-float-up 14s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.8s);
}

.sb-float-char:nth-child(1) { left: 5%; top: 15%; }
.sb-float-char:nth-child(2) { left: 88%; top: 22%; font-size: 38px; }
.sb-float-char:nth-child(3) { left: 12%; top: 65%; }
.sb-float-char:nth-child(4) { left: 78%; top: 58%; }
.sb-float-char:nth-child(5) { left: 45%; top: 8%; font-size: 64px; opacity: 0.06; }
.sb-float-char:nth-child(6) { left: 92%; top: 78%; }
.sb-float-char:nth-child(7) { left: 3%; top: 42%; }
.sb-float-char:nth-child(8) { left: 62%; top: 82%; }

.sb-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sb-particle {
  position: absolute;
  width: var(--sz, 3px);
  height: var(--sz, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d0, transparent);
  box-shadow: 0 0 6px rgba(255, 244, 200, 0.8);
  animation: sb-particle-rise var(--dur, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
  bottom: -10px;
  opacity: 0;
}

.sb-marquee {
  position: relative;
  z-index: 3;
  margin-top: -36px;
  padding: 14px 0;
  background: linear-gradient(90deg, #5c1010, #8b1e1e 20%, #a52a2a 50%, #8b1e1e 80%, #5c1010);
  border-top: 2px solid rgba(255, 220, 160, 0.5);
  border-bottom: 2px solid rgba(255, 220, 160, 0.5);
  box-shadow: 0 8px 32px rgba(139, 30, 30, 0.45);
  overflow: hidden;
}

.sb-marquee-track {
  display: flex;
  width: max-content;
  animation: sb-marquee 28s linear infinite;
}

.sb-marquee-track span {
  flex-shrink: 0;
  padding: 0 32px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff4d0;
  white-space: nowrap;
}

.sb-marquee-track span::before {
  content: "✦";
  color: var(--gold);
  margin-right: 8px;
}

.sb-stats {
  position: relative;
  z-index: 2;
  padding: 48px 0 56px;
}

.sb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sb-stat-card {
  position: relative;
  padding: 28px 16px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(253, 247, 232, 0.12), rgba(11, 20, 38, 0.6));
  border: 1px solid rgba(197, 160, 89, 0.45);
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.15), inset 0 1px 0 rgba(255, 248, 224, 0.15);
  overflow: hidden;
}

.sb-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 224, 0.12), transparent);
  animation: sb-stat-shine 4s ease-in-out infinite;
}

.sb-stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff8e0, #e8c872);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sb-stat-num small {
  font-size: 0.55em;
  -webkit-text-fill-color: #e8c872;
}

.sb-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(232, 223, 200, 0.85);
}

.sb-elements span {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.sb-elements span:nth-child(1) { border-color: #2d6a3e; box-shadow: 0 0 20px rgba(45, 106, 62, 0.35); }
.sb-elements span:nth-child(2) { border-color: #c0392b; box-shadow: 0 0 20px rgba(192, 57, 43, 0.35); }
.sb-elements span:nth-child(3) { border-color: #8b6914; box-shadow: 0 0 20px rgba(139, 105, 20, 0.35); }
.sb-elements span:nth-child(4) { border-color: #7f8c8d; box-shadow: 0 0 20px rgba(127, 140, 141, 0.35); }
.sb-elements span:nth-child(5) { border-color: #2471a3; box-shadow: 0 0 20px rgba(36, 113, 163, 0.35); }

.sb-elements span:hover {
  transform: translateY(-10px) scale(1.08);
}

.sb-btn-gold {
  position: relative;
  overflow: hidden;
  animation: sb-btn-pulse 2.5s ease-in-out infinite;
}

.sb-btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: sb-btn-shine 3s ease-in-out infinite;
}

.sb-header-cta.sb-btn {
  box-shadow: 0 0 20px rgba(196, 154, 60, 0.4);
}

.sb-orery::before {
  content: "";
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(232, 200, 114, 0.15), transparent, rgba(139, 30, 30, 0.1), transparent);
  animation: sb-aurora-spin 15s linear infinite;
}

.sb-orery-core {
  animation: sb-core-glow 3s ease-in-out infinite;
}

.sb-gua {
  text-shadow: 0 0 12px rgba(232, 200, 114, 0.8);
}

.sb-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 48px;
  max-width: 480px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.3em;
}

.sb-ornament::before,
.sb-ornament::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

.sb-service-card {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--cream), var(--cream)) padding-box,
    linear-gradient(135deg, #e8c872, #8b1e1e, #c5a059, #e8c872) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: sb-border-flow 6s linear infinite;
}

.sb-service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(232, 200, 114, 0.25);
}

.sb-price {
  background: linear-gradient(180deg, #8b3d12, #c5a059);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sb-manhua-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.sb-manhua-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 60px rgba(197, 160, 89, 0.2);
}

.sb-pillar-col.is-day {
  animation: sb-day-pulse 2.5s ease-in-out infinite;
}

.sb-quote {
  padding-top: 36px;
}

.sb-stars-row {
  position: absolute;
  top: 16px;
  left: 24px;
  color: #e8c872;
  font-size: 14px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(232, 200, 114, 0.6);
}

.sb-cta-banner {
  position: relative;
  overflow: hidden;
  padding: 56px 32px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 200, 114, 0.25), transparent 55%),
    linear-gradient(135deg, #1a0810 0%, #4a1510 40%, #2a0a18 100%);
  animation: sb-cta-glow 4s ease-in-out infinite alternate;
}

.sb-cta-banner::before {
  content: "✦";
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(80px, 15vw, 160px);
  color: rgba(232, 200, 114, 0.08);
  pointer-events: none;
}

.sb-cta-banner h3 {
  font-size: clamp(26px, 4vw, 36px);
  background: linear-gradient(180deg, #fff8e0, #e8c872);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sb-portrait {
  animation: sb-portrait-glow 4s ease-in-out infinite alternate;
}

.sb-portrait::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 32px;
  background: linear-gradient(135deg, #e8c872, #8b1e1e, #c5a059);
  z-index: -1;
  opacity: 0.6;
  filter: blur(8px);
}

.sb-post-card {
  border-left: 4px solid var(--gold-deep);
}

.sb-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sb-reveal-delay-1 { transition-delay: 0.1s; }
.sb-reveal-delay-2 { transition-delay: 0.2s; }
.sb-reveal-delay-3 { transition-delay: 0.3s; }

.sb-kakao {
  animation: sb-kakao-bounce 2s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(254, 229, 0, 0.45);
}

.sb-section-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(197, 160, 89, 0.08), transparent 70%);
  pointer-events: none;
}

@keyframes sb-aurora {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes sb-aurora-spin {
  to { transform: rotate(360deg); }
}

@keyframes sb-shimmer {
  to { background-position: 200% center; }
}

@keyframes sb-float-up {
  0%, 100% { transform: translateY(0); opacity: 0.12; }
  50% { transform: translateY(-24px); opacity: 0.22; }
}

@keyframes sb-particle-rise {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

@keyframes sb-marquee {
  to { transform: translateX(-50%); }
}

@keyframes sb-stat-shine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

@keyframes sb-btn-pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(196, 154, 60, 0.35); }
  50% { box-shadow: 0 10px 40px rgba(196, 154, 60, 0.6); }
}

@keyframes sb-btn-shine {
  to { transform: translateX(200%); }
}

@keyframes sb-core-glow {
  0%, 100% { box-shadow: inset 0 0 30px rgba(224, 192, 112, 0.25), 0 0 40px rgba(224, 192, 112, 0.18); }
  50% { box-shadow: inset 0 0 40px rgba(224, 192, 112, 0.4), 0 0 60px rgba(224, 192, 112, 0.35); }
}

@keyframes sb-border-flow {
  to { background-position: 0 0, 300% 300%; }
}

@keyframes sb-day-pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(197, 160, 89, 0.25); }
  50% { box-shadow: 0 16px 40px rgba(197, 160, 89, 0.45); }
}

@keyframes sb-cta-glow {
  0% { box-shadow: 0 0 40px rgba(139, 30, 30, 0.3); }
  100% { box-shadow: 0 0 60px rgba(232, 200, 114, 0.25); }
}

@keyframes sb-portrait-glow {
  0% { box-shadow: 0 30px 60px rgba(42, 20, 12, 0.28); }
  100% { box-shadow: 0 30px 80px rgba(197, 160, 89, 0.35); }
}

@keyframes sb-kakao-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 960px) {
  .sb-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .sb-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sb-hero h1, .sb-title-gold, .sb-btn-gold, .sb-service-card,
  .sb-marquee-track, .sb-orery-core, .sb-kakao, .sb-pillar-col.is-day,
  .sb-portrait, .sb-cta-banner, body.saju-bot-body::before,
  .sb-hero-aurora, .sb-hero-rays { animation: none !important; }
  .sb-reveal { opacity: 1; transform: none; }
}

.sb-services-paid-head {
  margin: 2.5rem 0 1.5rem;
}

.sb-free-tools + .sb-services-paid-head,
.sb-free-tools-grid + .sb-services-paid-head {
  margin-top: 2.5rem;
}

/* ── 무료 점술 도구 (만세력·일장금·토정비결·오늘의운세) ── */
.sb-free-tools {
  background: linear-gradient(180deg, rgba(253, 247, 232, 0.08) 0%, rgba(11, 20, 38, 0.4) 100%);
}

.sb-free-tools-badge {
  display: inline-block;
  margin-top: 0.5rem;
}

.sb-free-tools-grid {
  margin-top: 2rem;
  align-items: stretch;
}

.sb-free-tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.35rem 1.25rem 1.5rem;
  background: rgba(253, 247, 232, 0.97);
  color: #212121;
  border: 1px solid rgba(109, 76, 43, 0.25);
  min-height: 100%;
}

.sb-free-tool-card h3,
.sb-free-tool-card p,
.sb-free-tool-card .sb-free-tool-title {
  color: #212121;
}

.sb-free-tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.75rem;
}

.sb-free-tool-hanja {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #6d4c2b;
  background: rgba(109, 76, 43, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(109, 76, 43, 0.2);
}

.sb-free-tool-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6d4c2b;
  background: #f5efe3;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.sb-free-tool-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.sb-free-tool-desc {
  flex: 1;
  margin: 0 0 1.15rem;
  line-height: 1.55;
  color: #5d4037 !important;
}

.sb-free-tool-btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

@media (max-width: 900px) {
  .sb-free-tools-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .sb-free-tools-grid.sb-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1101px) {
  .sb-free-tools-grid.sb-grid-4.sb-free-tools-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── 역학달력(택일달력) ── */
.sb-yk-wrap { max-width: 960px; }

.sb-yk-form-card {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  background: rgba(253, 247, 232, 0.96);
  color: #212121;
}

.sb-yk-note {
  margin: 0.35rem 0 0.75rem;
  font-size: 13px;
  color: #5d4037;
}

.sb-yk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.5rem;
}

.sb-yk-age {
  text-align: center;
  margin: 0 0 0.75rem;
  font-size: 14px;
  font-weight: 700;
  color: var(--cream, #fdf7e8);
}

/* 이전달·다음달: 어두운 배경에서 글자 흰색 */
.sb-yk-nav .sb-btn-line {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}
.sb-yk-nav .sb-btn-line:hover,
.sb-yk-nav .sb-btn-line:focus {
  color: #fff !important;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sb-yk-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  background: #faf6ee;
  border: 1px solid rgba(109, 76, 43, 0.22);
}

.sb-yk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #212121;
}

.sb-yk-table th {
  background: #c4a574;
  color: #1a1208;
  font-weight: 800;
  padding: 10px 8px;
  text-align: center;
}

.sb-yk-table th {
  background: #c8e6c9;
}

.sb-yk-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 1.25rem 0 1rem;
  flex-wrap: wrap;
}

.sb-yk-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold, #e8c060);
  text-align: center;
  flex: 1;
}

.sb-yk-table th.is-sat { background: #90caf9; }
.sb-yk-table th.is-sun { background: #ef9a9a; }

.sb-yk-cell {
  vertical-align: top;
  width: 14.28%;
  height: 118px;
  border: 1px solid rgba(109, 76, 43, 0.18);
  padding: 0;
  background: #fff;
}

/* 생기복덕 길흉 — 칸 배경색으로 구분 (아이콘 없음) */
.sb-yk-cell.is-daegil { background: #c8e6c9; }
.sb-yk-cell.is-pyeong { background: #fff9c4; }
.sb-yk-cell.is-daehyeong { background: #ffcdd2; }

/* 삼갑순법 강조 */
.sb-yk-cell.is-saenggap {
  outline: 2px solid rgba(46, 125, 50, 0.55);
  outline-offset: -2px;
}
.sb-yk-cell.is-ideal {
  background: #a5d6a7 !important;
  outline: 2px solid #2e7d32;
  outline-offset: -2px;
}
.sb-yk-cell.is-sagap:not(.is-ideal):not(.is-saenggap) {
  opacity: 0.92;
}

.sb-yk-badge {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.sb-yk-badge.is-ideal {
  background: #1b5e20;
  color: #fff;
}
.sb-yk-badge.is-saeng {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #81c784;
}
.sb-yk-badge.is-sa {
  background: #eceff1;
  color: #455a64;
  border: 1px solid #90a4ae;
}

.sb-yk-samgap {
  text-align: center;
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: #fdf7e8;
  font-weight: 600;
}
.sb-yk-legend-note {
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(253, 247, 232, 0.88);
  line-height: 1.45;
}

/* 무료 택일달력: 이번 달 고정 + 유료 앱 CTA */
.sb-yk-nav-current-only {
  justify-content: center;
}
.sb-yk-free-month-note {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft, #5c4a38);
}
.sb-yk-paid-cta {
  margin: 1rem 0 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: rgba(232, 200, 114, 0.12);
}
.sb-yk-paid-cta-form {
  margin-top: 0.85rem;
}
.sb-yk-paid-cta-text {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  color: var(--ink, #2a1f14);
}
.sb-yk-paid-cta-link-wrap {
  margin: 0;
}
.sb-yk-paid-cta-link {
  display: inline-flex;
}

.sb-yk-empty { background: #f3eee6; border: 1px solid rgba(109, 76, 43, 0.1); }
.sb-yk-cell.is-today {
  box-shadow: inset 0 0 0 3px #f9a825;
}

.sb-yk-cell-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  height: 100%;
  padding: 6px 7px;
  text-decoration: none;
  color: #212121;
}

.sb-yk-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 4px;
}

.sb-yk-num {
  font-size: 12px;
  font-weight: 800;
}

.sb-yk-lunar { font-size: 11px; color: #6d4c41; }
.sb-yk-ilju { font-size: 15px; font-weight: 800; letter-spacing: 0.04em; }
.sb-yk-term,
.sb-yk-holi,
.sb-yk-mang { font-size: 11px; color: #8b1e1e; font-weight: 700; }
.sb-yk-son { font-size: 14px; margin-top: auto; }

.sb-yk-legend {
  margin-top: 1rem;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fdf7e8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.1rem;
}

.sb-yk-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  vertical-align: -2px;
  margin: 0 2px 0 4px;
}

.sb-yk-swatch.is-daegil { background: #c8e6c9; }
.sb-yk-swatch.is-pyeong { background: #fff9c4; }
.sb-yk-swatch.is-daehyeong { background: #ffcdd2; }

.sb-yk-loading {
  text-align: center;
  padding: 2rem 0;
  color: #fdf7e8;
}

@media (max-width: 700px) {
  .sb-yk-cell { height: 96px; }
  .sb-yk-ilju { font-size: 13px; }
}

/* ── 오늘의 운세 (생기복덕) ── */
.sb-tf-wrap { max-width: 720px; }

.sb-tf-form-card {
  margin-top: 1.5rem;
  background: rgba(253, 247, 232, 0.96);
  color: #212121;
}

.sb-tf-form-card label,
.sb-tf-form-card .sb-tf-note {
  color: #212121;
}

/* ── 이름 감정 ── */
.sb-ne-wrap { max-width: 920px; }

.sb-ne-form-card,
.sb-ne-result-card {
  margin-top: 1.5rem;
  background: rgba(253, 247, 232, 0.96);
  color: #212121;
}

.sb-ne-form-card label,
.sb-ne-form-card h3,
.sb-ne-note,
.sb-ne-result-card,
.sb-ne-result-card h3,
.sb-ne-result-card h4,
.sb-ne-result-card h5,
.sb-ne-result-card p,
.sb-ne-result-card li {
  color: #212121;
}

.sb-ne-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.sb-ne-form h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.sb-ne-note {
  margin: 0.65rem 0 0.85rem;
  font-size: 0.88rem;
  color: #5d4037;
}

.sb-ne-head {
  background: #3E2723;
  color: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.sb-ne-head h3 { color: #fff !important; margin: 0; }

.sb-ne-scorebox { text-align: center; margin-bottom: 16px; }
.sb-ne-total { font-size: 4.2rem; font-weight: 800; line-height: 1; margin: 8px 0 16px; }
.sb-ne-chart { display: flex; justify-content: space-around; align-items: flex-end; height: 180px; }
.sb-ne-bar { width: 56px; height: 160px; background: #e9ecef; border-radius: 4px; position: relative; }
.sb-ne-bar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px; }
.sb-ne-bl { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; white-space: nowrap; }
.sb-ne-bar b { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 12px; }
.sb-ne-sec { border-left: 5px solid #5D4037; padding-left: 12px; margin: 22px 0 10px; }
.sb-ne-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.sb-ne-chars, .sb-ne-won, .sb-ne-2 { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-around; }
.sb-ne-2 > div { flex: 1; min-width: 220px; }
.sb-ne-char { text-align: center; }
.sb-ne-el { display: inline-block; padding: 3px 8px; border-radius: 4px; font-weight: 700; margin: 4px 0; background: #f5efe3; }
.sb-ne-box { border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.sb-ne-box.good { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.sb-ne-box.bad { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.sb-ne-box.neutral { background: #fff3cd; border: 1px solid #ffeeba; color: #856404; }
.sb-ne-again { margin: 1rem 0 0; }

@media (max-width: 720px) {
  .sb-ne-forms { grid-template-columns: 1fr; }
}

.sb-tf-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #5d4037;
}

.sb-tf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.sb-tf-submit { background: #6d4c2b; border-color: #6d4c2b; }

.sb-tf-result {
  margin-top: 1.5rem;
  background: #fdf7e8;
  color: #212121;
}

.sb-tf-result h2,
.sb-tf-result h3,
.sb-tf-result dt,
.sb-tf-result dd,
.sb-tf-meta {
  color: #212121;
}

.sb-tf-meta { font-size: 0.95rem; margin: 0.5rem 0 1rem; color: #5d4037; }

.sb-tf-grade-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  border-left: 5px solid var(--sb-tf-accent, #95A5A6);
  font-weight: 700;
}

.sb-tf-grade-icon {
  font-size: 2.4rem;
  line-height: 1;
}

/* 생기복덕 색 상태 칩 (이모지 대신) */
.sb-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}
.sb-status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--sb-status-color, #95A5A6);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  flex: 0 0 auto;
}
.sb-status-label {
  font-size: inherit;
}
.sb-tf-grade-chip {
  font-size: 1.05rem;
}
.sb-tf-grade-chip .sb-status-dot {
  width: 0.9rem;
  height: 0.9rem;
}
.sb-tf-detail-chip {
  font-size: 1rem;
}


.sb-tf-grade-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-tf-grade-label { font-size: 0.85rem; font-weight: 700; opacity: 0.85; }
.sb-tf-grade-value { font-size: 1.35rem; font-weight: 800; }
.sb-tf-grade-attrs { font-size: 0.92rem; opacity: 0.9; font-weight: 600; }

.sb-tf-grade-daegil { background: #fff6e8; color: #8a3b12; border: 1px solid #f5c16c; }
.sb-tf-grade-gil { background: #fff6e8; color: #8a3b12; border: 1px solid #f5c16c; }
.sb-tf-grade-pyeong { background: #eceff1; color: #37474f; border: 1px solid #b0bec5; }
.sb-tf-grade-juui,
.sb-tf-grade-daehyeong { background: #eceff1; color: #1b2631; border: 1px solid #2c3e50; }

.sb-tf-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.sb-tf-facts > div {
  background: #fff;
  border: 1px solid #e0d5c0;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.sb-tf-facts dt {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: #5d4037;
  font-weight: 600;
}

.sb-tf-facts dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.sb-tf-body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #5d4037;
}

.sb-tf-interp {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  line-height: 1.55;
  border: 1px solid transparent;
}

.sb-tf-interp.sb-tf-grade-daegil { background: #e8f5e9; border-color: #81c784; }
.sb-tf-interp.sb-tf-grade-gil { background: #fffde7; border-color: #ffd54f; }
.sb-tf-interp.sb-tf-grade-pyeong { background: #eceff1; border-color: #b0bec5; }
.sb-tf-interp.sb-tf-grade-juui { background: #ffebee; border-color: #ef9a9a; }

.sb-tf-detail {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(109, 76, 43, 0.18);
  border-left: 5px solid var(--sb-tf-accent, #95A5A6);
  background: #fffef9;
  color: #212121;
}

.sb-tf-detail.sb-tf-grade-daegil,
.sb-tf-detail.sb-tf-grade-gil { background: #fffaf0; }
.sb-tf-detail.sb-tf-grade-pyeong { background: #f7f9fa; }
.sb-tf-detail.sb-tf-grade-juui,
.sb-tf-detail.sb-tf-grade-daehyeong { background: #f4f6f7; }

.sb-tf-detail-cat {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6d4c41;
}

.sb-tf-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0.35rem;
}

.sb-tf-detail-head h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #212121;
}

.sb-tf-detail-icon { margin-right: 2px; }

.sb-tf-detail-badge {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--sb-tf-accent, #95A5A6);
  color: #fff;
}

.sb-tf-detail-sub {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: #5d4037;
  font-weight: 600;
}

.sb-tf-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: #4e342e;
}

.sb-tf-detail-block {
  margin: 0 0 0.85rem;
}

.sb-tf-detail-block:last-child {
  margin-bottom: 0;
}

.sb-tf-detail-block h5 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: #3e2723;
  font-weight: 700;
}

.sb-tf-detail-block p {
  margin: 0;
  line-height: 1.65;
  color: #3e2723;
  font-size: 0.95rem;
}

.sb-tf-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #3e2723;
  line-height: 1.55;
}

.sb-tf-list-ok li::marker { content: "✓ "; }
.sb-tf-list-avoid li::marker { content: "✕ "; }

.sb-tf-detail-avoid {
  background: rgba(44, 62, 80, 0.06);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.sb-tf-detail-metaphor p,
.sb-tf-detail-advice p {
  font-style: italic;
  color: #4e342e;
}

.sb-tf-detail-advice {
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: rgba(109, 76, 43, 0.08);
}

.sb-tf-domains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.sb-tf-domains > div {
  background: rgba(253, 247, 232, 0.85);
  border: 1px solid rgba(109, 76, 43, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.sb-tf-domains dt {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #6d4c41;
}

.sb-tf-domains dd {
  margin: 0;
  font-size: 0.9rem;
  color: #212121;
}

#sb-tf-result[hidden],
#sb-tf-form-card[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .sb-tf-facts { grid-template-columns: 1fr; }
  .sb-tf-domains { grid-template-columns: 1fr; }
  .sb-tf-actions .sb-btn { width: 100%; text-align: center; }
  .sb-tf-detail-head { flex-direction: column; }
}

/* ── 토정비결 (무료) ── */
.sb-tojung-band {
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  background: linear-gradient(135deg, rgba(139, 61, 18, 0.18) 0%, rgba(11, 20, 38, 0.9) 55%);
}

.sb-badge-free {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream);
  background: linear-gradient(90deg, var(--brown), var(--gold-deep));
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.35);
}

.sb-tojung-wrap { max-width: 920px; }

.sb-tojung-form-card,
.sb-tojung-result {
  margin-top: 1.5rem;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: rgba(15, 26, 48, 0.92) !important;
  color: #fdf7e8 !important;
}

/* sb-card 기본 스타일(배경·글자색) 덮어쓰기 */
.sb-card.sb-tojung-result,
.sb-card.sb-tojung-form-card {
  background: rgba(15, 26, 48, 0.92) !important;
  color: #fdf7e8 !important;
}

.sb-card.sb-manse-result,
.sb-card.sb-manse-form-card {
  background: #fdf7e8 !important;
  color: #1a1a1a !important;
  border-color: #d4c4a8 !important;
}

.sb-manse-result h2,
.sb-manse-result h3,
.sb-manse-result h4,
.sb-manse-result p,
.sb-manse-result th,
.sb-manse-result td,
.sb-manse-result .sb-manse-meta,
.sb-manse-result .sb-manse-bar-label,
.sb-manse-result .sb-manse-bar-legend,
.sb-manse-result .sb-manse-profile,
.sb-manse-result .sb-manse-kin-tag,
.sb-manse-result .sb-manse-pillar-unseong,
.sb-manse-result .sb-manse-pillar-shinsal,
.sb-manse-result .sb-manse-jj-kin {
  color: #1a1a1a !important;
}

.sb-card.sb-tojung-result:hover,
.sb-card.sb-tojung-form-card:hover {
  transform: none;
}

.sb-tojung-result h2,
.sb-tojung-result h3,
.sb-tojung-result h4,
.sb-tojung-result p,
.sb-tojung-result li,
.sb-tojung-result strong,
.sb-tojung-result .sb-muted {
  color: #fdf7e8 !important;
}

.sb-tojung-result-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.sb-tojung-info-box h3 {
  color: var(--gold) !important;
  margin: 0 0 0.75rem;
  font-family: var(--serif);
}

.sb-tojung-form-card label,
.sb-tojung-form-card .sb-field {
  color: #fdf7e8;
}

.sb-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.sb-tojung-guide {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--gold-deep);
  background: rgba(253, 247, 232, 0.06);
  color: var(--cream);
  line-height: 1.7;
}

.sb-tojung-result-head {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

.sb-tojung-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sb-tojung-info-box {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(253, 247, 232, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.sb-tojung-info-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-tojung-info-box li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(197, 160, 89, 0.2);
}

.sb-tojung-gwa-digits {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.sb-tojung-gwa-digits span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-weight: 700;
  color: var(--cream);
  background: linear-gradient(145deg, var(--brown), var(--gold-deep));
}

.sb-tojung-overall {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(253, 247, 232, 0.08);
  border-left: 4px solid var(--gold);
}

.sb-tojung-overall h3,
.sb-tojung-month h4 {
  color: var(--gold) !important;
  margin: 0 0 0.75rem;
}

.sb-tojung-overall p,
.sb-tojung-month p {
  color: #fdf7e8 !important;
  line-height: 1.85;
  margin: 0;
}

.sb-tojung-monthly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.sb-tojung-month {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(6, 13, 24, 0.55);
  border: 1px solid rgba(197, 160, 89, 0.15);
}

/* 토정비결 — 신문 기사형 (이미지 + 본문) */
.sb-tj-news-masthead {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--gold) !important;
}

.sb-tj-newspaper {
  margin: 0.5rem 0 1.5rem;
  padding: 1.25rem 1.15rem 1.5rem;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #f7f1e4 0%, #efe6d4 100%);
  border: 1px solid #c4b08a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  color: #1c1610;
}

.sb-tj-news-lead {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 1.15rem 1.35rem;
  align-items: start;
  margin-bottom: 0.25rem;
}

.sb-tj-news-figure {
  margin: 0;
  text-align: center;
}

.sb-tj-news-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #a89068;
  background: #fff;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(60, 40, 10, 0.12);
}

.sb-tj-news-cap {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #5c4a32;
  font-family: var(--serif, "Noto Serif KR", Georgia, serif);
}

.sb-tj-news-text {
  min-width: 0;
}

.sb-tj-news-label {
  margin: 0 0 0.35rem !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b4513 !important;
}

.sb-tj-news-headline {
  margin: 0 0 0.75rem !important;
  font-family: var(--serif, "Noto Serif KR", Georgia, serif);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem) !important;
  line-height: 1.35;
  color: #1a1208 !important;
  border-bottom: 2px solid #1a1208;
  padding-bottom: 0.45rem;
}

.sb-tj-news-body p,
.sb-tj-news-month-body p {
  margin: 0 0 0.7rem !important;
  font-family: var(--serif, "Noto Serif KR", Georgia, serif);
  font-size: 0.98rem;
  line-height: 1.85;
  color: #22180e !important;
  text-align: justify;
  word-break: keep-all;
}

.sb-tj-news-body p:last-child,
.sb-tj-news-month-body p:last-child {
  margin-bottom: 0 !important;
}

.sb-tj-news-rule {
  height: 0;
  margin: 1.1rem 0 1.15rem;
  border: 0;
  border-top: 3px double #1a1208;
}

.sb-tj-news-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  column-gap: 1.35rem;
}

.sb-tj-news-month {
  padding: 0.15rem 0 0.85rem;
  border-bottom: 1px solid #c9b896;
  background: transparent;
  border-radius: 0;
}

.sb-tj-news-month-head {
  margin-bottom: 0.45rem;
}

.sb-tj-news-kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #7a6244;
  margin-bottom: 0.15rem;
}

.sb-tj-news-month-head h4 {
  margin: 0 !important;
  font-family: var(--serif, "Noto Serif KR", Georgia, serif);
  font-size: 1.05rem !important;
  color: #1a1208 !important;
  border-left: 3px solid #8b4513;
  padding-left: 0.5rem;
}

/* 신문 영역 안에서는 기존 어두운 테마 글자색 덮어쓰기 */
.sb-tojung-result .sb-tj-newspaper h3,
.sb-tojung-result .sb-tj-newspaper h4,
.sb-tojung-result .sb-tj-newspaper p,
.sb-tojung-result .sb-tj-newspaper strong,
.sb-tojung-result .sb-tj-newspaper figcaption {
  color: #1a1208 !important;
}

@media (max-width: 720px) {
  .sb-tj-news-lead {
    grid-template-columns: 1fr;
  }
  .sb-tj-news-figure {
    max-width: 220px;
    margin: 0 auto;
  }
  .sb-tj-news-months {
    grid-template-columns: 1fr;
  }
}

.sb-notice-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(139, 30, 30, 0.35);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffe0e0;
}

.sb-btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

#sb-tojung-error[hidden],
#sb-tojung-result[hidden],
#sb-tojung-form-card[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .sb-hero-actions .sb-btn { width: 100%; text-align: center; }
}

/* ── 만세력 (모바일 우선·명식표) ── */
.sb-manse-section {
  overflow-x: hidden;
}

.sb-manse-wrap {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

.sb-manse-form-card {
  background: #fdf7e8;
  border: 1px solid #d4c4a8;
}

.sb-manse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.sb-manse-submit { background: #6d4c2b; border-color: #6d4c2b; }
.sb-manse-tojung { background: #2e7d32; border-color: #2e7d32; color: #fff; text-decoration: none; }

.sb-manse-result {
  background: linear-gradient(180deg, #fffdf8 0%, #f7f0e4 100%) !important;
  color: #1a1a1a;
  border: 1px solid #c8d6c4 !important;
  border-radius: 14px !important;
  margin-top: 1.25rem;
  padding: 0.85rem 0.7rem 1.1rem !important;
  box-shadow: 0 8px 28px rgba(40, 55, 40, 0.08);
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.sb-manse-result-head {
  text-align: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(90, 120, 90, 0.18);
}

.sb-manse-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #6b7f6b !important;
  font-weight: 600;
}

.sb-manse-result-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif, "Gowun Batang", serif);
  font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  font-weight: 700;
  color: #2c3a2c !important;
}

.sb-manse-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #c5d4c0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  font-size: 0.78rem;
}

.sb-manse-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid #e4ecdf;
  border-right: 1px solid #e4ecdf;
  min-width: 0;
}

.sb-manse-profile-row:nth-child(2n) { border-right: none; }
.sb-manse-profile-row:nth-last-child(-n+2) { border-bottom: none; }
.sb-manse-profile-row:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
}

.sb-manse-profile-row span {
  flex: 0 0 auto;
  color: #5a6e5a;
  font-weight: 600;
  font-size: 0.72rem;
}

.sb-manse-profile-row strong {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
  color: #1a1a1a;
}

.sb-manse-gongmang {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.65rem;
}

.sb-manse-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
  background: rgba(0, 140, 120, 0.1);
  border: 1px solid rgba(0, 120, 100, 0.2);
  border-radius: 999px;
  color: #1a1a1a;
}

.sb-manse-chip b { color: #0d6b5c; }

.sb-manse-myeonggung {
  margin-top: 0.45rem;
  text-align: center;
}

.sb-manse-chip-myeonggung {
  border-radius: 8px;
  background: rgba(139, 61, 18, 0.08);
  border-color: rgba(139, 61, 18, 0.22);
  color: #5d4037;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.sb-manse-chip-myeonggung b {
  color: #8b3d12;
}

.sb-manse-myeonggung-note {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #888;
  line-height: 1.4;
}

/* 선천 MBTI (부록) */
.sb-manse-mbti {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #faf6ee 0%, #f3ebe0 100%);
  border: 1px solid #d9cbb8;
  border-radius: 10px;
}
.sb-manse-mbti h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: #5c3d1e;
}
.sb-manse-mbti-layout {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
}
.sb-manse-mbti-portrait {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(139, 61, 18, 0.18);
  background: #fffdf8;
  box-shadow: 0 6px 16px rgba(60, 40, 20, 0.08);
}
.sb-manse-mbti-portrait img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.sb-manse-mbti-body {
  min-width: 0;
}
.sb-manse-mbti-type {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #8b3d12;
  margin-bottom: 0.15rem;
}
.sb-manse-mbti-label {
  font-size: 0.88rem;
  color: #5c4a38;
  margin: 0 0 0.45rem;
  font-weight: 600;
}
.sb-manse-mbti-axes {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.78rem;
  color: #4a4036;
  line-height: 1.55;
}
.sb-manse-mbti-axis {
  display: inline-block;
  min-width: 2.4rem;
  font-weight: 700;
  color: #6d4c2b;
}
.sb-manse-mbti-bars { margin: 0.35rem 0 0.5rem; }
.sb-manse-mbti-bar-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 3.2rem;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.28rem;
}
.sb-manse-mbti-bar-label {
  font-size: 0.7rem;
  color: #5c4a38;
  white-space: nowrap;
}
.sb-manse-mbti-bar-track {
  height: 0.45rem;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.sb-manse-mbti-bar-fill {
  display: block;
  height: 100%;
  background: #8b5a2b;
  border-radius: 999px;
}
.sb-manse-mbti-note {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #7a6a58;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .sb-manse-mbti-layout {
    grid-template-columns: 1fr;
  }
  .sb-manse-mbti-portrait {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* 4기둥 — 한 화면 100% 균등 분할 */
.sb-manse-board {
  margin: 0.35rem 0 0.85rem;
  border: 1px solid #c5d4c0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.sb-manse-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.sb-manse-pillar {
  min-width: 0;
  padding: 0.4rem 0.18rem 0.5rem;
  border-right: 1px solid #e4ecdf;
  text-align: center;
  box-sizing: border-box;
}

.sb-manse-pillar:last-child { border-right: none; }

.sb-manse-pillar.is-empty { opacity: 0.55; }

.sb-manse-pillar-head {
  padding: 0.25rem 0.1rem 0.35rem;
  margin: -0.4rem -0.18rem 0.35rem;
  background: #e8f0e4;
  border-bottom: 1px solid #c5d4c0;
}

.sb-manse-pillar-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: #2c3a2c;
  letter-spacing: 0.06em;
}

.sb-manse-pillar-head small {
  display: block;
  font-size: 0.58rem;
  color: #888;
  margin-top: 0.1rem;
}

.sb-manse-pillar-napum {
  font-size: 0.62rem;
  color: #5a6e5a;
  line-height: 1.25;
  min-height: 1.5em;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sb-manse-pillar-jinshin {
  font-size: 0.68rem;
  font-weight: 700;
  color: #c62828 !important;
  min-height: 1.1em;
  margin-bottom: 0.25rem;
}

.sb-manse-pillar-gan-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  margin-bottom: 0.35rem;
}

.sb-manse-gan {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.85rem, 14vw, 2.55rem);
  height: clamp(1.85rem, 14vw, 2.55rem);
  max-width: 100%;
  padding: 0;
  font-size: clamp(1.05rem, 7.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1;
  border-radius: 7px;
  box-sizing: border-box;
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.sb-manse-gan-sm {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.95rem;
  border-radius: 5px;
}

.sb-manse-kin-tag {
  display: block;
  font-size: 0.58rem;
  line-height: 1.2;
  color: #555 !important;
  max-width: 100%;
  word-break: keep-all;
  padding: 0 0.1rem;
}

.sb-manse-pillar-jj {
  margin: 0.2rem 0 0.3rem;
  min-height: 2.4rem;
}

.sb-manse-jj-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.2rem;
}

.sb-manse-jj-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: top;
}

.sb-manse-jj-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.sb-manse-jj-kin {
  font-size: 0.5rem;
  color: #777 !important;
  margin-top: 1px;
  line-height: 1.1;
  max-width: 2.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-manse-pillar-unseong,
.sb-manse-pillar-shinsal {
  font-size: 0.62rem;
  color: #444 !important;
  padding: 0.15rem 0.1rem;
  border-top: 1px dashed #e0e8dc;
  word-break: keep-all;
  line-height: 1.3;
}

.sb-manse-pillar-note,
.sb-manse-pillar-heoja {
  font-size: 0.72rem;
  font-weight: 600;
  color: #888;
  margin: 0.25rem 0 0;
  padding: 0.2rem 0.15rem 0;
  border-top: 1px dashed #d5e0d2;
  min-height: 1.2em;
  line-height: 1.35;
}

.sb-manse-pillar-heoja.has-heoja {
  font-weight: 700;
  color: #8b3d12;
  background: rgba(139, 61, 18, 0.06);
  border-radius: 0 0 4px 4px;
}

.sb-manse-pillar-johab {
  font-size: 0.62rem;
  line-height: 1.35;
  color: #888;
  margin: 0.2rem 0 0;
  padding: 0.2rem 0.1rem 0;
  border-top: 1px dashed #e8e0d0;
  min-height: 0.9em;
  word-break: keep-all;
}

.sb-manse-pillar-johab.has-johab {
  color: #5c4030;
  font-weight: 600;
  background: rgba(232, 200, 114, 0.12);
  border-radius: 4px;
  border-top: none;
  padding: 0.25rem 0.2rem;
}

.sb-manse-johab-summary {
  margin-top: 0.75rem;
  padding: 0.7rem 0.75rem;
  background: #fffdf7;
  border: 1px solid #e0d5c0;
  border-radius: 10px;
}

.sb-manse-johab-summary h3 {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: #5c4030 !important;
}

.sb-manse-johab-summary ul {
  margin: 0;
  padding: 0 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #3a2a1c;
}

.sb-manse-johab-summary li {
  margin: 0.2rem 0;
}

.sb-manse-johab-line {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #3a2a1c;
}

.sb-manse-board-legend {
  display: none;
}

.sb-manse-empty {
  color: #bbb;
  font-size: 0.85rem;
}

/* 대운·세운 가로 스냅 스크롤 */
.sb-manse-sub-card {
  margin-top: 0.75rem;
  padding: 0.65rem 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid #c5d4c0;
  border-radius: 10px;
}

.sb-manse-luck-heoja {
  margin-top: 0.55rem;
  padding: 0.4rem 0.45rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #666;
  border-top: 1px dashed #d5e0d2;
  word-break: keep-all;
}

.sb-manse-luck-heoja.has-heoja {
  color: #8b3d12;
  font-weight: 600;
  background: rgba(139, 61, 18, 0.06);
  border-radius: 6px;
  border-top: none;
}

.sb-manse-sub-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: #2c3a2c !important;
  font-weight: 700;
}

.sb-manse-sub-card h3 small {
  font-weight: 500;
  font-size: 0.7rem;
  color: #6b7f6b;
}

.sb-manse-luck-scroll {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 0.1rem 0.4rem;
  scrollbar-width: thin;
}

.sb-manse-luck-scroll::-webkit-scrollbar { height: 4px; }
.sb-manse-luck-scroll::-webkit-scrollbar-thumb {
  background: #b8c9b4;
  border-radius: 4px;
}

.sb-manse-luck-cell {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 3.6rem;
  width: auto;
  padding: 0.35rem 0.28rem;
  text-align: center;
  border: 1px solid #e4ecdf;
  border-radius: 8px;
  background: #fafcf8;
  box-sizing: border-box;
}

.sb-manse-luck-cell.is-current {
  border-color: #c9a227;
  background: #fff8e1;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.sb-manse-luck-cell.is-current .sb-manse-luck-top {
  color: #8a6d12;
  font-weight: 700;
}

.sb-manse-luck-top {
  display: block;
  font-size: 0.58rem;
  color: #5a6e5a;
  margin-bottom: 0.2rem;
  line-height: 1.2;
  white-space: nowrap;
}

.sb-manse-luck-cell .sb-manse-gan {
  margin: 0 auto 0.18rem;
}

/* 분포 그래프 · 오행 도넛 */
.sb-manse-graph-card {
  margin-top: 0.85rem;
  border: 1px solid #b2dfdb;
  border-radius: 10px;
  overflow: hidden;
}

.sb-manse-graph-title {
  margin: 0;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(90deg, #00695c, #00897b);
  color: #fff !important;
  font-size: 0.92rem;
}

.sb-manse-graph-body {
  padding: 0.85rem 0.7rem;
  background: #f5faf7;
}

.sb-manse-ohang-block { margin-bottom: 0.85rem; }

.sb-manse-ohang-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #2c3a2c !important;
}

.sb-manse-donut-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sb-manse-donut {
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
}

.sb-manse-donut-seg {
  transition: stroke-dashoffset 0.4s ease;
}

.sb-manse-donut-center {
  font-size: 9px;
  fill: #5a6e5a;
  font-weight: 700;
}

.sb-manse-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: #333;
}

.sb-manse-donut-legend li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sb-manse-donut-legend i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  flex: 0 0 auto;
}

.sb-manse-donut-legend b { font-weight: 700; }

.sb-manse-bar-row { margin-bottom: 0.75rem; }
.sb-manse-bar-row:last-child { margin-bottom: 0; }

.sb-manse-bar-label {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  color: #2c3a2c !important;
}

.sb-manse-bar-track {
  display: flex;
  height: 1.05rem;
  border-radius: 999px;
  overflow: hidden;
  background: #e0e0e0;
}

.sb-manse-bar-seg { display: block; height: 100%; min-width: 2px; }

.sb-manse-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: #555 !important;
}

.sb-manse-bar-legend-item i {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.sb-steps-heading {
  color: #fdf7e8 !important;
}

#sb-manse-result[hidden],
#sb-manse-form-card[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .sb-manse-wrap { max-width: 640px; }
  .sb-manse-result { padding: 1.15rem 1.1rem 1.35rem !important; }
  .sb-manse-pillar { padding: 0.55rem 0.35rem 0.65rem; }
  .sb-manse-kin-tag { font-size: 0.68rem; }
  .sb-manse-jj-dot { width: 1.35rem; height: 1.35rem; font-size: 0.7rem; }
}

@media (max-width: 600px) {
  .sb-manse-actions .sb-btn { width: 100%; text-align: center; }
}

/* ── 달마일장금(당사주) — 모바일 우선·5기둥 보드 ── */
.sb-ilj-section {
  overflow-x: hidden;
}

.sb-ilj-wrap {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

.sb-ilj-lunar-warn {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: #fff3e0;
  border: 2px solid #e65100;
  border-radius: 8px;
  color: #212121;
}

.sb-ilj-lunar-warn strong {
  display: block;
  font-size: 1.05rem;
  color: #bf360c;
  margin-bottom: 0.5rem;
}

.sb-ilj-lunar-warn p {
  margin: 0;
  line-height: 1.6;
  color: #212121;
}

.sb-ilj-form-card .sb-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #bf360c;
  font-weight: 600;
}

.sb-ilj-form-card .sb-field-full {
  flex: 1 1 100%;
}

.sb-card.sb-ilj-result,
.sb-card.sb-ilj-form-card {
  background: #fdf7e8 !important;
  color: #1a1a1a !important;
  border-color: #c8d6c4 !important;
}

.sb-ilj-form-card {
  margin-top: 1.5rem;
  background: rgba(253, 247, 232, 0.96);
  color: #212121;
}

.sb-ilj-form-card label,
.sb-ilj-form-card .sb-ilj-note {
  color: #212121;
}

.sb-ilj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.sb-ilj-submit { background: #6d4c2b; border-color: #6d4c2b; }

.sb-ilj-result {
  margin-top: 1.25rem;
  background: linear-gradient(180deg, #fffdf8 0%, #f7f0e4 100%) !important;
  color: #1a1a1a;
  border: 1px solid #c8d6c4 !important;
  border-radius: 14px !important;
  padding: 0.85rem 0.7rem 1.1rem !important;
  box-shadow: 0 8px 28px rgba(40, 55, 40, 0.08);
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.sb-ilj-result h2,
.sb-ilj-result h3,
.sb-ilj-result h4,
.sb-ilj-result p,
.sb-ilj-result dt,
.sb-ilj-result dd,
.sb-ilj-result strong,
.sb-ilj-result .sb-ilj-metric b,
.sb-ilj-result .sb-ilj-jj-kin {
  color: #1a1a1a !important;
}

.sb-ilj-result-head {
  text-align: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(90, 120, 90, 0.18);
}

.sb-ilj-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #6b7f6b !important;
  font-weight: 600;
}

.sb-ilj-result-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif, "Gowun Batang", serif);
  font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  font-weight: 700;
  color: #2c3a2c !important;
}

.sb-ilj-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #c5d4c0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  font-size: 0.78rem;
}

.sb-ilj-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid #e4ecdf;
  border-right: 1px solid #e4ecdf;
  min-width: 0;
}

.sb-ilj-profile-row:nth-child(2n) { border-right: none; }
.sb-ilj-profile-row:nth-last-child(-n+2) { border-bottom: none; }
.sb-ilj-profile-row:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
}

.sb-ilj-profile-row span {
  flex: 0 0 auto;
  color: #5a6e5a;
  font-weight: 600;
  font-size: 0.72rem;
}

.sb-ilj-profile-row strong {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.sb-ilj-board {
  margin: 0.35rem 0 0.85rem;
  border: 1px solid #c5d4c0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.sb-ilj-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.sb-ilj-pillar {
  min-width: 0;
  padding: 0.35rem 0.1rem 0.45rem;
  border-right: 1px solid #e4ecdf;
  text-align: center;
  box-sizing: border-box;
}

.sb-ilj-pillar:last-child { border-right: none; }

.sb-ilj-pillar-heoja {
  font-size: 0.68rem;
  font-weight: 600;
  color: #888;
  margin: 0.3rem 0 0;
  padding: 0.25rem 0.1rem 0;
  border-top: 1px dashed #d5e0d2;
  min-height: 1.15em;
  line-height: 1.35;
  word-break: keep-all;
}

.sb-ilj-pillar-heoja.has-heoja {
  font-weight: 700;
  color: #8b3d12;
  background: rgba(139, 61, 18, 0.06);
  border-radius: 0 0 4px 4px;
}

.sb-ilj-pillar-heoja span {
  opacity: 0.75;
  font-weight: 600;
}

.sb-ilj-gan.sb-ilj-gan-sm,
.sb-ilj-gan-sm {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.78rem;
}

.sb-ilj-sewoon {
  margin-top: 0.85rem;
}

.sb-ilj-pillar-head {
  padding: 0.22rem 0.05rem 0.3rem;
  margin: -0.35rem -0.1rem 0.3rem;
  background: #e8f0e4;
  border-bottom: 1px solid #c5d4c0;
}

.sb-ilj-pillar-label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  color: #2c3a2c;
  letter-spacing: 0.04em;
}

.sb-ilj-pillar-head small {
  display: block;
  font-size: 0.52rem;
  color: #6b7f6b;
  margin-top: 0.08rem;
}

.sb-ilj-pillar-gan-row {
  display: flex;
  justify-content: center;
  margin-bottom: 0.28rem;
}

.sb-ilj-gan {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.55rem, 11vw, 2.35rem);
  height: clamp(1.55rem, 11vw, 2.35rem);
  max-width: 100%;
  padding: 0;
  font-size: clamp(0.95rem, 5.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.sb-ilj-void {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.55rem, 11vw, 2.35rem);
  height: clamp(1.55rem, 11vw, 2.35rem);
  font-size: 0.55rem;
  color: #9e9e9e;
  border: 1px dashed #c5d4c0;
  border-radius: 6px;
  background: #fafafa;
}

.sb-ilj-pillar-jj {
  margin: 0.15rem 0 0.25rem;
  min-height: 2.2rem;
}

.sb-ilj-jj-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.12rem 0.15rem;
}

.sb-ilj-jj-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.sb-ilj-jj-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  font-size: 0.52rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.sb-ilj-jj-kin {
  font-size: 0.45rem;
  color: #777 !important;
  margin-top: 1px;
  max-width: 1.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-ilj-metric {
  border-top: 1px dashed #e0e8dc;
  padding: 0.22rem 0.08rem;
  font-size: 0.58rem;
  line-height: 1.3;
  word-break: keep-all;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-ilj-metric b {
  display: block;
  width: 100%;
  font-weight: 600;
  font-size: 0.62rem;
  color: #1a1a1a !important;
  text-align: center !important;
}

.sb-ilj-metric-essence b {
  font-size: 0.55rem;
  text-align: center !important;
}

.sb-ilj-empty { color: #bbb; font-size: 0.75rem; }

.sb-ilj-explain {
  margin-top: 0.85rem;
  padding: 0.85rem 0.75rem;
  background: #fff;
  border: 1px solid #c5d4c0;
  border-radius: 10px;
}

.sb-ilj-explain h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: #2c3a2c !important;
}

.sb-ilj-explain dl { margin: 0; }
.sb-ilj-explain dt {
  font-weight: 700;
  margin-top: 0.65rem;
  color: #5a6e5a !important;
  font-size: 0.85rem;
}
.sb-ilj-explain dt:first-child { margin-top: 0; }
.sb-ilj-explain dd {
  margin: 0.2rem 0 0;
  line-height: 1.55;
  font-size: 0.85rem;
}

.sb-ilj-ojasul {
  margin-top: 0.85rem;
  padding: 0.85rem 0.75rem 1rem;
  background: #fff;
  border: 1px solid #c5d4c0;
  border-radius: 10px;
}

.sb-ilj-ojasul h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #2c3a2c !important;
}

.sb-ilj-ojasul h4 {
  margin: 1rem 0 0.5rem;
  font-size: 0.88rem;
  color: #6d4c2b !important;
  border-bottom: 1px solid #e8dfd0;
  padding-bottom: 0.28rem;
}

.sb-ilj-ojasul-lead,
.sb-ilj-ojasul-note,
.sb-ilj-ojasul-empty {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  color: #5a6e5a !important;
  font-size: 0.82rem;
}

.sb-ilj-rel-list,
.sb-ilj-hap-list,
.sb-ilj-check,
.sb-ilj-num-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-ilj-rel-item,
.sb-ilj-hap-item,
.sb-ilj-num-item {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.7rem;
  background: #fafcf8;
  border-left: 3px solid #6d8f6a;
  border-radius: 0 8px 8px 0;
}

.sb-ilj-rel-head,
.sb-ilj-num-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.sb-ilj-rel-kind {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: #5d4037;
  color: #fdf7e8 !important;
}

.sb-ilj-tag-in { background: #2e7d32; }
.sb-ilj-tag-out { background: #8b1e1e; }

.sb-ilj-num-place {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a6e5a;
}

.sb-ilj-num-val {
  font-size: 1rem;
  color: #2c3a2c !important;
}

.sb-ilj-num-pat {
  font-size: 0.72rem;
  color: #6d4c2b;
  background: #f0ebe0;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
}

.sb-ilj-rel-pos {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #6d4c2b !important;
}

.sb-ilj-rel-mean,
.sb-ilj-hap-note {
  margin: 0.3rem 0 0;
  line-height: 1.55;
  font-size: 0.85rem;
}

.sb-ilj-hap-note { font-size: 0.8rem; color: #5a6e5a !important; }

.sb-ilj-check li {
  margin: 0.3rem 0 0;
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.55;
  font-size: 0.85rem;
}

.sb-ilj-check li::before {
  content: "·";
  position: absolute;
  left: 0.15rem;
  color: #6d8f6a;
  font-weight: 700;
}

#sb-ilj-result[hidden],
#sb-ilj-form-card[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .sb-ilj-wrap { max-width: 640px; }
  .sb-ilj-result { padding: 1.15rem 1.1rem 1.35rem !important; }
  .sb-ilj-pillar { padding: 0.5rem 0.25rem 0.55rem; }
  .sb-ilj-metric { font-size: 0.62rem; }
  .sb-ilj-metric b { font-size: 0.7rem; }
  .sb-ilj-jj-dot { width: 1.2rem; height: 1.2rem; font-size: 0.62rem; }
}

@media (max-width: 600px) {
  .sb-ilj-actions .sb-btn { width: 100%; text-align: center; }
}

/* ========== 부록 · 신살용어 ========== */
.sb-sinsal-section {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.sb-sinsal-wrap {
  max-width: 980px;
}

.sb-sinsal-hero {
  margin-bottom: 1.75rem;
}

.sb-sinsal-count {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--tan);
  letter-spacing: 0.02em;
}

.sb-sinsal-count-sep {
  opacity: 0.55;
  margin: 0 0.15rem;
}

.sb-sinsal-toolbar {
  position: sticky;
  top: 0.65rem;
  z-index: 5;
  margin-bottom: 1.35rem;
  padding: 0.85rem 1rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(15, 26, 48, 0.96), rgba(6, 13, 24, 0.94));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.sb-sinsal-search-label {
  display: block;
  margin: 0 0 0.75rem;
}

.sb-sinsal-search {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  background: rgba(253, 247, 232, 0.96);
  color: #1a120a;
  font-family: var(--font);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sb-sinsal-search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 200, 114, 0.22);
}

.sb-sinsal-chosung {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sb-sinsal-chip {
  min-width: 2.1rem;
  padding: 0.32rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: transparent;
  color: var(--cream);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sb-sinsal-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.sb-sinsal-chip.is-active {
  background: linear-gradient(180deg, #e8c872, #c5a059);
  border-color: transparent;
  color: #1a120a;
  font-weight: 700;
}

.sb-sinsal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 720px) {
  .sb-sinsal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.sb-sinsal-card {
  margin: 0;
  padding: 1.05rem 1.15rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  background:
    linear-gradient(145deg, rgba(253, 247, 232, 0.98), rgba(245, 234, 210, 0.95));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  color: #1a120a;
  animation: sb-sinsal-fade 0.35s ease both;
}

@keyframes sb-sinsal-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sb-sinsal-card[hidden] {
  display: none !important;
}

.sb-sinsal-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(139, 61, 18, 0.18);
}

.sb-sinsal-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: #5c2410;
  letter-spacing: -0.02em;
}

.sb-sinsal-hanja {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
  background: rgba(139, 61, 18, 0.1);
  color: #8b3d12;
  font-family: var(--serif);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.sb-sinsal-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #2a1f14;
}

.sb-sinsal-desc p {
  margin: 0 0 0.55rem;
}

.sb-sinsal-desc p:last-child {
  margin-bottom: 0;
}

.sb-sinsal-desc-empty {
  margin: 0;
  font-size: 0.88rem;
  color: #7a6a58;
  font-style: italic;
}

.sb-sinsal-empty {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--tan);
  font-size: 0.95rem;
}

.sb-sinsal-empty[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .sb-sinsal-toolbar {
    top: 0.35rem;
    padding: 0.7rem 0.75rem 0.85rem;
  }
  .sb-sinsal-chip {
    min-width: 1.85rem;
    padding: 0.28rem 0.42rem;
    font-size: 0.78rem;
  }
}

/* ── 매화역수 ── */
.sb-maehwa-panels {
  margin: 0.75rem 0 1rem;
}

.sb-maehwa-num-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.sb-maehwa-num-card {
  background: #fffdf7;
  border: 1px solid #e0d5c0;
  border-radius: 10px;
  padding: 0.75rem 0.65rem;
  text-align: center;
}

.sb-maehwa-num-head {
  font-size: 0.78rem;
  color: #5c4030;
  font-weight: 700;
}

.sb-maehwa-num-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #8b3d12;
  line-height: 1.2;
  margin: 0.2rem 0;
}

.sb-maehwa-num-kw {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3a2a1c;
}

.sb-maehwa-num-desc,
.sb-maehwa-num-calc {
  font-size: 0.75rem;
  color: #666;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.sb-maehwa-pokuk,
.sb-maehwa-hex,
.sb-maehwa-cheyong,
.sb-maehwa-expert {
  background: #fffdf7;
  border: 1px solid #e0d5c0;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.sb-maehwa-pokuk h3,
.sb-maehwa-hex h3,
.sb-maehwa-cheyong h3,
.sb-maehwa-cheyong h4,
.sb-maehwa-expert h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #5c4030 !important;
}

.sb-maehwa-cheyong h4 {
  margin-top: 0.65rem;
  font-size: 0.82rem;
}

.sb-maehwa-pokuk-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sb-maehwa-pokuk-table td {
  border: 1px solid #e8dfd0;
  text-align: center;
  padding: 0.45rem 0.2rem;
  vertical-align: top;
}

.sb-maehwa-pokuk-table td b {
  display: block;
  font-size: 0.85rem;
}

.sb-maehwa-pokuk-table td span {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #8b3d12;
}

.sb-maehwa-pokuk-table td small {
  display: block;
  font-size: 0.72rem;
  color: #666;
}

.sb-maehwa-hex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.sb-maehwa-hex-card {
  background: #fff;
  border: 1px solid #ebe3d4;
  border-radius: 8px;
  padding: 0.55rem 0.5rem;
}

.sb-maehwa-hex-card-head {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b3d12;
  margin-bottom: 0.35rem;
}

.sb-maehwa-hex-body {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #3a2a1c;
}

.sb-maehwa-hex-sym {
  font-size: 1.9rem;
  line-height: 1;
}

.sb-maehwa-hex-meta {
  display: inline-block;
  font-size: 0.75rem;
  color: #666;
  margin: 0.15rem 0;
}

.sb-maehwa-hex-meaning,
.sb-maehwa-hex-detail {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #555;
}

.sb-maehwa-cheyong-pair {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #3a2a1c;
}

.sb-maehwa-ohang-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: #3a2a1c;
}

.sb-maehwa-ohang-list li {
  padding: 0.28rem 0;
  border-bottom: 1px solid #efe8dc;
}

.sb-maehwa-ohang-list li span {
  display: inline-block;
  min-width: 4.2rem;
  color: #7a5a3a;
  font-weight: 600;
}

.sb-maehwa-fortune.is-gil {
  color: #1b6b3a;
  font-weight: 700;
}

.sb-maehwa-fortune.is-hyung {
  color: #b71c1c;
  font-weight: 700;
}

.sb-maehwa-advice {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #3a2a1c;
}

.sb-maehwa-expert-list {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #3a2a1c;
}

.sb-maehwa-expert-deep {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #3a2a1c;
}

.sb-maehwa-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.25rem;
  min-width: 1.6rem;
  padding: 0.15rem 0.3rem;
  border-radius: 6px;
  background: #8b3d12;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.15;
}

.sb-maehwa-badge small {
  font-size: 0.58rem;
  font-weight: 600;
  opacity: 0.92;
  max-width: 3.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .sb-maehwa-num-grid,
  .sb-maehwa-hex-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 점술도구 사용법 ── */
.sb-howto-section {
  padding-bottom: 3rem;
}

.sb-howto-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sb-howto-hero-copy .sb-lead {
  max-width: 36rem;
}

.sb-howto-hero-fig,
.sb-howto-block-fig {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: #120c08;
}

.sb-howto-hero-fig img,
.sb-howto-block-fig img {
  display: block;
  width: 100%;
  height: auto;
}

.sb-howto-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2rem;
}

.sb-howto-toc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 200, 114, 0.35);
  color: var(--cream) !important;
  text-decoration: none;
  font-size: 0.88rem;
  background: rgba(8, 14, 28, 0.55);
}

.sb-howto-toc-link:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
}

.sb-howto-toc-hanja {
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 700;
}

.sb-howto-section-title {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--gold) !important;
}

.sb-howto-section-lead {
  margin: 0 0 1rem;
  color: var(--tan);
  max-width: 40rem;
}

.sb-howto-flow {
  margin-bottom: 2.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  background: rgba(253, 247, 232, 0.04);
}

.sb-howto-flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.sb-howto-flow-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.sb-howto-flow-num {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1;
}

.sb-howto-flow-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--cream) !important;
}

.sb-howto-flow-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--tan);
  line-height: 1.45;
}

.sb-howto-block {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.35rem;
  align-items: center;
  margin: 0 0 2.4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.18);
}

.sb-howto-block.is-flip .sb-howto-block-fig {
  order: 2;
}

.sb-howto-block.is-flip .sb-howto-block-copy {
  order: 1;
}

.sb-howto-hanja {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.sb-howto-block-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  color: var(--gold) !important;
}

.sb-howto-block-sub {
  margin: 0.25rem 0 0.65rem;
  color: var(--tan);
  font-size: 0.98rem;
}

.sb-howto-block-lead {
  margin: 0 0 0.85rem;
  color: var(--cream);
  line-height: 1.55;
  font-size: 0.95rem;
}

.sb-howto-steps {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--cream);
  line-height: 1.55;
  font-size: 0.92rem;
}

.sb-howto-steps li + li {
  margin-top: 0.35rem;
}

.sb-howto-tip {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--gold-deep);
  background: rgba(232, 200, 114, 0.08);
  color: var(--tan);
  font-size: 0.88rem;
  line-height: 1.45;
}

.sb-howto-foot {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}

.sb-howto-foot .sb-howto-section-lead {
  margin-left: auto;
  margin-right: auto;
}

.sb-howto-foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .sb-howto-hero,
  .sb-howto-block,
  .sb-howto-flow-list {
    grid-template-columns: 1fr;
  }

  .sb-howto-block.is-flip .sb-howto-block-fig,
  .sb-howto-block.is-flip .sb-howto-block-copy {
    order: unset;
  }
}

/* 서비스 신청 — 정통 사주추명서 안내 */
.sb-section:has(+ .sb-cm-guide) {
  padding-bottom: 16px;
}

.sb-cm-guide {
  padding-top: 40px;
}

.sb-cm-guide-lead {
  max-width: 760px;
  line-height: 1.85;
}

.sb-cm-guide-core {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  text-align: center;
  color: #f4e6c0;
}

.sb-cm-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* 5번째 카드는 마지막 줄 가운데에 두어 균형 있게 */
.sb-cm-guide-grid > .sb-cm-guide-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: min(560px, 100%);
  width: 100%;
  margin-inline: auto;
}

.sb-cm-guide-card {
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(197, 160, 89, 0.4);
  background:
    linear-gradient(180deg, rgba(224, 192, 112, 0.12), transparent 36%),
    var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.sb-cm-guide-card-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--brown-deep);
}

.sb-cm-guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-cm-guide-list li {
  margin: 0 0 0.95rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(184, 137, 46, 0.45);
}

.sb-cm-guide-list li:last-child {
  margin-bottom: 0;
}

.sb-cm-guide-list strong {
  display: block;
  margin-bottom: 0.28rem;
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--brown-deep);
}

.sb-cm-guide-list span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.sb-cm-guide-quote {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius);
  background: rgba(197, 160, 89, 0.08);
}

.sb-cm-guide-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: center;
  color: #f6e9c4;
}

/* 서비스 차별화 섹션: 칩 + 여백만 조정 (추가 에셋 없음) */
.sb-cm-guide--home {
  padding-top: 56px;
  padding-bottom: 56px;
}

.sb-cm-guide-home-title {
  line-height: 1.35;
}

.sb-cm-guide-classics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 0.25rem;
  padding: 0;
  max-width: 720px;
  list-style: none;
}

.sb-cm-guide-classics li {
  padding: 6px 12px;
  border: 1px solid rgba(224, 192, 112, 0.35);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold, #c49a3c);
  background: rgba(224, 192, 112, 0.08);
  word-break: keep-all;
}

@media (max-width: 1024px) {
  .sb-cm-guide-grid {
    grid-template-columns: 1fr;
  }
}
