/* RAJ PREMIUM PANEL — Buy Keys card polish.
   Visual-only overrides; purchase handlers/forms and modal behavior remain untouched. */
.pn {
  position: relative !important;
  isolation: isolate;
  width: min(90%, 450px) !important;
  margin: 12px auto !important;
  border: 1.5px solid rgba(74, 158, 210, .72) !important;
  border-radius: 21px !important;
  background: #0b121d !important;
  box-shadow: 0 0 13px rgba(44, 145, 210, .15), inset 0 0 12px rgba(65, 180, 190, .025) !important;
}
.pn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: linear-gradient(125deg, #4b91db 0%, #55d0d7 28%, #d0e6f5 48%, #38b9a3 72%, #4b91db 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: .72;
  filter: drop-shadow(0 0 3px rgba(78, 175, 220, .30));
  animation: raj-buy-key-edge-pulse 2.35s ease-in-out infinite;
}
@keyframes raj-buy-key-edge-pulse {
  0%, 100% { opacity: .48; filter: drop-shadow(0 0 2px rgba(78, 175, 220, .22)); }
  50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(74, 196, 220, .70)) drop-shadow(0 0 10px rgba(52, 152, 211, .28)); }
}
.pn-media { aspect-ratio: 16 / 10 !important; }
.pn-body { padding: 11px 10px 10px !important; }
.pn-t { font-size: 14px !important; letter-spacing: .8px !important; margin: 1px 0 8px !important; }
.pn-feats { gap: 5px !important; }
.pn-f { gap: 8px !important; padding: 8px 9px !important; border-radius: 9px !important; font-size: 12px !important; }
.pn-f i { font-size: 12px !important; }
.pn-lnks { gap: 8px !important; margin-top: 9px !important; }
.pn-l { min-height: 39px !important; padding: 5px 7px !important; border-width: 1.5px !important; border-radius: 10px !important; font-size: 10.5px !important; }
.pn-l1 { border-color: rgba(76, 190, 211, .85) !important; box-shadow: 0 0 8px rgba(64, 174, 205, .13) !important; }
.pn-l2 { border-color: rgba(239, 68, 78, .78) !important; box-shadow: 0 0 8px rgba(239, 68, 78, .10) !important; }
.pn-b2 { color: #b8dcf2 !important; background: rgba(54, 132, 190, .13) !important; border-color: rgba(90, 164, 215, .48) !important; }
.pn-purchase { height: 37px !important; margin-top: 8px !important; border-radius: 11px !important; font-size: 13px !important; letter-spacing: 1px !important; background: linear-gradient(120deg, #3279c4, #206e9f 58%, #167e89) !important; box-shadow: 0 5px 14px rgba(29, 111, 167, .22) !important; }
.pn-plan { gap: 8px !important; padding: 7px 9px !important; border-radius: 10px !important; }
.pn-pl { font-size: 13px !important; }
.pn-pp { font-size: 15px !important; }
.pn-qty { width: 52px !important; height: 34px !important; font-size: 14px !important; }
.pn-buy { height: 30px !important; padding: 0 11px !important; border: 1px solid rgba(135, 190, 233, .45) !important; border-radius: 8px !important; background: linear-gradient(120deg, #3279c4, #167e89) !important; color: #f7fbff !important; font-size: 11px !important; box-shadow: 0 3px 9px rgba(29, 111, 167, .20) !important; }
.pn-mb { border-color: rgba(83, 167, 207, .72) !important; box-shadow: 0 0 20px rgba(49, 145, 190, .18) !important; }
.pn-mk { background: linear-gradient(120deg, #3279c4, #167e89) !important; box-shadow: 0 5px 14px rgba(29, 111, 167, .22) !important; }
@media (max-width: 390px) {
  .pn { width: 92% !important; border-radius: 18px !important; }
  .pn-media { aspect-ratio: 16 / 10 !important; }
  .pn-t { font-size: 13px !important; }
  .pn-f { font-size: 11.5px !important; padding: 7px 8px !important; }
  .pn-l { font-size: 9.8px !important; }
  .pn-pl { font-size: 12px !important; }
  .pn-pp { font-size: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .pn::after { animation: none !important; opacity: .8; filter: none; }
}

/* Buy Keys — compact wallet balance card (sits above SEARCH PRODUCT; same footprint as the search bar). */
.pn-bal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 46px;
  /* Slightly tighter than the normal card gap: -4px on top and bottom (sibling margins collapse), so both sides stay equal. */
  margin: -4px 0 -4px;
  padding: 0 14px;
  box-sizing: border-box;
  background: #142033;
  border: 1px solid #35465e;
  border-radius: 15px;
  box-shadow: none;
}
.pn-bal-l {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #a9b7d2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  white-space: nowrap;
}
.pn-bal-l i { font-size: 15px; color: #3bc9dc; }
.pn-bal-v {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #edf2ff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
}
@media (max-width: 360px) {
  .pn-bal { padding: 0 11px; }
  .pn-bal-l { font-size: 11px; letter-spacing: .8px; gap: 8px; }
  .pn-bal-v { font-size: 14px; }
}

/* Buy Keys wallet balance: soft highlight whenever the live value changes. */
.pn-bal-v.pn-bal-up { animation: pnBalUp .9s ease-out; }
@keyframes pnBalUp {
  0%   { color: #3bc9dc; text-shadow: 0 0 10px rgba(59, 201, 220, .55); }
  100% { color: #edf2ff; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pn-bal-v.pn-bal-up { animation: none; }
}

/* Wallet balance now sits directly under the top bar: keep the same card gap if a notice follows it. */
.pn-bal + .ferr { margin-top: 15px; }

/* LINK BUTTONS card (admin panel type "link"): two buttons in place of BUY KEY, same size and theme as the purchase button */
.pn-lbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pn-lbtns.pn-lbtns-1 { grid-template-columns: 1fr; }
.pn-lbtn { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; height: 37px; padding: 0 10px; border-radius: 11px;
  color: #fff !important; -webkit-text-fill-color: #fff; text-decoration: none !important; font-weight: 600; font-size: 12.5px; letter-spacing: .8px;
  background: linear-gradient(120deg, #3279c4, #206e9f 58%, #167e89); box-shadow: 0 5px 14px rgba(29, 111, 167, .22);
  border: 1px solid rgba(120, 200, 255, .18); transition: filter .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.pn-lbtn.pn-lbtn2 { background: linear-gradient(120deg, #5a4fc4, #6b46a8 58%, #7b3f9e); box-shadow: 0 5px 14px rgba(98, 70, 170, .24); }
.pn-lbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-lbtn i { flex: 0 0 auto; font-size: 11px; opacity: .85; }
.pn-lbtn:hover { filter: brightness(1.1); }
.pn-lbtn:active { transform: scale(.98); }
.pn-lbtn:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
