/* Official poster treatment for the authenticated home hero. */
.user-app:has(.home-hero-official) .home-hero-official {
  --official-gold: #f0dcae;
  --official-gold-strong: #d7b76f;
  --official-cyan: #8de6de;
  --official-blue: #8dc5ff;
  position: relative;
  isolation: isolate;
  height: 464px;
  min-height: 464px;
  max-height: 464px;
  padding: 34px 36px 30px;
  overflow: hidden;
  border: 1px solid rgba(212, 180, 112, 0.42);
  border-radius: 16px;
  color: #f8fafc;
  background:
    linear-gradient(
      90deg,
      rgba(5, 13, 25, 0.985) 0%,
      rgba(6, 18, 33, 0.965) 45%,
      rgba(8, 27, 47, 0.76) 71%,
      rgba(6, 18, 32, 0.9) 100%
    ),
    linear-gradient(180deg, rgba(4, 12, 24, 0.08), rgba(4, 12, 24, 0.82)),
    var(--home-hero-image) center 56% / cover no-repeat;
  background-color: #071426;
  box-shadow:
    0 3px 12px rgba(4, 12, 24, 0.18),
    0 26px 68px rgba(4, 12, 24, 0.24);
}

.user-app:has(.home-hero-official) .home-hero-official::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.66;
  background-image:
    linear-gradient(rgba(143, 190, 235, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 190, 235, 0.065) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(100deg, #000 0, rgba(0, 0, 0, 0.62) 62%, transparent 94%);
  mask-image: linear-gradient(100deg, #000 0, rgba(0, 0, 0, 0.62) 62%, transparent 94%);
}

.user-app:has(.home-hero-official) .home-hero-official::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  background:
    linear-gradient(var(--official-gold), var(--official-gold)) left top / 46px 1px no-repeat,
    linear-gradient(var(--official-gold), var(--official-gold)) left top / 1px 46px no-repeat,
    linear-gradient(var(--official-blue), var(--official-blue)) right top / 46px 1px no-repeat,
    linear-gradient(var(--official-blue), var(--official-blue)) right top / 1px 46px no-repeat,
    linear-gradient(var(--official-cyan), var(--official-cyan)) left bottom / 46px 1px no-repeat,
    linear-gradient(var(--official-cyan), var(--official-cyan)) left bottom / 1px 46px no-repeat,
    linear-gradient(var(--official-gold-strong), var(--official-gold-strong)) right bottom / 46px 1px no-repeat,
    linear-gradient(var(--official-gold-strong), var(--official-gold-strong)) right bottom / 1px 46px no-repeat;
}

.user-app:has(.home-hero-official) .home-hero-accent {
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--official-gold), var(--official-blue) 52%, var(--official-cyan));
  box-shadow: 0 0 26px rgba(141, 197, 255, 0.25);
}

.user-app:has(.home-hero-official) .home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(350px, 0.94fr);
  grid-template-rows: minmax(0, 1fr) 56px 48px;
  grid-template-areas:
    "copy console"
    "slogan slogan"
    "actions actions";
  align-items: stretch;
  gap: 22px 38px;
}

.user-app:has(.home-hero-official) .home-hero-copy {
  grid-area: copy;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  align-self: center;
}

.user-app:has(.home-hero-official) .home-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.user-app:has(.home-hero-official) .home-eyebrow {
  width: fit-content;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(240, 220, 174, 0.27);
  border-radius: 999px;
  color: var(--official-gold);
  background: rgba(240, 220, 174, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.user-app:has(.home-hero-official) .home-poster-code {
  color: rgba(190, 214, 238, 0.46);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

.user-app:has(.home-hero-official) .home-hero-title {
  margin: 14px 0 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.6px;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero-official) .home-hero-title::after {
  width: 132px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--official-gold), var(--official-blue) 64%, var(--official-cyan));
  box-shadow: 0 0 18px rgba(141, 197, 255, 0.2);
}

.user-app:has(.home-hero-official) .home-hero-sub {
  max-width: 620px;
  margin-top: 10px;
  color: rgba(224, 234, 246, 0.72);
  font-size: 14px;
  line-height: 1.75;
}

.user-app:has(.home-hero-official) .home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.user-app:has(.home-hero-official) .home-hero-meta .badge {
  padding: 6px 10px;
  border: 1px solid rgba(213, 228, 244, 0.14);
  border-radius: 7px;
  color: #dce9f7;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.user-app:has(.home-hero-official) .home-hero-meta .badge svg {
  color: var(--official-cyan);
}

.user-app:has(.home-hero-official) .home-capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.user-app:has(.home-hero-official) .home-capabilities span {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid rgba(213, 228, 244, 0.13);
  border-radius: 8px;
  color: rgba(225, 235, 246, 0.78);
  background: rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 10.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero-official) .home-capabilities svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: var(--official-cyan);
}

.user-app:has(.home-hero-official) .home-hero-console {
  position: relative;
  grid-area: console;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 38px minmax(58px, 1fr) 58px 18px;
  gap: 8px;
  align-self: stretch;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(214, 230, 246, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028)),
    rgba(5, 17, 31, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 18px 38px rgba(1, 8, 18, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.user-app:has(.home-hero-official) .home-hero-console::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--official-gold), var(--official-blue) 58%, var(--official-cyan));
}

.user-app:has(.home-hero-official) .home-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 38px;
}

.user-app:has(.home-hero-official) .home-console-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-app:has(.home-hero-official) .home-console-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 220, 174, 0.38);
  border-radius: 11px;
  color: #142033;
  background: linear-gradient(135deg, #f4e2af, #c9a75e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 9px 20px rgba(206, 168, 84, 0.14);
  font-size: 15px;
  font-weight: 900;
}

.user-app:has(.home-hero-official) .home-console-avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border: 2px solid #081727;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.62);
}

.user-app:has(.home-hero-official) .home-console-identity > div {
  min-width: 0;
}

.user-app:has(.home-hero-official) .home-console-identity small,
.user-app:has(.home-hero-official) .home-console-identity b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero-official) .home-console-identity small {
  color: var(--official-gold);
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.user-app:has(.home-hero-official) .home-console-identity b {
  max-width: 210px;
  margin-top: 3px;
  color: #f5f8fb;
  font-size: 12.5px;
  font-weight: 850;
}

.user-app:has(.home-hero-official) .home-console-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(103, 214, 196, 0.18);
  border-radius: 999px;
  color: #a9eadf;
  background: rgba(28, 116, 108, 0.15);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.user-app:has(.home-hero-official) .home-console-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 9px rgba(94, 234, 212, 0.7);
}

.user-app:has(.home-hero-official) .home-console-focus {
  min-width: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(213, 228, 244, 0.1);
}

.user-app:has(.home-hero-official) .home-console-days {
  min-width: 0;
}

.user-app:has(.home-hero-official) .home-console-days > span {
  display: block;
  color: rgba(215, 228, 242, 0.54);
  font-size: 9px;
  font-weight: 800;
}

.user-app:has(.home-hero-official) .home-console-days > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 3px;
}

.user-app:has(.home-hero-official) .home-console-days b {
  color: var(--official-gold);
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(240, 220, 174, 0.13);
}

.user-app:has(.home-hero-official) .home-console-days small {
  color: rgba(240, 220, 174, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.user-app:has(.home-hero-official) .home-console-progress {
  min-width: 0;
}

.user-app:has(.home-hero-official) .home-console-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(217, 231, 244, 0.7);
  font-size: 9px;
  font-weight: 800;
}

.user-app:has(.home-hero-official) .home-console-progress-head span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero-official) .home-console-progress-head svg {
  color: var(--official-cyan);
}

.user-app:has(.home-hero-official) .home-console-progress-head em {
  flex: 0 0 auto;
  color: var(--official-gold);
  font-style: normal;
}

.user-app:has(.home-hero-official) .home-console-progress-track {
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(205, 221, 238, 0.1);
}

.user-app:has(.home-hero-official) .home-console-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--official-gold-strong), var(--official-blue) 58%, var(--official-cyan));
  box-shadow: 0 0 12px rgba(141, 197, 255, 0.28);
}

.user-app:has(.home-hero-official) .home-console-progress > small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(210, 225, 240, 0.46);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero-official) .home-console-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-top: 1px solid rgba(213, 228, 244, 0.08);
  border-bottom: 1px solid rgba(213, 228, 244, 0.08);
  background: rgba(255, 255, 255, 0.018);
}

.user-app:has(.home-hero-official) .home-console-metrics > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 12px;
}

.user-app:has(.home-hero-official) .home-console-metrics > div + div {
  border-left: 1px solid rgba(213, 228, 244, 0.1);
}

.user-app:has(.home-hero-official) .home-console-metrics b {
  display: block;
  overflow: hidden;
  color: #eaf4ff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero-official) .home-console-metrics > div:nth-child(2) b {
  color: #9ce8e0;
}

.user-app:has(.home-hero-official) .home-console-metrics > div:nth-child(3) b {
  color: #c7bcff;
}

.user-app:has(.home-hero-official) .home-console-metrics span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: rgba(210, 225, 240, 0.5);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero-official) .home-console-foot {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(210, 225, 240, 0.5);
  font-size: 8.5px;
}

.user-app:has(.home-hero-official) .home-console-foot span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero-official) .home-console-foot svg {
  flex: 0 0 auto;
  color: var(--official-cyan);
}

.user-app:has(.home-hero-official) .home-console-foot em {
  flex: 0 0 auto;
  color: rgba(240, 220, 174, 0.72);
  font-style: normal;
  font-weight: 800;
}

.user-app:has(.home-hero-official) .home-hero-slogan {
  position: relative;
  grid-area: slogan;
  display: block;
  width: 100%;
  max-width: none;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  margin: 2px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(141, 197, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(rgba(141, 197, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 197, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, #061321, #0a1f31 52%, #061321);
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow:
    inset 0 0 28px rgba(141, 197, 255, 0.045),
    0 10px 24px rgba(1, 8, 18, 0.16);
  contain: layout paint style;
  -webkit-mask-image: none;
  mask-image: none;
}

.user-app:has(.home-hero-official) .home-hero-slogan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgba(186, 230, 253, 0.055) 3px 4px
  );
}

.user-app:has(.home-hero-official) .home-slogan-track,
.user-app:has(.home-hero-official) .home-slogan-group {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
}

.user-app:has(.home-hero-official) .home-slogan-group b {
  color: #f2f7fc;
  text-shadow: 0 0 12px rgba(141, 197, 255, 0.12);
}

.user-app:has(.home-hero-official) .home-slogan-group strong {
  color: #8de6de;
  text-shadow: 0 0 12px rgba(94, 234, 212, 0.22);
}

.user-app:has(.home-hero-official) .home-slogan-group i {
  background: var(--official-gold);
  box-shadow: 0 0 9px rgba(240, 220, 174, 0.55);
}

.user-app:has(.home-hero-official) .home-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.user-app:has(.home-hero-official) .home-actions .btn {
  min-width: 0;
  min-height: 48px;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 850;
  white-space: nowrap;
}

.user-app:has(.home-hero-official) .home-hero .btn-white {
  border-color: rgba(240, 220, 174, 0.58);
  color: #142033;
  background: linear-gradient(135deg, #f4e2af, #d5b46c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 12px 26px rgba(206, 168, 84, 0.18);
}

.user-app:has(.home-hero-official) .home-hero .btn-white:hover {
  border-color: #f7e9bf;
  color: #0c1728;
  background: linear-gradient(135deg, #fff0c9, #dfbd73);
}

.user-app:has(.home-hero-official) .home-hero .btn-glass {
  border-color: rgba(214, 230, 246, 0.16);
  color: #e4edf7;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.user-app:has(.home-hero-official) .home-hero .btn-glass:hover {
  border-color: rgba(141, 230, 222, 0.38);
  color: #ffffff;
  background: rgba(44, 145, 163, 0.13);
}

.user-app:has(.home-hero-official) .home-hero .btn-glass svg {
  color: var(--official-cyan);
}

.user-app:has(.home-hero-official) .home-actions .btn svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex: 0 0 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.user-app:has(.home-hero-official) .home-actions .btn-white svg {
  color: #142033;
  background: transparent;
}

.user-app:has(.home-hero-official) .home-actions .btn-glass svg {
  color: var(--official-cyan);
  background: transparent;
}

@media (max-width: 860px) {
  .user-app:has(.home-hero-official) .home-hero-official {
    height: 680px;
    min-height: 680px;
    max-height: 680px;
    padding: 26px 22px 23px;
    background:
      linear-gradient(180deg, rgba(5, 13, 25, 0.98), rgba(6, 20, 36, 0.95)),
      linear-gradient(180deg, rgba(4, 12, 24, 0.12), rgba(4, 12, 24, 0.82)),
      var(--home-hero-image) right bottom / 88% auto no-repeat;
    background-color: #071426;
  }

  .user-app:has(.home-hero-official) .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 220px) minmax(0, 251px) 56px 48px;
    grid-template-areas:
      "copy"
      "console"
      "slogan"
      "actions";
    gap: 18px;
  }

  .user-app:has(.home-hero-official) .home-hero-title {
    font-size: 35px;
  }

  .user-app:has(.home-hero-official) .home-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    align-content: stretch;
  }
}

@media (max-width: 560px) {
  .user-app:has(.home-hero-official) .home-hero-official {
    height: 740px;
    min-height: 740px;
    max-height: 740px;
    padding: 22px 17px 19px;
    background:
      linear-gradient(180deg, rgba(5, 13, 25, 0.99), rgba(6, 20, 36, 0.96)),
      linear-gradient(180deg, rgba(4, 12, 24, 0.12), rgba(4, 12, 24, 0.86)),
      var(--home-hero-image) center bottom / 118% auto no-repeat;
  }

  .user-app:has(.home-hero-official) .home-poster-code {
    display: none;
  }

  .user-app:has(.home-hero-official) .home-hero-title {
    margin-top: 12px;
    font-size: 29px;
  }

  .user-app:has(.home-hero-official) .home-hero-inner {
    grid-template-rows: 261px 226px 52px 104px;
  }

  .user-app:has(.home-hero-official) .home-hero-sub {
    font-size: 12.5px;
    line-height: 1.65;
  }

  .user-app:has(.home-hero-official) .home-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .user-app:has(.home-hero-official) .home-capabilities span {
    min-height: 32px;
    font-size: 10px;
  }

  .user-app:has(.home-hero-official) .home-hero-console {
    grid-template-rows: 34px minmax(66px, 1fr) 50px 18px;
    gap: 6px;
    padding: 12px;
  }

  .user-app:has(.home-hero-official) .home-console-head {
    min-height: 34px;
  }

  .user-app:has(.home-hero-official) .home-console-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
    font-size: 13px;
  }

  .user-app:has(.home-hero-official) .home-console-identity b {
    max-width: 132px;
  }

  .user-app:has(.home-hero-official) .home-console-focus {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
  }

  .user-app:has(.home-hero-official) .home-console-days b {
    font-size: 28px;
  }

  .user-app:has(.home-hero-official) .home-console-metrics > div {
    padding: 3px 7px;
  }

  .user-app:has(.home-hero-official) .home-console-metrics b {
    font-size: 20px;
  }

  .user-app:has(.home-hero-official) .home-hero-slogan,
  .user-app:has(.home-hero-official) .home-slogan-track,
  .user-app:has(.home-hero-official) .home-slogan-group {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
  }

  .user-app:has(.home-hero-official) .home-slogan-group b {
    font-size: 15px;
  }

  .user-app:has(.home-hero-official) .home-slogan-group strong {
    font-size: 12.5px;
  }

  .user-app:has(.home-hero-official) .home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .user-app:has(.home-hero-official) .home-actions .btn {
    min-height: 48px;
    gap: 7px;
    padding: 0 10px;
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .user-app:has(.home-hero-official) .home-hero-title {
    font-size: 26px;
  }

  .user-app:has(.home-hero-official) .home-hero-meta .badge {
    font-size: 10.5px;
  }
}
