/* LuckyHash NFT Claim Wheel — overlay and wheel styles */

/* Free Wheel Spin — red glowing "1" badge on the notification bell */
.lhnft-bell-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px;
  text-align: center; border-radius: 9px;
  box-shadow: 0 0 8px 2px rgba(239,68,68,0.85);
  animation: lhnft-badge-pulse 1.4s ease-in-out infinite;
  pointer-events: none; z-index: 6;
}
@keyframes lhnft-badge-pulse {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(239,68,68,0.7); transform: scale(1); }
  50%      { box-shadow: 0 0 16px 5px rgba(239,68,68,1); transform: scale(1.12); }
}
.lhnft-freespin-item { cursor: pointer; }
.lhnft-freespin-item .notification-item-title { font-weight: 700; }

/* Claim "how-to" panel */
.lhnft-back {
  position: absolute; top: 12px; left: 14px;
  background: none; border: none; color: #94a3b8; font-size: 26px; line-height: 1;
  cursor: pointer; padding: 0 6px; z-index: 10;
}
.lhnft-back:hover { color: #fff; }
.lhnft-howto-img {
  display: block; width: 100%; max-width: 250px; margin: 6px auto 14px;
  border-radius: 12px; border: 1px solid var(--border-color, #333);
}
.lhnft-howto-fallback {
  display: none; align-items: center; gap: 10px; justify-content: center;
  margin: 6px auto 14px; padding: 16px; border-radius: 12px; max-width: 360px;
  background: rgba(255,255,255,0.05); border: 1px dashed #475569; color: #cbd5e1;
  font-size: 14px;
}
.lhnft-howto-fallback span { text-align: left; }
.lhnft-howto-fallback b { color: #fff; }
.lhnft-howto-steps {
  text-align: left; margin: 0 auto; max-width: 380px; color: #cbd5e1;
  font-size: 14px; line-height: 1.7; padding-left: 22px;
}
.lhnft-howto-steps b { color: #fff; }

#lhnft-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  font-family: -apple-system,Segoe UI,Roboto,sans-serif;
}
#lhnft-overlay.lhnft-hidden { display: none; }

.lhnft-modal {
  position: relative;
  background: var(--secondary-bg, #1a1a1a);
  border: 1px solid var(--border-color, #333);
  border-radius: 20px; padding: 30px; max-width: 550px; width: 95%;
  text-align: center; color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}

/* Close button */
.lhnft-close {
  position: absolute; top: 12px; right: 16px;
  font-size: 28px; line-height: 1; color: #94a3b8; cursor: pointer;
  background: none; border: none; padding: 0; z-index: 10;
  transition: color 0.2s;
}
.lhnft-close:hover { color: #fff; }

/* Toast */
.lhnft-toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: 8px; z-index: 100000;
  font-size: 14px; max-width: 90%; text-align: center;
  background: #2f9e44; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.lhnft-toast--err { background: #eb4d4b; }

.lhnft-modal h2 {
  font-size: 28px; margin: 0 0 8px;
  background: linear-gradient(135deg, #4767EB, #4767EB, #4767EB);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lhnft-modal .lhnft-sub { color: #94a3b8; font-size: 15px; margin-bottom: 20px; }

.lhnft-spinner {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px;
}
.lhnft-spinner .lhnft-ring {
  width: 50px; height: 50px; border: 4px solid #333; border-top-color: #4767EB;
  border-radius: 50%; animation: lhnft-spin 0.8s linear infinite;
}
@keyframes lhnft-spin { to { transform: rotate(360deg); } }
.lhnft-spinner p { color: #94a3b8; font-size: 14px; }

.lhnft-balance-ok { padding: 30px 10px; }
.lhnft-balance-ok .lhnft-balance-amount { font-size: 36px; font-weight: 800; color: #22c55e; }
.lhnft-balance-ok .lhnft-balance-label { color: #94a3b8; font-size: 14px; margin-bottom: 20px; }

.lhnft-btn {
  display: inline-block; padding: 14px 36px; border: none; border-radius: 12px;
  font-size: 17px; font-weight: 700; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #4767EB, #3651d4);
  transition: transform 0.2s, box-shadow 0.2s; margin-top: 12px;
}
.lhnft-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(71,103,235,0.4); }
.lhnft-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Wheel */
.lhnft-wheel-wrap {
  position: relative; margin: 10px auto; width: 400px; max-width: 92vw;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
}
.lhnft-wheel-wrap canvas {
  display: block; margin: 0 auto; width: 100%; height: auto;
  border-radius: 50%;
}
.lhnft-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 18px solid transparent; border-right: 18px solid transparent;
  border-top: 32px solid #ffd54a; z-index: 10;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.6));
}
.lhnft-result {
  margin-top: 16px; padding: 14px; background: rgba(34,197,94,0.1); border-radius: 10px;
  border: 1px solid rgba(34,197,94,0.3); display: none;
}
.lhnft-result.show { display: block; animation: lhnft-pop 0.4s ease; }
@keyframes lhnft-pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lhnft-result .lhnft-win { font-size: 22px; font-weight: 800; color: #22c55e; }
.lhnft-result .lhnft-win-sub { font-size: 13px; color: #86efac; margin-top: 4px; line-height: 1.5; }
.lhnft-result .lhnft-win-sub code {
  background: rgba(255,255,255,0.12); padding: 1px 6px; border-radius: 5px;
  font-size: 12px; color: #fde68a;
}

/* Offer QR (first claim, before we know the push token) */
.lhnft-qr-box {
  margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: lhnft-pop 0.3s ease;
}
.lhnft-qr-title { font-size: 13px; color: #cbd5e1; }
.lhnft-qr {
  width: 220px; height: 220px; max-width: 70vw;
  border-radius: 12px; background: #fff; padding: 8px;
}
.lhnft-qr-link { font-size: 13px; color: #60a5fa; font-weight: 600; }

/* NFT claimed */
.lhnft-claimed { padding: 30px 10px; display: none; }
.lhnft-claimed.show { display: block; }
.lhnft-claimed .lhnft-check { font-size: 48px; margin-bottom: 12px; }
.lhnft-claimed .lhnft-claimed-text { font-size: 20px; font-weight: 700; color: #22c55e; }
.lhnft-claimed .lhnft-txlink { font-size: 13px; color: #60a5fa; margin-top: 8px; display: inline-block; }

.lhnft-error { padding: 30px; color: #ef4444; display: none; }
.lhnft-error.show { display: block; }