/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f0f2f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  display: flex;
  justify-content: center;
  padding: 20px;
  padding-bottom: 110px; /* biar konten gak ketutup footer fixed */
}

/* Card */
.fb-post {
  max-width: 430px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Header */
.fb-header {
  display: flex;
  align-items: center;
  padding: 12px;
}

.fb-avatar,
.fb-comment-avatar {
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.fb-avatar {
  width: 42px;
  height: 42px;
  margin-right: 10px;
  background: #111;
  color: #fff;
}

.fb-comment-avatar {
  width: 32px;
  height: 32px;
  background: #ccd0d5;
}

.fb-avatar img,
.fb-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fb-avatar span,
.fb-comment-avatar span {
  position: absolute;
  z-index: 1;
}

.fb-name {
  font-weight: 600;
  font-size: 14px;
}

.fb-sponsored {
  font-size: 12px;
  color: #65676b;
}

.fb-subtext {
  font-size: 12px;
  color: #050505;
  margin-top: 2px;
}

/* Image */
.fb-image img {
  width: 100%;
  display: block;
}

/* CTA */
.fb-cta-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f0f2f5;
  border-top: 1px solid #ddd;
}

.fb-domain {
  font-weight: 600;
  font-size: 13px;
}

.fb-desc {
  font-size: 13px;
}

.fb-desc span {
  font-size: 12px;
  color: #65676b;
}

/* CTA Button */
.fb-cta-btn a {
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #4c8ffb 0%, #1877f2 55%, #145dbf 100%);
  color: #fff;
  padding: 13px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28), 0 4px 8px rgba(0, 0, 0, 0.28);
}

.fb-cta-btn a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0)
  );
  animation: shine 3.2s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -60%;
  }
  55%,
  100% {
    left: 120%;
  }
}

/* Counts */
.fb-counts {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 13px;
  color: #65676b;
}

/* Actions */
.fb-actions {
  display: flex;
  border-top: 1px solid #ddd;
}

.fb-action-link {
  flex: 1;
  text-decoration: none;
}

.fb-actions button {
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #65676b;
}

.fb-actions button:hover {
  background: #f0f2f5;
}

/* Comments */
.fb-comments {
  padding: 10px 12px;
  border-top: 1px solid #ddd;
}

.fb-comments-header {
  font-size: 13px;
  font-weight: 600;
  color: #65676b;
  margin-bottom: 10px;
}

.fb-comment {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.fb-comment-body {
  background: #f0f2f5;
  border-radius: 16px;
  padding: 8px 12px;
}

.fb-comment-name {
  font-size: 13px;
  font-weight: 600;
}

.fb-comment-text {
  font-size: 13px;
}

.fb-comment-meta {
  font-size: 12px;
  color: #65676b;
  margin-top: 4px;
}

.fb-comment-input input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ccd0d5;
  font-size: 13px;
}

/* Fixed Footer */
.NYE-fixed-footer {
  display: flex;
  justify-content: space-around;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  padding: 10px 0;
  border-radius: 40px 40px 0 0;
  overflow: hidden;
  background: linear-gradient(160deg, #4e9cff 0%, #1877f2 45%, #0f5dc4 100%);
  box-shadow: 0 0 18px rgba(24, 119, 242, 0.85),
    0 0 36px rgba(24, 119, 242, 0.55),
    inset 0 0 18px rgba(255, 255, 255, 0.45),
    inset 0 -16px 24px rgba(10, 60, 140, 0.45);
  animation: skyPulseFooter 2.8s infinite ease-in-out;
}

.NYE-fixed-footer a.f-icon {
  position: relative;
  flex-basis: calc((100% - 15px * 6) / 5);
  max-width: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 22px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #f0f6ff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  overflow: visible;
}

.NYE-fixed-footer a.f-icon::before {
  content: "";
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: url("https://i.postimg.cc/sQYB7zFk/favicon.png") center / contain
    no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

/* CTA tengah */
.NYE-fixed-footer a.tada {
  transform: scale(1.25) translateY(-6px);
}

.NYE-fixed-footer::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -120%;
  width: 60%;
  height: 240%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: footerShine 3.8s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}

/* Spark */
.NYE-fixed-footer a.f-icon::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #dbe9ff 45%, #6aa8ff 80%);
  opacity: 0;
  animation: sparkFly 1.6s infinite ease-out;
  pointer-events: none;
  z-index: 2;
}

@keyframes skyPulseFooter {
  0% {
    box-shadow: 0 0 16px rgba(24, 119, 242, 0.6),
      inset 0 -14px 20px rgba(10, 60, 140, 0.3);
  }
  50% {
    box-shadow: 0 0 36px rgba(24, 119, 242, 1),
      inset 0 -20px 28px rgba(10, 60, 140, 0.55);
  }
  100% {
    box-shadow: 0 0 16px rgba(24, 119, 242, 0.6),
      inset 0 -14px 20px rgba(10, 60, 140, 0.3);
  }
}

@keyframes footerShine {
  0% {
    left: -120%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    left: 120%;
    opacity: 1;
  }
  90%,
  100% {
    left: 120%;
    opacity: 0;
  }
}

@keyframes sparkFly {
  0% {
    transform: translateY(0) scale(0.4);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  60% {
    transform: translateY(-24px) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-44px) scale(0.2);
    opacity: 0;
  }
}
