/* Ports lib/screens/widgets/circul_button.dart (metallic bezel circular button)
   and the ButtonSystems / onboarding badge variant (rounded-square icon chip). */

.circ-btn {
  --size: 50px;
  width: var(--size);
  height: var(--size);
  min-width: var(--size);
  min-height: var(--size);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #000000, #9e9e9e);
  transition: transform 400ms var(--ease-elastic), background 220ms linear;
  transform: scale(1);
  flex-shrink: 0;
}

.circ-btn.is-pressed {
  transform: scale(0.93);
  background: linear-gradient(315deg, #000000, #9e9e9e);
  transition: transform 100ms ease-out, background 100ms linear;
}

.circ-btn__inner {
  width: calc(100% - 3px);
  height: calc(100% - 3px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(315deg, #9e9e9e, #000000);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: var(--color-white);
  transition: background 220ms linear;
}

.circ-btn.is-pressed .circ-btn__inner {
  background: linear-gradient(135deg, #9e9e9e, #000000);
}

.circ-btn svg,
.circ-btn img {
  width: 55%;
  height: 55%;
  object-fit: contain;
}

.circ-btn:disabled,
.circ-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Rounded-rect variant (RoundedRectButton — START SCAN / VIEW 3D) */
.rect-btn {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #000000, #9e9e9e);
  padding: 2px;
  transform: scale(1);
  transition: transform 400ms var(--ease-elastic), background 220ms linear;
  display: inline-block;
}
.rect-btn.is-pressed {
  transform: scale(0.96);
  transition: transform 100ms ease-out, background 100ms linear;
}
.rect-btn__inner {
  border-radius: calc(var(--radius-lg) - 2px);
  background: linear-gradient(315deg, #9e9e9e, #000000);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Rounded-square system-icon badge — ports ButtonSystems from btn_search_sys.dart,
   used by onboarding slide 3 and the device-home detection-systems carousel. */
.sys-badge {
  --size: 72px;
  width: var(--size);
  height: var(--size);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sys-badge__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-white-10);
  border-radius: calc(var(--size) * 0.39);
}
.sys-badge__box {
  width: 77%;
  height: 77%;
  border-radius: calc(var(--size) * 0.25);
  background: var(--color-badge-bg);
  border: 1px solid var(--color-white-10);
  box-shadow: -3px 3px 20px 0 rgba(89, 94, 224, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sys-badge__box img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.sys-badge--active .sys-badge__box {
  box-shadow: -3px 3px 20px 0 rgba(0, 173, 227, 0.35);
}

/* Shared 4-ring "bullseye" pattern: onboarding's last-slide "Get Started"
   button and the connect screen's big pulsing connect button. Color is set
   by a modifier class so both can share the same markup/geometry. */
.bullseye-rings {
  position: absolute;
  inset: 0;
}
.bullseye-rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-onboarding-accent);
}
.bullseye-rings span:nth-child(1) {
  width: 70%;
  height: 70%;
  opacity: 0.1;
}
.bullseye-rings span:nth-child(2) {
  width: 50%;
  height: 50%;
  opacity: 0.2;
}
.bullseye-rings span:nth-child(3) {
  width: 30%;
  height: 30%;
  opacity: 0.4;
}
.bullseye-rings span:nth-child(4) {
  width: 12%;
  height: 12%;
  opacity: 1;
}
.bullseye-rings--red span {
  background: var(--color-connect-red);
}
