/* Melo V2 Dynamic CMS & Unbypassable Countdown Clock Styles */

/* 1. Global Announcement Alert Banner */
.melo-alert-banner {
  position: relative;
  z-index: 100;
  width: 100%;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font, inherit);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.melo-alert-banner.emerald {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.25));
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.melo-alert-banner.info {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(79, 70, 229, 0.25));
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.melo-alert-banner.amber {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}

.melo-alert-banner.rose {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.15), rgba(225, 29, 72, 0.25));
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.3);
}

.melo-alert-banner a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  margin-left: 6px;
  transition: opacity 0.2s;
}

.melo-alert-banner a:hover {
  opacity: 0.85;
}

/* 2. Unbypassable Release Countdown Card */
.melo-countdown-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(18, 19, 26, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(139, 92, 246, 0.15);
  border-radius: 28px;
  padding: 22px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 480px;
  margin-bottom: 8px;
  animation: rise-in 0.9s var(--ease) 0.36s both;
}

.melo-countdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.melo-countdown-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.melo-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px #a78bfa;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.melo-countdown-secure {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 5px;
}

.melo-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 6px 0;
}

.melo-time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(25, 26, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 4px;
}

.melo-time-digit {
  font-family: "Fira Code", ui-monospace, Menlo, monospace;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.04em;
  text-shadow: 0 0 16px rgba(167, 139, 250, 0.4);
}

.melo-time-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
  text-transform: uppercase;
}

.melo-countdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.melo-countdown-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

.melo-locked-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
  cursor: not-allowed;
  user-select: none;
  flex-shrink: 0;
}

/* 3. Live Release Download & Verification Widget */
.melo-live-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.melo-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px 16px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  font: 700 clamp(18px, 1.8vw, 24px)/1 var(--font, inherit);
  letter-spacing: -0.04em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.melo-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  filter: brightness(1.08);
}

.melo-download-btn i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #4f46e5;
  flex: none;
}

.melo-download-btn i svg {
  width: 60%;
  height: 60%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.melo-sha-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Fira Code", ui-monospace, Menlo, monospace;
}

.melo-sha-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px 8px;
  color: #a5b4fc;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.melo-sha-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.melo-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #181924;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
