.shio-container {
  min-height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #fce3b6;
  background: transparent;
}
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}
.shio-content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 15px;
  text-align: center;
}
.shio-title {
  font-family: "Cinzel", serif;
  font-size: 2.5rem;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  margin-bottom: 5px;
}
.shio-subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 30px;
}
.view-title {
  font-family: "Cinzel", serif;
  color: #ffd700;
  margin-bottom: 30px;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes counter-spin {
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bagua-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 15px auto;
  animation: spin 30s linear infinite;
  border-radius: 50%;
  border: 2px dashed rgba(255, 215, 0, 0.4);
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.1),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
}
.bagua-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  animation: counter-spin 30s linear infinite;
}
.trigram {
  position: absolute;
  font-size: 1.5rem;
  color: #ffd700;
  font-weight: bold;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 50%;
  top: 50%;
  margin-left: -15px;
  margin-top: -15px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.t1 {
  transform: rotate(0deg) translate(48px) rotate(90deg);
}
.t2 {
  transform: rotate(45deg) translate(48px) rotate(90deg);
}
.t3 {
  transform: rotate(90deg) translate(48px) rotate(90deg);
}
.t4 {
  transform: rotate(135deg) translate(48px) rotate(90deg);
}
.t5 {
  transform: rotate(180deg) translate(48px) rotate(90deg);
}
.t6 {
  transform: rotate(225deg) translate(48px) rotate(90deg);
}
.t7 {
  transform: rotate(270deg) translate(48px) rotate(90deg);
}
.t8 {
  transform: rotate(315deg) translate(48px) rotate(90deg);
}
.shio-view {
  display: none;
  animation: fadeIn 0.5s ease;
}
.shio-view.active {
  display: block;
}
.hidden {
  display: none !important;
}
.back-btn {
  background: transparent;
  border: none;
  color: #fce3b6;
  cursor: pointer;
  opacity: 0.7;
  margin-bottom: 20px;
  font-size: 1rem;
  transition: opacity 0.3s;
}
.back-btn:hover {
  opacity: 1;
  text-decoration: underline;
}
.choice-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.choice-card {
  position: relative;
  background: rgba(40, 5, 5, 0.7);
  border: 2px solid #8b0000;
  border-radius: 15px;
  padding: 25px;
  width: 220px;
  box-sizing: border-box;
  font-family: "Space Grotesk", sans-serif;
  color: #fce3b6;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(5px);
}
.choice-card:hover {
  background: rgba(139, 0, 0, 0.5);
  border-color: #ffd700;
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}
.choice-card i {
  font-size: 2.5rem;
  color: #ffd700;
}
.choice-card span {
  font-size: 1.1rem;
  font-weight: 600;
}
.choice-card small {
  opacity: 0.7;
  font-size: 0.85rem;
}
.choice-card.unavailable {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(100%);
  cursor: not-allowed;
}
.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.badge-soon {
  background: linear-gradient(135deg, #ff4500, #ff8c00);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.shio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}
.shio-item {
  background: rgba(20, 5, 5, 0.8);
  border: 1px solid #5a0000;
  border-radius: 10px;
  padding: 15px 10px;
  color: #fce3b6;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.shio-item:hover {
  border-color: #ffd700;
  background: rgba(80, 10, 10, 0.8);
  transform: scale(1.05);
}
.shio-item .icon {
  font-size: 2.5rem;
  line-height: 1;
}
.shio-item .icon.hanzi,
.icon-hanzi {
  font-family: "Cinzel", "Noto Serif TC", "Georgia", serif;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #ffd700, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  font-weight: bold;
}
.shio-item .name {
  font-family: "Cinzel", serif;
  font-weight: bold;
}
.daily-header {
  text-align: center;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}
.daily-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}
.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.daily-card {
  background: rgba(20, 5, 25, 0.8);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.daily-card:hover {
  transform: translateY(-5px);
}
.daily-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}
.daily-card-icon {
  font-size: 2rem;
}
.daily-card-name {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
}
.daily-card-status {
  font-weight: bold;
  font-size: 1.1rem;
  padding: 5px 10px;
  border-radius: 6px;
  text-align: center;
}
.daily-card-message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}
.daily-card-tip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-style: italic;
  color: #e0e0e0;
}
.daily-card-tip i {
  color: #ffd700;
  margin-right: 5px;
}
.status-good {
  border-color: rgba(76, 175, 80, 0.5);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1);
}
.status-good .daily-card-name {
  color: #4caf50;
}
.status-good .daily-card-status {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
}
.status-bad {
  border-color: rgba(244, 67, 54, 0.5);
  box-shadow: 0 5px 15px rgba(244, 67, 54, 0.1);
}
.status-bad .daily-card-name {
  color: #f44336;
}
.status-bad .daily-card-status {
  background: rgba(244, 67, 54, 0.2);
  color: #e57373;
}
.status-neutral {
  border-color: rgba(100, 149, 237, 0.5);
  box-shadow: 0 5px 15px rgba(100, 149, 237, 0.1);
}
.status-neutral .daily-card-name {
  color: #6495ed;
}
.status-neutral .daily-card-status {
  background: rgba(100, 149, 237, 0.2);
  color: #90caf9;
}
.fortune-card {
  background: linear-gradient(
    145deg,
    rgba(60, 10, 10, 0.9),
    rgba(20, 0, 0, 0.9)
  );
  border: 2px solid #ffd700;
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
}
.res-title {
  font-family: "Cinzel", serif;
  color: #ffd700;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.res-fortune {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #fce3b6;
}
.res-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.meta-box {
  font-weight: bold;
  color: #ffd700;
}
.fortune-highlights {
  margin-bottom: 25px;
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.1) 0%,
    rgba(20, 5, 5, 0.5) 100%
  );
  padding: 15px;
  border-radius: 12px;
  border-left: 4px solid #ffd700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
}
.highlight-item {
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  line-height: 1.5;
}
.highlight-item:last-child {
  margin-bottom: 0;
}
.highlight-item i {
  color: #ffd700;
  margin-right: 5px;
}
.fortune-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  text-align: left;
}
.category-box {
  background: linear-gradient(145deg, rgba(40, 5, 5, 0.7), rgba(20, 2, 2, 0.9));
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 15px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.category-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.8);
  background: linear-gradient(
    145deg,
    rgba(60, 10, 10, 0.8),
    rgba(30, 5, 5, 0.9)
  );
}
.category-box h3 {
  margin: 0 0 10px 0;
  color: #ffd700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed rgba(255, 215, 0, 0.2);
  padding-bottom: 5px;
}
.category-box p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}
.auto-form-container {
  background: rgba(20, 5, 5, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 25px;
  max-width: 450px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}
.auto-form-container p {
  margin-top: 0;
  margin-bottom: 25px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.input-group {
  margin-bottom: 25px;
}
.shio-date-input {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #fff;
  font-size: 1.1rem;
  border-radius: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: all 0.3s;
  box-sizing: border-box;
}
.shio-date-input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.date-select-group {
  display: flex;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.shio-select {
  flex: 1;
  padding: 10px 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #fff;
  font-size: 1rem;
  border-radius: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: all 0.3s;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 0;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 0.8em;
}
.shio-select:focus,
.shio-select:hover {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  background-color: rgba(30, 10, 10, 0.8);
}
.shio-select option {
  background: #1a0b12;
  color: #fff;
}
.calculate-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: "Cinzel", serif;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #1a0b2e;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}
.calculate-btn i {
  margin-right: 8px;
}
::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(100%) saturate(500%) hue-rotate(35deg);
  cursor: pointer;
}
.flatpickr-calendar {
  background: rgba(15, 5, 25, 0.95) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px);
  font-family: "Plus Jakarta Sans", sans-serif !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: #ff8c00 !important;
  border-color: #ffd700 !important;
}
.flatpickr-months .flatpickr-month {
  background: transparent !important;
  color: #ffd700 !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #ffd700 !important;
}
.flatpickr-day:hover {
  background: rgba(255, 215, 0, 0.2) !important;
  border-color: transparent !important;
}
.flatpickr-calendar.hasTime.noCalendar {
  width: auto !important;
  padding: 10px !important;
  background: rgba(20, 5, 25, 0.95) !important;
  border: 1px solid rgba(255, 215, 0, 0.5) !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(255, 215, 0, 0.2) !important;
  border-radius: 12px;
}
.flatpickr-time {
  background: transparent !important;
  border-top: none !important;
  height: 60px !important;
  line-height: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  align-items: center !important;
}
.flatpickr-time .numInputWrapper {
  height: 100% !important;
}
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  color: #ffd700 !important;
  font-size: 1.5rem !important;
  font-family: "Cinzel", serif !important;
  font-weight: bold !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border-radius: 8px !important;
  transition: all 0.3s;
}
.flatpickr-time input:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:hover {
  background: rgba(255, 215, 0, 0.1) !important;
  color: #ff8c00 !important;
}
.flatpickr-time .flatpickr-time-separator {
  color: #ffd700 !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
}
.flatpickr-time .numInputWrapper span {
  border: 1px solid rgba(255, 215, 0, 0.2) !important;
  border-radius: 4px;
}
.flatpickr-time .numInputWrapper span:hover {
  background: rgba(255, 215, 0, 0.3) !important;
}
.flatpickr-time .numInputWrapper span.arrowUp:after {
  border-bottom-color: #ffd700 !important;
}
.flatpickr-time .numInputWrapper span.arrowDown:after {
  border-top-color: #ffd700 !important;
}
@media (max-width: 600px) {
  .fortune-categories {
    grid-template-columns: 1fr;
  }
}
.daily-date-wrapper input {
  background: transparent !important;
  border: none !important;
  color: #ffd700 !important;
  font-family: "Cinzel", serif !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  text-align: center !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  width: 190px !important;
  padding: 0 !important;
  margin-top: 3px !important;
  line-height: 1 !important;
}
@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.daily-card.animate-in {
  animation: cardFadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}
@keyframes pulseGlow {
  0% {
    opacity: 0.5;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.2));
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    transform: scale(1);
  }
  100% {
    opacity: 0.5;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.2));
    transform: scale(0.98);
  }
}
.loading-cosmic {
  grid-column: 1 / -1;
  text-align: center;
  color: #ffd700;
  padding: 80px 0;
  animation: pulseGlow 2s infinite ease-in-out;
}
.choice-card {
  text-decoration: none;
}
#btn-daily {
  grid-column: 1 / -1;
}
.daily-view-title {
  margin-bottom: 5px;
}
#daily-date-str {
  display: none;
}
.daily-date-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto 20px;
}
.daily-date-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.daily-date-wrapper:hover {
  background: rgba(255, 215, 0, 0.1);
}
.daily-date-icon {
  color: #ffd700;
  margin-top: -1px;
}
.daily-date-chevron {
  color: #ffd700;
  font-size: 0.8rem;
  margin-top: -1px;
}
#btn-today-reset {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
#btn-today-reset:hover {
  background: rgba(255, 215, 0, 0.1);
}
.daily-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}
