/* Shared public profile card: categories, Explora search, Search and Discover. */
.widais-profile-card{
  position:relative !important;
  isolation:isolate !important;
  display:block !important;
  overflow:hidden !important;
  min-height:156px !important;
  height:auto !important;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.15) !important;
  border-radius:24px !important;
  background:#050505 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 18px 42px rgba(0,0,0,.18) !important;
}

.widais-profile-card .discover-card-media{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
  padding:0 !important;
  border:0 !important;
  border-radius:inherit !important;
  opacity:1 !important;
  pointer-events:none !important;
}

.widais-profile-card .discover-card-media::after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:2 !important;
  display:block !important;
  background:linear-gradient(90deg,rgba(3,3,3,.92),rgba(3,3,3,.73) 58%,rgba(3,3,3,.52)),linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.46)) !important;
  pointer-events:none !important;
}

.widais-profile-card .discover-card-media img{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center !important;
  filter:saturate(.88) contrast(1.04) !important;
  transform:scale(1.01) !important;
  transition:transform .45s cubic-bezier(.2,.7,.2,1),filter .3s ease !important;
}

.widais-profile-card:hover .discover-card-media img{
  filter:saturate(1) contrast(1.06) !important;
  transform:scale(1.035) !important;
}

.widais-profile-card .discover-card-media.is-empty{
  background-color:#050505 !important;
  background-image:linear-gradient(rgba(255,255,255,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.075) 1px,transparent 1px) !important;
  background-size:28px 28px,28px 28px !important;
  background-position:center !important;
}

.widais-profile-card .discover-card-media.is-empty::after{
  background:linear-gradient(180deg,rgba(0,0,0,.01),rgba(0,0,0,.14)) !important;
}

.widais-profile-card .discover-card-empty-mark,
.widais-profile-card .discover-card-shine{
  display:none !important;
}

.widais-profile-card .category-profile-card-content{
  position:relative !important;
  z-index:3 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-rows:1fr auto !important;
  gap:12px 18px !important;
  width:100% !important;
  min-height:154px !important;
  height:auto !important;
  padding:19px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

.widais-profile-card .category-profile-card-identity{
  grid-column:1 !important;
  grid-row:1 / 3 !important;
  display:grid !important;
  grid-template-columns:72px minmax(0,1fr) !important;
  grid-template-areas:none !important;
  align-items:center !important;
  gap:16px !important;
  min-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  color:#fff !important;
  text-decoration:none !important;
}

.widais-profile-card .category-profile-card-identity .category-profile-card-avatar{
  position:relative !important;
  inset:auto !important;
  grid-area:1 / 1 / 2 / 2 !important;
  align-self:center !important;
  justify-self:start !important;
  display:grid !important;
  place-items:center !important;
  width:72px !important;
  height:72px !important;
  min-width:72px !important;
  min-height:72px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:50% !important;
  box-shadow:0 12px 28px rgba(0,0,0,.32) !important;
  transform:none !important;
}

.widais-profile-card .category-profile-card-avatar img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  border-radius:50% !important;
  object-fit:cover !important;
}

.widais-profile-card .category-profile-card-avatar b{
  display:grid !important;
  place-items:center !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
}

.widais-profile-card .category-profile-card-identity .category-profile-card-copy{
  grid-area:1 / 2 / 2 / 3 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  gap:8px !important;
  min-width:0 !important;
  padding:0 8px 0 0 !important;
  margin:0 !important;
}

.widais-profile-card .category-profile-card-name{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  color:#fff !important;
  font-size:clamp(18px,1.55vw,24px) !important;
  font-weight:850 !important;
  letter-spacing:-.045em !important;
  line-height:1.06 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  text-shadow:0 3px 18px rgba(0,0,0,.62) !important;
}

.widais-profile-card .category-profile-card-category{
  display:inline-flex !important;
  align-items:center !important;
  min-height:25px !important;
  max-width:100% !important;
  padding:0 10px !important;
  margin:0 !important;
  border:1px solid rgba(255,255,255,.17) !important;
  border-radius:999px !important;
  background:rgba(4,4,4,.52) !important;
  color:rgba(255,255,255,.86) !important;
  font-size:8.5px !important;
  font-style:normal !important;
  font-weight:850 !important;
  letter-spacing:.08em !important;
  line-height:1 !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  backdrop-filter:blur(10px) !important;
  -webkit-backdrop-filter:blur(10px) !important;
}





/* Keep the accessible label available to screen readers without leaking into the icon button. */


.widais-profile-card .category-profile-card-more{
  grid-column:2 !important;
  grid-row:2 !important;
  align-self:end !important;
  justify-self:end !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  width:auto !important;
  min-width:96px !important;
  min-height:33px !important;
  height:33px !important;
  padding:0 12px !important;
  margin:0 !important;
  border:1px solid rgba(255,255,255,.19) !important;
  border-radius:11px !important;
  background:rgba(4,4,4,.68) !important;
  color:#fff !important;
  box-sizing:border-box !important;
  font-size:8px !important;
  font-weight:900 !important;
  letter-spacing:.075em !important;
  line-height:1 !important;
  text-decoration:none !important;
  text-transform:uppercase !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09) !important;
  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
  transition:border-color .18s ease,background .18s ease,transform .18s ease !important;
}

.widais-profile-card .category-profile-card-more svg{
  width:12px !important;
  height:12px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

.widais-profile-card .category-profile-card-more:hover{
  border-color:rgba(255,255,255,.36) !important;
  background:rgba(12,12,12,.84) !important;
  transform:translateY(-1px) !important;
}

@media(max-width:640px){
  .widais-profile-card{min-height:140px !important;border-radius:21px !important;}
  .widais-profile-card .category-profile-card-content{gap:10px 12px !important;min-height:138px !important;padding:15px !important;}
  .widais-profile-card .category-profile-card-identity{grid-template-columns:58px minmax(0,1fr) !important;gap:12px !important;}
  .widais-profile-card .category-profile-card-identity .category-profile-card-avatar{width:58px !important;height:58px !important;min-width:58px !important;min-height:58px !important;}
  .widais-profile-card .category-profile-card-name{font-size:clamp(16px,5vw,20px) !important;}
  
  .widais-profile-card .category-profile-card-more{min-width:88px !important;min-height:31px !important;height:31px !important;padding:0 10px !important;font-size:7.5px !important;}
}

@media(prefers-reduced-motion:reduce){
  .widais-profile-card .discover-card-media img{transition:none !important;}
}

/* Final scope wins over legacy Search/Discover/X card dimensions. */
body.widais-unified-cards-page .discover-card.widais-profile-card{
  min-height:156px !important;
  height:auto !important;
  padding:0 !important;
}

body.widais-unified-cards-page .widais-profile-card .discover-card-media{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
  opacity:1 !important;
}

body.widais-unified-cards-page .widais-profile-card .discover-card-media img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

body.widais-unified-cards-page .widais-profile-card .category-profile-card-content{
  width:100% !important;
  min-height:154px !important;
  padding:19px !important;
}



@media(max-width:640px){
  body.widais-unified-cards-page .discover-card.widais-profile-card{min-height:140px !important;padding:0 !important;}
  body.widais-unified-cards-page .widais-profile-card .category-profile-card-content{min-height:138px !important;padding:15px !important;}
  
}

/* Radar only positions the shared public card; its appearance stays identical everywhere. */
body.widais-radar-page .widais-radar-card-preview{
  position:absolute;
  right:clamp(10px, 1.35vw, 16px);
  bottom:clamp(10px, 1.35vw, 16px);
  z-index:25;
  display:block;
  width:min(430px, calc(100% - 22px));
  max-width:calc(100vw - 22px);
  margin:0;
  padding:0;
}

body.widais-radar-page .widais-radar-card-preview[hidden]{
  display:none !important;
}

body.widais-radar-page .widais-radar-card-preview > .widais-profile-card{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
}

@media(max-width:640px){
  body.widais-radar-page .widais-radar-card-preview{
    right:10px;
    bottom:10px;
    width:calc(100% - 20px);
    max-width:calc(100% - 20px);
  }
}

/* 1642: keep only the animated verification ring and remove the dark title plate. */
body.widais-unified-cards-page .widais-profile-card .x-public-profile-owner-star{
  border:0 !important;
  outline:0 !important;
  box-shadow:0 0 20px rgba(255,63,159,.18),0 0 22px rgba(0,213,255,.16) !important;
}

body.widais-unified-cards-page .widais-profile-card .category-profile-card-name{
  text-shadow:none !important;
}

/* Category pills remain opaque over owner banners. */
body.widais-unified-cards-page .widais-profile-card .category-profile-card-category{
  background:var(--widais-card-surface) !important;
  background-color:var(--widais-card-surface) !important;
  background-image:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

body.widais-unified-cards-page .widais-profile-card.has-profile-background .category-profile-card-category{
  background:var(--widais-card-surface) !important;
  background-color:var(--widais-card-surface) !important;
  background-image:none !important;
  opacity:1 !important;
}

/* 1635: final scoped authority over higher-specificity legacy category rules. */
body.widais-unified-cards-page .discover-card.widais-profile-card{
  border-color:var(--widais-card-border) !important;
  background:var(--widais-card-surface) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 12px 28px rgba(0,0,0,.18) !important;
}

body.widais-unified-cards-page .widais-profile-card .discover-card-media.is-empty{
  background:var(--widais-card-surface) !important;
  background-image:none !important;
}

body.widais-unified-cards-page .widais-profile-card .discover-card-media.is-empty::after{
  background:transparent !important;
}

body.widais-unified-cards-page .widais-profile-card.has-profile-background .discover-card-media::after{
  background:rgba(0,0,0,.34) !important;
}

body.widais-unified-cards-page .widais-profile-card .category-profile-card-content{
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-rows:1fr !important;
}

body.widais-unified-cards-page .widais-profile-card .category-profile-card-identity{
  grid-column:1 !important;
  grid-row:1 !important;
}

/* Shared neutral controls; the saved state keeps its functional highlight. */
body.widais-unified-cards-page .widais-profile-card .category-profile-card-widai,
body.widais-unified-cards-page .widais-profile-card .category-profile-card-more{
  border-color:var(--widais-card-border) !important;
  background:var(--widais-card-surface) !important;
  background-color:var(--widais-card-surface) !important;
  background-image:none !important;
  color:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.075),0 8px 20px rgba(0,0,0,.20) !important;
  opacity:1 !important;
}

body.widais-unified-cards-page .widais-profile-card.has-profile-background .category-profile-card-widai,
body.widais-unified-cards-page .widais-profile-card.has-profile-background .category-profile-card-more{
  background:var(--widais-card-surface) !important;
  background-color:var(--widais-card-surface) !important;
  background-image:none !important;
  opacity:1 !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

body.widais-unified-cards-page .widais-profile-card .category-profile-card-widai:hover,
body.widais-unified-cards-page .widais-profile-card .category-profile-card-more:hover,
body.widais-unified-cards-page .widais-profile-card .category-profile-card-widai:focus-visible,
body.widais-unified-cards-page .widais-profile-card .category-profile-card-more:focus-visible{
  border-color:var(--widais-card-border-hover) !important;
  background:var(--widais-card-surface) !important;
  background-color:var(--widais-card-surface) !important;
  background-image:none !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 10px 22px rgba(0,0,0,.24) !important;
}





.widais-profile-card .category-profile-card-action-chevron{
  display:grid !important;
  place-items:center !important;
  flex:0 0 13px !important;
  width:13px !important;
  height:13px !important;
  margin:0 0 0 1px !important;
  padding:0 !important;
  border:0 !important;
  color:rgb(var(--widais-card-accent-rgb)) !important;
  transition:transform .2s cubic-bezier(.2,.75,.25,1),color .18s ease !important;
}

.widais-profile-card .category-profile-card-action-chevron svg{
  display:block !important;
  width:13px !important;
  height:13px !important;
  margin:0 !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

.widais-profile-card .category-profile-card-widai:hover .category-profile-card-action-chevron,
.widais-profile-card .category-profile-card-more:hover .category-profile-card-action-chevron,
.widais-profile-card .category-profile-card-widai:focus-visible .category-profile-card-action-chevron,
.widais-profile-card .category-profile-card-more:focus-visible .category-profile-card-action-chevron{
  transform:translateX(3px) !important;
  color:#fff !important;
}

@media(prefers-reduced-motion:reduce){
  .widais-profile-card .category-profile-card-action-chevron{
    transition:none !important;
  }
}

/* Search results need a small visual pause after their preceding context block. */
body.search-page .search-summary-card + .search-results-section,
body.search-page .search-category-section + .search-results-section{
  margin-top:9.1px !important;
}

/* Refine the native clear control without duplicating the search interaction. */
body.search-page .search-hero-form input[type="search"]::-webkit-search-cancel-button{
  -webkit-appearance:none !important;
  appearance:none !important;
  width:20px !important;
  height:20px !important;
  margin-left:10px !important;
  border:1px solid rgba(255,255,255,.16) !important;
  border-radius:50% !important;
  background-color:rgba(255,255,255,.055) !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='%23d8d8d8' stroke-width='1.35' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  background-size:14px 14px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07) !important;
  cursor:pointer !important;
  transition:border-color .16s ease, background-color .16s ease, transform .16s ease !important;
}

body.search-page .search-hero-form input[type="search"]::-webkit-search-cancel-button:hover{
  border-color:rgba(255,255,255,.34) !important;
  background-color:rgba(255,255,255,.10) !important;
  transform:scale(1.05) !important;
}

body.search-page .widais-profile-card .x-public-profile-name-line .x-public-profile-owner-star{
  border:0 !important;
  box-shadow:0 0 20px rgba(255,63,159,.18), 0 0 22px rgba(0,213,255,.16) !important;
}

body.search-page .widais-profile-card .x-public-profile-name-line .x-public-profile-owner-star svg{
  position:absolute !important;
  inset:0 !important;
  width:10px !important;
  height:10px !important;
  margin:auto !important;
  transform:none !important;
  transform-origin:center !important;
}

/* Shared cards can use two lines so names are never clipped by the action column. */
.widais-profile-card .category-profile-card-name{
  display:block !important;
  max-height:2.12em !important;
  overflow:hidden !important;
  text-overflow:clip !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  line-height:1.06 !important;
}

.widais-profile-card .category-profile-card-name .x-public-profile-owner-star{
  display:inline-grid !important;
  vertical-align:middle !important;
  margin-left:5px !important;
}

/* One neutral palette for every profile type, matching the route buttons. */
.widais-profile-card{
  --widais-card-accent-rgb:255,255,255;
  --widais-card-surface:#050505;
  --widais-card-border:rgba(255,255,255,.12);
  --widais-card-border-hover:rgba(255,255,255,.28);
  border-color:var(--widais-card-border) !important;
  background:var(--widais-card-surface) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 12px 28px rgba(0,0,0,.18) !important;
}

.widais-profile-card .discover-card-media.is-empty{
  background:var(--widais-card-surface) !important;
  background-image:none !important;
}

.widais-profile-card .discover-card-media.is-empty::after{
  background:transparent !important;
}

body.widais-unified-cards-page .widais-profile-card.has-profile-background .discover-card-media::after{
  background:rgba(0,0,0,.34) !important;
}

.widais-profile-card .category-profile-card-content{
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-rows:1fr !important;
}

.widais-profile-card .category-profile-card-identity{
  grid-column:1 !important;
  grid-row:1 !important;
}





.widais-profile-card .category-profile-card-actions{
  grid-column:2 !important;
  grid-row:1 !important;
  align-self:end !important;
  justify-self:end !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:6px !important;
  width:96px !important;
  margin:0 !important;
  padding:0 !important;
}

.widais-profile-card .category-profile-card-widai,
.widais-profile-card .category-profile-card-more{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  width:100% !important;
  min-width:96px !important;
  min-height:33px !important;
  height:33px !important;
  padding:0 10px !important;
  margin:0 !important;
  border:1px solid var(--widais-card-border) !important;
  border-radius:11px !important;
  background-color:var(--widais-card-surface) !important;
  background-image:none !important;
  color:#fff !important;
  box-sizing:border-box !important;
  font-size:8px !important;
  font-weight:900 !important;
  letter-spacing:.075em !important;
  line-height:1 !important;
  text-decoration:none !important;
  text-transform:uppercase !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 8px 20px rgba(0,0,0,.18) !important;
  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
  transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,transform .18s ease !important;
}

.widais-profile-card .category-profile-card-widai:hover,
.widais-profile-card .category-profile-card-more:hover,
.widais-profile-card .category-profile-card-widai:focus-visible,
.widais-profile-card .category-profile-card-more:focus-visible{
  border-color:var(--widais-card-border-hover) !important;
  background-color:var(--widais-card-surface) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 10px 22px rgba(0,0,0,.22) !important;
  transform:translateY(-1px) !important;
}

@media(max-width:640px){
  .widais-profile-card .category-profile-card-actions{
    gap:5px !important;
    width:88px !important;
  }

  .widais-profile-card .category-profile-card-widai,
  .widais-profile-card .category-profile-card-more{
    min-width:88px !important;
    min-height:31px !important;
    height:31px !important;
    padding:0 8px !important;
    font-size:7.5px !important;
  }

}

/* Category labels use the same black and grey surface as the card controls. */
body.widais-unified-cards-page .widais-profile-card .category-profile-card-category{
  border-color:var(--widais-card-border) !important;
  background:var(--widais-card-surface) !important;
  background-image:none !important;
  color:rgb(var(--widais-card-accent-rgb)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07) !important;
}

/* Keep owner banners visible while preserving consistent text contrast. */
.widais-profile-card.has-profile-background .discover-card-media::after{
  content:"" !important;
  display:block !important;
  background:rgba(0,0,0,.34) !important;
  opacity:1 !important;
}

body.widais-unified-cards-page .widais-profile-card .category-profile-card-avatar::before{
  inset:-3px !important;
}

body.widais-unified-cards-page .widais-profile-card .category-profile-card-avatar::after{
  background:transparent !important;
}

body.widais-unified-cards-page .widais-profile-card .category-profile-card-avatar img,
body.widais-unified-cards-page .widais-profile-card .category-profile-card-avatar b{
  inset:3px !important;
  width:calc(100% - 6px) !important;
  height:calc(100% - 6px) !important;
}

@media(max-width:640px){
  body.widais-unified-cards-page .widais-profile-card .category-profile-card-avatar::before{
    inset:-2.5px !important;
  }

  body.widais-unified-cards-page .widais-profile-card .category-profile-card-avatar img,
  body.widais-unified-cards-page .widais-profile-card .category-profile-card-avatar b{
    inset:2.5px !important;
    width:calc(100% - 5px) !important;
    height:calc(100% - 5px) !important;
  }
}
