/* CineAHO Saju Destiny Analyst Stylesheet */

/* Theme & Variables */
:root {
  /* HSL Colors */
  --hue-purple: 270;
  --hue-blue: 210;
  --hue-green: 145;
  --hue-gold: 45;
  --hue-red: 350;
  --hue-cyan: 190;

  /* Theme Core (Dark Mode default) */
  --bg-color: #060913;
  --bg-grid: rgba(255, 255, 255, 0.015);
  
  --panel-bg: rgba(14, 20, 38, 0.55);
  --panel-border: rgba(255, 255, 255, 0.05);
  --panel-hover-border: rgba(0, 242, 254, 0.25);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #475569;
  
  /* Gradation Accents */
  --grad-purple: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  --grad-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --grad-red: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  
  --neon-glow: 0 0 30px rgba(126, 34, 206, 0.2);
  --neon-border-glow: 0 0 15px rgba(0, 242, 254, 0.3);

  --font-main: 'Noto Sans KR', 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  
  --highlight-color: #fbbf24;
}

[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-grid: rgba(15, 23, 42, 0.02);
  
  --panel-bg: rgba(255, 255, 255, 0.7);
  --panel-border: rgba(15, 23, 42, 0.06);
  --panel-hover-border: rgba(59, 130, 246, 0.3);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dark: #cbd5e1;
  
  --neon-glow: 0 0 30px rgba(59, 130, 246, 0.1);
  --shadow-card: 0 12px 40px 0 rgba(15, 23, 42, 0.08);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.3s ease;
}

/* Grid Background */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

/* Ambient Glow */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  z-index: -3;
  pointer-events: none;
  opacity: 0.25;
}

.bg-glow-purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7e22ce 0%, transparent 70%);
  top: -100px;
  left: 5%;
}

.bg-glow-blue {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  top: 30%;
  right: 5%;
}

/* Common Panels */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--panel-hover-border);
}

/* Header */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 1rem 1.5rem 0 1.5rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.glass-header {
  background: rgba(14, 20, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-circle {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-text span {
  color: var(--text-muted);
  font-weight: 400;
}

.header-nav {
  flex-grow: 1;
  margin: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  white-space: nowrap;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text-main);
}

.nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
}

.btn-back-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-back-dashboard:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #2563eb;
  transform: translateX(-2px);
}

/* Saju Container */
.saju-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header Section */
.saju-header-section {
  text-align: center;
}

.main-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.main-title span {
  background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-title i {
  color: #a855f7;
  margin-right: 0.5rem;
}

.subtitle-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 850px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

.tag-badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* input-header-bar */
.input-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid #a855f7;
  padding-bottom: 0.5rem;
}

.birth-info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Saju Form Panel */
.saju-form-panel {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 1rem;
}

.form-title-box i {
  font-size: 1.35rem;
  color: #c084fc;
}

.form-title-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.form-title-box span {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Form Sections */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.step-desc {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 400;
}

.form-row-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
}

/* Toggle Buttons */
.top-toggle-group {
  display: flex;
  flex-direction: column;
}

.toggle-buttons {
  display: flex;
  gap: 0.5rem;
  background: rgba(0,0,0,0.2);
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}

.btn-toggle {
  flex: 1;
  padding: 0.65rem 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.btn-toggle.active {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

/* YMD Inputs Box */
.ymd-inputs-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ymd-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.only-numbers-tip {
  color: var(--text-dark);
}

.ymd-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-group label {
  font-size: 0.75rem;
  color: var(--text-dark);
}

.input-group input {
  padding: 0.7rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
  text-align: center;
}

.input-group input:focus {
  border-color: #a855f7;
}

/* Time Region Box */
.time-region-box {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Time unknown checkbox */
.checkbox-container {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 0.85rem;
  user-select: none;
  font-weight: 600;
  color: var(--text-muted);
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0; width: 0;
}

.checkmark {
  position: absolute;
  top: 0; left: 0;
  height: 18px; width: 18px;
  background-color: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: rgba(255,255,255,0.04);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #a855f7;
  border-color: #a855f7;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Time Fields Row */
.time-fields-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.time-field-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.time-field-box span {
  font-size: 0.75rem;
  color: var(--text-dark);
}

.time-field-box input {
  padding: 0.7rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  outline: none;
}

.time-field-box input:focus {
  border-color: #a855f7;
}

.colon-divider {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding-bottom: 0.4rem;
  color: var(--text-dark);
}

.time-input-tip {
  font-size: 0.75rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
}

/* Right settings */
.time-right-settings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.setting-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setting-col label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.base-tip {
  font-size: 0.7rem;
  color: var(--text-dark);
  font-weight: 400;
}

.base-toggle-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0,0,0,0.15);
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}

.radio-btn {
  cursor: pointer;
  position: relative;
}

.radio-btn input {
  position: absolute;
  opacity: 0;
}

.radio-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.radio-btn input:checked + .radio-body {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
}

.radio-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--text-dark);
  display: inline-block;
  position: relative;
}

.radio-btn input:checked + .radio-body .radio-indicator {
  border-color: #a855f7;
}

.radio-btn input:checked + .radio-body .radio-indicator:after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a855f7;
}

.radio-body strong {
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
}

.tag-level {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.04);
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  color: var(--text-dark);
}

.tag-level.advanced {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.setting-desc-text {
  font-size: 0.72rem;
  color: var(--text-dark);
  line-height: 1.4;
}

/* Jasi Radio Group */
.jasi-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(0,0,0,0.15);
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}

.jasi-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.jasi-radio input {
  accent-color: #a855f7;
  width: 14px;
  height: 14px;
}

.jasi-radio:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* 48 Quick Time buttons grid */
.quick-time-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.35rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 1.25rem;
}

.btn-time-chip {
  padding: 0.35rem 0;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-time-chip:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

.btn-time-chip.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

/* Submit Saju Button */
.btn-submit-saju {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  transition: var(--transition-smooth);
}

.btn-submit-saju:hover {
  background: linear-gradient(135deg, #9333ea 0%, #6b21a8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

/* ----------------------------------------------------
   RESULTS PANEL
   ---------------------------------------------------- */
.saju-results-panel {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.85rem;
}

.results-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-header h3 i {
  color: #c084fc;
}

.result-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.results-grid {
  display: grid;
  grid-template-columns: 52% 48%;
  gap: 2.5rem;
  align-items: start;
}

/* Saju Grid Table */
.saju-table-wrapper {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 0.5rem;
  overflow: hidden;
}

.saju-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.saju-table th {
  padding: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.saju-table td {
  padding: 1rem 0.5rem;
  font-size: 1.45rem;
  font-family: var(--font-main);
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.03);
}

.ilgan-focus {
  border: 2px solid #fbbf24 !important;
  box-shadow: inset 0 0 15px rgba(251, 191, 36, 0.15);
}

/* Ten Gods Row font size */
.tr-gods td {
  font-size: 0.8rem;
  padding: 0.65rem 0;
  font-weight: 600;
  color: var(--text-muted);
}

/* Traditional 5 Elements Color Maps */
/* 木: Green */
.col-wood {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

/* 火: Red */
.col-fire {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

/* 土: Gold */
.col-earth {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #f59e0b !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

/* 金: Grey (White/Metal) */
.col-metal {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* 水: Blue (Black/Water) */
.col-water {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #3b82f6 !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
}

/* Ilgan Description Box */
.ilgan-desc-box {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Results Right: Elements analysis */
.results-right h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.elements-stats-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 1.25rem;
  border-radius: 12px;
}

.elem-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.elem-name {
  font-size: 0.78rem;
  font-weight: 700;
  width: 75px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.elem-bar-wrapper {
  flex-grow: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
}

.elem-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.elem-count {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  width: 32px;
  text-align: right;
}

.bg-green { background-color: #10b981; }
.bg-red { background-color: #ef4444; }
.bg-gold { background-color: #f59e0b; }
.bg-grey { background-color: #cbd5e1; }
.bg-blue { background-color: #3b82f6; }

.saju-strength-card {
  margin-top: 1rem;
  background: rgba(168, 85, 247, 0.04);
  border: 1px dashed rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #c084fc;
}

/* AI Saju Report Tabs */
.ai-report-tabs-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.report-tabs-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.report-tabs-bar::-webkit-scrollbar {
  display: none;
}

.rep-tab-btn {
  background: transparent;
  border: none;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.rep-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.rep-tab-btn.active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
}

.report-content-body {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  min-height: 150px;
}

/* ----------------------------------------------------
   Accordion Guide Section
   ---------------------------------------------------- */
.guide-panel {
  padding: 2.25rem;
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1rem;
}

.guide-header i {
  font-size: 1.75rem;
}

.guide-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.guide-header span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.accordion-item {
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  background: rgba(255,255,255,0.01);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-item:hover {
  border-color: rgba(255,255,255,0.08);
}

.acc-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.acc-header i {
  font-size: 0.8rem;
  color: var(--text-dark);
  transition: transform 0.3s ease;
}

.accordion-item.active .acc-header i {
  transform: rotate(180deg);
  color: #c084fc;
}

.accordion-item.active {
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.02);
}

.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc-content-body {
  padding: 0.5rem 1.25rem 1.25rem 1.25rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* Text Colors */
.text-green { color: #10b981; }
.text-red { color: #ef4444; }
.text-gold { color: #f59e0b; }
.text-grey { color: #cbd5e1; }
.text-blue { color: #3b82f6; }
.text-cyan { color: #06b6d4; }
.text-purple { color: #a855f7; }

/* ----------------------------------------------------
   Floating Navigator Widgets
   ---------------------------------------------------- */
.floating-navigator {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  z-index: 1000;
}

.nav-overlay-menu {
  width: 200px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: var(--transition-smooth);
  margin-bottom: 0.25rem;
}

.nav-overlay-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-overlay-menu h5 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.nav-overlay-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.50rem;
}

.nav-overlay-menu li {
  font-size: 0.8rem;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-overlay-menu li:hover,
.nav-overlay-menu li.active {
  color: var(--text-main);
}

.nav-overlay-menu li span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: #10b981;
}

.nav-overlay-menu li.active span {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.floating-buttons-col {
  display: flex;
  flex-direction: column;
  gap: 0.50rem;
  align-items: center;
}

.progress-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.35s;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: #a855f7;
}

.btn-float {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 20, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-float:hover {
  background: #a855f7;
  border-color: #a855f7;
  transform: translateY(-2px);
}

/* Responsiveness */
@media (max-width: 900px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
  .form-row-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .time-region-box {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .quick-time-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 600px) {
  .quick-time-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .time-right-settings {
    grid-template-columns: 1fr;
  }
  .ymd-fields {
    grid-template-columns: 1fr;
  }
}

/* Saju Diagnostics Styles */
.saju-diagnostics-box {
  margin-top: 1.5rem;
}

.diag-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  transition: var(--transition-smooth);
}

.diag-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.2);
}

.diag-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.diag-card-body strong {
  font-size: 1.2rem;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.4rem;
}

.diag-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.shinsal-list-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shinsal-badge {
  display: inline-flex;
  flex-direction: column;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.shinsal-badge:hover {
  transform: translateY(-2px);
}

.shinsal-badge strong {
  font-size: 0.85rem;
  color: var(--text-main);
}

.shinsal-badge span {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Specific Shinsal Badge Themes */
.badge-gwiin {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.06);
}
.badge-gwiin strong {
  color: #c084fc;
}

.badge-dohwa {
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.06);
}
.badge-dohwa strong {
  color: #fb7185;
}

.badge-yeokma {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.06);
}
.badge-yeokma strong {
  color: #22d3ee;
}

.badge-hwagae {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
}
.badge-hwagae strong {
  color: #fbbf24;
}

.badge-yangin {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}
.badge-yangin strong {
  color: #f87171;
}

.badge-gwimun {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}
.badge-gwimun strong {
  color: #34d399;
}

/* Saju Table Additional Row Styles */
.tr-hidegans td {
  font-size: 0.72rem !important;
  color: var(--text-muted) !important;
  padding: 0.65rem 0.25rem !important;
  line-height: 1.3 !important;
  background: rgba(255,255,255,0.01) !important;
}

.tr-lifestages td {
  font-size: 0.75rem !important;
  color: var(--highlight-color) !important;
  font-weight: 700 !important;
  padding: 0.5rem 0.25rem !important;
  background: rgba(255,255,255,0.015) !important;
}

/* ----------------------------------------------------
   REDESIGNED RESULTS DASHBOARD STYLES
   ---------------------------------------------------- */

/* 1. Results Summary Header Bar */
.results-summary-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.results-summary-bar i {
  color: #c084fc;
  margin-right: 0.4rem;
}

.results-summary-bar .divider {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
}

.results-settings-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.badge-setting {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
}

.badge-setting-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 2. Main Daymaster Card */
.main-daymaster-card {
  text-align: center;
  background: radial-gradient(circle at center, rgba(126, 34, 206, 0.2) 0%, rgba(14, 20, 38, 0.6) 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 24px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.daymaster-circle-wrap {
  margin-bottom: 1.5rem;
}

.daymaster-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #10b981; /* Default to Wood */
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.daymaster-circle.wood { background: #10b981; box-shadow: 0 0 35px rgba(16, 185, 129, 0.45); }
.daymaster-circle.fire { background: #ef4444; box-shadow: 0 0 35px rgba(239, 68, 68, 0.45); }
.daymaster-circle.earth { background: #d97706; box-shadow: 0 0 35px rgba(217, 119, 6, 0.45); }
.daymaster-circle.metal { background: #94a3b8; box-shadow: 0 0 35px rgba(148, 163, 184, 0.45); }
.daymaster-circle.water { background: #2563eb; box-shadow: 0 0 35px rgba(37, 99, 235, 0.45); }

.daymaster-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #fff;
  letter-spacing: 1px;
}

.daymaster-title .hanja {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  margin-left: 0.5rem;
}

.daymaster-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.daymaster-badges {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.daymaster-badges span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.metric-box {
  background: rgba(14, 20, 38, 0.4);
  padding: 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.metric-box strong {
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

.metric-box strong .age-range {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-box strong .hanja-sub {
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 400;
}

.tip-alert-box {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  color: #fef08a;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 1rem;
  justify-content: center;
}

.tip-alert-box i {
  color: #fbbf24;
  font-size: 1rem;
}

.calc-note {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* 3. Saju Won-guk Section */
.wonguk-section {
  background: rgba(14, 20, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.wonguk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 1rem;
}

.wonguk-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.wonguk-header h4 .hanja-sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dark);
}

.action-buttons {
  display: flex;
  gap: 0.4rem;
}

.btn-action {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.btn-action:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

.wonguk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wonguk-col-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  transition: var(--transition-smooth);
}

.wonguk-col-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(255, 255, 255, 0.01);
}

.wonguk-col-card.empty-siju {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  justify-content: space-between;
}

.col-label {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.col-label .col-desc-sub {
  font-size: 0.65rem;
  font-weight: 500;
}

.col-body-unknown {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 3rem 0;
}

.wonguk-cell-box {
  padding: 1rem 0.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.wonguk-cell-box.stem-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.wonguk-cell-box.branch-box {
  margin-bottom: 1.25rem;
}

.wonguk-cell-box .hz {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.wonguk-cell-box .hz-han {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
}

.wonguk-cell-box .elem-txt {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.wonguk-cell-box .elem-txt span {
  font-size: 0.6rem;
}

.dot-y { color: #10b981; } /* Wood */
.dot-r { color: #ef4444; } /* Fire */
.dot-e { color: #fbbf24; } /* Earth */
.dot-w { color: #cbd5e1; } /* Metal */
.dot-b { color: #3b82f6; } /* Water */

.god-tag {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.god-tag.god-ilgan {
  background: #a855f7;
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.lifestage-badge-wrap {
  margin-bottom: 1rem;
}

.badge-stage {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-stage.badge-wood { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-stage.badge-fire { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-stage.badge-earth { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-stage.badge-metal { background: rgba(255, 255, 255, 0.08); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.15); }
.badge-stage.badge-water { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

.hidegan-desc-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.65rem;
}

.wonguk-combinations,
.wonguk-shinsal {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.section-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0,0,0,0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.section-badge i {
  color: #c084fc;
}

.section-badge .badge-num {
  background: #a855f7;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  padding: 0.05rem 0.35rem;
  border-radius: 30px;
  margin-left: 0.25rem;
}

.combinations-list,
.shinsal-compact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.comb-badge {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.comb-badge .type-tag {
  background: #10b981;
  color: #fff;
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  font-size: 0.65rem;
}

.comb-badge .detail-tag {
  color: var(--text-muted);
  font-weight: 500;
}

.shinsal-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.shinsal-tag .loc-tag {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.65rem;
  margin-left: 0.2rem;
}

/* 4. 12운성/지장간 상세 리스트 */
.detail-wonguk-section {
  margin-top: 1.5rem;
}

.detail-wonguk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.wonguk-detail-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wonguk-detail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

.wonguk-detail-card-header .col-t {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.wonguk-detail-card-header .stage-t {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--highlight-color);
}

.wonguk-detail-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.wonguk-detail-card-hg-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.wonguk-detail-card-hg-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  background: rgba(0,0,0,0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.wonguk-detail-card-hg-item .hg-name {
  font-weight: 600;
}

.wonguk-detail-card-hg-item .hg-pct {
  font-family: var(--font-display);
  color: var(--text-muted);
}

/* 5. A. 기본 운세 */
.luck-categories-section {
  background: rgba(14, 20, 38, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.section-title-bar {
  margin-bottom: 1.5rem;
}

.section-title-bar h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.section-title-bar .sub-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.luck-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.luck-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: var(--transition-smooth);
}

.luck-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.25);
}

.luck-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.luck-card-header .title-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.luck-card-header .title-left .lbl {
  font-size: 0.68rem;
  color: var(--text-dark);
  font-weight: 700;
}

.luck-card-header .title-left .title-main {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.luck-card-header .score-right {
  text-align: right;
}

.luck-card-header .score-right .score-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #10b981;
}

.luck-card-header .score-right .score-unit {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.score-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#luck-card-personality .score-bar { background: linear-gradient(90deg, #06b6d4 0%, #22d3ee 100%); }
#luck-card-personality .score-num { color: #22d3ee; }

#luck-card-love .score-bar { background: linear-gradient(90deg, #f43f5e 0%, #fb7185 100%); }
#luck-card-love .score-num { color: #fb7185; }

#luck-card-job .score-bar { background: linear-gradient(90deg, #fbbf24 0%, #fcd34d 100%); }
#luck-card-job .score-num { color: #fbbf24; }

#luck-card-wealth .score-bar { background: linear-gradient(90deg, #fbbf24 0%, #fb923c 100%); }
#luck-card-wealth .score-num { color: #fb923c; }

#luck-card-health .score-bar { background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%); }
#luck-card-health .score-num { color: #f472b6; }

.luck-card-body p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.luck-card-tags {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.luck-card-tags span {
  background: rgba(255,255,255,0.03);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.luck-detail-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.detail-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.detail-box-header {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.detail-box-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.detail-box-body {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 6. Daily Calendar and Compatibility */
.daily-calendar-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.calendar-container {
  background: rgba(14, 20, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.5rem;
}

.calendar-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.cal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cal-title i {
  color: #c084fc;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cal-nav button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.cal-nav button:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.cal-month-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.calendar-grid-wrapper {
  overflow-x: auto;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.calendar-table th {
  padding: 0.5rem 0.25rem;
  font-size: 0.78rem;
  color: var(--text-dark);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.calendar-table th.sun { color: #f87171; }
.calendar-table th.sat { color: #60a5fa; }

.calendar-table td {
  padding: 0.35rem 0.25rem;
  height: 70px;
  vertical-align: top;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.calendar-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0.15rem;
  border-radius: 6px;
  height: 100%;
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.calendar-cell:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.calendar-cell.other-month {
  opacity: 0.15;
  pointer-events: none;
}

.calendar-cell .day-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.calendar-cell.cell-today {
  border-color: #a855f7 !important;
  background: rgba(168, 85, 247, 0.08) !important;
}

.calendar-cell.cell-today .day-num {
  color: #c084fc;
}

.calendar-cell.cell-good {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.calendar-cell.cell-good .day-num {
  color: #34d399;
}

.calendar-cell.cell-warn {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.04);
}

.calendar-cell.cell-warn .day-num {
  color: #f87171;
}

.calendar-cell .ganzhi-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.calendar-cell .lunar-text {
  font-size: 0.6rem;
  color: var(--text-dark);
}

.calendar-cell .god-text {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.calendar-legend {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-start;
  margin-top: 0.85rem;
}

.legend-item {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}

.dot-legend {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-legend.dot-today { background: #a855f7; }
.dot-legend.dot-good { background: #10b981; }
.dot-legend.dot-warn { background: #ef4444; }

.dot-legend.dot-current-daeun { background: #a855f7; }
.dot-legend.dot-past-daeun { background: #4b5563; }
.dot-legend.dot-future-daeun { background: #1f2937; }

/* Compatibility widget styling */
.compatibility-container {
  background: rgba(14, 20, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.comp-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.comp-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.comp-card {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.comp-card-icon {
  font-size: 1.5rem;
  color: #c084fc;
}

.comp-card-desc {
  font-size: 0.75rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.btn-comp-start {
  width: 100%;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  padding: 0.55rem 0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.btn-comp-start:hover {
  background: #a855f7;
  color: #fff;
  border-color: #a855f7;
}

/* 7. Technical Metrics Section */
.technical-metrics-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metrics-table-container {
  background: rgba(14, 20, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.5rem;
}

.metrics-table-container h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.metrics-table-container h5 i {
  color: #fbbf24;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
}

.metrics-table th {
  padding: 0.65rem 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dark);
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.metrics-table td {
  padding: 0.85rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.metrics-table .lbl-row {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  padding-left: 0.5rem;
}

.ilgan-focus-text {
  color: #c084fc;
}

.metrics-widgets-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.widget-card {
  background: rgba(14, 20, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.widget-header i {
  font-size: 1.5rem;
  color: #c084fc;
}

.widget-header .w-label {
  font-size: 0.7rem;
  color: var(--text-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.widget-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.strength-slider-container {
  margin-bottom: 1.5rem;
}

.slider-bar {
  height: 8px;
  background: linear-gradient(90deg, #3b82f6 0%, #fbbf24 50%, #ef4444 100%);
  border-radius: 10px;
  position: relative;
}

.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 2px;
  background: rgba(255,255,255,0.3);
}

.slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
  cursor: default;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 600;
}

.strength-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.score-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.score-chip.green {
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.yongshin-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ys-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ys-detail-item .ys-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.1rem;
}

.ys-detail-item .ys-header .ys-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
}

.ys-dot.bg-green-dot { background: #10b981; }
.ys-dot.bg-blue-dot { background: #3b82f6; }
.ys-dot.bg-red-dot { background: #ef4444; }

.ys-detail-item .ys-header .lbl {
  font-size: 0.7rem;
  color: var(--text-dark);
  font-weight: 700;
}

.ys-detail-item .ys-header strong {
  font-size: 0.82rem;
}

.ys-detail-item p {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-left: 1.15rem;
  line-height: 1.35;
}

.elements-progress-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ep-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ep-name {
  font-size: 0.75rem;
  font-weight: 800;
  width: 20px;
}

.ep-name.ep-wood { color: #10b981; }
.ep-name.ep-fire { color: #ef4444; }
.ep-name.ep-earth { color: #fbbf24; }
.ep-name.ep-metal { color: #cbd5e1; }
.ep-name.ep-water { color: #3b82f6; }

.ep-bar-wrap {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
}

.ep-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ep-val {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  width: 32px;
  text-align: right;
}

.ep-status {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  width: 36px;
  text-align: center;
}

.ep-status.ep-tag-over { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.ep-status.ep-tag-good { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.ep-status.ep-tag-under { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* 8. 12운성 생애 에너지 & 대운 타임라인 */
.timeline-navigation-section {
  background: rgba(14, 20, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.timeline-header-title {
  margin-bottom: 1rem;
}

.timeline-header-title h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.lifestage-energy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.lifestage-energy-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: var(--transition-smooth);
}

.lifestage-energy-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
}

.lifestage-energy-card.unknown-stage {
  opacity: 0.35;
  background: rgba(255,255,255,0.01);
  border: 1px dashed rgba(255,255,255,0.08);
}

.lifestage-energy-card .col-name {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.lifestage-energy-card .col-name .age-hint {
  font-size: 0.65rem;
  font-weight: 500;
}

.lifestage-energy-card .energy-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.lifestage-energy-card .energy-icon-wood { border-color: rgba(16, 185, 129, 0.2); color: #10b981; }
.lifestage-energy-card .energy-icon-fire { border-color: rgba(239, 68, 68, 0.2); color: #ef4444; }
.lifestage-energy-card .energy-icon-earth { border-color: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.lifestage-energy-card .energy-icon-metal { border-color: rgba(255, 255, 255, 0.1); color: #cbd5e1; }
.lifestage-energy-card .energy-icon-water { border-color: rgba(59, 130, 246, 0.2); color: #3b82f6; }

.lifestage-energy-card .stage-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.15rem;
}

.lifestage-energy-card .stage-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.lifestage-energy-card .badge-power {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  color: #fff;
}

.badge-power.power-strong { background: #10b981; }
.badge-power.power-mid { background: #fbbf24; }
.badge-power.power-weak { background: #ef4444; }

.lifestage-energy-card .stage-desc {
  font-size: 0.72rem;
  color: var(--text-dark);
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.65rem;
  width: 100%;
}

.daeun-timeline-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.daeun-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.daeun-timeline-header .dt-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.daeun-timeline-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.daeun-timeline-header h5 i {
  color: #c084fc;
}

.daeun-timeline-header .dt-title .dt-meta-info {
  font-size: 0.75rem;
  color: var(--text-dark);
}

.daeun-timeline-header .dt-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.daeun-timeline-header .dt-right .dt-age-now {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.daeun-timeline-header .dt-right .btn-dt-direction {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c084fc;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.daeun-slider-wrapper {
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.75rem;
}

.daeun-slider {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding: 0.25rem;
}

.daeun-item-card {
  width: 130px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.daeun-item-card:hover {
  transform: translateY(-2px);
}

.daeun-item-card .di-title {
  font-size: 0.68rem;
  color: var(--text-dark);
  font-weight: 700;
}

.daeun-item-card .di-age {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.daeun-item-card .di-year {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.daeun-item-card .di-ganzhi {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0.15rem 0;
}

.daeun-item-card .di-god {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 4px;
  color: var(--text-muted);
}

.daeun-item-card .di-stage {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--highlight-color);
}

/* Daeun Status states */
.daeun-item-card.current-daeun {
  background: rgba(168, 85, 247, 0.08);
  border: 1.5px solid #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.daeun-item-card.current-daeun .di-title {
  color: #c084fc;
}

.daeun-item-card.past-daeun {
  opacity: 0.45;
  background: rgba(255, 255, 255, 0.005);
}

.daeun-item-card.future-daeun {
  opacity: 0.75;
}

.daeun-legend {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-start;
  margin-top: 0.85rem;
}

/* Responsiveness overrides */
@media (max-width: 900px) {
  .results-summary-bar {
    border-radius: 12px;
    gap: 0.75rem;
  }
  .results-summary-bar .divider {
    display: none;
  }
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .wonguk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-wonguk-grid {
    grid-template-columns: 1fr;
  }
  .luck-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .luck-detail-boxes {
    grid-template-columns: 1fr;
  }
  .daily-calendar-section {
    grid-template-columns: 1fr;
  }
  .metrics-widgets-row {
    grid-template-columns: 1fr;
  }
  .lifestage-energy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wonguk-grid {
    grid-template-columns: 1fr;
  }
  .luck-cards-grid {
    grid-template-columns: 1fr;
  }
  .lifestage-energy-grid {
    grid-template-columns: 1fr;
  }
}
