/* C4W3 Trust Score — scoped additions only. */
.trust-card .trust-form .trust-input-row {
  display: flex;
}

.trust-card .trust-form button:disabled {
  cursor: wait;
  opacity: .72;
}

.trust-card .trust-network-row[hidden] {
  display: none !important;
}

.trust-card .trust-network-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(246, 190, 68, .23);
  background: rgba(3, 21, 18, .42);
}

.trust-card .trust-network-row label {
  grid-column: 1 / -1;
  margin: 0;
}

.trust-card .trust-network-row select {
  min-width: 0;
  width: 100%;
  height: 52px;
  padding: 0 44px 0 16px;
  color: var(--cream, #f2f1e8);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  background-color: rgba(2, 14, 12, .78);
  font: inherit;
}

.trust-card .trust-network-row small {
  max-width: 240px;
  color: rgba(237, 239, 230, .56);
  font-size: .78rem;
  line-height: 1.45;
}

.trust-card .trust-message {
  display: block;
  min-height: 22px;
  margin: 12px 0 0;
  color: rgba(237, 239, 230, .68);
  font-size: .84rem;
  line-height: 1.5;
}

.trust-card .trust-message.is-error {
  color: #ff9a83;
}

.trust-card .trust-message.is-info {
  color: #63dcff;
}

.trust-card .trust-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  border: 2px solid rgba(6, 23, 19, .28);
  border-top-color: #061713;
  border-radius: 50%;
  animation: c4w3-spin .7s linear infinite;
}

@keyframes c4w3-spin {
  to { transform: rotate(360deg); }
}

.trust-card .trust-result.has-analysis {
  display: block;
  min-height: 0;
  padding: 26px;
}

.trust-card .trust-score-summary {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.trust-card .trust-score-live {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(41, 196, 241, .58);
  border-radius: 50%;
  color: #56d8ff;
  background: rgba(1, 19, 19, .42);
  box-shadow: inset 0 0 36px rgba(23, 177, 220, .07);
}

.trust-card .trust-score-live > span {
  display: block;
  font-size: 1.58rem;
  line-height: 1;
}

.trust-card .trust-score-live > small {
  display: block;
  margin-top: 8px;
  color: rgba(237, 239, 230, .62);
  font-size: .66rem;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trust-card .trust-result.is-high .trust-score-live {
  color: #ff8a73;
  border-color: rgba(255, 111, 84, .62);
}

.trust-card .trust-result.is-caution .trust-score-live {
  color: #f3bf4f;
  border-color: rgba(243, 191, 79, .62);
}

.trust-card .trust-result.is-moderate .trust-score-live {
  color: #64d8ff;
  border-color: rgba(80, 194, 239, .62);
}

.trust-card .trust-result.is-strong .trust-score-live {
  color: #69e0ae;
  border-color: rgba(68, 208, 156, .62);
}

.trust-card .trust-score-summary > div:last-child > strong {
  display: block;
  margin: 0 0 8px;
  color: var(--cream, #f2f1e8);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.trust-card .trust-score-summary > div:last-child > p {
  margin: 0;
  color: rgba(237, 239, 230, .68);
  line-height: 1.6;
}

.trust-card .trust-score-confidence {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  margin-top: 15px;
}

.trust-card .trust-score-confidence > span {
  color: rgba(237, 239, 230, .55);
  font-size: .69rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.trust-card .trust-score-confidence > strong {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #f3bf4f;
  background: rgba(3, 18, 15, .56);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trust-card .trust-score-confidence > strong.is-high { color: #69e0ae; }
.trust-card .trust-score-confidence > strong.is-medium { color: #f3bf4f; }
.trust-card .trust-score-confidence > strong.is-low { color: #ff9a83; }

.trust-card .trust-score-confidence > small {
  flex-basis: 100%;
  color: rgba(237, 239, 230, .42);
  font-size: .66rem;
  line-height: 1.45;
}

.trust-card .trust-score-history {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid rgba(233, 184, 76, .18);
  background: rgba(2, 19, 17, .45);
}

.trust-card .trust-history-head {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
}

.trust-card .trust-history-head > strong {
  color: var(--cream, #f2f1e8);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.trust-card .trust-history-head > small {
  color: rgba(237, 239, 230, .4);
  font-size: .62rem;
}

.trust-card .trust-score-history > p {
  margin: 11px 0 0;
  color: rgba(237, 239, 230, .55);
  font-size: .72rem;
  line-height: 1.5;
}

.trust-card .trust-history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 13px;
  background: rgba(255, 255, 255, .1);
}

.trust-card .trust-history-grid .trust-fact {
  padding: 11px 13px;
}

.trust-card .trust-fact.is-up strong { color: #69e0ae; }
.trust-card .trust-fact.is-down strong { color: #ff9a83; }

.trust-card .trust-token-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .11);
}

.trust-card .trust-fact {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(2, 20, 17, .82);
}

.trust-card .trust-fact.is-address {
  grid-column: 1 / -1;
}

.trust-card .trust-fact span {
  display: block;
  margin-bottom: 5px;
  color: rgba(237, 239, 230, .48);
  font-size: .69rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trust-card .trust-fact strong,
.trust-card .trust-fact code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--cream, #f2f1e8);
  font-size: .88rem;
  line-height: 1.45;
}

.trust-card .trust-fact a {
  display: inline-block;
  margin-top: 8px;
  color: #5cdcff;
  font-size: .72rem;
  text-decoration: none;
}

.trust-card .trust-fact a:hover {
  text-decoration: underline;
}

.trust-card .trust-fact code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 500;
}

.trust-card .trust-result-heading {
  margin: 28px 0 14px;
  color: var(--cream, #f2f1e8);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.trust-card .trust-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trust-card .trust-category {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(2, 19, 17, .52);
}

.trust-card .trust-category-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trust-card .trust-category-head strong {
  color: var(--cream, #f2f1e8);
  font-size: .92rem;
  line-height: 1.35;
}

.trust-card .trust-category-head span {
  flex: 0 0 auto;
  color: #f1bb43;
  font-size: .76rem;
  letter-spacing: .06em;
}

.trust-card .trust-category > small {
  display: block;
  margin: -4px 0 7px;
  color: rgba(237, 239, 230, .42);
  font-size: .65rem;
}

.trust-card .trust-category ul,
.trust-card .trust-finding ul,
.trust-card .trust-sources ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-card .trust-category li {
  position: relative;
  padding: 7px 0 7px 17px;
  color: rgba(237, 239, 230, .65);
  font-size: .78rem;
  line-height: 1.45;
}

.trust-card .trust-category li::before {
  position: absolute;
  top: 13px;
  left: 0;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.trust-card .trust-category li span,
.trust-card .trust-category li em {
  display: block;
}

.trust-card .trust-category li em {
  margin-top: 2px;
  color: rgba(237, 239, 230, .45);
  font-size: .7rem;
  font-style: normal;
}

.trust-card .trust-category li.is-positive { color: rgba(105, 224, 174, .85); }
.trust-card .trust-category li.is-alert { color: rgba(255, 138, 115, .88); }
.trust-card .trust-category li.is-unavailable { color: rgba(237, 239, 230, .45); }

.trust-card .trust-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .1);
}

.trust-card .trust-pool-list {
  display: grid;
  gap: 8px;
}

.trust-card .trust-pool-list > a,
.trust-card .trust-pool-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(237, 239, 230, .66);
  background: rgba(2, 19, 17, .45);
  font-size: .79rem;
  text-decoration: none;
}

.trust-card .trust-pool-list strong {
  color: var(--cream, #f2f1e8);
}

.trust-card .trust-holder-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.trust-card .trust-holder-list > div {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(2, 19, 17, .45);
}

.trust-card .trust-holder-list strong,
.trust-card .trust-holder-list span,
.trust-card .trust-holder-list small {
  display: block;
  overflow-wrap: anywhere;
}

.trust-card .trust-holder-list strong {
  color: var(--cream, #f2f1e8);
  font-size: .78rem;
}

.trust-card .trust-holder-list span {
  margin-top: 5px;
  color: #f1bb43;
  font-size: .72rem;
}

.trust-card .trust-holder-list small {
  margin-top: 3px;
  color: rgba(237, 239, 230, .42);
  font-size: .66rem;
}

.trust-card .trust-pool a,
.trust-card .trust-sources a {
  color: #5cdcff;
  text-decoration: none;
}

.trust-card .trust-pool a:hover,
.trust-card .trust-sources a:hover {
  text-decoration: underline;
}

.trust-card .trust-findings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trust-card .trust-finding {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(2, 19, 17, .45);
}

.trust-card .trust-finding > strong {
  display: block;
  margin: 0 0 10px;
  color: var(--cream, #f2f1e8);
  font-size: .79rem;
}

.trust-card .trust-finding li {
  margin: 7px 0;
  color: rgba(237, 239, 230, .59);
  font-size: .75rem;
  line-height: 1.45;
}

.trust-card .trust-finding.is-alert > strong { color: #ff9a83; }
.trust-card .trust-finding.is-positive > strong { color: #69e0ae; }

.trust-card .trust-technical h4,
.trust-card .trust-pools h4,
.trust-card .trust-sources h4 {
  margin: 28px 0 13px;
  color: var(--cream, #f2f1e8);
  font-size: .77rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.trust-card .trust-data-empty {
  margin: 0;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(2, 19, 17, .45);
}

.trust-card .trust-sources li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 7px 0;
  color: rgba(237, 239, 230, .58);
  font-size: .76rem;
  line-height: 1.45;
}

.trust-card .trust-sources li em {
  color: rgba(237, 239, 230, .42);
  font-style: normal;
  text-align: right;
}

.trust-card .trust-crosschecks li.is-verified em { color: #69e0ae; }
.trust-card .trust-crosschecks li.is-conflicting em { color: #ff9a83; }
.trust-card .trust-crosschecks li.is-observed em { color: #f3bf4f; }
.trust-card .trust-crosschecks li.is-unavailable em { color: rgba(237, 239, 230, .38); }

.trust-card .trust-inline-disclaimer {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(237, 239, 230, .48);
  font-size: .72rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .trust-card .trust-score-summary {
    grid-template-columns: 1fr;
  }

  .trust-card .trust-score-live {
    width: 112px;
    height: 112px;
  }

  .trust-card .trust-category-grid,
  .trust-card .trust-findings,
  .trust-card .trust-facts,
  .trust-card .trust-history-grid,
  .trust-card .trust-holder-list {
    grid-template-columns: 1fr;
  }

  .trust-card .trust-network-row {
    grid-template-columns: 1fr;
  }

  .trust-card .trust-network-row small {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .trust-card .trust-form .trust-input-row {
    display: grid;
  }

  .trust-card .trust-token-meta {
    grid-template-columns: 1fr;
  }

  .trust-card .trust-fact.is-address {
    grid-column: auto;
  }

  .trust-card .trust-result.has-analysis {
    padding: 20px;
  }
}

/* Keep the C4W3 cards independent when the analysis column grows. */
.c4w3-grid {
  align-items: start;
}

.c4w3-grid > .c4w3-companion {
  align-self: start;
  height: fit-content;
}

/* C4W3 visual companion — isolated to the Ask CARRY portrait */
@media (min-width: 851px) {
  .c4w3-companion {
    grid-template-columns: minmax(250px, .88fr) minmax(0, 1.12fr);
  }
}

.c4w3-companion .companion-portrait {
  isolation: isolate;
  min-height: 530px;
  background:
    radial-gradient(circle at 52% 44%, rgba(16, 180, 228, .13), transparent 35%),
    linear-gradient(160deg, #020b11 0%, #031813 56%, #020907 100%);
}

.c4w3-companion .companion-portrait > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  object-position: 82% center;
  opacity: .08;
  filter: saturate(.58) brightness(.22) contrast(1.18);
  transform: scale(1.04);
}

.c4w3-companion .companion-portrait::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(60, 216, 255, .018) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 52% 45%, transparent 0 24%, rgba(25, 198, 235, .05) 25%, transparent 26%),
    linear-gradient(90deg, rgba(0, 14, 21, .15), transparent 30% 72%, rgba(0, 14, 18, .36));
}

.c4w3-companion .companion-portrait::after {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 56%, rgba(5, 25, 20, .5) 88%, #0a2118),
    linear-gradient(0deg, rgba(2, 12, 10, .82), transparent 40%);
}

.c4w3-visual-network {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .82;
}

.c4w3-hologram {
  position: absolute;
  z-index: 4;
  bottom: 47px;
  left: -3%;
  width: 82%;
  height: 91%;
  overflow: visible;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 91%, rgba(0, 0, 0, .84) 96%, transparent 100%);
  animation: c4w3-holo-breathe 7s ease-in-out infinite;
  transform-origin: 48% 84%;
}

.c4w3-hologram::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(59, 216, 255, .02) 5px 6px),
    radial-gradient(circle at 48% 32%, rgba(61, 216, 255, .11), transparent 43%),
    linear-gradient(140deg, rgba(41, 202, 245, .055), transparent 48%, rgba(236, 184, 71, .045));
  mix-blend-mode: screen;
}

.c4w3-hologram > img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  opacity: .98;
  mix-blend-mode: normal;
  filter: saturate(1.05) brightness(.9) contrast(1.08) drop-shadow(0 0 22px rgba(39, 206, 255, .25)) drop-shadow(0 0 9px rgba(238, 187, 74, .14));
}

.c4w3-holo-aura {
  position: absolute;
  z-index: 0;
  width: 86%;
  aspect-ratio: 1;
  top: 9%;
  left: 2%;
  border: 1px solid rgba(58, 211, 255, .18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 207, 255, .13), rgba(11, 141, 195, .035) 48%, transparent 70%);
  box-shadow: 0 0 55px rgba(29, 182, 229, .12), inset 0 0 42px rgba(29, 182, 229, .08);
  animation: c4w3-aura 5.8s ease-in-out infinite;
}

.c4w3-holo-scan {
  position: absolute;
  z-index: 3;
  top: 10%;
  right: 18%;
  left: 5%;
  height: 1px;
  opacity: .65;
  background: linear-gradient(90deg, transparent, rgba(89, 226, 255, .95), transparent);
  box-shadow: 0 0 10px rgba(44, 211, 255, .7);
  animation: c4w3-scan 5.2s ease-in-out infinite;
}

.c4w3-holo-eye {
  display: none;
}

.c4w3-holo-base {
  position: absolute;
  z-index: 4;
  right: 8%;
  bottom: 1%;
  left: 6%;
  height: 14px;
  border: 1px solid rgba(62, 213, 255, .45);
  border-radius: 50%;
  opacity: .72;
  box-shadow: 0 0 18px rgba(30, 191, 239, .36), inset 0 0 15px rgba(30, 191, 239, .3);
  animation: c4w3-base-pulse 3.6s ease-in-out infinite;
}

.c4w3-orb {
  --c4w3-orb-scale: 1;
  position: absolute;
  z-index: 5;
  top: 29%;
  left: 62%;
  width: 74px;
  height: 74px;
  pointer-events: none;
  filter: drop-shadow(0 0 15px rgba(37, 201, 248, .28));
  transition: filter .7s ease, transform .7s ease, opacity .7s ease;
  animation: c4w3-orb-float 5.6s ease-in-out infinite;
}

.c4w3-orb::before,
.c4w3-orb::after {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(87, 223, 255, .3);
  border-radius: 50%;
  content: "";
}

.c4w3-orb::after {
  inset: 25%;
  border-color: rgba(236, 185, 73, .3);
}

.c4w3-orb-ring,
.c4w3-orb-core {
  position: absolute;
  border-radius: 50%;
}

.c4w3-orb-ring {
  inset: 5%;
  border: 1px solid rgba(60, 211, 255, .38);
  border-right-color: rgba(237, 186, 72, .72);
  border-bottom-color: transparent;
  animation: c4w3-orb-spin 12s linear infinite;
}

.c4w3-orb-ring-two {
  inset: 13%;
  border-left-color: transparent;
  border-right-color: rgba(65, 219, 255, .7);
  animation-duration: 8.5s;
  animation-direction: reverse;
}

.c4w3-orb-core {
  display: grid;
  place-items: center;
  inset: 29%;
  border: 1px solid rgba(84, 223, 255, .7);
  background: radial-gradient(circle at 38% 32%, #dffaff 0 3%, #42d6fa 12%, #087ea8 35%, rgba(4, 39, 56, .92) 62%, rgba(2, 15, 20, .9) 100%);
  box-shadow: 0 0 14px rgba(58, 216, 255, .55), inset 0 0 12px rgba(214, 250, 255, .28);
  animation: c4w3-core-pulse 3.2s ease-in-out infinite;
}

.c4w3-orb-core i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f1bf4d;
  box-shadow: 0 0 8px #f1bf4d;
}

.c4w3-visual-state {
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: 60px;
  left: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(67, 207, 242, .2);
  background: linear-gradient(110deg, rgba(2, 16, 21, .86), rgba(3, 21, 18, .72));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24), inset 0 0 25px rgba(20, 157, 199, .035);
  backdrop-filter: blur(8px);
  transition: border-color .5s ease, box-shadow .5s ease;
}

.c4w3-visual-state > i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55ddb0;
  box-shadow: 0 0 11px rgba(85, 221, 176, .8);
  transition: background .5s ease, box-shadow .5s ease;
}

.c4w3-visual-state span,
.c4w3-visual-state strong,
.c4w3-visual-state small {
  display: block;
  min-width: 0;
}

.c4w3-visual-state strong {
  color: #edf4ee;
  font: 700 .75rem/1.25 Manrope, sans-serif;
  letter-spacing: .02em;
}

.c4w3-visual-state small {
  display: none;
}

.c4w3-companion .companion-status {
  z-index: 8;
  bottom: 16px;
  left: 14px;
  padding: 7px 10px;
  border-color: rgba(233, 184, 76, .24);
  background: rgba(2, 12, 12, .76);
}

.companion-portrait[data-c4w3-visual-state="analyzing"] .c4w3-orb {
  --c4w3-orb-scale: 1.05;
  filter: drop-shadow(0 0 24px rgba(54, 215, 255, .52));
}

.companion-portrait[data-c4w3-visual-state="analyzing"] .c4w3-visual-state > i {
  background: #49d8ff;
  box-shadow: 0 0 13px rgba(73, 216, 255, .95);
  animation: c4w3-status-pulse 1.25s ease-in-out infinite;
}

.companion-portrait[data-c4w3-visual-state="ready"] .c4w3-orb {
  --c4w3-orb-scale: 1.08;
  filter: drop-shadow(0 0 28px rgba(66, 220, 255, .62)) drop-shadow(0 0 11px rgba(238, 188, 77, .3));
}

.companion-portrait[data-c4w3-visual-state="ready"] .c4w3-visual-state {
  border-color: rgba(92, 224, 184, .32);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25), inset 0 0 26px rgba(71, 218, 177, .06);
}

.companion-portrait[data-c4w3-visual-state="error"] .c4w3-orb {
  --c4w3-orb-scale: .96;
  opacity: .5;
  filter: grayscale(.65) drop-shadow(0 0 9px rgba(119, 145, 142, .2));
}

.companion-portrait[data-c4w3-visual-state="error"] .c4w3-visual-state > i {
  background: #8ba29b;
  box-shadow: 0 0 8px rgba(139, 162, 155, .5);
}

.companion-portrait.is-c4w3-reacting .c4w3-orb {
  animation: c4w3-ready-reaction 1.5s ease-out 1;
}

.companion-portrait:not(.is-c4w3-visible) .c4w3-hologram,
.companion-portrait:not(.is-c4w3-visible) .c4w3-holo-aura,
.companion-portrait:not(.is-c4w3-visible) .c4w3-holo-scan,
.companion-portrait:not(.is-c4w3-visible) .c4w3-holo-eye,
.companion-portrait:not(.is-c4w3-visible) .c4w3-holo-base,
.companion-portrait:not(.is-c4w3-visible) .c4w3-orb,
.companion-portrait:not(.is-c4w3-visible) .c4w3-orb-ring,
.companion-portrait:not(.is-c4w3-visible) .c4w3-orb-core {
  animation-play-state: paused;
}

@keyframes c4w3-holo-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.12deg) scale(1); opacity: .96; }
  50% { transform: translate3d(0, -4px, 0) rotate(.16deg) scale(1.008); opacity: 1; }
}

@keyframes c4w3-aura {
  0%, 100% { transform: scale(.96); opacity: .5; }
  50% { transform: scale(1.04); opacity: .85; }
}

@keyframes c4w3-scan {
  0%, 12% { transform: translateY(0); opacity: 0; }
  25% { opacity: .7; }
  72% { transform: translateY(300px); opacity: .45; }
  84%, 100% { transform: translateY(330px); opacity: 0; }
}

@keyframes c4w3-eye {
  0%, 43%, 45%, 82%, 84%, 100% { transform: scaleY(1); opacity: .78; }
  44%, 83% { transform: scaleY(.08); opacity: .35; }
}

@keyframes c4w3-base-pulse {
  0%, 100% { transform: scaleX(.93); opacity: .48; }
  50% { transform: scaleX(1.04); opacity: .82; }
}

@keyframes c4w3-orb-spin {
  to { transform: rotate(360deg); }
}

@keyframes c4w3-orb-float {
  0%, 100% { transform: translate3d(0, -3px, 0) scale(var(--c4w3-orb-scale)); }
  50% { transform: translate3d(0, 5px, 0) scale(var(--c4w3-orb-scale)); }
}

@keyframes c4w3-core-pulse {
  0%, 100% { transform: scale(.9); box-shadow: 0 0 10px rgba(58, 216, 255, .4), inset 0 0 10px rgba(214, 250, 255, .2); }
  50% { transform: scale(1.08); box-shadow: 0 0 22px rgba(58, 216, 255, .72), inset 0 0 15px rgba(214, 250, 255, .4); }
}

@keyframes c4w3-status-pulse {
  50% { opacity: .45; transform: scale(.78); }
}

@keyframes c4w3-ready-reaction {
  0% { transform: scale(1); }
  28% { transform: scale(1.16); }
  100% { transform: scale(1.08); }
}

@media (max-width: 850px) {
  .c4w3-companion .companion-portrait {
    min-height: 390px;
  }

  .c4w3-companion .companion-portrait::after {
    background: linear-gradient(0deg, #0a2118 0%, rgba(3, 18, 14, .45) 22%, transparent 56%);
  }

  .c4w3-hologram {
    bottom: 42px;
    left: 3%;
    width: 60%;
    height: 94%;
  }

  .c4w3-orb {
    top: 31%;
    left: 47%;
    right: auto;
    width: 76px;
    height: 76px;
  }

  .c4w3-visual-state {
    right: 18px;
    bottom: 58px;
    left: auto;
    width: min(290px, 48%);
  }
}

@media (max-width: 520px) {
  .c4w3-companion .companion-portrait {
    min-height: 300px;
  }

  .c4w3-hologram {
    bottom: 42px;
    left: -4%;
    width: 72%;
    height: 92%;
  }

  .c4w3-orb {
    top: 29%;
    left: 53%;
    right: auto;
    width: 62px;
    height: 62px;
  }

  .c4w3-visual-state {
    right: 10px;
    bottom: 52px;
    left: 10px;
    width: auto;
    min-height: 48px;
    padding: 9px 11px;
  }

  .c4w3-visual-state small {
    font-size: .55rem;
  }

  .c4w3-companion .companion-status {
    bottom: 12px;
    left: 10px;
  }

  .c4w3-holo-eye {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-card .trust-spinner {
    animation-duration: 1.5s;
  }

  .c4w3-hologram,
  .c4w3-holo-aura,
  .c4w3-holo-scan,
  .c4w3-holo-eye,
  .c4w3-holo-base,
  .c4w3-orb,
  .c4w3-orb-ring,
  .c4w3-orb-core,
  .companion-portrait[data-c4w3-visual-state="analyzing"] .c4w3-visual-state > i,
  .companion-portrait.is-c4w3-reacting .c4w3-orb {
    animation: none !important;
  }

  .c4w3-holo-scan,
  .c4w3-holo-eye {
    display: none;
  }
}
