.announcement-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.announcement-modal.active {
  display: flex;
  opacity: 1;
}

.announcement-content {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.3);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.announcement-modal.active .announcement-content {
  transform: translateY(0);
}

.announcement-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 2rem;
  text-align: center;
  position: relative;
  color: white;
}

.announcement-header h3 {
  font-size: 2rem;
  margin: 0;
  font-family: 'Playfair Display', serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.announcement-header h3 i {
  font-size: 1.8rem;
  color: var(--accent-light);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  color: var(--accent-light);
  transform: rotate(90deg);
  background: rgba(255,255,255,0.1);
}

.announcement-body {
  padding: 2.5rem;
}

.version-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(22, 160, 133, 0.2);
}

.version-badge {
  background: var(--accent);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(22, 160, 133, 0.3);
}

.version-date {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.update-log, .daily-tip {
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 1.8rem;
  border-left: 4px solid var(--accent);
}

.update-log h4, .daily-tip h4 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.update-log h4 i, .daily-tip h4 i {
  color: var(--accent);
  font-size: 1.3rem;
}

.update-log ul {
  list-style: none;
  padding-left: 0;
}

.update-log li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.update-log li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.5rem;
}

.daily-tip p {
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  font-size: 1.1rem;
}

.announcement-footer {
  padding: 0 2.5rem 2.5rem;
  text-align: center;
}

.accept-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 15px rgba(26, 188, 156, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.accept-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.accept-btn:hover::before {
  left: 100%;
}

.accept-btn:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(26, 188, 156, 0.5);
}

.crystal-decoration {
  position: absolute;
  color: var(--accent);
  opacity: 0.1;
  font-size: 6rem;
  z-index: -1;
  pointer-events: none;
}

.crystal-decoration.top-left {
  top: 20px;
  left: 20px;
  animation: float 12s infinite ease-in-out;
}

.crystal-decoration.bottom-right {
  bottom: 20px;
  right: 20px;
  transform: rotate(180deg);
  animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (max-width: 768px) {
  .announcement-content {
    width: 95%;
    margin: 1rem;
  }
  
  .announcement-header {
    padding: 1.5rem;
  }
  
  .announcement-header h3 {
    font-size: 1.7rem;
  }
  
  .announcement-body {
    padding: 1.5rem;
  }
  
  .update-log, .daily-tip {
    padding: 1.2rem;
    margin-bottom: 1.8rem;
  }
  
  .update-log h4, .daily-tip h4 {
    font-size: 1.3rem;
  }
  
  .announcement-footer {
    padding: 0 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .announcement-header h3 {
    font-size: 1.5rem;
  }
  
  .announcement-body {
    padding: 1.2rem;
  }
  
  .update-log, .daily-tip {
    padding: 1rem;
  }
  
  .update-log h4, .daily-tip h4 {
    font-size: 1.2rem;
  }
  
  .update-log li, .daily-tip p {
    font-size: 1rem;
  }
  
  .accept-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
  
  .version-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}