/* NG Couch home widget — restrained cyber-neon reference palette. */
.home-screen-mode {
  --coach-neon-violet: #c874ff;
  --coach-neon-violet-bright: #e6b6ff;
  --coach-neon-violet-deep: #713aa8;
  --coach-neon-orange: #ff9708;
  --coach-neon-orange-bright: #ffb52e;
  --coach-neon-ink: #160b21;
}

.home-screen-mode .home-dashboard-v2 > .home-coach-card {
  overflow: hidden;
  border: 1px solid rgba(201, 125, 255, .72);
  border-radius: 24px;
  background-color: #0a0812;
  background-image:
    radial-gradient(circle at 78% 17%, rgba(150, 70, 221, .17), transparent 28%),
    radial-gradient(circle at 16% 86%, rgba(73, 34, 129, .14), transparent 35%),
    linear-gradient(118deg, rgba(10, 7, 18, .99), rgba(13, 9, 25, .96) 58%, rgba(20, 11, 35, .9));
  box-shadow:
    0 0 0 1px rgba(102, 45, 153, .28),
    0 0 16px rgba(168, 82, 238, .22),
    0 18px 42px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 220, 255, .16),
    inset 0 -1px 0 rgba(0, 0, 0, .62);
}

/* Replace the neutral glass veil with the dark violet depth of the reference. */
.home-screen-mode .home-dashboard-v2 > .home-coach-card::before {
  inset: 1px;
  border: 1px solid rgba(225, 173, 255, .18);
  border-radius: 23px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .045), transparent 26%, rgba(161, 81, 225, .045) 72%, transparent),
    repeating-linear-gradient(135deg, transparent 0 112px, rgba(196, 116, 255, .035) 113px, transparent 114px 230px);
}
.home-screen-mode .home-dashboard-v2 > .home-coach-card::after {
  background: linear-gradient(118deg, rgba(3, 2, 8, .08), rgba(6, 3, 13, .24) 55%, rgba(27, 8, 46, .18));
}

/* Quiet data exchange: a few bright dashes travel along each neural link. */
.home-screen-mode .home-coach-neural-layer {
  opacity: .76;
  mix-blend-mode: screen;
}
.home-screen-mode .home-coach-neural-layer .neural-links {
  fill: none;
  stroke: rgba(194, 111, 255, .38);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 25;
  filter: drop-shadow(0 0 3px rgba(190, 83, 255, .34));
}
.home-screen-mode .home-coach-neural-layer .neural-links path {
  animation: coach-neon-data-flow 6.8s linear infinite, coach-neon-link-breathe 5.4s ease-in-out infinite;
}
.home-screen-mode .home-coach-neural-layer .neural-links path:nth-child(2) { animation-delay: -1.8s, -1s; }
.home-screen-mode .home-coach-neural-layer .neural-links path:nth-child(3) { animation-delay: -3.6s, -2.6s; }
.home-screen-mode .home-coach-neural-layer .neural-links path:nth-child(4) { animation-delay: -.9s, -3.8s; }
.home-screen-mode .home-coach-neural-layer .neural-links path:nth-child(5) { animation-delay: -5.1s, -1.7s; }
.home-screen-mode .home-coach-neural-layer .neural-links path:nth-child(6) { animation-delay: -2.7s, -3.2s; }
.home-screen-mode .home-coach-neural-layer .neural-links path:nth-child(7) { animation-delay: -6s, -.6s; }
.home-screen-mode .home-coach-neural-layer .neural-nodes {
  fill: #e0a8ff;
  filter: drop-shadow(0 0 4px rgba(199, 103, 255, .88));
}
.home-screen-mode .home-coach-neural-layer .neural-nodes circle {
  animation: coach-neon-node-pulse 5.8s ease-in-out infinite;
}

@keyframes coach-neon-data-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -54; }
}
@keyframes coach-neon-link-breathe {
  0%, 100% { opacity: .28; }
  45%, 58% { opacity: .78; }
}
@keyframes coach-neon-node-pulse {
  0%, 100% { opacity: .44; transform: scale(.82); }
  50% { opacity: .98; transform: scale(1.16); }
}

.home-screen-mode .home-coach-question-field::before {
  background:
    radial-gradient(circle at 77% 15%, rgba(197, 104, 255, .19), transparent 25%),
    radial-gradient(circle at 13% 80%, rgba(120, 61, 188, .12), transparent 28%);
}
.home-screen-mode .home-coach-question-field .question-mark {
  color: rgba(219, 170, 255, .88);
  text-shadow:
    0 0 5px rgba(247, 221, 255, .95),
    0 0 15px rgba(207, 119, 255, .92),
    0 0 32px rgba(142, 57, 224, .66);
}

.home-screen-mode .home-coach-content .home-eyebrow {
  color: #dcb0f7;
  text-shadow: 0 0 12px rgba(196, 116, 255, .22);
}
.home-screen-mode .home-coach-content h2 { color: #fff; }
.home-screen-mode .home-coach-content > p { color: #dfd4e8; }
.home-screen-mode .home-coach-context {
  border-color: rgba(202, 124, 255, .66);
  color: #e2baff;
  background: linear-gradient(105deg, rgba(131, 59, 190, .22), rgba(91, 42, 139, .12));
  box-shadow: 0 0 14px rgba(163, 75, 230, .12), inset 0 1px 0 rgba(255, 220, 255, .14);
}
.home-screen-mode .home-coach-context i { color: #dc9eff; }
.home-screen-mode .home-coach-capabilities li { color: #eee7f4; }
.home-screen-mode .home-coach-capabilities li i {
  color: #dd9fff;
  background: linear-gradient(145deg, rgba(159, 71, 222, .34), rgba(91, 40, 143, .2));
  border: 1px solid rgba(207, 127, 255, .58);
  box-shadow: 0 0 12px rgba(172, 81, 238, .18), inset 0 1px 0 rgba(255, 220, 255, .16);
}

.home-screen-mode .home-coach-action {
  border-color: rgba(255, 211, 133, .78);
  color: var(--coach-neon-ink);
  background: linear-gradient(135deg, var(--coach-neon-orange-bright), var(--coach-neon-orange) 68%, #ff8500);
  box-shadow: 0 0 0 1px rgba(255, 145, 0, .22), 0 10px 26px rgba(255, 126, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.home-screen-mode .home-coach-action:hover,
.home-screen-mode .home-coach-action:focus-visible {
  filter: brightness(1.08) saturate(1.06);
  box-shadow: 0 0 0 1px rgba(255, 202, 101, .42), 0 0 22px rgba(255, 137, 0, .3), 0 12px 28px rgba(255, 126, 0, .24);
}

.home-screen-mode .home-coach-tip {
  border-color: rgba(196, 112, 255, .38);
  background: linear-gradient(145deg, rgba(104, 48, 150, .16), rgba(28, 14, 46, .3));
}
.home-screen-mode .home-coach-tip strong { color: #d99aff; }
.home-screen-mode .home-coach-tip span { color: #f0e8f4; }
.home-screen-mode .home-coach-examples-title { color: #c9b9d4; }
.home-screen-mode .home-coach-example {
  border-color: rgba(205, 139, 255, .5);
  color: #eee5f4;
  background: linear-gradient(145deg, rgba(105, 55, 156, .25), rgba(48, 23, 76, .32));
  box-shadow: inset 0 1px 0 rgba(255, 220, 255, .1);
}
.home-screen-mode .home-coach-example i { color: #dda0ff; }
.home-screen-mode .home-coach-example:hover,
.home-screen-mode .home-coach-example:focus-visible {
  border-color: rgba(229, 180, 255, .85);
  background: rgba(151, 70, 215, .32);
  box-shadow: 0 0 16px rgba(173, 80, 237, .2);
}

@media (prefers-reduced-motion: reduce) {
  .home-screen-mode .home-coach-neural-layer .neural-links path,
  .home-screen-mode .home-coach-neural-layer .neural-nodes circle { animation: none; }
}
