/* ========== PRIVATE CONTENT PAGE STYLES ========== */

.subhead {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 16px;
}

.subhead p {
  flex: 1;
  color: var(--neutral-400);
  font-size: 14px;
  line-height: 20px;
}

.featured-select {
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 8px;
  padding: 8px 8px 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 152px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Heebo', sans-serif;
  color: #fff;
}

.featured-select img {
  width: 16px;
  height: 16px;
}

/* CARDS GRID */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pc-card {
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pc-card.featured {
  background: #000;
  border-color: var(--purple-400);
  box-shadow: 0 0 28px rgba(204, 149, 255, 0.7);
}

/* CARD HEADER */
.pc-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 32px;
  object-fit: cover;
  flex-shrink: 0;
}

.pc-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 16px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

.pc-msg-btn {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  transition: background 0.2s;
}

.pc-msg-btn:hover {
  background: #f0f0f0;
}

.pc-msg-btn img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

/* CARD IMAGE */
.pc-img-wrap {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1/1.18;
  position: relative;
}

.pc-img-wrap img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-img-wrap.locked img.bg {
  filter: blur(8px);
  opacity: 0.6;
}

.pc-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: #ffffffb0;
  border-radius: 50%;
  padding: 0.6rem;
}

.pc-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px 2px 2px;
  background: #000;
  border-radius: 4px;
  font-size: 12px;
  line-height: 16px;
  color: #fff;
}

.pc-badge img {
  width: 16px;
  height: 16px;
}

.pc-corner-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.pc-corner-badge.new {
  background: var(--yellow-400);
  color: var(--yellow-900);
}

.pc-corner-badge.featured {
  background: #000;
  color: #fff;
}

/* CARD TITLE */
.pc-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #fff;
  text-align: center;
  margin: 0;
}

/* CARD CTA */
.pc-cta {
  padding: 4px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pc-cta.locked {
  background: var(--purple-800);
}

.pc-cta.unlocked {
  background: var(--neutral-700);
}

.pc-cta button {
  width: 100%;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Heebo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}

.pc-cta button:hover {
  transform: translateY(-1px);
}

.pc-cta.locked button {
  background: var(--purple-400);
  color: #000;
}

.pc-cta.unlocked button {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.56);
}

.pc-price {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  font-size: 14px;
  color: #fff;
}

.pc-price img {
  width: 20px;
  height: 20px;
}

.pc-price s {
  color: var(--red-400);
  font-size: 12px;
}

.pc-unlocked-text {
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-500);
}

/* ========== UNLOCK MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.show {
  display: flex;
}

.unlock-modal {
  background: #000;
  border: 1px solid var(--neutral-700);
  border-radius: 16px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.65);
  width: 100%;
  max-width: 497px;
  overflow: hidden;
}

.ul-header {
  position: relative;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.ul-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/modal-purple-bg.png') center/cover no-repeat;
  pointer-events: none;
}

.ul-header > * {
  position: relative;
}

.ul-header img.lock {
  width: 32px;
  height: 32px;
}

.ul-header h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  text-align: center;
  padding: 0 48px;
  margin: 0;
}

.ul-header p {
  font-size: 12px;
  line-height: 16px;
  color: #fff;
  text-align: center;
  padding: 0 48px;
  margin: 0;
}

.ul-body {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ul-info {
  background: var(--neutral-700);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ul-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
}

.ul-info-row span:first-child {
  color: var(--neutral-400);
}

.ul-info-row span:last-child {
  color: #fff;
  text-align: right;
}

.ul-error {
  background: rgba(255, 97, 134, 0.1);
  border: 1px solid rgba(255, 97, 134, 0.3);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ul-error img {
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(62%) sepia(88%) saturate(3000%) hue-rotate(320deg) brightness(100%) contrast(101%);
}

.ul-error a {
  color: var(--purple-400);
  text-decoration: none;
  font-weight: 600;
}

.ul-error a:hover {
  text-decoration: underline;
}

.ul-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.ul-actions button {
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.ul-actions button:hover {
  transform: translateY(-1px);
}

.ul-cancel {
  background: var(--neutral-700);
  color: #fff;
}

.ul-confirm {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.56);
}

/* ========== LOW CREDITS MODAL ========== */
.low-credits-modal {
  background: #000;
  border: 1px solid var(--neutral-700);
  border-radius: 16px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.65);
  width: 100%;
  max-width: 497px;
  overflow: hidden;
}

.lc-header {
  position: relative;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-800) 100%);
}

.lc-header img.flash {
  width: 32px;
  height: 32px;
}

.lc-header h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  text-align: center;
  padding: 0 24px;
  margin: 0;
}

.lc-header p {
  font-size: 12px;
  line-height: 16px;
  color: #fff;
  text-align: center;
  padding: 0 24px;
  margin: 0;
}

.lc-body {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lc-info {
  background: var(--neutral-700);
  border-radius: 12px;
  padding: 16px;
}

.lc-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
}

.lc-info-row span:first-child {
  color: var(--neutral-400);
}

.lc-info-row span:last-child {
  color: #fff;
  text-align: right;
  font-weight: 600;
}

.lc-packages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lc-package {
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.lc-package:hover {
  border-color: var(--neutral-600);
}

.lc-package.highlight {
  background: var(--purple-900);
  border-color: var(--purple-700);
}

.lc-coin {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.lc-package-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lc-package-credits {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

.lc-package-price {
  font-size: 14px;
  color: var(--neutral-400);
}

.lc-package-bonus {
  background: var(--purple-700);
  color: var(--purple-300);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
}

.lc-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.lc-actions button {
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.lc-actions button:hover {
  transform: translateY(-1px);
}

.lc-cancel {
  background: var(--neutral-700);
  color: #fff;
}

.lc-confirm {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.56);
}

/* ========== LOADING STATE ========== */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--neutral-700);
  border-top-color: var(--purple-400);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  font-size: 14px;
  color: var(--neutral-400);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1280px) {
  .pc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .pc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .pc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subhead {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pc-grid {
    grid-template-columns: 1fr;
  }
}
