/* Editorial poster treatment for the authenticated home hero. */
.user-app:has(.home-hero) .home-hero {
  --poster-ink: #071426;
  --poster-ink-2: #10243d;
  --poster-orange: #f97316;
  --poster-orange-soft: #fb923c;
  --poster-cyan: #38bdf8;
  --poster-green: #2dd4bf;
  position: relative;
  isolation: isolate;
  padding: 34px;
  overflow: hidden;
  border-color: rgba(154, 203, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(
      112deg,
      rgba(5, 14, 28, 0.99) 0%,
      rgba(8, 22, 40, 0.97) 48%,
      rgba(7, 29, 43, 0.86) 72%,
      rgba(5, 18, 30, 0.92) 100%
    ),
    linear-gradient(180deg, rgba(7, 20, 38, 0.2), rgba(7, 20, 38, 0.72)),
    var(--home-hero-image) center 58% / cover no-repeat;
  background-color: var(--poster-ink);
  box-shadow:
    0 2px 7px rgba(4, 12, 24, 0.16),
    0 24px 68px rgba(4, 12, 24, 0.24);
}

.user-app:has(.home-hero) .home-hero::before {
  opacity: 0.52;
  mix-blend-mode: normal;
  background-image:
    linear-gradient(rgba(148, 197, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, 0.075) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(105deg, #000 0, rgba(0, 0, 0, 0.5) 58%, transparent 92%);
  mask-image: linear-gradient(105deg, #000 0, rgba(0, 0, 0, 0.5) 58%, transparent 92%);
}

.user-app:has(.home-hero) .home-hero::after {
  inset: 14px;
  opacity: 0.28;
  background:
    linear-gradient(#8fc9ff, #8fc9ff) left top / 42px 1px no-repeat,
    linear-gradient(#8fc9ff, #8fc9ff) left top / 1px 42px no-repeat,
    linear-gradient(#8fc9ff, #8fc9ff) right top / 42px 1px no-repeat,
    linear-gradient(#8fc9ff, #8fc9ff) right top / 1px 42px no-repeat,
    linear-gradient(#5eead4, #5eead4) left bottom / 42px 1px no-repeat,
    linear-gradient(#5eead4, #5eead4) left bottom / 1px 42px no-repeat,
    linear-gradient(#fb923c, #fb923c) right bottom / 42px 1px no-repeat,
    linear-gradient(#fb923c, #fb923c) right bottom / 1px 42px no-repeat;
}

.user-app:has(.home-hero) .home-hero-accent {
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--poster-orange), var(--poster-cyan) 54%, var(--poster-green));
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.28);
}

.user-app:has(.home-hero) .home-hero-inner {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  grid-template-areas:
    "eyebrow stats"
    "title stats"
    "sub stats"
    "meta stats"
    "slogan slogan"
    "caps caps"
    "actions actions";
  gap: 10px 46px;
}

.user-app:has(.home-hero) .home-eyebrow {
  padding: 7px 12px;
  border-color: rgba(125, 211, 252, 0.24);
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.09);
  color: #bae6fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.user-app:has(.home-hero) .home-hero-title {
  margin-top: 13px;
  color: #fff;
  font-size: 42px;
  line-height: 1.18;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.user-app:has(.home-hero) .home-hero-title::after {
  width: 124px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--poster-orange), var(--poster-cyan) 68%, var(--poster-green));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22);
}

.user-app:has(.home-hero) .home-hero-sub {
  color: rgba(219, 232, 247, 0.74);
  font-size: 14.5px;
}

.user-app:has(.home-hero) .home-hero-meta .badge {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #d6e7f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

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

.user-app:has(.home-hero) .home-hero-slogan {
  position: relative;
  display: block;
  height: 58px;
  min-height: 58px;
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(rgba(125, 211, 252, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, #071521, #0a1c2b 52%, #071521);
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow:
    inset 0 0 30px rgba(56, 189, 248, 0.06),
    0 10px 26px rgba(1, 8, 18, 0.14);
  contain: paint;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.user-app:has(.home-hero) .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.08) 3px 4px
  );
  mix-blend-mode: screen;
}

.user-app:has(.home-hero) .home-slogan-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  will-change: transform;
  animation: home-slogan-scroll 24s linear infinite;
}

.user-app:has(.home-hero) .home-slogan-group {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  white-space: nowrap;
}

.user-app:has(.home-hero) .home-slogan-group b {
  color: #eef8ff;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-shadow:
    0 0 10px rgba(186, 230, 253, 0.18),
    0 0 22px rgba(56, 189, 248, 0.09);
}

.user-app:has(.home-hero) .home-slogan-group strong {
  color: #67e8f9;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-shadow:
    0 0 10px rgba(34, 211, 238, 0.35),
    0 0 22px rgba(34, 211, 238, 0.16);
}

.user-app:has(.home-hero) .home-slogan-group i {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 1px;
  background: #22d3ee;
  box-shadow:
    0 0 8px rgba(34, 211, 238, 0.8),
    0 0 16px rgba(34, 211, 238, 0.34);
}

.user-app:has(.home-hero) .home-slogan-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20%;
  z-index: 3;
  width: 12%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.16), transparent);
  transform: skewX(-18deg);
  animation: home-slogan-scan 5.8s ease-in-out infinite;
}

@keyframes home-slogan-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes home-slogan-scan {
  0%,
  18% {
    left: -20%;
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  72% {
    opacity: 0.7;
  }

  88%,
  100% {
    left: 112%;
    opacity: 0;
  }
}

.user-app:has(.home-hero) .home-capabilities {
  gap: 9px;
  margin-top: 12px;
}

.user-app:has(.home-hero) .home-capabilities span {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #cbd9e9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.user-app:has(.home-hero) .home-capabilities svg {
  color: var(--poster-cyan);
}

.user-app:has(.home-hero) .home-stats {
  grid-template-rows: auto repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.user-app:has(.home-hero) .home-stats-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  color: rgba(212, 228, 244, 0.68);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.user-app:has(.home-hero) .home-stats-label svg {
  color: var(--poster-green);
}

.user-app:has(.home-hero) .home-stat {
  position: relative;
  overflow: hidden;
  justify-content: center;
  min-height: 88px;
  padding: 16px 18px;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 26px rgba(1, 8, 18, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.user-app:has(.home-hero) .home-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--poster-cyan);
}

.user-app:has(.home-hero) .home-stat::after {
  display: none;
}

.user-app:has(.home-hero) .home-stat:nth-child(2)::before {
  background: var(--poster-orange);
}

.user-app:has(.home-hero) .home-stat:nth-child(3)::before {
  background: var(--poster-cyan);
}

.user-app:has(.home-hero) .home-stat:nth-child(4)::before {
  background: var(--poster-green);
}

.user-app:has(.home-hero) .home-stat:nth-child(5)::before {
  background: #a5b4fc;
}

.user-app:has(.home-hero) .home-stat b {
  color: #fff;
  font-size: 28px;
}

.user-app:has(.home-hero) .home-stat:nth-child(2) b {
  color: var(--poster-orange-soft);
}

.user-app:has(.home-hero) .home-stat:nth-child(3) b {
  color: #7dd3fc;
}

.user-app:has(.home-hero) .home-stat:nth-child(4) b {
  color: #5eead4;
}

.user-app:has(.home-hero) .home-stat span {
  color: rgba(210, 224, 240, 0.6);
}

.user-app:has(.home-hero) .home-stat b small {
  color: inherit;
}

.user-app:has(.home-hero) .home-actions {
  gap: 10px;
  margin-top: 18px;
}

.user-app:has(.home-hero) .home-actions .btn {
  min-height: 48px;
  border-radius: 6px;
}

.user-app:has(.home-hero) .home-hero .btn-white {
  border-color: var(--poster-orange);
  background: linear-gradient(135deg, var(--poster-orange), var(--poster-orange-soft));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 28px rgba(249, 115, 22, 0.24);
}

.user-app:has(.home-hero) .home-hero .btn-white:hover {
  border-color: #fdba74;
  background: linear-gradient(135deg, #ea580c, #fb923c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 15px 34px rgba(249, 115, 22, 0.29);
}

.user-app:has(.home-hero) .home-hero .btn-glass {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.065);
  color: #e8f1fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.user-app:has(.home-hero) .home-hero .btn-glass:hover {
  border-color: rgba(125, 211, 252, 0.38);
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
}

.user-app:has(.home-hero) .home-hero .btn-glass svg {
  color: #7dd3fc;
}

@media (min-width: 621px) and (max-width: 820px) {
  .user-app:has(.home-hero) .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "sub"
      "meta"
      "stats"
      "slogan"
      "caps"
      "actions";
  }

  .user-app:has(.home-hero) .home-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: auto minmax(76px, auto) !important;
    gap: 9px;
  }

  .user-app:has(.home-hero) .home-stat {
    min-height: 76px;
    padding: 13px 14px;
  }

  .user-app:has(.home-hero) .home-stat b {
    font-size: 25px;
  }

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

  .user-app:has(.home-hero) .home-actions .btn {
    padding: 0 11px;
    font-size: 12.5px;
  }
}

@media (max-width: 820px) {
  .user-app:has(.home-hero) .home-hero {
    padding: 25px 22px 23px;
  }

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

  .user-app:has(.home-hero) .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "sub"
      "meta"
      "stats"
      "slogan"
      "caps"
      "actions";
  }
}

@media (max-width: 560px) {
  .user-app:has(.home-hero) .home-hero {
    padding: 22px 18px 20px;
  }

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

  .user-app:has(.home-hero) .home-stats-label {
    min-height: 22px;
  }

  .user-app:has(.home-hero) .home-stat {
    min-height: 80px;
    padding: 13px 12px;
  }

  .user-app:has(.home-hero) .home-hero-slogan {
    height: 54px;
    min-height: 54px;
    padding: 0;
  }

  .user-app:has(.home-hero) .home-slogan-group {
    gap: 16px;
    padding-right: 16px;
  }

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

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

  .user-app:has(.home-hero) .home-actions .btn-white svg {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  .user-app:has(.home-hero) .home-actions .btn-glass svg {
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
  }
}

/* Keep the slogan strip visually identical across desktop and mobile. */
.user-app:has(.home-hero) .home-hero-slogan {
  width: 100%;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  contain: layout paint style;
}

.user-app:has(.home-hero) .home-slogan-track {
  height: 58px;
  min-height: 58px;
  max-height: 58px;
}

.user-app:has(.home-hero) .home-slogan-group {
  height: 58px;
  min-height: 58px;
  max-height: 58px;
}

.user-app:has(.home-hero) .home-slogan-scan {
  height: 58px;
}

@media (max-width: 560px) {
  .user-app:has(.home-hero) .home-hero-slogan,
  .user-app:has(.home-hero) .home-slogan-track,
  .user-app:has(.home-hero) .home-slogan-group,
  .user-app:has(.home-hero) .home-slogan-scan {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-app:has(.home-hero) .home-hero .btn {
    transition: none;
  }

  .user-app:has(.home-hero) .home-slogan-track,
  .user-app:has(.home-hero) .home-slogan-scan {
    animation: none;
  }
}

/* Bright editorial theme */
.user-app:has(.home-hero) .home-hero {
  --poster-ink: #17324d;
  --poster-ink-2: #2d4f70;
  --poster-orange: #e9781f;
  --poster-orange-soft: #f59e48;
  --poster-cyan: #148ba0;
  --poster-green: #18816f;
  border-color: #dbe7f2;
  background:
    linear-gradient(
      108deg,
      rgba(255, 255, 255, 0.995) 0%,
      rgba(255, 255, 255, 0.975) 48%,
      rgba(248, 252, 255, 0.9) 73%,
      rgba(241, 249, 255, 0.82) 100%
    ),
    linear-gradient(135deg, #fbfdff 0%, #eef6ff 56%, #ecf8f4 100%),
    var(--home-hero-image) right center / 56% auto no-repeat;
  background-color: #f8fbff;
  background-blend-mode: normal, normal, screen;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 3px 10px rgba(36, 72, 128, 0.05),
    0 24px 58px rgba(36, 72, 128, 0.085);
}

.user-app:has(.home-hero) .home-hero::before {
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(rgba(41, 73, 216, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 73, 216, 0.03) 1px, transparent 1px);
}

.user-app:has(.home-hero) .home-hero::after {
  opacity: 0.32;
}

.user-app:has(.home-hero) .home-hero-accent {
  background: linear-gradient(180deg, #e9781f, #148ba0 54%, #18816f);
  box-shadow: 0 0 22px rgba(20, 139, 160, 0.16);
}

.user-app:has(.home-hero) .home-eyebrow {
  border-color: #d7e7fb;
  background: #f2f7ff;
  color: #2457b8;
  box-shadow: inset 0 1px 0 #fff;
}

.user-app:has(.home-hero) .home-hero-title {
  color: var(--poster-ink);
  text-shadow: none;
}

.user-app:has(.home-hero) .home-hero-title::after {
  background: linear-gradient(90deg, #e9781f, #148ba0 68%, #18816f);
  box-shadow: none;
}

.user-app:has(.home-hero) .home-hero-sub {
  color: #58708a;
}

.user-app:has(.home-hero) .home-hero-meta .badge {
  border-color: #d8e7fb;
  background: #f5f9ff;
  color: #315b8b;
  box-shadow: inset 0 1px 0 #fff;
}

.user-app:has(.home-hero) .home-hero-meta .badge svg {
  color: #148ba0;
}

.user-app:has(.home-hero) .home-hero-slogan {
  border-color: #d8e7f4;
  background:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, #f8fbff, #eef6ff 52%, #f2fbf8);
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow:
    inset 0 0 28px rgba(37, 99, 235, 0.035),
    0 8px 20px rgba(36, 72, 128, 0.06);
}

.user-app:has(.home-hero) .home-hero-slogan::before {
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgba(37, 99, 235, 0.035) 3px 4px
  );
  mix-blend-mode: multiply;
}

.user-app:has(.home-hero) .home-slogan-group b {
  color: #1c3856;
  text-shadow: none;
}

.user-app:has(.home-hero) .home-slogan-group strong {
  color: #0d7f8d;
  text-shadow: none;
}

.user-app:has(.home-hero) .home-slogan-group i {
  background: #2c91a3;
  box-shadow: 0 0 8px rgba(44, 145, 163, 0.28);
}

.user-app:has(.home-hero) .home-slogan-scan {
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.07), transparent);
}

.user-app:has(.home-hero) .home-capabilities span {
  border-color: #dce7f2;
  background: rgba(255, 255, 255, 0.9);
  color: #4b637d;
  box-shadow: 0 2px 7px rgba(36, 72, 128, 0.035);
}

.user-app:has(.home-hero) .home-capabilities svg {
  color: #148ba0;
}

.user-app:has(.home-hero) .home-stats-label {
  color: #6a7f96;
}

.user-app:has(.home-hero) .home-stats-label svg {
  color: #18816f;
}

.user-app:has(.home-hero) .home-stat {
  border-color: #dce7f2;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 22px rgba(36, 72, 128, 0.055);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.user-app:has(.home-hero) .home-stat b,
.user-app:has(.home-hero) .home-stat:nth-child(2) b,
.user-app:has(.home-hero) .home-stat:nth-child(3) b,
.user-app:has(.home-hero) .home-stat:nth-child(4) b {
  color: #1b3b59;
}

.user-app:has(.home-hero) .home-stat:nth-child(2) b {
  color: #c96f18;
}

.user-app:has(.home-hero) .home-stat:nth-child(3) b {
  color: #126f91;
}

.user-app:has(.home-hero) .home-stat:nth-child(4) b {
  color: #177966;
}

.user-app:has(.home-hero) .home-stat span {
  color: #6d8198;
}

.user-app:has(.home-hero) .home-hero .btn-white {
  border-color: #e9781f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(233, 120, 31, 0.2);
}

.user-app:has(.home-hero) .home-hero .btn-white:hover {
  border-color: #f59e48;
}

.user-app:has(.home-hero) .home-hero .btn-glass {
  border-color: #d9e5f0;
  background: rgba(255, 255, 255, 0.92);
  color: #29445f;
  box-shadow: 0 3px 10px rgba(36, 72, 128, 0.045);
}

.user-app:has(.home-hero) .home-hero .btn-glass:hover {
  border-color: #bcd3e8;
  background: #f3f8ff;
  color: #184e78;
}

.user-app:has(.home-hero) .home-hero .btn-glass svg {
  color: #148ba0;
}

@media (max-width: 820px) {
  .user-app:has(.home-hero) .home-hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.95)),
      linear-gradient(135deg, #fbfdff 0%, #eef6ff 58%, #edf8f4 100%),
      var(--home-hero-image) right bottom / 86% auto no-repeat;
    background-blend-mode: normal, normal, screen;
  }
}

@media (max-width: 560px) {
  .user-app:has(.home-hero) .home-hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 252, 255, 0.975)),
      linear-gradient(135deg, #fcfdff 0%, #f1f7ff 60%, #eef9f6 100%),
      var(--home-hero-image) center bottom / 108% auto no-repeat;
    background-blend-mode: normal, normal, screen;
  }

  .user-app:has(.home-hero) .home-actions .btn-white svg {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }

  .user-app:has(.home-hero) .home-actions .btn-glass svg {
    background: #eaf4fb;
    color: #148ba0;
  }
}
