/* ============================================
   1분 사주 2026 — Y2K Kawaii Pastel Design ✨
   Spline Sans · Glass-morphism · Sparkles
   2026 여고생 감성 UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --bg: #F8F0FF;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-grouped: #F5EEFF;
  --text-1: #2D1B4E;
  --text-2: #4A3570;
  --text-3: #9B8BB4;
  --text-4: #C4B8D9;
  --separator: rgba(180, 140, 220, 0.12);
  --tint: #B47AE8;
  --tint-light: rgba(180, 122, 232, 0.12);
  --tint-lighter: rgba(180, 122, 232, 0.06);
  --coral: #F5A6C8;
  --peach: #FFD1DC;
  --lavender: #C5A3E8;
  --sky: #A8D8F0;
  --mint: #A8E8D0;
  --gold: #FFE5A0;
  --rose: #F5A6C8;
  --el-wood: #7BC89E;
  --el-fire: #F5A0A0;
  --el-earth: #F0D080;
  --el-metal: #B8C8D8;
  --el-water: #90C0F0;
  --r-sm: 16px;
  --r-md: 20px;
  --r-lg: 24px;
  --r-xl: 32px;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(180, 122, 232, 0.08);
  --gradient-hero: linear-gradient(135deg, #E8D5F5 0%, #FFD6E8 50%, #D5F5E8 100%);
  --gradient-card: linear-gradient(135deg, rgba(232, 213, 245, 0.3) 0%, rgba(255, 214, 232, 0.3) 100%);
  --gradient-btn: linear-gradient(135deg, #C5A3E8 0%, #F5A6C8 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

a {
  color: var(--tint);
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

strong {
  font-weight: 600;
}

/* ─── App Shell ─── */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 90px;
  position: relative;
}

.main-content {
  padding: 16px;
}

/* ─── Bottom Nav (Mobile) ─── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 8px 0 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-3);
  font-size: 10px;
  gap: 2px;
  transition: color 0.2s;
  padding: 2px 14px;
}

.nav-item.active {
  color: var(--tint);
}

.nav-icon {
  font-size: 22px;
  transition: transform 0.2s;
}

.nav-item:active .nav-icon {
  transform: scale(0.92);
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* ─── Section Card (iOS Grouped style) ─── */
.section-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.04);
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* ─── Card (Glass-morphism) ─── */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

/* ─── Page Headers ─── */
.page-header {
  text-align: center;
  padding: 20px 0 12px;
}

.page-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.03em;
}

.page-header .subtitle {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}

.result-header {
  text-align: center;
  padding: 8px 0 16px;
}

.result-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.04em;
}

.result-subtitle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--tint-light);
  color: var(--tint);
}

/* ─── Snowcat Mascot ─── */
.snowcat-mascot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--separator);
  background: white;
}

.snowcat-mascot-lg {
  width: 96px;
  height: 96px;
}

.snowcat-mascot-sm {
  width: 40px;
  height: 40px;
}

/* ─── Pillars (4 Columns) ─── */
.pillars-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pillar-card {
  text-align: center;
  padding: 16px 8px;
  background: var(--bg);
  border-radius: var(--r-md);
  transition: transform 0.2s;
}

.pillar-card:active {
  transform: scale(0.97);
}

.pillar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 10px;
}

.pillar-char {
  width: 44px;
  height: 44px;
  margin: 0 auto 4px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.05em;
  transition: transform 0.2s;
}

.pillar-char.stem {
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 10px;
  color: var(--text-4);
  margin-top: 6px;
  display: block;
}

/* Element Colors */
.el-wood {
  color: var(--el-wood);
  background: rgba(76, 175, 80, 0.08);
}

.el-fire {
  color: var(--el-fire);
  background: rgba(239, 83, 80, 0.08);
}

.el-earth {
  color: var(--el-earth);
  background: rgba(230, 162, 60, 0.08);
}

.el-metal {
  color: var(--el-metal);
  background: rgba(144, 164, 174, 0.1);
}

.el-water {
  color: var(--el-water);
  background: rgba(66, 165, 245, 0.08);
}

.el-bg-wood {
  background: linear-gradient(90deg, #66BB6A, #4CAF50);
}

.el-bg-fire {
  background: linear-gradient(90deg, #FF7043, #EF5350);
}

.el-bg-earth {
  background: linear-gradient(90deg, #FFB74D, #E6A23C);
}

.el-bg-metal {
  background: linear-gradient(90deg, #B0BEC5, #90A4AE);
}

.el-bg-water {
  background: linear-gradient(90deg, #64B5F6, #42A5F5);
}

/* ─── Bar Chart ─── */
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bar-label {
  font-size: 13px;
  font-weight: 500;
  width: 56px;
  flex-shrink: 0;
  color: var(--text-2);
}

.bar-track {
  flex: 1;
  height: 8px;
  border-radius: 100px;
  background: var(--bg);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease;
}

.bar-value {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  width: 64px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ─── Yongshin ─── */
.highlight-card {
  background: linear-gradient(135deg, #FFF5EE, #FFF0E8);
  border: 1px solid rgba(232, 119, 95, 0.08);
}

.yongshin-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.yongshin-icon {
  font-size: 32px;
  flex-shrink: 0;
  line-height: 1;
}

.yongshin-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--tint);
}

.yongshin-reason {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
  line-height: 1.6;
}

/* ─── Daeun Grid ─── */
.daeun-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.daeun-item {
  text-align: center;
  padding: 14px 8px;
  background: var(--bg);
  border-radius: var(--r-md);
}

.daeun-age {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  display: block;
  margin-bottom: 6px;
}

.daeun-ganzi {
  font-size: 18px;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.daeun-year {
  font-size: 10px;
  color: var(--text-4);
  display: block;
}

/* ─── Ten Gods ─── */
.tengod-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tengod-chip {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  background: var(--bg);
  border-radius: var(--r-md);
}

.tengod-chip .tenod-emoji {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.tengod-chip strong {
  font-size: 14px;
  display: block;
  color: var(--lavender);
}

.tengod-chip .tenod-pos {
  font-size: 11px;
  color: var(--text-4);
}

/* ─── Stars ─── */
.star-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--separator);
}

.star-row:last-child {
  border-bottom: none;
}

.star-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.star-row strong {
  font-size: 14px;
}

.star-row p {
  font-size: 12px;
  margin-top: 2px;
}

/* ─── Info / Notes ─── */
.info-note {
  padding: 14px;
  background: var(--bg);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.reading-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}

.muted {
  color: var(--text-3);
  font-size: 12px;
}

/* ─── Forms ─── */
.form-section {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-row {
  display: flex;
  gap: 8px;
}

.form-group {
  flex: 1;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--tint);
  box-shadow: 0 0 0 3px var(--tint-light);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23AEAEB2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.gender-toggle {
  display: flex;
  gap: 8px;
}

.gender-btn {
  flex: 1;
  padding: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--separator);
  border-radius: var(--r-md);
  color: var(--text-3);
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.gender-btn.active,
.gender-btn:hover {
  border-color: var(--tint);
  color: var(--tint);
  background: var(--tint-lighter);
}

.gender-btn input {
  display: none;
}

/* ─── Buttons ─── */
.btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: var(--gradient-btn);
  border: none;
  border-radius: var(--r-xl);
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(180, 122, 232, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 122, 232, 0.35);
}

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

.btn-secondary {
  width: 100%;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--bg);
}

/* Action Row */
.action-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.action-btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.action-btn.primary {
  background: var(--tint);
  color: white;
}

.action-btn.secondary {
  background: var(--bg-card);
  color: var(--text-2);
  border: 1px solid var(--separator);
}

.action-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ─── Score Ring ─── */
.score-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
  position: relative;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring .ring-bg {
  fill: none;
  stroke: var(--bg);
  stroke-width: 7;
}

.score-ring .ring-fill {
  fill: none;
  stroke: var(--tint);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s ease;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: 800;
  color: var(--tint);
  letter-spacing: -0.04em;
}

.score-label {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

.fortune-score-card {
  text-align: center;
}

/* Fortune Grid */
.fortune-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.fortune-item {
  text-align: center;
  padding: 14px 8px;
  background: var(--bg);
  border-radius: var(--r-md);
}

.fortune-item .emoji {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.fortune-item .label {
  font-size: 11px;
  color: var(--text-4);
  display: block;
}

.fortune-item .value {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

/* Lucky Tags */
.lucky-items,
.lucky-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lucky-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--bg);
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.lucky-tag .tag-emoji {
  font-size: 14px;
}

/* Quick Menu */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text-1);
  transition: all 0.2s;
}

.quick-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.quick-item .icon-circle {
  font-size: 28px;
}

.quick-item .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

/* ─── Welcome / Speech / Empty ─── */
.welcome-section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.welcome-text h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.welcome-text p {
  font-size: 12px;
  color: var(--text-3);
}

.speech-bubble {
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.04);
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
}

.empty-state h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Zodiac Badge */
.zodiac-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--tint-light);
  font-size: 14px;
  color: var(--tint);
  font-weight: 600;
}

/* Section header legacy compat */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.section-header h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header .emoji {
  font-size: 18px;
}

/* Personality */
.personality-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}

/* ─── Term Annotations ─── */
.term-note {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-4);
  margin-top: 2px;
  letter-spacing: 0;
  line-height: 1.4;
}

.term-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--tint-light);
  color: var(--tint);
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
  vertical-align: middle;
}

.term-tooltip {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(175, 142, 245, 0.06);
  border-left: 3px solid var(--lavender);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

.info-note+.info-note {
  margin-top: 8px;
}

/* Divider */
.divider {
  height: 0.5px;
  background: var(--separator);
  margin: 16px 0;
}

/* ─── Utilities ─── */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-3);
}

.text-pink {
  color: var(--tint);
}

.text-small {
  font-size: 13px;
}

.mt-sm {
  margin-top: 8px;
}

.mt-md {
  margin-top: 16px;
}

.mt-lg {
  margin-top: 24px;
}

.mb-md {
  margin-bottom: 16px;
}

.mb-lg {
  margin-bottom: 24px;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease;
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease;
}

/* Safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .app-container {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 100px;
}


/* ===================================================
   DESKTOP LAYOUT
   =================================================== */

.desktop-header,
.desktop-sidebar,
.desktop-right-panel {
  display: none;
}

.page-wrapper {
  display: contents;
}

.result-grid {
  display: block;
}

.result-col-left,
.result-col-right {
  /* noop on mobile */
}

/* ─── Tablet (768px+) ─── */
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }

  .desktop-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
  }

  .desktop-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }

  .logo-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--separator);
    background: white;
  }

  .logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.03em;
  }

  .desktop-nav {
    display: flex;
    gap: 2px;
  }

  .desktop-nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
  }

  .desktop-nav-item:hover {
    background: var(--tint-lighter);
    color: var(--text-1);
  }

  .desktop-nav-item.active {
    background: var(--tint-light);
    color: var(--tint);
  }

  .desktop-nav-item .nav-icon {
    font-size: 16px;
  }

  .page-wrapper {
    display: block;
    padding-top: 52px;
  }

  .app-container {
    max-width: 680px;
    padding-bottom: 32px;
  }

  .main-content {
    padding: 24px;
  }

  .fortune-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── Desktop (1024px+) ─── */
@media (min-width: 1024px) {
  .desktop-sidebar {
    display: block;
  }

  .page-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 52px;
    min-height: 100vh;
  }

  .desktop-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 52px;
    height: calc(100vh - 52px);
    padding: 20px 12px;
    overflow-y: auto;
  }

  .sidebar-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--r-xl);
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
  }

  .sidebar-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 10px;
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .sidebar-mascot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(197, 163, 232, 0.3);
    background: white;
    box-shadow: 0 4px 12px rgba(197, 163, 232, 0.15);
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
  }

  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: var(--r-lg);
    text-decoration: none;
    color: var(--text-3);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar-link:hover {
    background: linear-gradient(135deg, rgba(232, 213, 245, 0.25) 0%, rgba(255, 214, 232, 0.25) 100%);
    color: var(--text-1);
    transform: translateX(4px);
  }

  .sidebar-link.active {
    background: linear-gradient(135deg, rgba(197, 163, 232, 0.2) 0%, rgba(245, 166, 200, 0.2) 100%);
    color: var(--tint);
    box-shadow: 0 2px 8px rgba(197, 163, 232, 0.12);
  }

  .sidebar-link span:first-child {
    font-size: 17px;
    width: 24px;
    text-align: center;
  }

  .sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    text-align: center;
    font-size: 11px;
    color: var(--text-4);
  }

  .app-container {
    flex: 1;
    max-width: 740px;
    margin: 0;
    padding: 0;
  }

  .main-content {
    padding: 28px 24px;
  }

  /* Result page: 2-column grid */
  .result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }

  .result-col-left,
  .result-col-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .result-col-left .section-card,
  .result-col-right .section-card {
    margin-bottom: 0;
  }

  /* Daeun: show 2 cols on desktop */
  .daeun-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Wide Desktop (1280px+) ─── */
@media (min-width: 1280px) {
  .desktop-right-panel {
    display: block;
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 52px;
    height: calc(100vh - 52px);
    padding: 20px 12px;
    overflow-y: auto;
  }

  .desktop-right-panel .sidebar-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 12px;
  }

  .page-wrapper {
    max-width: 1400px;
  }

  .app-container {
    max-width: 800px;
  }

  .main-content {
    padding: 32px;
  }
}

/* ─── Ultra-wide (1600px+) ─── */
@media (min-width: 1600px) {
  .page-wrapper {
    max-width: 1500px;
  }

  .desktop-sidebar {
    width: 260px;
  }

  .desktop-right-panel {
    width: 280px;
  }

  .app-container {
    max-width: 860px;
  }
}

/* ─── Print ─── */
@media print {

  .desktop-header,
  .desktop-sidebar,
  .desktop-right-panel,
  .bottom-nav {
    display: none !important;
  }

  .app-container {
    max-width: 100%;
    padding: 0;
  }
}

/* ─── Correction Banner ─── */
.correction-banner {
  background: linear-gradient(135deg, rgba(232, 119, 95, 0.08), rgba(175, 142, 245, 0.08));
  border: 1px solid rgba(232, 119, 95, 0.15);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.correction-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--tint);
  margin-bottom: 8px;
}

.correction-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.correction-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--tint-light);
  color: var(--tint);
  font-size: 11px;
  font-weight: 500;
}

.correction-note {
  font-size: 11px;
  color: var(--text-4);
}

/* ─── Highlight Card ─── */
.highlight-card {
  border-left: 3px solid var(--tint);
  background: linear-gradient(135deg, rgba(232, 119, 95, 0.03), rgba(175, 142, 245, 0.03));
}

/* ─── Chat UI ─── */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  max-height: 700px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--group-bg);
  border: 0.5px solid var(--separator);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--tint);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-avatar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 85%;
}

.chat-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 0.5px solid var(--separator);
  background: var(--card-bg);
}

.chat-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 20px;
  border: 0.5px solid var(--separator);
  background: var(--group-bg);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.chat-input:focus {
  border-color: var(--tint);
}

.chat-send-btn {
  padding: 10px 18px;
  border-radius: 20px;
  background: var(--tint);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.chat-send-btn:hover {
  opacity: 0.85;
}

.chat-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
}

.chat-suggestion {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--separator);
  background: var(--card-bg);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.chat-suggestion:hover {
  border-color: var(--tint);
  background: var(--tint-light);
  color: var(--tint);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-4);
  animation: typing 1.2s ease infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ─── Solo Destiny Card ─── */
.archetype-card {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.1), rgba(175, 142, 245, 0.1));
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 182, 193, 0.2);
}

.archetype-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}

.archetype-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}

.archetype-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
}

.match-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--group-bg);
  border-radius: var(--r-md);
  margin-top: 12px;
}

.match-emoji {
  font-size: 36px;
  flex-shrink: 0;
}

.match-info .match-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.match-info .match-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ─── Premium Logo (Bigger) ─── */
.logo-img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px;
  object-fit: contain;
}

.logo-text {
  font-size: 22px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--coral), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.sidebar-mascot {
  width: 80px !important;
  height: 80px !important;
}

/* ─── Hero Greeting ─── */
.hero-greeting {
  position: relative;
  border-radius: var(--r-xl);
  padding: 28px 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea11, #764ba211, #f093fb11);
}

.hero-greeting-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
  opacity: 0.1;
}

.hero-greeting-content {
  position: relative;
  z-index: 1;
}

.hero-date {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-highlight {
  font-weight: 900;
}

.hero-message {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.keyword-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ─── Fortune Hero Card ─── */
.fortune-hero-card {
  overflow: visible;
}

.fortune-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.fortune-hero-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.fortune-hero-date {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.fortune-score-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.score-ring-premium {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 12px;
}

.score-ring-premium svg {
  width: 100%;
  height: 100%;
}

.score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #FF6B6B, #E8775F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.score-unit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 60%);
  font-size: 14px;
  color: var(--text-3);
  font-weight: 600;
}

.grade-badge {
  display: inline-flex;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

/* ─── Fortune Grid Premium ─── */
.fortune-grid-premium {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.fortune-item-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: var(--r-md);
  background: var(--bg-grouped);
}

.fortune-emoji {
  font-size: 24px;
}

.fortune-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.fortune-value {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

/* ─── Lucky Card Premium ─── */
.lucky-grid-premium {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lucky-item-premium {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lucky-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: white;
}

.lucky-detail {
  flex: 1;
}

.lucky-detail-label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 3px;
}

.lucky-detail-value {
  font-size: 16px;
}

/* Lottery Balls */
.lotto-numbers {
  display: flex;
  gap: 6px;
}

.lotto-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Mini Compass */
.compass-mini {
  display: inline-block;
}

.compass-ring {
  position: relative;
  width: 64px;
  height: 64px;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.compass-n,
.compass-e,
.compass-s,
.compass-w {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-3);
}

.compass-n {
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  color: #EF4444;
}

.compass-s {
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-e {
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.compass-w {
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.compass-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #EF4444, #B91C1C);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  animation: compassPulse 2s ease-in-out infinite;
}

.compass-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}

@keyframes compassPulse {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
  }
}

/* ─── Zodiac Premium ─── */
.zodiac-badge-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
}

.zodiac-emoji {
  font-size: 42px;
}

.zodiac-info {
  display: flex;
  flex-direction: column;
}

.zodiac-name {
  font-size: 20px;
  font-weight: 700;
}

.zodiac-element {
  font-size: 13px;
  font-weight: 600;
}

/* ─── Famous People ─── */
.famous-people-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.famous-person-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #f8f8ff, #f0f0ff);
  border: 1px solid rgba(107, 99, 246, 0.08);
  transition: transform 0.2s;
}

.famous-person-card:hover {
  transform: translateY(-1px);
}

.famous-avatar {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.famous-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.famous-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}

.famous-desc {
  font-size: 12px;
  color: var(--text-3);
}

/* ═══════════════════════════════════
   SAJU RESULT PAGE - 2026 Redesign
   ═══════════════════════════════════ */

/* Hero Header */
.saju-result-hero {
  background: linear-gradient(135deg, #667eea08, #764ba215, #f093fb08);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  margin-bottom: 16px;
  text-align: center;
}

.result-hero-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.result-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.result-hero-badge.zodiac {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.result-hero-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

.result-hero-subtitle {
  font-size: 14px;
  color: var(--text-3);
}

/* Modern Section Titles */
.section-title-modern {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}

/* Pillar Element Tags */
.pillar-element-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.pillar-sublabel {
  font-size: 10px;
  color: var(--text-4);
  font-weight: 400;
}

/* Bar Tags */
.bar-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: 4px;
  font-weight: 700;
}

.bar-tag.dominant {
  background: #dcfce7;
  color: #16a34a;
}

.bar-tag.weak {
  background: #fef3c7;
  color: #d97706;
}

/* Balance Summary */
.balance-summary {
  margin-top: 12px;
  padding: 10px;
  background: var(--bg-grouped);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-chip {
  background: var(--tint-light);
  color: var(--tint);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.balance-desc {
  font-size: 13px;
  color: var(--text-2);
}

/* Yongshin Premium */
.yongshin-box-premium {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.yongshin-icon-big {
  font-size: 36px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  flex-shrink: 0;
}

.yongshin-content {
  flex: 1;
}

.yongshin-name-premium {
  font-size: 17px;
  display: block;
  margin-bottom: 6px;
}

.yongshin-tip {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fffbeb;
  border-radius: var(--r-sm);
  border-left: 3px solid #f59e0b;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Daeun Timeline */
.daeun-timeline {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 8px;
}

.daeun-item-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-grouped);
  min-width: 90px;
  flex-shrink: 0;
  position: relative;
}

.daeun-current {
  background: linear-gradient(135deg, #ede9fe, #dbeafe) !important;
  border: 2px solid var(--lavender);
}

.daeun-now-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background: var(--lavender);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
}

/* Reading Text Premium */
.reading-text-premium {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  word-break: keep-all;
}

/* Ten God Grid Modern */
.tengod-grid-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tengod-card-modern {
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--bg-grouped);
}

.tengod-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tengod-emoji-big {
  font-size: 28px;
}

.tengod-names {
  display: flex;
  flex-direction: column;
}

.tengod-names strong {
  font-size: 16px;
}

.tengod-pos-label {
  font-size: 11px;
  color: var(--text-3);
}

.tengod-meaning {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 8px;
}

.tengod-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tengod-kw-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
}

/* Star Cards Modern */
.stars-grid-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.star-card-modern {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--bg-grouped);
}

.star-emoji-big {
  font-size: 28px;
  flex-shrink: 0;
}

.star-desc {
  font-size: 13px;
  color: var(--text-2);
  margin: 4px 0;
}

.star-effect {
  font-size: 12px;
  color: var(--text-3);
}

/* Trend Card */
.trend-card {
  border-left: 3px solid var(--coral);
}

.trend-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.trend-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-grouped);
  border-radius: var(--r-sm);
}

.trend-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.trend-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.trend-item p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.trend-advice {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--coral);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ─── Kakao Share Button ─── */
.btn-kakao-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #FEE500;
  color: #191919;
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  max-width: 320px;
}

.btn-kakao-share:hover {
  background: #F5DC00;
  transform: translateY(-1px);
}

.btn-kakao-share:active {
  transform: scale(0.98);
}

/* ─── Quick Menu 4-col for more items ─── */
.quick-menu {
  grid-template-columns: repeat(4, 1fr);
}

/* ─── Famous People Photos ─── */
.famous-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--separator);
  background: var(--bg);
  transition: opacity 0.3s ease;
}

.famous-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: var(--bg);
  border: 2px solid var(--separator);
}

.famous-person-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  transition: transform 0.2s;
}

.famous-person-card:active {
  transform: scale(0.98);
}

.famous-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.famous-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}

.famous-desc {
  font-size: 12px;
  color: var(--text-3);
}

/* ─── Saju Result Two-Column (성격 + 직업) ─── */
.saju-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .saju-two-col {
    grid-template-columns: 1fr 1fr;
  }

  .saju-two-col .section-card {
    margin-bottom: 0;
  }
}

/* ─── User Birth Info Badge (사이드바) ─── */
.user-birth-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--tint-light);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--tint-lighter);
}

.user-birth-badge .badge-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.user-birth-badge .badge-label {
  font-weight: 600;
  color: var(--tint);
  display: block;
  font-size: 11px;
}

.user-birth-badge .badge-value {
  font-size: 12px;
  font-weight: 500;
}