.wp-manga-chapter .coin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #d8deea;
  color: #111827;
  text-align: center;
  margin-right: 8px;
}

.wp-manga-chapter.premium-block .coin {
  background: linear-gradient(135deg, #fee7a8 0%, #c5932f 100%);
  color: #1e1a0f;
}

.coin i {
  padding-right: 2px;
}

.manga-shortcodes.manga-chapters-listing .coin,
.message-lack-of-coin.hidden,
.message-sufficient.hidden,
#frm-wp-manga-buy-coin .btn-agree i,
.user-balance-panel .user-balance {
  display: none;
}

#frm-wp-manga-buy-coin .btn-agree.disabled i {
  display: inline-block;
}

.user-balance {
  font-size: 20px;
  font-weight: 700;
}

.wp-manga-chapter-coin-shortcode.shortcode-my-bought .title {
  margin-bottom: 20px;
}

.shortcode-top-bought .item-thumb {
  position: relative;
}

.shortcode-top-bought .item-thumb .index {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 19px;
  background: rgba(255, 248, 26, 0.6);
  border-radius: 999px;
}

.form.myCRED-buy-form {
  text-align: center;
  padding: 20px 40px;
}

/* ------- Locked Chapter Screen (mobile-first) ------- */
.content-blocked.premium-block {
  max-width: 520px;
  margin: 18px auto;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.content-blocked.premium-block > a {
  pointer-events: none;
}

.toonna-lock-card {
  position: relative;
  border-radius: 22px;
  padding: 22px 18px 16px;
  background:
    radial-gradient(110% 70% at 50% -10%, rgba(255, 255, 255, 0.1) 0%, transparent 64%),
    linear-gradient(145deg, rgba(13, 19, 34, 0.96) 0%, rgba(9, 12, 22, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f4f7ff;
}

.toonna-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffeec0;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.38);
}

.toonna-lock-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0.2px;
  color: #fff;
}

.toonna-lock-chapter {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(235, 242, 255, 0.84);
}

.toonna-lock-coin-need {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 21, 39, 0.72);
  color: #dbe5fb;
}

.toonna-lock-coin-need strong {
  font-size: 26px;
  line-height: 1;
  color: #ffe4a1;
}

.toonna-lock-balance {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 15, 30, 0.75);
  color: #d2def9;
  font-size: 13px;
}

.toonna-lock-balance strong {
  font-size: 18px;
  color: #fff;
}

.toonna-lock-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.toonna-lock-btn {
  min-height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, filter 0.16s ease, background 0.2s ease;
}

.toonna-lock-btn:hover,
.toonna-lock-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  text-decoration: none;
}

.toonna-lock-btn--primary {
  color: #111827;
  background: linear-gradient(130deg, #f8df9f 0%, #dca53d 100%);
  border: 1px solid rgba(255, 229, 170, 0.46);
}

.toonna-lock-btn--ghost {
  color: #d9e6ff;
  border: 1px solid rgba(157, 181, 226, 0.35);
  background: rgba(13, 20, 36, 0.72);
}

.toonna-lock-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(220, 232, 255, 0.65);
  text-align: center;
}

/* ------- Unlock Modal ------- */
#frm-wp-manga-buy-coin {
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(2px);
}

#frm-wp-manga-buy-coin .modal-dialog {
  width: min(96vw, 560px);
  margin: 20px auto;
}

#frm-wp-manga-buy-coin .modal-content {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.08) 0%, transparent 65%),
    linear-gradient(145deg, rgba(13, 19, 35, 0.98) 0%, rgba(7, 10, 18, 0.98) 100%);
  color: #f3f7ff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.5);
}

#frm-wp-manga-buy-coin .modal-header {
  border: 0;
  padding: 16px 16px 8px;
  align-items: center;
}

#frm-wp-manga-buy-coin .toonna-modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
}

#frm-wp-manga-buy-coin .close {
  opacity: 1;
  color: #f9fbff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  text-shadow: none;
  font-size: 28px;
  line-height: 1;
}

#frm-wp-manga-buy-coin .modal-body {
  padding: 0 16px 12px;
}

#frm-wp-manga-buy-coin .toonna-modal-summary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(13, 19, 34, 0.78);
  padding: 12px;
  margin-bottom: 12px;
}

#frm-wp-manga-buy-coin .message-sufficient,
#frm-wp-manga-buy-coin .message-lack-of-coin,
#frm-wp-manga-buy-coin .message-login {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #d4e2ff;
}

#frm-wp-manga-buy-coin .message-sufficient .coin,
#frm-wp-manga-buy-coin .message-lack-of-coin .coin {
  display: inline;
  font-size: inherit;
  color: #ffe4a8;
  margin: 0 4px;
}

#frm-wp-manga-buy-coin .message-lack-of-coin {
  color: #ffb5b5;
}

#frm-wp-manga-buy-coin .pmg-bundle-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 235, 173, 0.4);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(250, 223, 163, 0.95) 0%, rgba(214, 151, 45, 0.95) 100%);
  color: #151a22;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-top: 10px;
  cursor: pointer;
}

#frm-wp-manga-buy-coin .pmg-bundle-main-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

#frm-wp-manga-buy-coin .pmg-bundle-popup {
  display: none;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 11, 22, 0.8);
}

#frm-wp-manga-buy-coin .pmg-bundle-popup-title {
  margin: 0 0 8px;
  text-align: left;
  color: #f8fbff;
  font-size: 14px;
  font-weight: 700;
}

#frm-wp-manga-buy-coin .pmg-bundle-popup-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #d5e3ff;
  font-size: 13px;
  padding: 3px 0;
}

#frm-wp-manga-buy-coin .pmg-bundle-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

#frm-wp-manga-buy-coin .pmg-bundle-popup-btn {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(17, 24, 39, 0.92);
  color: #e9f0ff;
  font-size: 13px;
  font-weight: 700;
}

#frm-wp-manga-buy-coin .pmg-bundle-popup-btn.pmg-confirm {
  border-color: rgba(255, 236, 180, 0.4);
  background: linear-gradient(135deg, #f9df9e 0%, #d79a36 100%);
  color: #171717;
}

#frm-wp-manga-buy-coin .pmg-bundle-msg {
  min-height: 18px;
  margin-top: 6px;
  font-size: 12px;
}

#frm-wp-manga-buy-coin .modal-footer {
  border: 0;
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#frm-wp-manga-buy-coin .modal-footer .button,
#frm-wp-manga-buy-coin .modal-footer button,
#frm-wp-manga-buy-coin .modal-footer a.button {
  width: 100%;
  min-height: 44px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fbff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#frm-wp-manga-buy-coin .btn-agree {
  border-color: rgba(255, 232, 170, 0.42);
  background: linear-gradient(135deg, #f8df9e 0%, #d89d39 100%);
  color: #171717;
}

#frm-wp-manga-buy-coin .btn-buy-coin {
  background: rgba(19, 28, 51, 0.9);
}

#frm-wp-manga-buy-coin .btn-watch-ads-points {
  background: rgba(15, 27, 50, 0.8);
}

#frm-wp-manga-buy-coin .btn-watch-ads-points small {
  display: none;
}

#frm-wp-manga-buy-coin .btn-cancel {
  background: rgba(255, 255, 255, 0.06);
}

#frm-wp-manga-buy-coin .btn-login-modal {
  background: rgba(22, 39, 77, 0.95);
}

#frm-wp-manga-buy-coin .btn-register-modal {
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .content-blocked.premium-block {
    max-width: 760px;
  }

  .toonna-lock-card {
    padding: 28px 26px 22px;
  }

  .toonna-lock-actions {
    grid-template-columns: 1fr 1fr;
  }

  #frm-wp-manga-buy-coin .modal-dialog {
    margin: 40px auto;
  }

  #frm-wp-manga-buy-coin .modal-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
