/* Shared Tehran date/time strip for guest and signed-in home pages. */
.home-shared-date-time-v1 {
  width: min(calc(100% - clamp(24px, 4vw, 72px)), 1440px);
  min-height: 32px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 1px 4px;
  box-sizing: border-box;
  color: #718792;
  direction: rtl;
  font: 780 .69rem/1.6 Vazirmatn, Tahoma, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  white-space: nowrap;
}

.home-shared-date-time-v1 .home-shared-date-time-group {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  direction: rtl;
  white-space: nowrap;
}

/* Keep the clock icon immediately to the left of the full HH:MM:SS value. */
.home-shared-date-time-v1 .public-guest-date-time-clock-group {
  direction: ltr;
  justify-content: flex-start;
}

.home-shared-date-time-v1 .public-guest-date-time-clock-group > .home-shared-date-time-icon {
  order: 1;
}

.home-shared-date-time-v1 .public-guest-date-time-clock-group > .public-guest-date-time-clock {
  order: 2;
}

.home-shared-date-time-v1 .home-shared-date-cluster {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-right: 0;
  order: 2;
  direction: rtl;
}

.home-shared-date-time-v1 .home-shared-date-cluster > .home-shared-date-time-group:first-child {
  position: relative;
  right: 6px;
}

.home-shared-date-time-v1 .home-shared-meta-rotator {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 32px;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  order: 1;
  overflow: hidden;
  border-radius: 10px;
}

.home-shared-date-time-v1 .home-shared-wallet-link,
.home-shared-date-time-v1 .home-shared-user-link {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  grid-area: 1 / 1;
  direction: rtl;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 10px;
  padding: 2px 3px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
}

.home-shared-date-time-v1 .home-shared-meta-item {
  opacity: 0;
  transform: translate3d(0, -72%, 0);
  pointer-events: none;
  transition: opacity .72s ease, transform .78s cubic-bezier(.22,.7,.25,1);
  will-change: opacity, transform;
  visibility: hidden !important;
}

.home-shared-date-time-v1 .home-shared-meta-item.is-active {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  visibility: visible !important;
}

.home-shared-date-time-v1 .home-shared-meta-item.is-exiting {
  z-index: 1;
  opacity: 0;
  transform: translate3d(0, 72%, 0);
  pointer-events: none;
  visibility: visible !important;
}

.home-shared-date-time-v1:not([data-home-meta-motion="compositor"]) .home-shared-meta-item[aria-hidden="true"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

.home-shared-date-time-v1 .home-shared-wallet-icon {
  order: 1;
}

.home-shared-date-time-v1 .home-shared-wallet-link[hidden] {
  display: none !important;
}

.home-shared-date-time-v1 .home-shared-wallet-link:focus-visible {
  outline: 2px solid rgba(13, 148, 190, .45);
  outline-offset: 3px;
}

.home-shared-date-time-v1 .home-shared-user-link:focus-visible {
  outline: 2px solid rgba(13, 148, 190, .45);
  outline-offset: 3px;
}

.home-shared-date-time-v1 .home-shared-wallet-link:active {
  opacity: .72;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in {
  font-weight: 850;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in .home-shared-user-icon,
.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in .home-shared-user-name {
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in:active {
  background: rgba(10, 158, 205, .12);
  color: #078db9;
  box-shadow: inset 0 0 0 1px rgba(10, 158, 205, .14);
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in:active .home-shared-user-icon,
.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in:active .home-shared-user-name {
  transform: scale(.91);
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating {
  width: fit-content;
  max-width: calc(100% - 2px);
  min-width: 0;
  min-height: 30px;
  justify-self: start;
  margin-right: 0;
  margin-left: auto;
  padding: 3px 8px 3px 10px;
  box-sizing: border-box;
  background: rgba(10, 158, 205, .13);
  color: #078db9;
  box-shadow: inset 0 0 0 1px rgba(10, 158, 205, .16), 0 4px 14px rgba(9, 127, 170, .1);
  pointer-events: none;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating .home-shared-user-name {
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating .home-shared-user-icon {
  position: relative;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating .home-shared-user-icon svg {
  opacity: 0;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating .home-shared-user-icon::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 2px solid rgba(7, 141, 185, .28);
  border-top-color: #078db9;
  border-radius: 50%;
  animation: homeSharedGuestSignInSpin .65s linear infinite;
}

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

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in .home-shared-user-badge {
  display: none !important;
}

.home-shared-date-time-v1 .home-shared-wallet-balance {
  order: 2;
  color: inherit;
  direction: rtl;
  unicode-bidi: isolate;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.home-shared-date-time-v1 .home-shared-user-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
}

.home-shared-date-time-v1 .home-shared-user-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-shared-date-time-v1 .home-shared-user-name {
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  order: 3;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
}

.home-shared-date-time-v1 .home-shared-user-badge {
  flex: 0 0 auto;
  order: 2;
  margin-inline: 0 1px;
}

.home-shared-date-time-v1 .home-shared-user-icon {
  order: 1;
}

.home-shared-date-time-v1 .home-shared-user-badge[hidden] {
  display: none !important;
}

.home-shared-date-time-v1 .home-shared-date-time-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
  object-fit: contain;
}

.home-shared-date-time-v1 time {
  color: inherit;
  white-space: nowrap;
}

.home-shared-date-time-v1 .public-guest-date-time-clock {
  display: inline-block;
  width: 7.15em !important;
  min-width: 7.15em !important;
  max-width: 7.15em !important;
  flex: 0 0 7.15em;
  box-sizing: border-box;
  overflow: hidden;
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

@media (max-width: 600px) {
  .home-shared-date-time-v1 {
    width: calc(100% - 24px);
    min-height: 28px;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 7px;
    padding-inline: 1px;
    font-size: .61rem;
  }

  .home-shared-date-time-v1 .home-shared-date-time-group {
    gap: 5px;
  }

  .home-shared-date-time-v1 .home-shared-date-cluster {
    gap: 10px;
  }

  .home-shared-date-time-v1 .home-shared-date-cluster > .home-shared-date-time-group:first-child {
    right: 5px;
  }

  .home-shared-date-time-v1 .home-shared-meta-rotator {
    width: 100%;
    max-width: 100%;
    min-height: 28px;
  }

  .home-shared-date-time-v1 .home-shared-wallet-link,
  .home-shared-date-time-v1 .home-shared-user-link {
    gap: 5px;
    padding-inline: 1px;
  }

  .home-shared-date-time-v1 .home-shared-date-time-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .home-shared-date-time-v1 .home-shared-user-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
}

@media (max-width: 350px) {
  .home-shared-date-time-v1 {
    font-size: .56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shared-date-time-v1 .home-shared-meta-item {
    transition-duration: .01ms;
  }
  .home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating .home-shared-user-icon::after {
    animation-duration: 1.2s;
  }
}

/* CO1: the same compact user icon can display the active profile photo. */
.home-shared-date-time-v1 .home-shared-user-icon .home-shared-profile-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;}

/* HT1: tier occupies the same grid cell and icon footprint as the profile. */
.home-shared-date-time-v1 .home-shared-tier-link {
  min-width: 0; width: 100%; max-width: 100%; min-height: 32px;
  display: inline-flex; align-items: center; gap: 7px; grid-area: 1 / 1;
  direction: rtl; color: inherit; text-decoration: none; white-space: nowrap;
  border-radius: 10px; padding: 2px 3px; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; overflow: hidden;
  font: inherit;
}
.home-shared-date-time-v1 .home-shared-tier-link[hidden] { display: none !important; }
.home-shared-date-time-v1 .home-shared-tier-icon {
  width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center;
}
.home-shared-date-time-v1 .home-shared-tier-icon img {
  display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
}
.home-shared-date-time-v1 .home-shared-tier-icon svg {
  display: block; width: 100%; height: 100%; fill: #929da5;
}
.home-shared-date-time-v1 .home-shared-tier-label {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; font: inherit;
}
.home-shared-date-time-v1 .home-shared-tier-link:focus-visible {
  outline: 2px solid rgba(13,148,190,.45); outline-offset: 3px;
}
/* Invisible phases cannot capture keyboard focus. */
.home-shared-date-time-v1 .home-shared-meta-item[aria-hidden="true"] { visibility: hidden !important; }
@media (max-width: 600px) {
  .home-shared-date-time-v1 .home-shared-tier-link { min-height: 28px; gap: 5px; }
  .home-shared-date-time-v1 .home-shared-tier-icon { width: 21px; height: 21px; flex-basis: 21px; }
}
/* HS2: date, clock and the rotating account field always share one row. */
.home-shared-date-time-v1 {
  grid-template-columns: minmax(0,1fr) minmax(0,max-content);
}
.home-shared-date-time-v1 .home-shared-date-cluster {
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
}
.home-shared-date-time-v1 .home-shared-date-cluster > .home-shared-date-time-group:first-child {
  right: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.home-shared-date-time-v1 [data-public-guest-date] {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
}
.home-shared-date-time-v1 .public-guest-date-time-clock-group {
  flex: 0 0 auto;
}
.home-shared-date-time-v1 .home-shared-wallet-balance,
.home-shared-date-time-v1 .home-shared-tier-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
}
@media (max-width: 600px) {
  .home-shared-date-time-v1 {
    grid-template-columns: minmax(0,1fr) minmax(0,2fr);
  }
  .home-shared-date-time-v1 .home-shared-date-cluster {
    gap: clamp(4px,2vw,10px);
  }
}

/* HGS3: guest and signed-in home share the directory category glass material. */
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode]{
 position:-webkit-sticky;position:sticky;
 top:calc(var(--smile-header-height,var(--smile-fixed-header-height,69px)) + 6px);z-index:70;
 align-self:start;border-radius:23px;
 box-sizing:border-box;border:1px solid transparent;
 background:rgba(255,255,255,.64);
 -webkit-backdrop-filter:blur(19px) saturate(1.55);
 backdrop-filter:blur(19px) saturate(1.55);
 box-shadow:0 3px 12px rgba(25,60,70,.10);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode]{background:rgba(245,248,249,.97)}
}


/* GS2: slight home-only inset and proportional text/icon reduction. */
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode]{
 width:min(calc(100% - clamp(24px,4vw,72px) - 16px),1424px);
 font-size:.6624rem;
}
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode] .home-shared-date-time-icon,
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode] .home-shared-user-icon,
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode] .home-shared-tier-icon{width:23px;height:23px;flex-basis:23px;}
@media(max-width:600px){
 body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode]{width:calc(100% - 40px);font-size:.5856rem;}
 body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode] .home-shared-date-time-icon,
 body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode] .home-shared-user-icon,
 body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode] .home-shared-tier-icon{width:20px;height:20px;flex-basis:20px;}
}
@media(max-width:350px){
 body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode]{font-size:.5376rem;}
}

/* HGS3: reserve breathing room in natural flow before the strip sticks.
 * Replace the old compact-stack negative margins, which lift it over the slider.
 * Match its six-pixel sticky inset, and keep the following slider clear of it.
 * Margins travel with the strip, including the guest home's existing placement. */
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode]{
 margin-top:6px!important;
 margin-bottom:12px!important;
}

/* HPI1: matching profile/tier circles; text and utility icons retain their sizes. */
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode="authenticated"] { padding:6px 8px; }
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode="authenticated"] .home-shared-user-icon,
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode="authenticated"] .home-shared-tier-icon { width:32px;height:32px;flex-basis:32px; }
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode="authenticated"] .home-shared-user-link { box-sizing:border-box; }
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode="authenticated"] .home-shared-date-cluster { gap:12px; }
@media(max-width:600px) {
 body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode="authenticated"] { grid-template-columns:minmax(0,1.1fr) minmax(calc(7.15em + 50px),1.9fr); }
 body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode="authenticated"] .home-shared-user-icon,
 body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode="authenticated"] .home-shared-tier-icon { width:28px;height:28px;flex-basis:28px; }
 body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode="authenticated"] .home-shared-date-cluster { gap:4px; }
}

/* HMM1: visual timing belongs to native transform/opacity animations.
 * Accessibility/click state follows the same timeline without clipping fades. */
.home-shared-date-time-v1[data-home-meta-motion="compositor"] .home-shared-meta-item {
  visibility: visible !important;
  transition: none;
}

/* HM1: the first paint reserves the card's real height below the header.
 * Sticky is needed only after scrolling; a stale header inset must never move
 * the card out of its natural slot on entry, reload, or back/forward restore.
 * Scope includes both guest and authenticated home, never chat or other cards. */
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode][data-home-meta-at-start]{
 position:relative;
 top:auto;
}

/* HR159: same grid column, fonts and utility icon sizing; no new box. */
.home-shared-date-rank-rotator {
  display: inline-grid; order: 2; min-width: 0; width: 100%; align-items: center;
  overflow: hidden; direction: rtl;
}
.home-shared-date-rank-rotator > .home-shared-date-cluster,
.home-shared-date-rank-rotator > .home-shared-personal-rank {
  grid-area: 1 / 1; min-width: 0; width: 100%;
}
.home-shared-personal-rank {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: inherit; font: inherit; text-decoration: none; direction: rtl;
  pointer-events: none; opacity: 0;
}
.home-shared-personal-rank[hidden] { display: none !important; }
.is-rank-active > .home-shared-personal-rank { pointer-events: auto; }
.home-shared-rank-icon { flex: 0 0 auto; object-fit: contain; }
.home-shared-rank-text { min-width: 0; white-space: normal; line-height: 1.5; text-align: right; }
.home-shared-personal-rank:focus-visible { outline: 2px solid #718792; outline-offset: -2px; border-radius: 6px; }

/* RB164: gray PNG trophy stays fixed while its separate badge outline spins. */
body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode] .home-shared-rank-icon {
 position:relative; display:inline-block; width:26px; height:26px; flex-basis:26px;
}
.home-shared-rank-layer { position:absolute; display:block; object-fit:contain; pointer-events:none; }
.home-shared-rank-border {
 inset:-6%; width:112%; height:112%; transform-origin:50% 50%;
 animation:home-rank-border-spin-rb164 10s linear infinite; animation-play-state:paused;
}
.home-shared-rank-cup { inset:16%; width:68%; height:68%; }
.is-rank-active:not(.is-rank-motion-paused) .home-shared-rank-border { animation-play-state:running; }
@keyframes home-rank-border-spin-rb164 { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@media(max-width:600px) {
 body.public-home-active #app [data-public-home] .home-shared-date-time-v1[data-home-shared-auth-mode] .home-shared-rank-icon { width:24px; height:24px; flex-basis:24px; }
}
@media(prefers-reduced-motion:reduce) { .home-shared-rank-border { animation:none; } }
