/* ============================================================
   ONELINK — features.css
   Style untuk semua fitur baru
   ============================================================ */

/* ══════════════════════════════════════
   ANIMATED AVATAR BORDER
══════════════════════════════════════ */

/* @property untuk animasi conic-gradient */
@property --ab-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes ab-spin {
  to {
    --ab-angle: 360deg;
  }
}
@keyframes ab-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px currentColor;
  }
  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

.avatar-border-rainbow {
  padding: 3px;
  background: conic-gradient(
    from var(--ab-angle),
    #ff0080,
    #ff8c00,
    #ffe600,
    #00dd00,
    #00c8ff,
    #8b44ff,
    #ff0080
  );
  /* border-radius diambil dari inline style avatar (shape) — tidak di-override */
  animation: ab-spin 3s linear infinite;
}
.avatar-border-rainbow img,
.preview-avatar.avatar-border-rainbow {
  outline: 3px solid transparent;
}

.avatar-border-violet {
  padding: 3px;
  background: conic-gradient(
    from var(--ab-angle),
    #7b6cf4,
    #9d91ff,
    #c4b5fd,
    #7b6cf4
  );
  animation: ab-spin 4s linear infinite;
}

.avatar-border-gold {
  padding: 3px;
  background: conic-gradient(
    from var(--ab-angle),
    #b8860b,
    #ffd700,
    #ffe066,
    #b8860b
  );
  animation: ab-spin 5s linear infinite;
}

.avatar-border-neon {
  padding: 3px;
  background: conic-gradient(
    from var(--ab-angle),
    #00ff88,
    #00ffee,
    #00a8ff,
    #00ff88
  );
  animation: ab-spin 2.5s linear infinite;
}

.avatar-border-pulse {
  border: 3px solid #f87171 !important;
  /* border-radius mengikuti bentuk avatar yang dipilih user */
  animation: ab-pulse 1.5s ease-in-out infinite;
  color: #f87171;
}

/* Preview avatar wrapper khusus untuk border animasi */
.preview-avatar.avatar-border-rainbow,
.preview-avatar.avatar-border-violet,
.preview-avatar.avatar-border-gold,
.preview-avatar.avatar-border-neon {
  padding: 3px;
  border: none !important;
}

/* ══════════════════════════════════════
   LINK HOVER ANIMATIONS
══════════════════════════════════════ */

@keyframes lh-lift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-4px);
  }
}
@keyframes lh-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-7px);
  }
  60% {
    transform: translateY(-4px);
  }
}
@keyframes lh-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}
@keyframes lh-scale {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

.link-hover-lift:hover {
  animation: lh-lift 0.2s var(--ease, ease) forwards;
}
.link-hover-bounce:hover {
  animation: lh-bounce 0.45s ease forwards;
}
.link-hover-shake:hover {
  animation: lh-shake 0.4s ease;
}
.link-hover-glow:hover {
  box-shadow: 0 0 18px rgba(123, 108, 244, 0.6) !important;
  transform: translateY(-2px);
}
.link-hover-scale:hover {
  animation: lh-scale 0.18s ease forwards;
}

/* ══════════════════════════════════════
   ANIMATED BACKGROUNDS (public page)
══════════════════════════════════════ */

/* Aurora */
@keyframes aurora-1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(60px, -30px) rotate(120deg) scale(1.2);
  }
  66% {
    transform: translate(-40px, 40px) rotate(240deg) scale(0.9);
  }
}
@keyframes aurora-2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1.1);
  }
  50% {
    transform: translate(-70px, 20px) rotate(180deg) scale(0.85);
  }
}
@keyframes aurora-3 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  40% {
    transform: translate(40px, -50px) rotate(160deg);
  }
  80% {
    transform: translate(-30px, 30px) rotate(300deg);
  }
}

.ol-anim-bg-aurora::before,
.ol-anim-bg-aurora::after {
  content: "";
  position: fixed;
  width: 70vw;
  height: 70vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.45;
}
.ol-anim-bg-aurora::before {
  top: -20%;
  left: -20%;
  background: radial-gradient(circle, #7b6cf4 0%, transparent 70%);
  animation: aurora-1 12s ease-in-out infinite;
}
.ol-anim-bg-aurora::after {
  bottom: -20%;
  right: -20%;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation: aurora-2 15s ease-in-out infinite;
}

/* Mesh */
@keyframes mesh-move {
  0%,
  100% {
    background-position:
      0% 0%,
      100% 100%;
  }
  50% {
    background-position:
      100% 0%,
      0% 100%;
  }
}
.ol-anim-bg-mesh {
  background-image:
    radial-gradient(at 40% 20%, rgba(123, 108, 244, 0.4) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(6, 182, 212, 0.3) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(168, 139, 250, 0.3) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(123, 108, 244, 0.25) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(6, 182, 212, 0.35) 0px, transparent 50%);
  background-size: 200% 200%;
  animation: mesh-move 10s ease infinite;
}

/* Waves */
@keyframes wave-move {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-25px) translateY(-10px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}
.ol-anim-bg-waves::before {
  content: "";
  position: fixed;
  bottom: -10%;
  left: -10%;
  right: -10%;
  height: 45%;
  background: linear-gradient(
    135deg,
    rgba(123, 108, 244, 0.3),
    rgba(6, 182, 212, 0.2)
  );
  border-radius: 40% 60% 60% 40% / 30% 30% 70% 70%;
  pointer-events: none;
  z-index: 0;
  animation: wave-move 8s ease-in-out infinite;
  filter: blur(20px);
}

/* Particles — canvas via JS */
.ol-anim-bg-particles {
  position: relative;
}
.ol-particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ══════════════════════════════════════
   COUNTDOWN BLOCK (public page)
══════════════════════════════════════ */
.ol-countdown-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  margin-bottom: 12px;
}
.ol-countdown-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}
.ol-countdown-timer {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.ol-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}
.ol-countdown-num {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ol-countdown-sub {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
}
.ol-countdown-sep {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.3);
  align-self: flex-start;
  padding-top: 2px;
}
.ol-countdown-end {
  font-size: 14px;
  font-weight: 600;
  color: #9d91ff;
  padding: 10px 0;
}

/* ══════════════════════════════════════
   EMAIL CAPTURE BLOCK (public page)
══════════════════════════════════════ */
.ol-emailcapture-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 14px;
  margin-bottom: 12px;
}
.ol-emailcapture-form {
  display: flex;
  gap: 8px;
}
.ol-emailcapture-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 60px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.ol-emailcapture-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.ol-emailcapture-input:focus {
  border-color: rgba(123, 108, 244, 0.6);
}
.ol-emailcapture-btn {
  padding: 10px 18px;
  background: #7b6cf4;
  color: #fff;
  border: none;
  border-radius: 60px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.1s;
  font-family: inherit;
}
.ol-emailcapture-btn:hover {
  background: #9d91ff;
  transform: translateY(-1px);
}
.ol-emailcapture-btn:active {
  transform: scale(0.97);
}
.ol-emailcapture-success {
  text-align: center;
  padding: 10px 0;
  color: #34d399;
  font-size: 13px;
  font-weight: 600;
}

/* ══════════════════════════════════════
   AUDIO PLAYER BLOCK (public page)
══════════════════════════════════════ */
.ol-audio-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.ol-audio-meta {
  margin-bottom: 10px;
}
.ol-audio-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ol-audio-artist {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.ol-audio-block audio {
  width: 100%;
  height: 36px;
  border-radius: 60px;
  outline: none;
  accent-color: #7b6cf4;
}
/* Chrome audio custom */
.ol-audio-block audio::-webkit-media-controls-panel {
  background: rgba(123, 108, 244, 0.15);
  border-radius: 60px;
}

/* ══════════════════════════════════════
   PASSWORD PROTECTED LINK
══════════════════════════════════════ */
.ol-locked-link {
  opacity: 0.6;
  cursor: pointer;
  position: relative;
}
.ol-locked-link::after {
  content: "🔒";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
}

/* ══════════════════════════════════════
   FEATURED / PINNED LINK
══════════════════════════════════════ */
.preview-link-featured {
  padding: 14px 20px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  position: relative;
}
.preview-link-featured::before {
  content: "📌";
  position: absolute;
  top: -8px;
  right: 10px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 99px;
  padding: 2px 5px;
}

/* ══════════════════════════════════════
   SCHEDULED LINK (tersembunyi di luar jadwal)
══════════════════════════════════════ */
.ol-scheduled-hidden {
  display: none !important;
}

/* ══════════════════════════════════════
   POWERED BY / REMOVE BRANDING
══════════════════════════════════════ */
.ol-powered-by {
  font-size: 11px;
  text-align: center;
  padding: 12px 0 4px;
  color: rgba(255, 255, 255, 0.3);
}
.ol-powered-by a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}
.ol-powered-by a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ══════════════════════════════════════
   DASHBOARD ADDITIONS
══════════════════════════════════════ */

/* View counter stat card color */
#statTotalViews {
  color: var(--accent-2, #9d91ff);
}

/* Email subscribers tab di settings */
.subscriber-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface2, #18181f);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.065));
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 13px;
}
.subscriber-email {
  color: var(--text, #f0f0f5);
}
.subscriber-date {
  font-size: 11px;
  color: var(--text3, rgba(240, 240, 245, 0.35));
}


/* ── New block type styles in preview ── */
.preview-section-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.4);
  margin: 14px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ── Tips sticky button on public page ── */
.tips-sticky-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 100;
  background: linear-gradient(135deg, #7b6cf4, #9d91ff);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,106,245,0.4);
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tips-sticky-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,106,245,0.5);
}

/* ── Visitor Reactions on public page ── */
.reaction-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
  flex-wrap: wrap;
}
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  backdrop-filter: blur(8px);
}
.reaction-btn:hover, .reaction-btn.reacted {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  transform: scale(1.05);
}
.reaction-count {
  font-size: 12px;
  font-weight: 600;
}

/* ── Poll on public page ── */
.poll-block {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.poll-question {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
}
.poll-option {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 6px;
  text-align: left;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.poll-option:hover { background: rgba(255,255,255,0.12); }
.poll-option.voted { border-color: rgba(124,106,245,0.5); }
.poll-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(124,106,245,0.2);
  transition: width 0.4s ease;
  border-radius: inherit;
}

/* ── Product block on public page ── */
.product-block {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.product-block:hover { background: rgba(255,255,255,0.1); }
.product-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}
.product-info { flex: 1; min-width: 0; }
.product-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }
.product-price { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.product-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(124,106,245,0.4);
  border-radius: 4px;
  color: #d8d0ff;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Testimonial block on public page ── */
.testimonial-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  font-style: italic;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.testimonial-author {
  margin-top: 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 6px;
}
.testimonial-stars { color: #fbbf24; }

/* ── Booking block on public page ── */
.booking-block {
  display: block;
  width: 100%;
  padding: 12px;
  background: rgba(124,106,245,0.12);
  border: 1px solid rgba(124,106,245,0.3);
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #9d91ff;
  text-decoration: none;
  margin-bottom: 8px;
  transition: all 0.15s;
}
.booking-block:hover {
  background: rgba(124,106,245,0.22);
  border-color: rgba(124,106,245,0.5);
}

/* ── Audio player on public page ── */
.audio-block {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}
.audio-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}
.audio-player { width: 100%; height: 40px; border-radius: 6px; }
