/* =====================================================================
 *  Code Load — قفل وبلاگ (باز کردن با ۲ هگزا)
 *  هم‌راستا با استایل تیره/نئونی سایت (#00f0ff / #b77aff)
 * ===================================================================== */

/* پوشاننده‌ی تمام‌صفحه */
.blog-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.blog-lock-overlay.show {
  display: flex;
  opacity: 1;
}

/* محتوای پشت قفل، محو و غیرقابل تعامل می‌شود */
body.blog-locked .blog-page {
  filter: blur(7px) saturate(60%);
  pointer-events: none;
  user-select: none;
}

body.blog-locked {
  overflow: hidden;
}

/* ─── کارت اصلی ─── */
.blog-lock-card {
  position: relative;
  width: min(520px, 100%);
  box-sizing: border-box;
  padding: 40px 38px 34px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(150deg, rgba(20, 23, 48, 0.94), rgba(8, 10, 25, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 240, 255, 0.04);
  text-align: center;
  overflow: hidden;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-lock-overlay.show .blog-lock-card {
  transform: translateY(0) scale(1);
}

/* هاله‌ی نورانی بالای کارت */
.blog-lock-card::before {
  content: '';
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.14), transparent 70%);
  pointer-events: none;
  animation: blogLockGlow 7s infinite alternate ease-in-out;
}

@keyframes blogLockGlow {
  0%   { opacity: 0.45; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.9;  transform: translateX(-50%) scale(1.25); }
}

/* ─── آیکون قفل ─── */
.blog-lock-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  color: #06121a;
  background: linear-gradient(135deg, #69f1fb, #a880ff);
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.25);
  animation: blogLockFloat 3.6s infinite ease-in-out;
}

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

/* ─── متن‌ها ─── */
.blog-lock-card h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.7;
  color: #f4f7ff;
  font-weight: 800;
}

.blog-lock-card p {
  position: relative;
  margin: 0 auto 26px;
  max-width: 400px;
  font-size: 0.95rem;
  line-height: 2.1;
  color: #9ba8bb;
}

/* ─── بج قیمت ─── */
.blog-lock-price {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 11px 22px;
  border-radius: 60px;
  border: 1px solid rgba(0, 240, 255, 0.16);
  background: rgba(0, 240, 255, 0.05);
  color: #7dd3fc;
  font-weight: 800;
  font-size: 1.05rem;
}

.blog-lock-price .hexa-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.blog-lock-price .price-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.blog-lock-price .balance {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

.blog-lock-price .balance.low {
  color: #ff8fa8;
}

/* ─── دکمه‌ها ─── */
.blog-lock-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-lock-btn {
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  padding: 15px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

/* دکمه‌ی اصلی: باز کردن با هگزا */
.blog-lock-btn.unlock {
  color: #f8fbff;
  background: linear-gradient(135deg, #123542, #1b2743);
  border: 1px solid #315b69;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.blog-lock-btn.unlock:hover:not(:disabled) {
  background: linear-gradient(135deg, #174554, #26335a);
  border-color: #4a8ea3;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 240, 255, 0.1);
}

.blog-lock-btn.unlock:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* دکمه‌ی فرعی */
.blog-lock-btn.ghost {
  color: #9fb0c4;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.blog-lock-btn.ghost:hover {
  color: #e8f6ff;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 240, 255, 0.18);
}

/* حالت «هگزا کم است» */
.blog-lock-btn.topup {
  color: #06121a;
  background: linear-gradient(130deg, #69f1fb, #a880ff);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.2);
}

.blog-lock-btn.topup:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(34, 211, 238, 0.3);
}

/* ─── پیام خطا/وضعیت ─── */
.blog-lock-msg {
  position: relative;
  margin-top: 16px;
  min-height: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ff8fa8;
}

.blog-lock-msg.ok {
  color: #7ee7c7;
}

/* ─── اسپینر داخل دکمه ─── */
.blog-lock-spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #7dd3fc;
  animation: blogLockSpin 0.7s linear infinite;
}

@keyframes blogLockSpin {
  to { transform: rotate(360deg); }
}

/* ─── موبایل ─── */
@media (max-width: 520px) {
  .blog-lock-card {
    padding: 32px 22px 26px;
    border-radius: 18px;
  }

  .blog-lock-card h2 {
    font-size: 1.25rem;
  }

  .blog-lock-card p {
    font-size: 0.88rem;
  }

  .blog-lock-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}
