.crown-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.bubble.gift {
  background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
  color: #9a3412 !important;
  border: 1px solid #fdba74 !important;
  font-weight: 700;
}
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(18px + var(--safe-bottom));
  animation: pageIn .25s ease;
}
.modal h3 { font-size: 18px; margin-bottom: 8px; }
.vip-modal-desc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.6;
}
.vip-modal-plans {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
  max-height: 52vh;
  overflow: auto;
  padding: 2px;
}
.vip-modal-plans .plan {
  box-shadow: none;
  padding: 12px;
}
.vip-modal-plans .plan-from b { font-size: 16px; }
.vip-modal-plans .sku-btn strong { font-size: 14px; }
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 50vh;
  overflow: auto;
}
.gift-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.gift-item .gi {
  font-size: 28px;
  height: 36px;
  display: grid;
  place-items: center;
}
.gift-item .gi img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}
.gift-item b { font-size: 13px; }
.gift-item em {
  font-style: normal;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
@media (min-width: 768px) {
  .modal-mask { align-items: center; }
  .modal { border-radius: 20px; max-width: 420px; }
}
