.wc-home-dashboard {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.wc-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 330px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(145, 164, 210, .18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 14%, rgba(94, 129, 255, .24), transparent 34%),
    linear-gradient(145deg, rgba(18, 28, 52, .96), rgba(9, 15, 31, .98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.wc-home-hero.is-active {
  background:
    radial-gradient(circle at 84% 12%, rgba(53, 218, 172, .18), transparent 34%),
    radial-gradient(circle at 15% 100%, rgba(79, 125, 249, .14), transparent 45%),
    linear-gradient(145deg, rgba(17, 29, 49, .97), rgba(8, 15, 28, .99));
}

.wc-home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}
.wc-home-state {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(144, 164, 210, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: rgba(235, 241, 255, .78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.wc-home-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6f8fff;
  box-shadow: 0 0 0 5px rgba(111, 143, 255, .10);
}

.wc-home-hero.is-active .wc-home-state-dot {
  background: #3dd7a7;
  box-shadow: 0 0 0 5px rgba(61, 215, 167, .10);
}

.wc-home-hero h1 {
  margin: 22px 0 10px;
  max-width: 650px;
  font-size: clamp(31px, 6vw, 54px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.wc-home-lead {
  max-width: 570px;
  margin: 0;
  color: rgba(225, 233, 250, .70);
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.55;
  text-wrap: pretty;
}
.wc-home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.wc-home-meta span,
.wc-home-balance {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(142, 163, 210, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: rgba(229, 236, 252, .82);
  font-size: 12px;
  font-weight: 600;
}

.wc-home-balance {
  width: fit-content;
  margin-top: 20px;
  text-decoration: none;
}

.wc-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.wc-home-trial-form {
  margin: 0;
}

.wc-home-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.wc-home-btn:hover {
  transform: translateY(-1px);
}

.wc-home-btn-primary {
  color: #08111f !important;
  background: #f4f7ff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.wc-home-btn-primary:visited {
  color: #08111f !important;
}

.wc-home-btn-primary:hover {
  color: #08111f !important;
  background: #fff;
}

.wc-home-btn-secondary {
  color: #edf3ff;
  border-color: rgba(153, 174, 219, .20);
  background: rgba(255, 255, 255, .055);
}

.wc-home-btn-secondary:hover {
  border-color: rgba(153, 174, 219, .34);
  background: rgba(255, 255, 255, .085);
}

.wc-home-visual {
  position: absolute;
  z-index: 1;
  top: -52px;
  right: -58px;
  width: 190px;
  height: 190px;
  pointer-events: none;
}

.wc-home-status-mark {
  position: absolute;
  inset: 50%;
  width: 72px;
  height: 72px;
  margin: -36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: rgba(11, 20, 38, .70);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}
.wc-home-status-mark svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: #8aa2ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wc-home-hero.is-active .wc-home-status-mark svg {
  stroke: #54dbb2;
}

.wc-home-orbit {
  position: absolute;
  border: 1px solid rgba(142, 164, 214, .10);
  border-radius: 50%;
}

.wc-home-orbit-a { inset: 12px; }
.wc-home-orbit-b { inset: 37px; }

.wc-home-setup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(145, 164, 210, .13);
  border-radius: 20px;
  background: rgba(13, 22, 40, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.wc-home-setup-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wc-home-setup-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(111, 143, 255, .11);
  color: #9cadff;
  font-weight: 800;
}

.wc-home-setup h2 {
  margin: 0 0 3px;
  font-size: 14px;
  letter-spacing: -.01em;
}

.wc-home-setup p {
  margin: 0;
  color: rgba(217, 226, 245, .55);
  font-size: 12px;
  line-height: 1.4;
}

.wc-home-setup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.wc-home-setup-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(147, 169, 216, .15);
  border-radius: 11px;
  color: #dfe8fb;
  background: rgba(255, 255, 255, .035);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.wc-home-setup-actions a:hover {
  border-color: rgba(147, 169, 216, .30);
  background: rgba(255, 255, 255, .06);
}

@media (min-width: 600px) {
  .wc-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: center;
    gap: 30px;
  }

  .wc-home-visual {
    position: relative;
    top: auto;
    right: auto;
    width: 210px;
    height: 210px;
    justify-self: end;
  }
}

@media (max-width: 599px) {
  .wc-home-dashboard { gap: 10px; }

  .wc-home-hero {
    min-height: 0;
    padding: 22px 18px 20px;
    border-radius: 23px;
  }

  .wc-home-hero-copy {
    padding-right: 28px;
  }

  .wc-home-hero h1 {
    margin-top: 54px;
    font-size: clamp(30px, 9vw, 40px);
  }

  .wc-home-actions {
    display: grid;
    margin-top: 24px;
  }

  .wc-home-trial-form,
  .wc-home-btn {
    width: 100%;
  }

  .wc-home-meta {
    gap: 6px;
    margin-top: 18px;
  }

  .wc-home-setup {
    align-items: stretch;
    flex-direction: column;
    padding: 15px;
    border-radius: 17px;
  }

  .wc-home-setup-actions {
    justify-content: stretch;
  }

  .wc-home-setup-actions a {
    flex: 1 1 140px;
    justify-content: space-between;
  }
}

@media (min-width: 600px) and (max-height: 700px) {
  .wc-home-hero {
    min-height: 260px;
    padding-block: 24px;
  }

  .wc-home-visual {
    width: 160px;
    height: 160px;
  }

  .wc-home-hero h1 {
    margin-top: 15px;
    font-size: clamp(30px, 5vw, 43px);
  }

  .wc-home-actions {
    margin-top: 20px;
  }
}

/* Cabinet themes may ship after the base stylesheet; keep home contrast self-contained. */
body.wc-neo-body .wc-home-hero h1 {
  color: #f5f8ff;
}

body.wc-neo-body .wc-home-lead {
  color: rgba(225, 233, 250, .72);
}

body.wc-neo-body .wc-home-setup,
body.wc-neo-body .wc-home-setup h2 {
  color: #edf3ff;
}

body.wc-neo-body .wc-home-setup p {
  color: rgba(217, 226, 245, .60);
}

body.wc-neo-body .wc-home-setup-actions a {
  color: #e3ebff;
}

/* Legacy cabinet theme uses !important text colors; override only inside the new home. */
body.wc-neo-body .wc-home-hero h1 {
  color: #f5f8ff !important;
}
body.wc-neo-body .wc-home-lead {
  color: rgba(225, 233, 250, .72) !important;
}
body.wc-neo-body .wc-home-meta span,
body.wc-neo-body .wc-home-balance {
  color: rgba(229, 236, 252, .82) !important;
}
body.wc-neo-body .wc-home-btn-primary {
  color: #08111f !important;
}
body.wc-neo-body .wc-home-btn-secondary {
  color: #edf3ff !important;
}
body.wc-neo-body .wc-home-setup,
body.wc-neo-body .wc-home-setup h2 {
  color: #edf3ff !important;
}
body.wc-neo-body .wc-home-setup p {
  color: rgba(217, 226, 245, .60) !important;
}
body.wc-neo-body .wc-home-setup-actions a {
  color: #e3ebff !important;
}

body.wc-neo-body .wc-home-dashboard a.wc-home-btn-primary,
body.wc-neo-body .wc-home-dashboard button.wc-home-btn-primary {
  color: #08111f;
}

@media (max-width: 900px) {
  body.wc-neo-body.wc-authenticated.wc-home-route .wc-neo-app {
    padding-inline: 16px;
  }

  body.wc-neo-body.wc-authenticated.wc-home-route .wc-neo-main {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.wc-neo-body.wc-authenticated.wc-home-route .wc-neo-content-wrap {
    padding: 12px 0 calc(108px + env(safe-area-inset-bottom));
  }

  body.wc-neo-body.wc-authenticated.wc-home-route .wc-neo-content {
    padding-inline: 0;
  }
}

body.wc-neo-body .wc-home-setup {
  background: linear-gradient(145deg, rgba(15, 25, 46, .94), rgba(10, 18, 34, .90)) !important;
  border-color: rgba(144, 166, 215, .18) !important;
  box-shadow: 0 14px 38px rgba(4, 10, 23, .15), inset 0 1px 0 rgba(255, 255, 255, .035);
}

body.wc-neo-body .wc-home-setup p {
  color: rgba(222, 230, 247, .72) !important;
}

body.wc-neo-body .wc-home-setup-actions a {
  background: rgba(255, 255, 255, .055) !important;
  border-color: rgba(153, 174, 219, .20) !important;
}

.wc-page-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 22px auto 0;
  color: rgba(93, 111, 151, .72);
  font-size: 12px;
  line-height: 1.45;
}
.wc-page-legal-links a {
  color: inherit;
  text-decoration: none;
}
.wc-page-legal-links a:hover {
  text-decoration: underline;
}
.wc-pay-legal-links {
  margin-top: 2px;
  justify-content: flex-start;
}


/* Desktop polish 2026-10-04 */
body.cabinet-theme-friends .wc-home-btn-primary,
body.cabinet-theme-friends .wc-home-btn-primary:visited {
  color: #061529 !important;
  border-color: rgba(131, 250, 221, .28) !important;
  background: linear-gradient(135deg, #83fadd 0%, #62e2ff 46%, #5a98ff 100%) !important;
  box-shadow: 0 12px 30px rgba(47, 154, 238, .22), inset 0 1px 0 rgba(255,255,255,.34) !important;
}
body.cabinet-theme-friends .wc-home-btn-primary:hover {
  color: #03111f !important;
  background: linear-gradient(135deg, #a4ffe8 0%, #80ebff 48%, #71a8ff 100%) !important;
}

@media (min-width: 1600px) {
  body.cabinet-theme-friends.wc-authenticated.wc-home-route .wc-neo-content-wrap {
    max-width: 1480px;
  }
  body.cabinet-theme-friends.wc-authenticated.wc-home-route .wc-home-dashboard {
    width: min(100%, 1240px);
    padding-top: 24px;
  }
  body.cabinet-theme-friends.wc-authenticated.wc-home-route .wc-home-hero {
    min-height: 390px;
    padding: 48px 52px;
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  body.cabinet-theme-friends.wc-authenticated.wc-home-route .wc-home-visual {
    width: 250px;
    height: 250px;
  }
}
