/* Enhanced Design 8 Styles */
.ramadan-lantern.lantern8 #work {
  width: 100px;
  position: relative;
  animation: sway 3s infinite ease-in-out;
  transition: transform 0.3s ease;
}

@keyframes sway {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.ramadan-lantern.lantern8 #c1 {
  position: absolute;
  z-index: 5;
  bottom: 0;
  height: 100px;
}

.ramadan-lantern.lantern8 .light {
  width: 100%;
  height: 100%;
  padding: 10px;
  margin: 0 auto;
  background: rgba(123, 104, 238, 0.1);
  border-radius: 50%;
  animation: pulse 2s infinite;
  transition: background 0.3s ease;
}

@keyframes pulse {
  0%, 100% { background: rgba(123, 104, 238, 0.1); }
  50% { background: rgba(123, 104, 238, 0.3); }
}

.ramadan-lantern.lantern8 #fanos {
  height: 160px;
  padding: 4px;
  margin: 0 auto;
  position: relative;
  top: -5px;
  border-radius: 50%;
  border: 2px solid var(--lantern-border-color, #7b68ee);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.ramadan-lantern.lantern8 #small-circle,
.ramadan-lantern.lantern8 #half-circle,
.ramadan-lantern.lantern8 #bottom-quppa,
.ramadan-lantern.lantern8 #line,
.ramadan-lantern.lantern8 #top-triangle,
.ramadan-lantern.lantern8 #box,
.ramadan-lantern.lantern8 #last-triangle {
  background-color: #7b68ee;
  border-color: var(--lantern-border-color, #6a5acd);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ramadan-lantern.lantern8 #small-circle {
  margin: 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
  z-index: 5;
}

.ramadan-lantern.lantern8 #half-circle {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 50%;
}

.ramadan-lantern.lantern8 #bottom-quppa {
  margin: 0 auto;
  position: relative;
  top: 20px;
  z-index: 3;
}

.ramadan-lantern.lantern8 #line {
  margin: 0 auto;
  width: 80px;
  height: 10px;
  padding-top: 1px;
  overflow: hidden;
  text-align: center;
}

.ramadan-lantern.lantern8 #line .ball {
  width: 6px;
  height: 6px;
  margin: auto 2px;
  display: inline-block;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.ramadan-lantern.lantern8 #top-triangle {
  margin: 0 auto;
  width: 65px;
  height: 0;
  border-left: 10px transparent solid;
  border-right: 10px transparent solid;
  border-bottom: 15px var(--lantern-border-color, #6a5acd) solid;
  position: relative;
  top: -2px;
  transition: border-bottom-color 0.3s ease;
}

.ramadan-lantern.lantern8 #box {
  width: 70px;
  margin: 0 auto;
  height: 90px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  top: -4px;
  z-index: 1;
  border: 2px solid var(--lantern-border-color, #6a5acd);
  border-radius: 20px;
  transition: background 0.3s ease, border 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ramadan-lantern.lantern8 #candle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: 10px;
  height: 25px;
  background-color: var(--candle-color, #7b68ee);
  z-index: 10;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.ramadan-lantern.lantern8 #flame {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 38px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #ff4500 0%, rgba(255, 69, 0, 0.5) 70%, rgba(255, 69, 0, 0) 100%);
  z-index: 11;
  animation: flame-flicker 1.5s infinite;
  border-radius: 50% 50% 50% 0;
  transition: transform 0.3s ease;
}

@keyframes flame-flicker {
  0% { transform: translateX(-50%) scaleY(1) rotate(0deg); opacity: 1; }
  50% { transform: translateX(-50%) scaleY(0.8) rotate(2deg); opacity: 0.8; }
  100% { transform: translateX(-50%) scaleY(1) rotate(-2deg); opacity: 1; }
}

.ramadan-lantern.lantern8 #flame-light {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 38px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 69, 0, 0.2) 0%, rgba(255, 69, 0, 0.1) 70%, rgba(255, 69, 0, 0) 100%);
  z-index: 9;
  animation: light-flicker 1.5s infinite;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

@keyframes light-flicker {
  0% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.1); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.ramadan-lantern.lantern8 #last-triangle {
  margin: 0 auto;
  width: 44px;
  height: 0;
  border-left: 10px transparent solid;
  border-right: 10px transparent solid;
  border-bottom: 10px var(--lantern-border-color, #6a5acd) solid;
  position: relative;
  top: -2px;
  transition: border-bottom-color 0.3s ease;
}

.ramadan-lantern .vertical-text {
  position: absolute;
  bottom: 0;
  left: -20px;
  writing-mode: vertical-lr;
  font-size: 14px;
  color: var(--text-color, #7b68ee);
  font-weight: bold;
  transition: color 0.3s ease;
}
