/* VTuber Places v1.1.1807 — client-facing VTuber art and visual-system audit. */
.vtpClientSurface {
  --vtp-mint: #c9c2ff;
  --vtp-positive-bg: #f0efff;
  --vtp-positive-border: #cfc7fb;
  --vtp-positive-ink: #59469a;
}

/* Keep account actions in one intentional header cell. */
.vtpClientAccountCluster {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.vtpClientAccountCluster .vtpClientBobbleMenu,
.vtpClientAccountCluster .vtpClientGuestActions {
  margin-left: 0 !important;
}

@media (min-width: 821px) {
  .vtpClientSurface > .vtpClientHeader.vtpClientSharedDock > .vtpClientAccountCluster {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .vtpClientAccountCluster .vtpClientPremiumChip {
    width: 46px;
    min-width: 46px;
    padding: 0;
  }
  .vtpClientAccountCluster .vtpClientPremiumChip > span,
  .vtpClientAccountCluster .vtpClientPremiumChip > small {
    display: none !important;
  }
  .vtpClientSharedDock .vtpClientSharedTitle {
    max-width: 13ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  .vtpClientSharedDock .vtpClientBrand { order: 1; }
  .vtpClientSharedDock .vtpClientAccountCluster {
    order: 2;
    margin-left: auto;
    gap: 7px;
  }
  .vtpClientSharedDock > .vtpPublicSurfaceNav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .vtpClientAccountCluster { gap: 5px; }
  .vtpClientAccountCluster .vtpClientMessageShortcut,
  .vtpClientAccountCluster .vtpClientPremiumChip {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }
}

/* Premium hero character. */
.vtpPremiumHeroArt {
  isolation: isolate;
  align-self: stretch;
  min-height: 300px;
}

.vtpPremiumHeroCharacter {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: -25%;
  width: auto;
  height: 146%;
  max-width: none;
  transform: translateX(50%);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 28px rgba(70, 43, 100, .2));
  pointer-events: none;
  user-select: none;
}

.vtpPremiumHeroArt .vtpPremiumGem {
  z-index: 1;
  width: 190px;
  opacity: .18;
  filter: blur(1px);
}

.vtpPremiumHeroArt .vtpPremiumOrbit { z-index: 2; }

/* Creator Studio character. */
.vtpCreatorStudioHero { overflow: hidden; }
.vtpCreatorStudioHero .vtpClientHeroArt {
  align-self: stretch;
  min-height: 270px;
  isolation: isolate;
}
.vtpCreatorStudioHero .vtpClientHeroBubble {
  position: absolute;
  inset: 10% 0 auto auto;
  z-index: 1;
  opacity: .42;
}
.vtpClientHeroCharacter {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -35%;
  width: auto;
  height: 155%;
  max-width: none;
  filter: drop-shadow(0 22px 27px rgba(79, 48, 110, .18));
  pointer-events: none;
  user-select: none;
}

/* Marketplace keeps its browse cards functional while a creator anchors the scene. */
.vtpMarketplaceHomeShowcase {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  justify-content: stretch;
}
.vtpMarketplaceCreatorCharacter {
  position: absolute;
  z-index: 1;
  right: -44px;
  bottom: -116px;
  height: 500px;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 22px 30px rgba(69, 42, 104, .2));
  pointer-events: none;
  user-select: none;
}
.vtpMarketplaceShowcaseCard {
  z-index: 2;
  width: calc(100% - 105px);
  background-color: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
}
.vtpMarketplaceShowcaseCard.isDownload { align-self: end; }

/* Billing and Premium subpages use the shared pink/lilac/blue vocabulary. */
.vtpPremiumSubpageBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(180, 139, 224, .32);
  border-radius: 999px;
  color: #79518d;
  background: linear-gradient(135deg, #fff0f7, #f0ebff 58%, #eaf5ff);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.vtpPremiumSubpageCopy {
  max-width: 72ch;
  margin: 0;
  color: #705a77;
  font-size: 15px;
  line-height: 1.8;
}
.vtpPremiumField {
  display: grid;
  gap: 8px;
  color: #3c2945;
  font-weight: 850;
}
.vtpPremiumInput,
.vtpPremiumWorkspace .vtpPremiumInput,
.vtpPremiumWorkspace .vtpPremiumSelect {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(151, 105, 171, .25);
  border-radius: 14px;
  color: #3c2945;
  background: #fff;
  font: inherit;
}
.vtpPremiumPrimaryLink,
.vtpPremiumWorkspace .vtpPremiumPrimaryLink {
  border-color: #d96099 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #e866a2, #9889e1) !important;
  box-shadow: 0 12px 28px rgba(184, 82, 147, .22) !important;
}
.vtpPremiumPrimaryLink:disabled {
  opacity: .56;
  box-shadow: none !important;
}
.vtpPremiumWorkspace .uiStatus.info,
.vtpPremiumWorkspace .vtpPremiumNotice.isInfo {
  border-color: var(--vtp-positive-border) !important;
  color: var(--vtp-positive-ink) !important;
  background: var(--vtp-positive-bg) !important;
}
.vtpPremiumWorkspace .vtpPremiumNotice.isMuted {
  border-color: #e5d8ed !important;
  color: #65536d !important;
  background: #f8f3fb !important;
}

.vtpPremiumEmptyState {
  position: relative;
  min-height: 280px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 310px);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px) !important;
  background: linear-gradient(135deg, #fffafd, #f5efff 58%, #eaf4ff) !important;
}
.vtpPremiumEmptyState h2 {
  margin: 7px 0 8px;
  color: #34213d;
  font-size: clamp(25px, 3vw, 36px);
}
.vtpPremiumEmptyState p {
  max-width: 58ch;
  margin: 0 0 18px;
  color: #705a77;
  line-height: 1.7;
}
.vtpPremiumEmptyState img {
  position: absolute;
  right: 0;
  bottom: -135px;
  height: 470px;
  width: auto;
  filter: drop-shadow(0 18px 25px rgba(73, 43, 103, .18));
  pointer-events: none;
}

/* Positive states remain legible without inheriting the old Pickle green. */
.vtpClientSurface .vtpSettingsStatus,
.vtpClientSurface .vtpSettingsStatus.isConnected,
.vtpClientSurface .vtpSettingsNotice.isSuccess,
.vtpClientSurface .vtpIdentityStatus.isConnected,
.vtpClientSurface .vtpSavedNotice,
.vtpClientSurface .vtpStatus.published,
.vtpClientSurface .vtpPublishBadge.isLive,
.vtpClientSurface .vtpPublishingNotice:not(.isError),
.vtpClientSurface .uiStatus.info {
  border-color: var(--vtp-positive-border) !important;
  color: var(--vtp-positive-ink) !important;
  background: var(--vtp-positive-bg) !important;
}
.vtpClientSurface .vtpIdentityConnectedMark {
  color: #7654b4 !important;
}
.vtpClientSurface .vtpAvailability:not(.is-waitlist):not(.is-closed),
.vtpClientSurface .vtpProposalStatus.is-active,
.vtpClientSurface .vtpDigitalPurchaseStatus:not(.isPending):not(.isRevoked),
.vtpClientSurface .vtpDigitalPurchaseCard:not(.is-warning):not(.is-pending):not(.is-revoked) > b,
.vtpClientSurface .vtpDigitalPurchaseState:not(.is-warning):not(.is-pending):not(.is-revoked),
.vtpClientSurface .vtpOrderStatus.is-delivered,
.vtpClientSurface .vtpOrderStatus.is-completed,
.vtpClientSurface .vtpPaymentReadiness.isReady,
.vtpClientSurface .vtpPaymentComplete,
.vtpClientSurface .vtpOrderGuardHead > b,
.vtpClientSurface .vtpOrderGuardCheck.isReady > span,
.vtpClientSurface .vtpBuilderRevisionCurrent {
  border-color: var(--vtp-positive-border) !important;
  color: var(--vtp-positive-ink) !important;
  background: var(--vtp-positive-bg) !important;
}
.vtpClientSurface .vtpDigitalProductNotice,
.vtpClientSurface .vtpDigitalPurchaseHero,
.vtpClientSurface .vtpOrderGuardCard {
  border-color: rgba(180, 139, 224, .22) !important;
  background: linear-gradient(145deg, #fffafd, #f4f0ff 58%, #edf6ff) !important;
}
.vtpClientSurface .vtpDigitalProductNotice strong,
.vtpClientSurface .vtpDigitalProductNotice p,
.vtpClientSurface .vtpDigitalProductUploadHead span,
.vtpClientSurface .vtpDigitalProductUploadHead small,
.vtpClientSurface .vtpDigitalPurchaseMeta,
.vtpClientSurface .vtpDigitalPurchaseCard small,
.vtpClientSurface .vtpDigitalPurchaseCard span span,
.vtpClientSurface .vtpDigitalPurchaseHero p,
.vtpClientSurface .vtpDigitalPurchaseFacts dt,
.vtpClientSurface .vtpDigitalLicense dt,
.vtpClientSurface .vtpDigitalPurchaseFacts dd,
.vtpClientSurface .vtpDigitalLicense dd,
.vtpClientSurface .vtpOrderGuardHead span {
  color: #69536f !important;
}
.vtpClientSurface .vtpDigitalDownloadList li,
.vtpClientSurface .vtpDigitalPurchaseFacts > div,
.vtpClientSurface .vtpDigitalLicense > div,
.vtpClientSurface .vtpOrderGuardHistory {
  border-color: rgba(139, 99, 158, .18) !important;
}
.vtpClientSurface .vtpPaymentReadiness.isReady strong,
.vtpClientSurface .vtpOrderGuardCheck.isReady strong {
  color: #513e8b !important;
}
.vtpClientSurface .vtpButton.primary,
.vtpClientSurface .linkBtn:not(.secondary):not([style*="#b42318"]) {
  border-color: #d96099;
  color: #fff;
  background: linear-gradient(135deg, #e866a2, #9889e1);
  box-shadow: 0 12px 28px rgba(184, 82, 147, .2);
}

@media (max-width: 900px) {
  .vtpMarketplaceHomeShowcase { min-height: 0; }
  .vtpMarketplaceCreatorCharacter { display: none; }
  .vtpMarketplaceShowcaseCard { width: auto; }
}

@media (max-width: 760px) {
  .vtpPremiumHeroArt {
    min-height: 225px;
    overflow: hidden;
  }
  .vtpPremiumHeroCharacter {
    bottom: -42%;
    height: 175%;
  }
  .vtpPremiumEmptyState {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 24px 20px !important;
  }
  .vtpPremiumEmptyState > div { position: relative; z-index: 2; }
  .vtpPremiumEmptyState img {
    right: -45px;
    bottom: -100px;
    height: 300px;
    opacity: .18;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vtpPremiumHeroCharacter,
  .vtpClientHeroCharacter,
  .vtpMarketplaceCreatorCharacter { transition: none; }
}
