/* ===================================
   BaZi Persona Visualization Styles
   =================================== */

.bazi-persona {
  background: linear-gradient(180deg, #ffffff, #f9faf9);
  border-left: 5px solid #4b9f4b;
  padding: 26px;
  border-radius: 18px;
  margin-top: 20px;
}

.bazi-persona p {
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}

.bazi-balance {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 18px 0;
}

.bazi-bar {
  background: #eee;
  border-radius: 10px;
  height: 28px;
  overflow: hidden;
  position: relative;
}
.bazi-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--val);
  transition: width 0.6s ease;
}
.bazi-bar span {
  position: relative;
  z-index: 2;
  padding-left: 10px;
  font-size: 14px;
  color: #111;
  line-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 10px;
}

.bazi-bar.wood::before  { background: #7bc97b; }
.bazi-bar.fire::before  { background: #ff8b66; }
.bazi-bar.earth::before { background: #d4b66c; }
.bazi-bar.metal::before { background: #c7c7c7; }
.bazi-bar.water::before { background: #64aef4; }

.bazi-cta {
  text-align: center;
  margin-top: 24px;
  font-size: 15px;
  color: #333;
}
.bazi-cta button {
  margin-top: 10px;
  background: #479855;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.bazi-cta button:hover {
  background: #3a7c44;
}

/* Responsive */
@media (max-width:768px){
  .bazi-persona { padding:20px; }
  .bazi-bar span { font-size:13px; }
  .bazi-cta { font-size:14px; }
}